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) #2397

Merged
merged 1 commit into from
Dec 21, 2023
Merged

Version Packages (alpha-v5) #2397

merged 1 commit into from
Dec 21, 2023

Conversation

clerk-cookie
Copy link
Collaborator

@clerk-cookie clerk-cookie commented Dec 19, 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/clerk-js@5.0.0-alpha-v5.12

Major Changes

  • Path-based routing is now the default routing strategy if the path prop is filled. Additionally, if the path and routing props are not filled, an error will be thrown. (#2338) by @octoper

    // Without path or routing props, an error with be thrown
    <UserProfile />
    <CreateOrganization />
    <OrganizationProfile />
    <SignIn />
    <SignUp />
    
    // Alternative #1
    <UserProfile path="/whatever"/>
    <CreateOrganization path="/whatever"/>
    <OrganizationProfile path="/whatever"/>
    <SignIn path="/whatever"/>
    <SignUp path="/whatever"/>
    
    // Alternative #2
    <UserProfile routing="hash_or_virtual"/>
    <CreateOrganization routing="hash_or_virtual"/>
    <OrganizationProfile routing="hash_or_virtual"/>
    <SignIn routing="hash_or_virtual"/>
    <SignUp routing="hash_or_virtual"/>
  • Make the user name on clickable, i.e. part of the button's trigger. (#2411) by @marcelscruz

    This change inverts the positions of cl-userButtonTrigger and cl-userButtonBox, the latter now being a child of the former.

  • Consolidate afterSignOutOneUrl & afterSignOutAllUrl to afterSignOutUrl and drop usage of Dashboard settings in ClerkJS components. The Dashboard settings should only apply to the Account Portal application. (#2414) by @dimkl

Minor Changes

  • Remove MemberRole TypeMemberRole would always include the old role keys admin, member, guest_member. (#2388) by @panteliselef

    If developers still depend on them after the introduction of custom roles, the can provide them as their custom types for authorization.

    // clerk.d.ts
    export {};
    
    interface ClerkAuthorization {
      permission: '';
      role: 'admin' | 'basic_member' | 'guest_member';
    }
  • Update @clerk/clerk-js and @clerk/clerk-react to support the following examples: (#2412) by @dimkl

    Clerk.signOut({ redirectUrl: '/' })
    
    <SignOutButton redirectUrl='/' />
    // uses Clerk.signOut({ redirectUrl: '/' })
    <UserButton afterSignOutUrl='/after' />
    // uses Clerk.signOut({ redirectUrl: '/after' })
    <ClerkProvider afterSignOutUrl='/after' />
    // uses Clerk.signOut({ redirectUrl: '/after' })

Patch Changes

  • Prevent submitting on enter in Organization Profile form when submit button is disabled. (#2400) by @panteliselef

  • Bug fix: Clear feedback of input field if setError is called with undefined. (#2399) by @panteliselef

  • Updated dependencies [fe2607b6f, 2e4a43017]:

    • @clerk/types@4.0.0-alpha-v5.12

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

Major Changes

  • Path-based routing is now the default routing strategy if the path prop is filled. Additionally, if the path and routing props are not filled, an error will be thrown. (#2338) by @octoper

    // Without path or routing props, an error with be thrown
    <UserProfile />
    <CreateOrganization />
    <OrganizationProfile />
    <SignIn />
    <SignUp />
    
    // Alternative #1
    <UserProfile path="/whatever"/>
    <CreateOrganization path="/whatever"/>
    <OrganizationProfile path="/whatever"/>
    <SignIn path="/whatever"/>
    <SignUp path="/whatever"/>
    
    // Alternative #2
    <UserProfile routing="hash_or_virtual"/>
    <CreateOrganization routing="hash_or_virtual"/>
    <OrganizationProfile routing="hash_or_virtual"/>
    <SignIn routing="hash_or_virtual"/>
    <SignUp routing="hash_or_virtual"/>

Patch Changes

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

Major Changes

  • Path-based routing is now the default routing strategy if the path prop is filled. Additionally, if the path and routing props are not filled, an error will be thrown. (#2338) by @octoper

    // Without path or routing props, an error with be thrown
    <UserProfile />
    <CreateOrganization />
    <OrganizationProfile />
    <SignIn />
    <SignUp />
    
    // Alternative #1
    <UserProfile path="/whatever"/>
    <CreateOrganization path="/whatever"/>
    <OrganizationProfile path="/whatever"/>
    <SignIn path="/whatever"/>
    <SignUp path="/whatever"/>
    
    // Alternative #2
    <UserProfile routing="hash_or_virtual"/>
    <CreateOrganization routing="hash_or_virtual"/>
    <OrganizationProfile routing="hash_or_virtual"/>
    <SignIn routing="hash_or_virtual"/>
    <SignUp routing="hash_or_virtual"/>
  • Consolidate afterSignOutOneUrl & afterSignOutAllUrl to afterSignOutUrl and drop usage of Dashboard settings in ClerkJS components. The Dashboard settings should only apply to the Account Portal application. (#2414) by @dimkl

Minor Changes

  • Remove MemberRole TypeMemberRole would always include the old role keys admin, member, guest_member. (#2388) by @panteliselef

    If developers still depend on them after the introduction of custom roles, the can provide them as their custom types for authorization.

    // clerk.d.ts
    export {};
    
    interface ClerkAuthorization {
      permission: '';
      role: 'admin' | 'basic_member' | 'guest_member';
    }
  • Update @clerk/clerk-js and @clerk/clerk-react to support the following examples: (#2412) by @dimkl

    Clerk.signOut({ redirectUrl: '/' })
    
    <SignOutButton redirectUrl='/' />
    // uses Clerk.signOut({ redirectUrl: '/' })
    <UserButton afterSignOutUrl='/after' />
    // uses Clerk.signOut({ redirectUrl: '/after' })
    <ClerkProvider afterSignOutUrl='/after' />
    // uses Clerk.signOut({ redirectUrl: '/after' })

Patch Changes

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

Major Changes

  • Path-based routing is now the default routing strategy if the path prop is filled. Additionally, if the path and routing props are not filled, an error will be thrown. (#2338) by @octoper

    // Without path or routing props, an error with be thrown
    <UserProfile />
    <CreateOrganization />
    <OrganizationProfile />
    <SignIn />
    <SignUp />
    
    // Alternative #1
    <UserProfile path="/whatever"/>
    <CreateOrganization path="/whatever"/>
    <OrganizationProfile path="/whatever"/>
    <SignIn path="/whatever"/>
    <SignUp path="/whatever"/>
    
    // Alternative #2
    <UserProfile routing="hash_or_virtual"/>
    <CreateOrganization routing="hash_or_virtual"/>
    <OrganizationProfile routing="hash_or_virtual"/>
    <SignIn routing="hash_or_virtual"/>
    <SignUp routing="hash_or_virtual"/>

Patch Changes

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

Minor Changes

  • Add createOrganizationEnabled param in @clerk/backend method User.updateUser() (#2415) by @dimkl

    Example:

        import { createClerkClient }  from '@clerk/backend';
    
        const clerkClient = createClerkClient({...});
        await clerkClient.users.updateUser('user_...', { createOrganizationEnabled: true })

Patch Changes

  • OrganizationMembershipRole should respect authorization types provided by the developer if those exist. (#2408) by @panteliselef

  • Fixed an issue where errors returned from backend api requests are not converted to camelCase. (#2423) by @Nikpolik

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

Minor Changes

  • Remove MemberRole TypeMemberRole would always include the old role keys admin, member, guest_member. (#2388) by @panteliselef

    If developers still depend on them after the introduction of custom roles, the can provide them as their custom types for authorization.

    // clerk.d.ts
    export {};
    
    interface ClerkAuthorization {
      permission: '';
      role: 'admin' | 'basic_member' | 'guest_member';
    }
  • Update @clerk/clerk-js and @clerk/clerk-react to support the following examples: (#2412) by @dimkl

    Clerk.signOut({ redirectUrl: '/' })
    
    <SignOutButton redirectUrl='/' />
    // uses Clerk.signOut({ redirectUrl: '/' })
    <UserButton afterSignOutUrl='/after' />
    // uses Clerk.signOut({ redirectUrl: '/after' })
    <ClerkProvider afterSignOutUrl='/after' />
    // uses Clerk.signOut({ redirectUrl: '/after' })

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

Patch Changes

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

Patch Changes

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

Patch Changes

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

Patch Changes

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

Patch Changes

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

Patch Changes

@github-actions github-actions bot force-pushed the changeset-release/main branch 9 times, most recently from a7d4a6f to 84d5951 Compare December 21, 2023 09:09
@dimkl dimkl closed this Dec 21, 2023
@dimkl dimkl reopened this Dec 21, 2023
@dimkl dimkl added this pull request to the merge queue Dec 21, 2023
Merged via the queue into main with commit 4070cfe Dec 21, 2023
7 checks passed
@dimkl dimkl deleted the changeset-release/main branch December 21, 2023 10:01
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

2 participants