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

feat(nextjs,shared,backend,clerk-react): Introduce Protect for authorization (#2170) #2309

Merged
merged 5 commits into from
Dec 12, 2023

Conversation

panteliselef
Copy link
Member

@panteliselef panteliselef commented Dec 11, 2023

Description

Backport of #2170. Please take a second to review and not approve it instantly

Since #2170 was merged, we have pushed a few changes that address issues from that PR.
All of them are included in this PR as well

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Packages affected

  • @clerk/backend
  • @clerk/chrome-extension
  • @clerk/clerk-js
  • @clerk/clerk-expo
  • @clerk/fastify
  • gatsby-plugin-clerk
  • @clerk/localizations
  • @clerk/nextjs
  • @clerk/clerk-react
  • @clerk/remix
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/themes
  • @clerk/types
  • build/tooling/chore

Copy link

changeset-bot bot commented Dec 11, 2023

🦋 Changeset detected

Latest commit: 696bd7c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
@clerk/chrome-extension Minor
@clerk/clerk-js Minor
@clerk/backend Minor
@clerk/nextjs Minor
@clerk/clerk-react Minor
@clerk/types Minor
@clerk/clerk-expo Patch
@clerk/fastify Patch
gatsby-plugin-clerk Patch
@clerk/remix Patch
@clerk/clerk-sdk-node Patch
@clerk/localizations Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@panteliselef
Copy link
Member Author

!snapshot

@clerk-cookie
Copy link
Collaborator

Hey @panteliselef - the snapshot version command generated the following package versions:

Package Version
@clerk/backend 0.36.0-snapshot.v9199b6a
@clerk/chrome-extension 0.6.0-snapshot.v9199b6a
@clerk/clerk-js 4.67.0-snapshot.v9199b6a
@clerk/clerk-expo 0.19.25-snapshot.v9199b6a
@clerk/fastify 0.6.27-snapshot.v9199b6a
gatsby-plugin-clerk 4.4.29-snapshot.v9199b6a
@clerk/localizations 1.26.13-snapshot.v9199b6a
@clerk/nextjs 4.28.0-snapshot.v9199b6a
@clerk/clerk-react 4.30.0-snapshot.v9199b6a
@clerk/remix 3.1.11-snapshot.v9199b6a
@clerk/clerk-sdk-node 4.13.2-snapshot.v9199b6a
@clerk/types 3.60.0-snapshot.v9199b6a

Tip: Use the snippet copy button below to quickly install the required packages.
@clerk/backend

npm i @clerk/[email protected] --save-exact

@clerk/chrome-extension

npm i @clerk/[email protected] --save-exact

@clerk/clerk-js

npm i @clerk/[email protected] --save-exact

@clerk/clerk-expo

npm i @clerk/[email protected] --save-exact

@clerk/fastify

npm i @clerk/[email protected] --save-exact

gatsby-plugin-clerk

npm i [email protected] --save-exact

@clerk/localizations

npm i @clerk/[email protected] --save-exact

@clerk/nextjs

npm i @clerk/[email protected] --save-exact

@clerk/clerk-react

npm i @clerk/[email protected] --save-exact

@clerk/remix

npm i @clerk/[email protected] --save-exact

@clerk/clerk-sdk-node

npm i @clerk/[email protected] --save-exact

@clerk/types

npm i @clerk/[email protected] --save-exact

@panteliselef panteliselef marked this pull request as ready for review December 11, 2023 19:11
@panteliselef panteliselef requested a review from a team as a code owner December 11, 2023 19:11
@panteliselef
Copy link
Member Author

!snapshot

@clerk-cookie
Copy link
Collaborator

Hey @panteliselef - the snapshot version command generated the following package versions:

Package Version
@clerk/backend 0.36.0-snapshot.v7515d95
@clerk/chrome-extension 0.6.0-snapshot.v7515d95
@clerk/clerk-js 4.67.0-snapshot.v7515d95
@clerk/clerk-expo 0.19.25-snapshot.v7515d95
@clerk/fastify 0.6.27-snapshot.v7515d95
gatsby-plugin-clerk 4.4.29-snapshot.v7515d95
@clerk/localizations 1.26.13-snapshot.v7515d95
@clerk/nextjs 4.28.0-snapshot.v7515d95
@clerk/clerk-react 4.30.0-snapshot.v7515d95
@clerk/remix 3.1.11-snapshot.v7515d95
@clerk/clerk-sdk-node 4.13.2-snapshot.v7515d95
@clerk/types 3.60.0-snapshot.v7515d95

Tip: Use the snippet copy button below to quickly install the required packages.
@clerk/backend

npm i @clerk/[email protected] --save-exact

@clerk/chrome-extension

npm i @clerk/[email protected] --save-exact

@clerk/clerk-js

npm i @clerk/[email protected] --save-exact

@clerk/clerk-expo

npm i @clerk/[email protected] --save-exact

@clerk/fastify

npm i @clerk/[email protected] --save-exact

gatsby-plugin-clerk

npm i [email protected] --save-exact

@clerk/localizations

npm i @clerk/[email protected] --save-exact

@clerk/nextjs

npm i @clerk/[email protected] --save-exact

@clerk/clerk-react

npm i @clerk/[email protected] --save-exact

@clerk/remix

npm i @clerk/[email protected] --save-exact

@clerk/clerk-sdk-node

npm i @clerk/[email protected] --save-exact

@clerk/types

npm i @clerk/[email protected] --save-exact

@panteliselef
Copy link
Member Author

!snapshot

@clerk-cookie
Copy link
Collaborator

Hey @panteliselef - the snapshot version command generated the following package versions:

Package Version
@clerk/backend 0.36.0-snapshot.vf97a372
@clerk/chrome-extension 0.6.0-snapshot.vf97a372
@clerk/clerk-js 4.67.0-snapshot.vf97a372
@clerk/clerk-expo 0.19.25-snapshot.vf97a372
@clerk/fastify 0.6.27-snapshot.vf97a372
gatsby-plugin-clerk 4.4.29-snapshot.vf97a372
@clerk/localizations 1.26.13-snapshot.vf97a372
@clerk/nextjs 4.28.0-snapshot.vf97a372
@clerk/clerk-react 4.30.0-snapshot.vf97a372
@clerk/remix 3.1.11-snapshot.vf97a372
@clerk/clerk-sdk-node 4.13.2-snapshot.vf97a372
@clerk/types 3.60.0-snapshot.vf97a372

Tip: Use the snippet copy button below to quickly install the required packages.
@clerk/backend

npm i @clerk/[email protected] --save-exact

@clerk/chrome-extension

npm i @clerk/[email protected] --save-exact

@clerk/clerk-js

npm i @clerk/[email protected] --save-exact

@clerk/clerk-expo

npm i @clerk/[email protected] --save-exact

@clerk/fastify

npm i @clerk/[email protected] --save-exact

gatsby-plugin-clerk

npm i [email protected] --save-exact

@clerk/localizations

npm i @clerk/[email protected] --save-exact

@clerk/nextjs

npm i @clerk/[email protected] --save-exact

@clerk/clerk-react

npm i @clerk/[email protected] --save-exact

@clerk/remix

npm i @clerk/[email protected] --save-exact

@clerk/clerk-sdk-node

npm i @clerk/[email protected] --save-exact

@clerk/types

npm i @clerk/[email protected] --save-exact

@panteliselef
Copy link
Member Author

!snapshot

@clerk-cookie
Copy link
Collaborator

Hey @panteliselef - the snapshot version command generated the following package versions:

Package Version
@clerk/backend 0.36.0-snapshot.v1c96a9f
@clerk/chrome-extension 0.6.0-snapshot.v1c96a9f
@clerk/clerk-js 4.67.0-snapshot.v1c96a9f
@clerk/clerk-expo 0.19.25-snapshot.v1c96a9f
@clerk/fastify 0.6.27-snapshot.v1c96a9f
gatsby-plugin-clerk 4.4.29-snapshot.v1c96a9f
@clerk/localizations 1.26.13-snapshot.v1c96a9f
@clerk/nextjs 4.28.0-snapshot.v1c96a9f
@clerk/clerk-react 4.30.0-snapshot.v1c96a9f
@clerk/remix 3.1.11-snapshot.v1c96a9f
@clerk/clerk-sdk-node 4.13.2-snapshot.v1c96a9f
@clerk/types 3.60.0-snapshot.v1c96a9f

Tip: Use the snippet copy button below to quickly install the required packages.
@clerk/backend

npm i @clerk/[email protected] --save-exact

@clerk/chrome-extension

npm i @clerk/[email protected] --save-exact

@clerk/clerk-js

npm i @clerk/[email protected] --save-exact

@clerk/clerk-expo

npm i @clerk/[email protected] --save-exact

@clerk/fastify

npm i @clerk/[email protected] --save-exact

gatsby-plugin-clerk

npm i [email protected] --save-exact

@clerk/localizations

npm i @clerk/[email protected] --save-exact

@clerk/nextjs

npm i @clerk/[email protected] --save-exact

@clerk/clerk-react

npm i @clerk/[email protected] --save-exact

@clerk/remix

npm i @clerk/[email protected] --save-exact

@clerk/clerk-sdk-node

npm i @clerk/[email protected] --save-exact

@clerk/types

npm i @clerk/[email protected] --save-exact

@panteliselef
Copy link
Member Author

!snapshot

@clerk-cookie
Copy link
Collaborator

Hey @panteliselef - the snapshot version command generated the following package versions:

Package Version
@clerk/backend 0.36.0-snapshot.v696bd7c
@clerk/chrome-extension 0.6.0-snapshot.v696bd7c
@clerk/clerk-js 4.67.0-snapshot.v696bd7c
@clerk/clerk-expo 0.19.25-snapshot.v696bd7c
@clerk/fastify 0.6.27-snapshot.v696bd7c
gatsby-plugin-clerk 4.4.29-snapshot.v696bd7c
@clerk/localizations 1.26.13-snapshot.v696bd7c
@clerk/nextjs 4.28.0-snapshot.v696bd7c
@clerk/clerk-react 4.30.0-snapshot.v696bd7c
@clerk/remix 3.1.11-snapshot.v696bd7c
@clerk/clerk-sdk-node 4.13.2-snapshot.v696bd7c
@clerk/types 3.60.0-snapshot.v696bd7c

Tip: Use the snippet copy button below to quickly install the required packages.
@clerk/backend

npm i @clerk/[email protected] --save-exact

@clerk/chrome-extension

npm i @clerk/[email protected] --save-exact

@clerk/clerk-js

npm i @clerk/[email protected] --save-exact

@clerk/clerk-expo

npm i @clerk/[email protected] --save-exact

@clerk/fastify

npm i @clerk/[email protected] --save-exact

gatsby-plugin-clerk

npm i [email protected] --save-exact

@clerk/localizations

npm i @clerk/[email protected] --save-exact

@clerk/nextjs

npm i @clerk/[email protected] --save-exact

@clerk/clerk-react

npm i @clerk/[email protected] --save-exact

@clerk/remix

npm i @clerk/[email protected] --save-exact

@clerk/clerk-sdk-node

npm i @clerk/[email protected] --save-exact

@clerk/types

npm i @clerk/[email protected] --save-exact

@panteliselef panteliselef added this pull request to the merge queue Dec 12, 2023
Merged via the queue into release/v4 with commit 2dc93d4 Dec 12, 2023
7 checks passed
@panteliselef panteliselef deleted the backport-release/v4-2170 branch December 12, 2023 20:55
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.

3 participants