Skip to content

Version Packages (alpha-v5) - #2369

Merged
nikosdouvlis merged 1 commit into
mainfrom
changeset-release/main
Dec 19, 2023
Merged

Version Packages (alpha-v5)#2369
nikosdouvlis merged 1 commit into
mainfrom
changeset-release/main

Conversation

@clerk-cookie

@clerk-cookieclerk-cookie commented Dec 15, 2023

Copy link
Copy Markdown
Collaborator

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

main is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on main.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@clerk/backend@1.0.0-alpha-v5.10

Major Changes

  • Change return value of verifyToken() from @clerk/backend to { data, error}. (#2377) by @dimkl

    To replicate the current behaviour use this:

    import{verifyToken}from'@clerk/backend'const{ data, error }=awaitverifyToken(...);if(error){throwerror;}
  • Change return values of signJwt, hasValidSignature, decodeJwt, verifyJwt (#2377) by @dimkl

    to return { data, error }. Example of keeping the same behavior using those utilities:

    import{signJwt,hasValidSignature,decodeJwt,verifyJwt}from'@clerk/backend/jwt';const{ data, error }=awaitsignJwt(...)if(error)throwerror;const{ data, error }=awaithasValidSignature(...)if(error)throwerror;const{ data, error }=decodeJwt(...)if(error)throwerror;const{ data, error }=awaitverifyJwt(...)if(error)throwerror;
  • Changes in exports of @clerk/backend: (#2363) by @dimkl

    • Expose the following helpers and enums from @clerk/backend/internal:
      import{AuthStatus,buildRequestUrl,constants,createAuthenticateRequest,createIsomorphicRequest,debugRequestState,makeAuthObjectSerializable,prunePrivateMetadata,redirect,sanitizeAuthObject,signedInAuthObject,signedOutAuthObject,}from'@clerk/backend/internal';
    • Drop the above exports from the top-level api:
      // Beforeimport{AuthStatus, ... }from'@clerk/backend';// Afterimport{AuthStatus, ... }from'@clerk/backend/internal';
      Dropping those exports results in also dropping the exports from gatsby-plugin-clerk, @clerk/clerk-sdk-node, @clerk/backend, @clerk/fastify, @clerk/nextjs, @clerk/remix packages.
  • Changes in exports of @clerk/backend: (#2365) by @dimkl

    • Drop the following internal exports from the top-level api:
      // Beforeimport{AllowlistIdentifier,Client,DeletedObject,Email,EmailAddress,ExternalAccount,IdentificationLink,Invitation,OauthAccessToken,ObjectType,Organization,OrganizationInvitation,OrganizationMembership,OrganizationMembershipPublicUserData,PhoneNumber,RedirectUrl,SMSMessage,Session,SignInToken,Token,User,Verification,}from'@clerk/backend';// After : no alternative since there is no need to use those classes
      Dropping those exports results in also dropping the exports from gatsby-plugin-clerk, @clerk/clerk-sdk-node, @clerk/backend, @clerk/fastify, @clerk/nextjs, @clerk/remix packages.
    • Keep those 3 resource related type exports
      importtype{Organization,Session,User,WebhookEvent,WebhookEventType}from'@clerk/backend';
  • Changes in exports of @clerk/backend: (#2364) by @dimkl

    • Expose the following helpers and enums from @clerk/backend/jwt:
      import{decodeJwt,hasValidSignature,signJwt,verifyJwt}from'@clerk/backend/jwt';
    • Drop the above exports from the top-level api:
      // Beforeimport{decodeJwt, ... }from'@clerk/backend';// Afterimport{decodeJwt, ... }from'@clerk/backend/jwt';
      Dropping those exports results in also dropping the exports from gatsby-plugin-clerk, @clerk/clerk-sdk-node, @clerk/backend, @clerk/fastify, @clerk/nextjs, @clerk/remix packages.
  • Changes in @clerk/backend exports: (#2362) by @dimkl

    • Drop Internal deserialize helper
    • Introduce /errors subpath export, eg:
      import{TokenVerificationError,TokenVerificationErrorAction,TokenVerificationErrorCode,TokenVerificationErrorReason,}from'@clerk/backend/errors';
    • Drop errors from top-level export
      // Beforeimport{TokenVerificationError,TokenVerificationErrorReason}from'@clerk/backend';// Afterimport{TokenVerificationError,TokenVerificationErrorReason}from'@clerk/backend/errors';

Minor Changes

  • Improve ESM support in @clerk/backend for Node by using .mjs for #crypto subpath import (#2360) by @dimkl

Patch Changes

  • Update the handshake flow to only trigger for document requests. (#2352) by @BRKalow

  • Updated dependencies [5f58a2274]:

    • @clerk/shared@2.0.0-alpha-v5.7

@clerk/chrome-extension@1.0.0-alpha-v5.11

Major Changes

  • Remove hashing and third-party cookie functionality related to development instance session syncing in favor of URL-based session syncing with query parameters. (#2367) by @tmilewski

Patch Changes

@clerk/clerk-js@5.0.0-alpha-v5.11

Major Changes

  • Remove hashing and third-party cookie functionality related to development instance session syncing in favor of URL-based session syncing with query parameters. (#2367) by @tmilewski

    • buildUrlWithAuth no longer accepts an options argument. (#2367) by @tmilewski

Patch Changes

@clerk/fastify@1.0.0-alpha-v5.12

Major Changes

  • Changes in exports of @clerk/backend: (#2363) by @dimkl

    • Expose the following helpers and enums from @clerk/backend/internal:
      import{AuthStatus,buildRequestUrl,constants,createAuthenticateRequest,createIsomorphicRequest,debugRequestState,makeAuthObjectSerializable,prunePrivateMetadata,redirect,sanitizeAuthObject,signedInAuthObject,signedOutAuthObject,}from'@clerk/backend/internal';
    • Drop the above exports from the top-level api:
      // Beforeimport{AuthStatus, ... }from'@clerk/backend';// Afterimport{AuthStatus, ... }from'@clerk/backend/internal';
      Dropping those exports results in also dropping the exports from gatsby-plugin-clerk, @clerk/clerk-sdk-node, @clerk/backend, @clerk/fastify, @clerk/nextjs, @clerk/remix packages.
  • Changes in exports of @clerk/backend: (#2365) by @dimkl

    • Drop the following internal exports from the top-level api:
      // Beforeimport{AllowlistIdentifier,Client,DeletedObject,Email,EmailAddress,ExternalAccount,IdentificationLink,Invitation,OauthAccessToken,ObjectType,Organization,OrganizationInvitation,OrganizationMembership,OrganizationMembershipPublicUserData,PhoneNumber,RedirectUrl,SMSMessage,Session,SignInToken,Token,User,Verification,}from'@clerk/backend';// After : no alternative since there is no need to use those classes
      Dropping those exports results in also dropping the exports from gatsby-plugin-clerk, @clerk/clerk-sdk-node, @clerk/backend, @clerk/fastify, @clerk/nextjs, @clerk/remix packages.
    • Keep those 3 resource related type exports
      importtype{Organization,Session,User,WebhookEvent,WebhookEventType}from'@clerk/backend';

Patch Changes

gatsby-plugin-clerk@5.0.0-alpha-v5.12

Major Changes

  • Changes in exports of @clerk/backend: (#2363) by @dimkl

    • Expose the following helpers and enums from @clerk/backend/internal:
      import{AuthStatus,buildRequestUrl,constants,createAuthenticateRequest,createIsomorphicRequest,debugRequestState,makeAuthObjectSerializable,prunePrivateMetadata,redirect,sanitizeAuthObject,signedInAuthObject,signedOutAuthObject,}from'@clerk/backend/internal';
    • Drop the above exports from the top-level api:
      // Beforeimport{AuthStatus, ... }from'@clerk/backend';// Afterimport{AuthStatus, ... }from'@clerk/backend/internal';
      Dropping those exports results in also dropping the exports from gatsby-plugin-clerk, @clerk/clerk-sdk-node, @clerk/backend, @clerk/fastify, @clerk/nextjs, @clerk/remix packages.
  • Changes in exports of @clerk/backend: (#2365) by @dimkl

    • Drop the following internal exports from the top-level api:
      // Beforeimport{AllowlistIdentifier,Client,DeletedObject,Email,EmailAddress,ExternalAccount,IdentificationLink,Invitation,OauthAccessToken,ObjectType,Organization,OrganizationInvitation,OrganizationMembership,OrganizationMembershipPublicUserData,PhoneNumber,RedirectUrl,SMSMessage,Session,SignInToken,Token,User,Verification,}from'@clerk/backend';// After : no alternative since there is no need to use those classes
      Dropping those exports results in also dropping the exports from gatsby-plugin-clerk, @clerk/clerk-sdk-node, @clerk/backend, @clerk/fastify, @clerk/nextjs, @clerk/remix packages.
    • Keep those 3 resource related type exports
      importtype{Organization,Session,User,WebhookEvent,WebhookEventType}from'@clerk/backend';

Patch Changes

@clerk/nextjs@5.0.0-alpha-v5.12

Major Changes

  • Remove hashing and third-party cookie functionality related to development instance session syncing in favor of URL-based session syncing with query parameters. (#2367) by @tmilewski

  • Change return values of signJwt, hasValidSignature, decodeJwt, verifyJwt (#2377) by @dimkl

    to return { data, error }. Example of keeping the same behavior using those utilities:

    import{signJwt,hasValidSignature,decodeJwt,verifyJwt}from'@clerk/backend/jwt';const{ data, error }=awaitsignJwt(...)if(error)throwerror;const{ data, error }=awaithasValidSignature(...)if(error)throwerror;const{ data, error }=decodeJwt(...)if(error)throwerror;const{ data, error }=awaitverifyJwt(...)if(error)throwerror;
  • Changes in exports of @clerk/backend: (#2363) by @dimkl

    • Expose the following helpers and enums from @clerk/backend/internal:
      import{AuthStatus,buildRequestUrl,constants,createAuthenticateRequest,createIsomorphicRequest,debugRequestState,makeAuthObjectSerializable,prunePrivateMetadata,redirect,sanitizeAuthObject,signedInAuthObject,signedOutAuthObject,}from'@clerk/backend/internal';
    • Drop the above exports from the top-level api:
      // Beforeimport{AuthStatus, ... }from'@clerk/backend';// Afterimport{AuthStatus, ... }from'@clerk/backend/internal';
      Dropping those exports results in also dropping the exports from gatsby-plugin-clerk, @clerk/clerk-sdk-node, @clerk/backend, @clerk/fastify, @clerk/nextjs, @clerk/remix packages.
  • Changes in exports of @clerk/backend: (#2365) by @dimkl

    • Drop the following internal exports from the top-level api:
      // Beforeimport{AllowlistIdentifier,Client,DeletedObject,Email,EmailAddress,ExternalAccount,IdentificationLink,Invitation,OauthAccessToken,ObjectType,Organization,OrganizationInvitation,OrganizationMembership,OrganizationMembershipPublicUserData,PhoneNumber,RedirectUrl,SMSMessage,Session,SignInToken,Token,User,Verification,}from'@clerk/backend';// After : no alternative since there is no need to use those classes
      Dropping those exports results in also dropping the exports from gatsby-plugin-clerk, @clerk/clerk-sdk-node, @clerk/backend, @clerk/fastify, @clerk/nextjs, @clerk/remix packages.
    • Keep those 3 resource related type exports
      importtype{Organization,Session,User,WebhookEvent,WebhookEventType}from'@clerk/backend';
  • Changes in exports of @clerk/backend: (#2364) by @dimkl

    • Expose the following helpers and enums from @clerk/backend/jwt:
      import{decodeJwt,hasValidSignature,signJwt,verifyJwt}from'@clerk/backend/jwt';
    • Drop the above exports from the top-level api:
      // Beforeimport{decodeJwt, ... }from'@clerk/backend';// Afterimport{decodeJwt, ... }from'@clerk/backend/jwt';
      Dropping those exports results in also dropping the exports from gatsby-plugin-clerk, @clerk/clerk-sdk-node, @clerk/backend, @clerk/fastify, @clerk/nextjs, @clerk/remix packages.
  • Changes in @clerk/backend exports: (#2362) by @dimkl

    • Drop Internal deserialize helper
    • Introduce /errors subpath export, eg:
      import{TokenVerificationError,TokenVerificationErrorAction,TokenVerificationErrorCode,TokenVerificationErrorReason,}from'@clerk/backend/errors';
    • Drop errors from top-level export
      // Beforeimport{TokenVerificationError,TokenVerificationErrorReason}from'@clerk/backend';// Afterimport{TokenVerificationError,TokenVerificationErrorReason}from'@clerk/backend/errors';
  • Use NEXT_PUBLIC_CLERK_JS_URL instead of NEXT_PUBLIC_CLERK_JS to pin a specific @clerk/clerk-js version. (#2374) by @SokratisVidros

Patch Changes

@clerk/clerk-react@5.0.0-alpha-v5.11

Major Changes

  • Replace the signOutCallback prop on the <SignOutButton /> with redirectUrl. This aligns the API surface with other UI components provided by @clerk/clerk-react. (#2348) by @LekoArts

    If you previously used the signOutCallback prop to navigate to another page, you can migrate as shown below.

    Before:

    import{SignOutButton}from'@clerk/clerk-react';exportconstSignout=()=>{return(<SignOutButtonsignOutCallback={()=>{window.location.href='/your-path';}}><button>Sign Out</button></SignOutButton>);};

    After:

    import{SignOutButton}from'@clerk/clerk-react';exportconstSignout=()=>{return(<SignOutButtonredirectUrl='/your-path'><button>Sign Out</button></SignOutButton>);};
  • Remove hashing and third-party cookie functionality related to development instance session syncing in favor of URL-based session syncing with query parameters. (#2367) by @tmilewski

    • buildUrlWithAuth no longer accepts an options argument. (#2367) by @tmilewski

Patch Changes

@clerk/remix@4.0.0-alpha-v5.12

Major Changes

  • Update @clerk/remix's rootAuthLoader and getAuth helpers to handle handshake auth status, this replaces the previous interstitial flow. As a result of this, the ClerkErrorBoundary is no longer necessary and has been removed. (#2380) by @BRKalow

    To migrate, remove usage of ClerkErrorBoundary:

    - import { ClerkApp, ClerkErrorBoundary } from "@clerk/remix";+ import { ClerkApp } from "@clerk/remix";
    ...
    - export const ErrorBoundary = ClerkErrorBoundary();
  • Changes in exports of @clerk/backend: (#2363) by @dimkl

    • Expose the following helpers and enums from @clerk/backend/internal:
      import{AuthStatus,buildRequestUrl,constants,createAuthenticateRequest,createIsomorphicRequest,debugRequestState,makeAuthObjectSerializable,prunePrivateMetadata,redirect,sanitizeAuthObject,signedInAuthObject,signedOutAuthObject,}from'@clerk/backend/internal';
    • Drop the above exports from the top-level api:
      // Beforeimport{AuthStatus, ... }from'@clerk/backend';// Afterimport{AuthStatus, ... }from'@clerk/backend/internal';
      Dropping those exports results in also dropping the exports from gatsby-plugin-clerk, @clerk/clerk-sdk-node, @clerk/backend, @clerk/fastify, @clerk/nextjs, @clerk/remix packages.
  • Changes in exports of @clerk/backend: (#2365) by @dimkl

    • Drop the following internal exports from the top-level api:
      // Beforeimport{AllowlistIdentifier,Client,DeletedObject,Email,EmailAddress,ExternalAccount,IdentificationLink,Invitation,OauthAccessToken,ObjectType,Organization,OrganizationInvitation,OrganizationMembership,OrganizationMembershipPublicUserData,PhoneNumber,RedirectUrl,SMSMessage,Session,SignInToken,Token,User,Verification,}from'@clerk/backend';// After : no alternative since there is no need to use those classes
      Dropping those exports results in also dropping the exports from gatsby-plugin-clerk, @clerk/clerk-sdk-node, @clerk/backend, @clerk/fastify, @clerk/nextjs, @clerk/remix packages.
    • Keep those 3 resource related type exports
      importtype{Organization,Session,User,WebhookEvent,WebhookEventType}from'@clerk/backend';

Patch Changes

@clerk/clerk-sdk-node@5.0.0-alpha-v5.10

Major Changes

  • Drop all pre-instantiated Backend API resources (allowlistIdentifiers, clients, emailAddresses, emails, invitations, organizations, phoneNumbers, redirectUrls, sessions, signInTokens, users, domains). Use the clerkClient import instead. (#2362) by @dimkl

    // Beforeimport{users}from'@clerk/clerk-sdk-node';// Afterimport{clerkClient}from'@clerk/clerk-sdk-node';clerkClient.users;
  • Changes in exports of @clerk/backend: (#2363) by @dimkl

    • Expose the following helpers and enums from @clerk/backend/internal:
      import{AuthStatus,buildRequestUrl,constants,createAuthenticateRequest,createIsomorphicRequest,debugRequestState,makeAuthObjectSerializable,prunePrivateMetadata,redirect,sanitizeAuthObject,signedInAuthObject,signedOutAuthObject,}from'@clerk/backend/internal';
    • Drop the above exports from the top-level api:
      // Beforeimport{AuthStatus, ... }from'@clerk/backend';// Afterimport{AuthStatus, ... }from'@clerk/backend/internal';
      Dropping those exports results in also dropping the exports from gatsby-plugin-clerk, @clerk/clerk-sdk-node, @clerk/backend, @clerk/fastify, @clerk/nextjs, @clerk/remix packages.
  • Changes in exports of @clerk/backend: (#2365) by @dimkl

    • Drop the following internal exports from the top-level api:
      // Beforeimport{AllowlistIdentifier,Client,DeletedObject,Email,EmailAddress,ExternalAccount,IdentificationLink,Invitation,OauthAccessToken,ObjectType,Organization,OrganizationInvitation,OrganizationMembership,OrganizationMembershipPublicUserData,PhoneNumber,RedirectUrl,SMSMessage,Session,SignInToken,Token,User,Verification,}from'@clerk/backend';// After : no alternative since there is no need to use those classes
      Dropping those exports results in also dropping the exports from gatsby-plugin-clerk, @clerk/clerk-sdk-node, @clerk/backend, @clerk/fastify, @clerk/nextjs, @clerk/remix packages.
    • Keep those 3 resource related type exports
      importtype{Organization,Session,User,WebhookEvent,WebhookEventType}from'@clerk/backend';
  • Changes in exports of @clerk/backend: (#2364) by @dimkl

    • Expose the following helpers and enums from @clerk/backend/jwt:
      import{decodeJwt,hasValidSignature,signJwt,verifyJwt}from'@clerk/backend/jwt';
    • Drop the above exports from the top-level api:
      // Beforeimport{decodeJwt, ... }from'@clerk/backend';// Afterimport{decodeJwt, ... }from'@clerk/backend/jwt';
      Dropping those exports results in also dropping the exports from gatsby-plugin-clerk, @clerk/clerk-sdk-node, @clerk/backend, @clerk/fastify, @clerk/nextjs, @clerk/remix packages.
  • Changes in @clerk/backend exports: (#2362) by @dimkl

    • Drop Internal deserialize helper
    • Introduce /errors subpath export, eg:
      import{TokenVerificationError,TokenVerificationErrorAction,TokenVerificationErrorCode,TokenVerificationErrorReason,}from'@clerk/backend/errors';
    • Drop errors from top-level export
      // Beforeimport{TokenVerificationError,TokenVerificationErrorReason}from'@clerk/backend';// Afterimport{TokenVerificationError,TokenVerificationErrorReason}from'@clerk/backend/errors';

Minor Changes

  • Fix error thrown for undefined Clerk in case of using default clerkClient from @clerk/clerk-sdk-node without secretKey caused by replaced import. (#2368) by @dimkl

Patch Changes

@clerk/shared@2.0.0-alpha-v5.7

Major Changes

  • Remove hashing and third-party cookie functionality related to development instance session syncing in favor of URL-based session syncing with query parameters. (#2367) by @tmilewski

@clerk/types@4.0.0-alpha-v5.11

Major Changes

    • Remove BuildUrlWithAuthParams type (#2367) by @tmilewski

    • AuthConfigResource no longer has a urlBasedSessionSyncing property

    • buildUrlWithAuth no longer accepts an options argument of BuildUrlWithAuthParams.

  • Remove hashing and third-party cookie functionality related to development instance session syncing in favor of URL-based session syncing with query parameters. (#2367) by @tmilewski

  • Change return values of signJwt, hasValidSignature, decodeJwt, verifyJwt (#2377) by @dimkl

    to return { data, error }. Example of keeping the same behavior using those utilities:

    import{signJwt,hasValidSignature,decodeJwt,verifyJwt}from'@clerk/backend/jwt';const{ data, error }=awaitsignJwt(...)if(error)throwerror;const{ data, error }=awaithasValidSignature(...)if(error)throwerror;const{ data, error }=decodeJwt(...)if(error)throwerror;const{ data, error }=awaitverifyJwt(...)if(error)throwerror;

Minor Changes

  • Introduce new ResultWithError type in @clerk/types (#2377) by @dimkl

@clerk/clerk-expo@1.0.0-alpha-v5.11

Patch Changes

@clerk/elements@0.0.2-alpha-v5.0

Patch Changes

@github-actions
github-actionsBotforce-pushed the changeset-release/main branch 23 times, most recently from accb838 to 71ac60bCompareDecember 18, 2023 13:12
@github-actions
github-actionsBotforce-pushed the changeset-release/main branch from f90b36c to e393f56CompareDecember 18, 2023 23:23
@nikosdouvlis
nikosdouvlis merged commit 72b66e1 into mainDec 19, 2023
@nikosdouvlis
nikosdouvlis deleted the changeset-release/main branch December 19, 2023 00:58
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@clerk-cookie@dimkl@nikosdouvlis