@clerk/upgrade 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.js +2 -2
- package/dist/cli.js +4 -3
- package/dist/constants/versions.js +4 -4
- package/dist/scan.js +2 -2
- package/dist/versions/core-2/backend/constants-import-path-move.md +1 -1
- package/dist/versions/core-2/backend/createisomorphicrequest-import-path-move.md +1 -1
- package/dist/versions/core-2/backend/createisomorphicrequest-removed.md +1 -1
- package/dist/versions/core-2/backend/decodejwt-import-path-move.md +1 -1
- package/dist/versions/core-2/backend/redirect-import-path-move.md +1 -1
- package/dist/versions/core-2/backend/signjwt-import-path-move.md +1 -1
- package/dist/versions/core-2/backend/signjwterror-import-move.md +1 -1
- package/dist/versions/core-2/backend/tokenverificationerror-import-move.md +1 -1
- package/dist/versions/core-2/backend/tokenverificationerroraction-import-move.md +1 -1
- package/dist/versions/core-2/backend/tokenverificationerrorcode-import-move.md +1 -1
- package/dist/versions/core-2/backend/tokenverificationerrorreason-import-move.md +1 -1
- package/dist/versions/core-2/backend/verifyjwt-import-path-move.md +1 -1
- package/dist/versions/core-2/common/emaillinkerrorcode-import-change.md +1 -1
- package/dist/versions/core-2/common/isclerkapiresponserror-import-change.md +1 -1
- package/dist/versions/core-2/common/isemaillinkerror-import-change.md +1 -1
- package/dist/versions/core-2/common/isknownerror-import-change.md +1 -1
- package/dist/versions/core-2/common/ismetamaskerror-import-change.md +1 -1
- package/dist/versions/core-2/common/multisessionappsupport-import-change.md +1 -1
- package/dist/versions/core-2/nextjs/auth-import-change.md +1 -1
- package/dist/versions/core-2/nextjs/authmiddleware-import-change.md +1 -1
- package/dist/versions/core-2/nextjs/buildclerkprops-import-change.md +1 -1
- package/dist/versions/core-2/nextjs/clerk-import-change.md +1 -1
- package/dist/versions/core-2/nextjs/constants-import-change.md +1 -1
- package/dist/versions/core-2/nextjs/createauthenticaterequest-import-change.md +1 -1
- package/dist/versions/core-2/nextjs/createisomorphicrequest-import-change.md +1 -1
- package/dist/versions/core-2/nextjs/currentuser-import-change.md +1 -1
- package/dist/versions/core-2/nextjs/decodejwt-import-change.md +1 -1
- package/dist/versions/core-2/nextjs/emaillinkerrorcode-import-change.md +1 -1
- package/dist/versions/core-2/nextjs/isclerkapiresponserror-import-change.md +1 -1
- package/dist/versions/core-2/nextjs/isemaillinkerror-import-change.md +1 -1
- package/dist/versions/core-2/nextjs/isknownerror-import-change.md +1 -1
- package/dist/versions/core-2/nextjs/multisessionappsupport-import-change.md +1 -1
- package/dist/versions/core-2/nextjs/redirect-import-change.md +1 -1
- package/dist/versions/core-2/nextjs/redirecttosignin-import-path.md +2 -2
- package/dist/versions/core-2/nextjs/redirecttosignup-import-path.md +1 -1
- package/dist/versions/core-2/nextjs/signjwt-import-change.md +1 -1
- package/dist/versions/core-2/nextjs/verifyjwt-import-change.md +1 -1
- package/dist/versions/core-2/nextjs/verifytoken-import-change.md +1 -1
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -113,9 +113,9 @@ export default function App({
|
|
|
113
113
|
color: "green"
|
|
114
114
|
}, " ", sdks.toString())), /*#__PURE__*/React.createElement(Text, null, "Migrating from", /*#__PURE__*/React.createElement(Text, {
|
|
115
115
|
color: "green"
|
|
116
|
-
}, "
|
|
116
|
+
}, " ", fromVersion, " "), "to", /*#__PURE__*/React.createElement(Text, {
|
|
117
117
|
color: "green"
|
|
118
|
-
}, "
|
|
118
|
+
}, " ", toVersion)), /*#__PURE__*/React.createElement(Text, null, "Looking in the directory", /*#__PURE__*/React.createElement(Text, {
|
|
119
119
|
color: "green"
|
|
120
120
|
}, " ", dir, " "), ignore.length > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, "and ignoring", /*#__PURE__*/React.createElement(Text, {
|
|
121
121
|
color: "green"
|
package/dist/cli.js
CHANGED
|
@@ -24,11 +24,11 @@ const cli = meow(`
|
|
|
24
24
|
flags: {
|
|
25
25
|
from: {
|
|
26
26
|
type: 'string',
|
|
27
|
-
default: '
|
|
27
|
+
default: 'core-1'
|
|
28
28
|
},
|
|
29
29
|
to: {
|
|
30
30
|
type: 'string',
|
|
31
|
-
default: '
|
|
31
|
+
default: 'core-2'
|
|
32
32
|
},
|
|
33
33
|
sdk: {
|
|
34
34
|
type: 'string',
|
|
@@ -61,5 +61,6 @@ render( /*#__PURE__*/React.createElement(App, {
|
|
|
61
61
|
noWarnings: cli.flags.noWarnings,
|
|
62
62
|
disableTelemetry: cli.flags.disableTelemetry
|
|
63
63
|
})
|
|
64
|
-
//
|
|
64
|
+
// if having issues with errors being swallowed, uncomment this
|
|
65
|
+
// { debug: true },
|
|
65
66
|
);
|
package/dist/scan.js
CHANGED
|
@@ -35,8 +35,8 @@ export default function Scan({
|
|
|
35
35
|
// result = `matchers` set to format:
|
|
36
36
|
// { sdkName: [{ title: 'x', matcher: /x/, slug: 'x', ... }] }
|
|
37
37
|
useEffect(() => {
|
|
38
|
-
setStatus(`Loading data for
|
|
39
|
-
import(`./versions
|
|
38
|
+
setStatus(`Loading data for ${toVersion} migration`);
|
|
39
|
+
import(`./versions/${toVersion}/index.js`).then(version => {
|
|
40
40
|
setMatchers(sdks.reduce((m, sdk) => {
|
|
41
41
|
m[sdk] = version.default[sdk];
|
|
42
42
|
return m;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`constants` import moved to `@clerk/backend/internal`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?constants[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?constants[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)(?!\/internal)['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
replaceWithString: 'backend/internal'
|
|
6
6
|
category: 'import-paths'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`createIsomorphicRequest` import moved to `@clerk/backend/internal`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?createIsomorphicRequest[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?createIsomorphicRequest[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)(?!\/internal)['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
replaceWithString: 'backend/internal'
|
|
6
6
|
category: 'import-paths'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`createIsomorphicRequest` import moved to `/internal`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?createIsomorphicRequest[\\s\\S]*?}\\s+from\\s+['\"]@clerk\/(backend)['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?createIsomorphicRequest[\\s\\S]*?}\\s+from\\s+['\"]@clerk\/(backend)(?!\/internal)['\"]"
|
|
4
4
|
replaceWithString: 'backend/internal'
|
|
5
5
|
matcherFlags: 'm'
|
|
6
6
|
category: 'import-paths'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`decodeJwt` import moved to `@clerk/backend/tokens`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?decodeJwt[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?decodeJwt[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)(?!\/tokens)['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
replaceWithString: 'backend/tokens'
|
|
6
6
|
category: 'import-paths'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`redirect` import moved to `@clerk/backend/internal`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?redirect[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?redirect[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)(?!\/internal)['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
replaceWithString: 'backend/internal'
|
|
6
6
|
category: 'import-paths'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`signJwt` import moved to `@clerk/backend/tokens`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?signJwt[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?signJwt[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)(?!\/tokens)['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
replaceWithString: 'backend/tokens'
|
|
6
6
|
category: 'import-paths'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`SignJWTError` import moved to `@clerk/backend/errors`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?SignJWTError[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?SignJWTError[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)(?!\/errors)['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
replaceWithString: 'backend/errors'
|
|
6
6
|
category: 'import-paths'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`TokenVerificationError` import moved to `@clerk/backend/errors`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?TokenVerificationError[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?TokenVerificationError[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)(?!\/errors)['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
replaceWithString: 'backend/errors'
|
|
6
6
|
category: 'import-paths'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`TokenVerificationErrorAction` import moved to `@clerk/backend/errors`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?TokenVerificationErrorAction[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?TokenVerificationErrorAction[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)(?!\/errors)['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
replaceWithString: 'backend/errors'
|
|
6
6
|
category: 'import-paths'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`TokenVerificationErrorCode` import moved to `@clerk/backend/errors`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?TokenVerificationErrorCode[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?TokenVerificationErrorCode[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)(?!\/errors)['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
replaceWithString: 'backend/errors'
|
|
6
6
|
category: 'import-paths'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`TokenVerificationErrorReason` import moved to `@clerk/backend/errors`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?TokenVerificationErrorReason[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?TokenVerificationErrorReason[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)(?!\/errors)['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
replaceWithString: 'backend/errors'
|
|
6
6
|
category: 'import-paths'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`verifyJwt` import moved to `@clerk/backend/tokens`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?verifyJwt[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?verifyJwt[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)(?!\/tokens)['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
replaceWithString: 'backend/tokens'
|
|
6
6
|
category: 'import-paths'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`EmailLinkErrorCode` import moved under `/errors`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?EmailLinkErrorCode[\\s\\S]*?from\\s+['\"]@clerk\\/(clerk-react)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?EmailLinkErrorCode[\\s\\S]*?from\\s+['\"]@clerk\\/(clerk-react)(?!\/errors)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'error-imports'
|
|
6
6
|
replaceWithString: 'clerk-react/errors'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`isClerkAPIResponseError` import moved under `/errors`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?isClerkAPIResponseError[\\s\\S]*?from\\s+['\"]@clerk\\/(clerk-react)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?isClerkAPIResponseError[\\s\\S]*?from\\s+['\"]@clerk\\/(clerk-react)(?!\/errors)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'error-imports'
|
|
6
6
|
replaceWithString: 'clerk-react/errors'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`isEmailLinkError` import moved under `/errors`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?isEmailLinkError[\\s\\S]*?from\\s+['\"]@clerk\\/(clerk-react)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?isEmailLinkError[\\s\\S]*?from\\s+['\"]@clerk\\/(clerk-react)(?!\/errors)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'error-imports'
|
|
6
6
|
replaceWithString: 'clerk-react/errors'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`isKnownError` import moved under `/errors`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?isKnownError[\\s\\S]*?from\\s+['\"]@clerk\\/(clerk-react)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?isKnownError[\\s\\S]*?from\\s+['\"]@clerk\\/(clerk-react)(?!\/errors)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'error-imports'
|
|
6
6
|
replaceWithString: 'clerk-react/errors'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`isMetamaskError` import moved under `/errors`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?isMetamaskError[\\s\\S]*?from\\s+['\"]@clerk\\/(react)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?isMetamaskError[\\s\\S]*?from\\s+['\"]@clerk\\/(react)(?!\/errors)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'error-imports'
|
|
6
6
|
replaceWithString: 'react/errors'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`MultisessionAppSupport` import moved to `/internal`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?MutliSessionAppSupport[\\s\\S]*?from\\s+['\"]@clerk\\/clerk-react[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?MutliSessionAppSupport[\\s\\S]*?from\\s+['\"]@clerk\\/clerk-react(?!\/internal)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`auth` import moved under `/server`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?[,\\s]auth[,\\s][\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?[,\\s]auth[,\\s][\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/server)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'top-level-imports'
|
|
6
6
|
replaceWithString: 'nextjs/server'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`authMiddleware` import moved under `/server`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?authMiddleware[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?authMiddleware[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/server)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'top-level-imports'
|
|
6
6
|
replaceWithString: 'nextjs/server'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`buildClerkProps` import moved under `/server`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?buildClerkProps[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?buildClerkProps[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/server)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'top-level-imports'
|
|
6
6
|
replaceWithString: 'nextjs/server'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`Clerk` import moved under `/server`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?[,\\s]Clerk[,\\s][\\s\\S]*?from\\s+['\"]@clerk\\/nextjs[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?[,\\s]Clerk[,\\s][\\s\\S]*?from\\s+['\"]@clerk\\/nextjs(?!\/server)[\\s\\S]*?['\"]"
|
|
4
4
|
category: 'top-level-imports'
|
|
5
5
|
matcherFlags: 'm'
|
|
6
6
|
---
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`constants` import moved under `/server`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?constants[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?constants[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/server)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'top-level-imports'
|
|
6
6
|
replaceWithString: 'nextjs/server'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`createAuthenticateRequest` import moved under `/server`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?createAuthenticateRequest[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?createAuthenticateRequest[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/server)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'top-level-imports'
|
|
6
6
|
replaceWithString: 'nextjs/server'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`createIsomorphicRequest` import moved under `/server`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?createIsomorphicRequest[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?createIsomorphicRequest[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/server)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'top-level-imports'
|
|
6
6
|
replaceWithString: 'nextjs/server'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`currentUser` import moved under `/server`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?currentUser[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?currentUser[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/server)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'top-level-imports'
|
|
6
6
|
replaceWithString: 'nextjs/server'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`decodeJwt` import moved under `/server`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?decodeJwt[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?decodeJwt[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/server)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'top-level-imports'
|
|
6
6
|
replaceWithString: 'nextjs/server'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`EmailLinkErrorCode` import moved under `/errors`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?EmailLinkErrorCode[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?EmailLinkErrorCode[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/errors)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'top-level-imports'
|
|
6
6
|
replaceWithString: 'nextjs/errors'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`isClerkAPIResponseError` import moved under `/errors`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?isClerkAPIResponseError[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?isClerkAPIResponseError[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/errors)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'top-level-imports'
|
|
6
6
|
replaceWithString: 'nextjs/errors'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`isEmailLinkError` import moved under `/errors`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?isEmailLinkError[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?isEmailLinkError[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/errors)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'top-level-imports'
|
|
6
6
|
replaceWithString: 'nextjs/errors'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`isKnownError` import moved under `/errors`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?isKnownError[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?isKnownError[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/errors)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'top-level-imports'
|
|
6
6
|
replaceWithString: 'nextjs/errors'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`MultiSessionAppSupport` import moved under `/internal`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?MultiSessionAppSupport[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?MultiSessionAppSupport[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/internal)[\\s\\S]*?['\"]"
|
|
4
4
|
category: 'deprecation-removal'
|
|
5
5
|
matcherFlags: 'm'
|
|
6
6
|
replaceWithString: 'nextjs/internal'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`redirect` import moved under `/server`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?[,\\s]redirect[,\\s][\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?[,\\s]redirect[,\\s][\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/server)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'top-level-imports'
|
|
6
6
|
replaceWithString: 'nextjs/server'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: '`redirectToSignIn` import moved under `/server'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?[,\\s]redirectToSignIn[,\\s][\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
2
|
+
title: '`redirectToSignIn` import moved under `/server`'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?[,\\s]redirectToSignIn[,\\s][\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/server)[\\s\\S]*?['\"]"
|
|
4
4
|
category: 'top-level-imports'
|
|
5
5
|
replaceWithString: 'nextjs/server'
|
|
6
6
|
---
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`redirectToSignUp` import moved under `/server`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?[,\\s]redirectToSignUp[,\\s][\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?[,\\s]redirectToSignUp[,\\s][\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/server)[\\s\\S]*?['\"]"
|
|
4
4
|
category: 'top-level-imports'
|
|
5
5
|
replaceWithString: 'nextjs/server'
|
|
6
6
|
---
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`signJwt` import moved under `/server`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?signJwt[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?signJwt[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/server)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'top-level-imports'
|
|
6
6
|
replaceWithString: 'nextjs/server'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`verifyJwt` import moved under `/server`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?verifyJwt[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?verifyJwt[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/server)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'top-level-imports'
|
|
6
6
|
replaceWithString: 'nextjs/server'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`verifyToken` import moved under `/server`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?verifyToken[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?verifyToken[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)(?!\/server)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
5
|
category: 'top-level-imports'
|
|
6
6
|
replaceWithString: 'nextjs/server'
|