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 (beta-v5) #2663

Merged
merged 1 commit into from
Feb 13, 2024
Merged

Version Packages (beta-v5) #2663

merged 1 commit into from
Feb 13, 2024

Conversation

clerk-cookie
Copy link
Collaborator

@clerk-cookie clerk-cookie commented Jan 25, 2024

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/[email protected]

Major Changes

  • Make all listing API requests to return consistent { data: Resource[], totalCount: number }. (#2714) by @dimkl

    Support pagination request params { limit, offset } to:

    • sessions.getSessionList({ limit, offset })
    • clients.getClientList({ limit, offset })

    Since the users.getUserList() does not return the total_count as a temporary solution that
    method will perform 2 BAPI requests:

    1. retrieve the data
    2. retrieve the total count (invokes users.getCount() internally)

Minor Changes

  • Add unbanUser, lockUser, and unlockUser methods to the UserAPI class. (#2780) by @panteliselef

  • Add support for X/Twitter v2 OAuth provider (#2690) by @kostaspt

  • Add banUser method to the User operations (accessible under clerkClient.users). Executes the Ban a user backend API call. (#2766) by @bartlenaerts

Patch Changes

  • Expose resources types (#2660) by @panteliselef

  • The auth().redirectToSignIn() helper no longer needs to be explicitly returned when called within the middleware. The following examples are now equivalent: (#2691) by @nikosdouvlis

    // Before
    export default clerkMiddleware(auth => {
      if (protectedRoute && !auth.user) {
        return auth().redirectToSignIn()
      }
    })
    
    // After
    export default clerkMiddleware(auth => {
      if (protectedRoute && !auth.user) {
        auth().redirectToSignIn()
      }
    })

    Calling auth().protect() from a page will now automatically redirect back to the same page by setting redirect_url to the request url before the redirect to the sign-in URL takes place.

  • Fix clerkClient.organizations.getOrganizationMembershipList() return type to be { data, totalCount } (#2681) by @dimkl

  • Preserve url protocol when joining paths. (#2745) by @panteliselef

  • Updated dependencies [8daf8451c, be991365e]:

@clerk/[email protected]

Minor Changes

  • Accept skipInvitationScreen as a prop from OrganizationSwitcher. (#2713) by @panteliselef

    skipInvitationScreen hides the screen for sending invitations after an organization is created.
    By default, Clerk will automatically hide the screen if the number of max allowed members is equal to 1

  • Add support for X/Twitter v2 OAuth provider (#2690) by @kostaspt

  • Use signInUrl from props/ context / repo-level to construct a redirectUrl in email-link flow. (#2727) by @dimkl

Patch Changes

@clerk/[email protected]

Minor Changes

  • Introduce handshake mechanism and x-clerk-auth-status in response (#2774) by @dimkl

Patch Changes

@clerk/[email protected]

Minor Changes

  • Replace redirectUrl of protect with unauthorizedUrl and unauthenticatedUrl. (#2672) by @panteliselef

Patch Changes

@clerk/[email protected]

Minor Changes

  • Add error for each paginated property return by useOrganization and useOrganizationList hooks. (#2743) by @panteliselef

Patch Changes

@clerk/[email protected]

Minor Changes

  • Accept skipInvitationScreen as a prop from OrganizationSwitcher. (#2713) by @panteliselef

    skipInvitationScreen hides the screen for sending invitations after an organization is created.
    By default, Clerk will automatically hide the screen if the number of max allowed members is equal to 1

  • Add support for X/Twitter v2 OAuth provider (#2690) by @kostaspt

Patch Changes

  • Fix using ClerkPaginationRequest type without passing a generic. (#2714) by @dimkl

    Before the fix the ClerkPaginationRequest = any and after the fix the ClerkPaginationRequest = { limit, offset }.

  • Prevent Clerk component flickering when mounted in a Next.js app using App Router (#2765) by @nikosdouvlis

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@github-actions github-actions bot force-pushed the changeset-release/main branch from f1fe04e to 0a0b9d8 Compare February 9, 2024 10:40
@nikosdouvlis nikosdouvlis reopened this Feb 9, 2024
@github-actions github-actions bot force-pushed the changeset-release/main branch 7 times, most recently from 500be15 to 2b87421 Compare February 12, 2024 08:00
auto-merge was automatically disabled February 12, 2024 08:21

Merge queue setting changed

@github-actions github-actions bot force-pushed the changeset-release/main branch 10 times, most recently from c881dab to ee3154a Compare February 13, 2024 10:44
@github-actions github-actions bot force-pushed the changeset-release/main branch from ee3154a to 1a9a7b7 Compare February 13, 2024 11:18
@nikosdouvlis nikosdouvlis reopened this Feb 13, 2024
@nikosdouvlis nikosdouvlis merged commit 92d82e0 into main Feb 13, 2024
7 checks passed
@nikosdouvlis nikosdouvlis deleted the changeset-release/main branch February 13, 2024 12:23
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.

2 participants