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

chore(deps): bump @clerk/nextjs from 4.25.1 to 6.1.0 #158

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 1, 2024

Bumps @clerk/nextjs from 4.25.1 to 6.1.0.

Release notes

Sourced from @​clerk/nextjs's releases.

@​clerk/nextjs@​6.1.0

Minor Changes

  • Bug fix: For next>=14 applications resolve __unstable__onBeforeSetActive once invalidateCacheAction resolves. (#4362) by @​panteliselef

  • Introduce a new experimental hook called useReverification that makes it easy to handle reverification errors. (#4362) by @​panteliselef

    It returns a high order function (HOF) and allows developers to wrap any function that triggers a fetch request which might fail due to a user's session verification status. When such error is returned, the recommended UX is to offer a way to the user to recover by re-verifying their credentials. This helper will automatically handle this flow in the developer's behalf, by displaying a modal the end-user can interact with. Upon completion, the original request that previously failed, will be retried (only once).

    Example with clerk-js methods.

    import { __experimental_useReverification as useReverification } from "@clerk/nextjs";
    function DeleteAccount() {
    const { user } = useUser();
    const [deleteUserAccount] = useReverification(() => {
    if (!user) return;
    return user.delete();
    });
    return (
    <>
    <button
    onClick={async () => {
    await deleteUserAccount();
    }}
    >
    Delete account
    </button>
    </>
    );
    }

  • Replace next/headers with ezheaders (#4392) by @​panteliselef

Patch Changes

... (truncated)

Changelog

Sourced from @​clerk/nextjs's changelog.

6.1.0

Minor Changes

  • Bug fix: For next>=14 applications resolve __unstable__onBeforeSetActive once invalidateCacheAction resolves. (#4362) by @​panteliselef

  • Introduce a new experimental hook called useReverification that makes it easy to handle reverification errors. (#4362) by @​panteliselef

    It returns a high order function (HOF) and allows developers to wrap any function that triggers a fetch request which might fail due to a user's session verification status. When such error is returned, the recommended UX is to offer a way to the user to recover by re-verifying their credentials. This helper will automatically handle this flow in the developer's behalf, by displaying a modal the end-user can interact with. Upon completion, the original request that previously failed, will be retried (only once).

    Example with clerk-js methods.

    import { __experimental_useReverification as useReverification } from "@clerk/nextjs";
    function DeleteAccount() {
    const { user } = useUser();
    const [deleteUserAccount] = useReverification(() => {
    if (!user) return;
    return user.delete();
    });
    return (
    <>
    <button
    onClick={async () => {
    await deleteUserAccount();
    }}
    >
    Delete account
    </button>
    </>
    );
    }

  • Replace next/headers with ezheaders (#4392) by @​panteliselef

Patch Changes

... (truncated)

Commits
  • 15f6718 ci(repo): Version packages (#4417)
  • 18545c7 feat(nextjs): Replace jest with vitest for unit tests (#4298)
  • 08c5a2a feat(clerk-react,nextjs,shared): Introduce experimental useReverification (...
  • 24cd779 fix(nextjs): Correct peerDependencies (#4436)
  • 34d673a chore(nextjs): Use ezheaders to access headers and cookies (#4392)
  • 41f2ede chore(repo): Update tests for next 15 (#4421)
  • 1cc8737 ci(repo): Version packages (#4401)
  • e8ccb55 fix(nextjs): Include protect types in auth (#4398)
  • 46e54ed ci(repo): Version packages (#4390)
  • eccfc03 fix(nextjs): Fix cookies() usage in server action (#4396)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@clerk/nextjs](https://github.com/clerk/javascript/tree/HEAD/packages/nextjs) from 4.25.1 to 6.1.0.
- [Release notes](https://github.com/clerk/javascript/releases)
- [Changelog](https://github.com/clerk/javascript/blob/main/packages/nextjs/CHANGELOG.md)
- [Commits](https://github.com/clerk/javascript/commits/@clerk/[email protected]/packages/nextjs)

---
updated-dependencies:
- dependency-name: "@clerk/nextjs"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 1, 2024
Copy link

vercel bot commented Nov 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-quickstart ❌ Failed (Inspect) Nov 1, 2024 6:11am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants