Skip to content

Releases: clerk/javascript

@clerk/[email protected]

16 Apr 19:59
40cb80b
Compare
Choose a tag to compare

Patch Changes

@clerk/[email protected]

16 Apr 19:59
40cb80b
Compare
Choose a tag to compare

Patch Changes

  • Improve JSDoc comments (#5641) by @LekoArts

  • Append expired status to invitation types (#5646) by @tmilewski

  • Improve JSDoc comments (#5630) by @LekoArts

  • Chore: tidy up checkout complete state for upcoming subscriptions (#5644) by @aeliox

  • Hide Billing tabs from UP and OP when no paid plans exist for an instance. (#5628) by @panteliselef

  • Updates PricingTable and SubscriptionDetailDrawer to handle upcoming and "expiring" subscriptions. (#5601) by @aeliox

@clerk/[email protected]

16 Apr 19:59
40cb80b
Compare
Choose a tag to compare

Patch Changes

@clerk/[email protected]

16 Apr 19:59
40cb80b
Compare
Choose a tag to compare

@clerk/[email protected]

16 Apr 19:59
40cb80b
Compare
Choose a tag to compare

@clerk/[email protected]

16 Apr 19:59
40cb80b
Compare
Choose a tag to compare

Patch Changes

@clerk/[email protected]

16 Apr 19:59
40cb80b
Compare
Choose a tag to compare

@clerk/[email protected]

16 Apr 19:59
40cb80b
Compare
Choose a tag to compare

@clerk/[email protected]

16 Apr 19:59
40cb80b
Compare
Choose a tag to compare

@clerk/[email protected]

16 Apr 19:59
40cb80b
Compare
Choose a tag to compare

Patch Changes

  • Add support for webhook verification with Next.js Pages Router. (#5618) by @wobsoriano

    // Next.js Pages Router
    import type { NextApiRequest, NextApiResponse } from 'next';
    import { verifyWebhook } from '@clerk/nextjs/webhooks';
    
    export const config = {
      api: {
        bodyParser: false,
      },
    };
    
    export default async function handler(req: NextApiRequest, res: NextApiResponse) {
      try {
        const evt = await verifyWebhook(req);
        // Handle webhook event
        res.status(200).json({ received: true });
      } catch (err) {
        res.status(400).json({ error: 'Webhook verification failed' });
      }
    }
    
    // tRPC
    import { verifyWebhook } from '@clerk/nextjs/webhooks';
    
    const webhookRouter = router({
      webhook: publicProcedure.input(/** schema */).mutation(async ({ ctx }) => {
        const evt = await verifyWebhook(ctx.req);
        // Handle webhook event
        return { received: true };
      }),
    });
  • Updated dependencies [ab939fd, 03284da, 7389ba3, 00f16e4, bb35660, efb5d8c, c2712e7, aa93f7f, a7f3ebc, d3fa403, f6ef841, 6cba4e2, fb6aa20, e634830, f8887b2]: