diff --git a/.changeset/sweet-bottles-watch.md b/.changeset/sweet-bottles-watch.md new file mode 100644 index 00000000000..67c91b22fda --- /dev/null +++ b/.changeset/sweet-bottles-watch.md @@ -0,0 +1,7 @@ +--- +'@clerk/backend': patch +'@clerk/nextjs': patch +'@clerk/shared': patch +--- + +Restore reverted commits from https://github.com/clerkinc/javascript/pull/1806 and fixed issue with `createContext only works in Client Components` error raised from `@clerk/nextjs`. diff --git a/package-lock.json b/package-lock.json index 60e95102efa..60dab313d09 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33144,11 +33144,11 @@ }, "packages/backend": { "name": "@clerk/backend", - "version": "0.29.3", + "version": "0.30.1", "license": "MIT", "dependencies": { - "@clerk/shared": "^0.23.1", - "@clerk/types": "^3.52.1", + "@clerk/shared": "^0.24.0", + "@clerk/types": "^3.53.0", "@peculiar/webcrypto": "1.4.1", "@types/node": "16.18.6", "cookie": "0.5.0", @@ -33191,11 +33191,11 @@ }, "packages/chrome-extension": { "name": "@clerk/chrome-extension", - "version": "0.4.2", + "version": "0.4.4", "license": "MIT", "dependencies": { - "@clerk/clerk-js": "^4.58.2", - "@clerk/clerk-react": "^4.25.2" + "@clerk/clerk-js": "^4.59.1", + "@clerk/clerk-react": "^4.26.1" }, "devDependencies": { "@types/chrome": "*", @@ -33211,12 +33211,12 @@ }, "packages/clerk-js": { "name": "@clerk/clerk-js", - "version": "4.58.2", + "version": "4.59.1", "license": "MIT", "dependencies": { - "@clerk/localizations": "^1.26.1", - "@clerk/shared": "^0.23.1", - "@clerk/types": "^3.52.1", + "@clerk/localizations": "^1.26.2", + "@clerk/shared": "^0.24.1", + "@clerk/types": "^3.53.0", "@emotion/cache": "11.10.5", "@emotion/react": "11.10.5", "@floating-ui/react": "0.25.4", @@ -33571,16 +33571,16 @@ }, "packages/expo": { "name": "@clerk/clerk-expo", - "version": "0.19.4", + "version": "0.19.6", "license": "MIT", "dependencies": { - "@clerk/clerk-js": "^4.58.2", - "@clerk/clerk-react": "^4.25.2", + "@clerk/clerk-js": "^4.59.1", + "@clerk/clerk-react": "^4.26.1", "base-64": "1.0.0", "react-native-url-polyfill": "2.0.0" }, "devDependencies": { - "@clerk/types": "^3.52.1", + "@clerk/types": "^3.53.0", "@types/base-64": "^1.0.0", "@types/node": "^16.11.55", "@types/react": "*", @@ -33601,12 +33601,12 @@ }, "packages/fastify": { "name": "@clerk/fastify", - "version": "0.6.9", + "version": "0.6.11", "license": "MIT", "dependencies": { - "@clerk/backend": "^0.29.3", - "@clerk/shared": "^0.23.1", - "@clerk/types": "^3.52.1", + "@clerk/backend": "^0.30.1", + "@clerk/shared": "^0.24.1", + "@clerk/types": "^3.53.0", "cookies": "0.8.0" }, "devDependencies": { @@ -33622,13 +33622,13 @@ } }, "packages/gatsby-plugin-clerk": { - "version": "4.4.10", + "version": "4.4.12", "license": "MIT", "dependencies": { - "@clerk/backend": "^0.29.3", - "@clerk/clerk-react": "^4.25.2", - "@clerk/clerk-sdk-node": "^4.12.8", - "@clerk/types": "^3.52.1", + "@clerk/backend": "^0.30.1", + "@clerk/clerk-react": "^4.26.1", + "@clerk/clerk-sdk-node": "^4.12.10", + "@clerk/types": "^3.53.0", "cookie": "0.5.0", "tslib": "2.4.1" }, @@ -33652,10 +33652,10 @@ }, "packages/localizations": { "name": "@clerk/localizations", - "version": "1.26.1", + "version": "1.26.2", "license": "MIT", "dependencies": { - "@clerk/types": "^3.52.1" + "@clerk/types": "^3.53.0" }, "devDependencies": { "tsup": "*", @@ -33670,13 +33670,14 @@ }, "packages/nextjs": { "name": "@clerk/nextjs", - "version": "4.24.2", + "version": "4.25.1", "license": "MIT", "dependencies": { - "@clerk/backend": "^0.29.3", - "@clerk/clerk-react": "^4.25.2", - "@clerk/clerk-sdk-node": "^4.12.8", - "@clerk/types": "^3.52.1", + "@clerk/backend": "^0.30.1", + "@clerk/clerk-react": "^4.26.1", + "@clerk/clerk-sdk-node": "^4.12.10", + "@clerk/shared": "0.24.0", + "@clerk/types": "^3.53.0", "path-to-regexp": "6.2.1", "tslib": "2.4.1" }, @@ -33697,6 +33698,19 @@ "react-dom": "^17.0.2 || ^18.0.0-0" } }, + "packages/nextjs/node_modules/@clerk/shared": { + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@clerk/shared/-/shared-0.24.0.tgz", + "integrity": "sha512-xdLQwz8hFoN7ebU3HCQzCC4Acx0+7EiFXMTN0ClCHXbsc5B4yFgGzzngOEDjVLOpvU2CvSKYcNLfzDUOnpFXXw==", + "dependencies": { + "glob-to-regexp": "0.4.1", + "js-cookie": "3.0.1", + "swr": "2.2.0" + }, + "peerDependencies": { + "react": ">=16" + } + }, "packages/nextjs/node_modules/node-fetch-native": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.1.1.tgz", @@ -33710,11 +33724,11 @@ }, "packages/react": { "name": "@clerk/clerk-react", - "version": "4.25.2", + "version": "4.26.1", "license": "MIT", "dependencies": { - "@clerk/shared": "^0.23.1", - "@clerk/types": "^3.52.1", + "@clerk/shared": "^0.24.1", + "@clerk/types": "^3.53.0", "tslib": "2.4.1" }, "devDependencies": { @@ -33737,13 +33751,13 @@ }, "packages/remix": { "name": "@clerk/remix", - "version": "3.0.1", + "version": "3.0.3", "license": "MIT", "dependencies": { - "@clerk/backend": "^0.29.3", - "@clerk/clerk-react": "^4.25.2", - "@clerk/shared": "^0.23.1", - "@clerk/types": "^3.52.1", + "@clerk/backend": "^0.30.1", + "@clerk/clerk-react": "^4.26.1", + "@clerk/shared": "^0.24.1", + "@clerk/types": "^3.53.0", "cookie": "0.5.0", "tslib": "2.4.1" }, @@ -33773,11 +33787,11 @@ }, "packages/sdk-node": { "name": "@clerk/clerk-sdk-node", - "version": "4.12.8", + "version": "4.12.10", "license": "MIT", "dependencies": { - "@clerk/backend": "^0.29.3", - "@clerk/types": "^3.52.1", + "@clerk/backend": "^0.30.1", + "@clerk/types": "^3.53.0", "@types/cookies": "0.7.7", "@types/express": "4.17.14", "@types/node-fetch": "2.6.2", @@ -33815,7 +33829,7 @@ }, "packages/shared": { "name": "@clerk/shared", - "version": "0.23.1", + "version": "0.24.1", "license": "ISC", "dependencies": { "glob-to-regexp": "0.4.1", @@ -33823,7 +33837,7 @@ "swr": "2.2.0" }, "devDependencies": { - "@clerk/types": "^3.52.1", + "@clerk/types": "^3.53.0", "@types/glob-to-regexp": "0.4.1", "@types/js-cookie": "3.0.2", "tsup": "*", @@ -33838,7 +33852,7 @@ "version": "1.7.6", "license": "MIT", "devDependencies": { - "@clerk/types": "^3.52.1", + "@clerk/types": "^3.53.0", "typescript": "*" }, "engines": { @@ -33850,7 +33864,7 @@ }, "packages/types": { "name": "@clerk/types", - "version": "3.52.1", + "version": "3.53.0", "license": "MIT", "dependencies": { "csstype": "3.1.1" diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index 202ddf4e414..ff615c14a1f 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -79,6 +79,7 @@ "@clerk/clerk-react": "^4.26.1", "@clerk/clerk-sdk-node": "^4.12.10", "@clerk/types": "^3.53.0", + "@clerk/shared": "0.24.0", "path-to-regexp": "6.2.1", "tslib": "2.4.1" },