Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages (alpha-v5) #2369

Merged
merged 1 commit into from
Dec 19, 2023
Merged

Version Packages (alpha-v5) #2369

merged 1 commit into from
Dec 19, 2023

Conversation

clerk-cookie
Copy link
Collaborator

@clerk-cookie clerk-cookie commented Dec 15, 2023

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 }  = await verifyToken(...);
    if(error){
        throw error;
    }
  • 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 } = await signJwt(...)
    if (error) throw error;
    
    const { data, error } = await hasValidSignature(...)
    if (error) throw error;
    
    const { data, error } = decodeJwt(...)
    if (error) throw error;
    
    const { data, error } = await verifyJwt(...)
    if (error) throw error;
  • 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:
      // Before
      import { AuthStatus, ... } from '@clerk/backend';
      // After
      import { 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:
      // Before
      import {
        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
      import type { 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:
      // Before
      import { decodeJwt, ... } from '@clerk/backend';
      // After
      import { 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
      // Before
      import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend';
      // After
      import { 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:
      // Before
      import { AuthStatus, ... } from '@clerk/backend';
      // After
      import { 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:
      // Before
      import {
        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
      import type { 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:
      // Before
      import { AuthStatus, ... } from '@clerk/backend';
      // After
      import { 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:
      // Before
      import {
        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
      import type { 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 } = await signJwt(...)
    if (error) throw error;
    
    const { data, error } = await hasValidSignature(...)
    if (error) throw error;
    
    const { data, error } = decodeJwt(...)
    if (error) throw error;
    
    const { data, error } = await verifyJwt(...)
    if (error) throw error;
  • 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:
      // Before
      import { AuthStatus, ... } from '@clerk/backend';
      // After
      import { 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:
      // Before
      import {
        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
      import type { 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:
      // Before
      import { decodeJwt, ... } from '@clerk/backend';
      // After
      import { 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
      // Before
      import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend';
      // After
      import { 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';
    
    export const Signout = () => {
      return (
        <SignOutButton
          signOutCallback={() => {
            window.location.href = '/your-path';
          }}
        >
          <button>Sign Out</button>
        </SignOutButton>
      );
    };

    After:

    import { SignOutButton } from '@clerk/clerk-react';
    
    export const Signout = () => {
      return (
        <SignOutButton redirectUrl='/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:
      // Before
      import { AuthStatus, ... } from '@clerk/backend';
      // After
      import { 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:
      // Before
      import {
        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
      import type { 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

    // Before
    import { users } from '@clerk/clerk-sdk-node';
    // After
    import { 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:
      // Before
      import { AuthStatus, ... } from '@clerk/backend';
      // After
      import { 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:
      // Before
      import {
        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
      import type { 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:
      // Before
      import { decodeJwt, ... } from '@clerk/backend';
      // After
      import { 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
      // Before
      import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend';
      // After
      import { 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 } = await signJwt(...)
    if (error) throw error;
    
    const { data, error } = await hasValidSignature(...)
    if (error) throw error;
    
    const { data, error } = decodeJwt(...)
    if (error) throw error;
    
    const { data, error } = await verifyJwt(...)
    if (error) throw error;

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-actions bot force-pushed the changeset-release/main branch 23 times, most recently from accb838 to 71ac60b Compare December 18, 2023 13:12
@nikosdouvlis nikosdouvlis reopened this Dec 19, 2023
@nikosdouvlis nikosdouvlis merged commit 72b66e1 into main Dec 19, 2023
7 checks passed
@nikosdouvlis nikosdouvlis deleted the changeset-release/main branch December 19, 2023 00:58
Sign up for free to 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.

None yet

3 participants