@clerk/upgrade 2.0.0-canary.v20251212200754 → 2.0.0-canary.v20251213231137

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.
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "test-nextjs-v6-scan-issues",
3
+ "version": "1.0.0",
4
+ "dependencies": {
5
+ "@clerk/nextjs": "^6.0.0",
6
+ "next": "^14.0.0",
7
+ "react": "^18.0.0"
8
+ }
9
+ }
@@ -0,0 +1,2 @@
1
+ lockfileVersion: '6.0'
2
+
@@ -0,0 +1,30 @@
1
+ import { ClerkProvider, SignIn, useAuth } from '@clerk/nextjs';
2
+
3
+ export default function App({ children }) {
4
+ return (
5
+ <ClerkProvider
6
+ appearance={{
7
+ layout: {
8
+ socialButtonsPlacement: 'bottom',
9
+ },
10
+ }}
11
+ >
12
+ {children}
13
+ </ClerkProvider>
14
+ );
15
+ }
16
+
17
+ export function SignInPage() {
18
+ return (
19
+ <SignIn
20
+ afterSignInUrl='/dashboard'
21
+ afterSignUpUrl='/onboarding'
22
+ />
23
+ );
24
+ }
25
+
26
+ export function SamlCallback() {
27
+ const { isSignedIn } = useAuth();
28
+ // Handle saml callback
29
+ return <div>SAML SSO Callback</div>;
30
+ }
package/dist/cli.js CHANGED
@@ -30,13 +30,14 @@ const cli = meow(`
30
30
  `, {
31
31
  importMeta: import.meta,
32
32
  flags: {
33
- sdk: {
34
- type: 'string'
35
- },
36
33
  dir: {
37
34
  type: 'string',
38
35
  default: process.cwd()
39
36
  },
37
+ dryRun: {
38
+ type: 'boolean',
39
+ default: false
40
+ },
40
41
  glob: {
41
42
  type: 'string',
42
43
  default: '**/*.(js|jsx|ts|tsx|mjs|cjs)'
@@ -45,18 +46,17 @@ const cli = meow(`
45
46
  type: 'string',
46
47
  isMultiple: true
47
48
  },
48
- skipUpgrade: {
49
- type: 'boolean',
50
- default: false
51
- },
52
49
  release: {
53
50
  type: 'string'
54
51
  },
55
- dryRun: {
52
+ sdk: {
53
+ type: 'string'
54
+ },
55
+ skipCodemods: {
56
56
  type: 'boolean',
57
57
  default: false
58
58
  },
59
- skipCodemods: {
59
+ skipUpgrade: {
60
60
  type: 'boolean',
61
61
  default: false
62
62
  }
@@ -66,12 +66,12 @@ async function main() {
66
66
  renderHeader();
67
67
  const options = {
68
68
  dir: cli.flags.dir,
69
+ dryRun: cli.flags.dryRun,
69
70
  glob: cli.flags.glob,
70
71
  ignore: cli.flags.ignore,
71
- skipUpgrade: cli.flags.skipUpgrade,
72
72
  release: cli.flags.release,
73
- dryRun: cli.flags.dryRun,
74
- skipCodemods: cli.flags.skipCodemods
73
+ skipCodemods: cli.flags.skipCodemods,
74
+ skipUpgrade: cli.flags.skipUpgrade
75
75
  };
76
76
  if (options.dryRun) {
77
77
  renderWarning(' Upgrade running in dry run mode - no changes will be made');
@@ -20,18 +20,6 @@ const UI_LEGACY_SOURCES = new Set(['@clerk/ui', '@clerk/ui/themes', UI_THEME_SOU
20
20
  const CHROME_CLIENT_NAMES = new Set(['__unstable__createClerkClient', 'createClerkClient']);
21
21
  const CHROME_BACKGROUND_SOURCE = '@clerk/chrome-extension/background';
22
22
  const CHROME_LEGACY_SOURCE = '@clerk/chrome-extension';
23
-
24
- /**
25
- * Transforms experimental and unstable prefixed identifiers to their stable or internal equivalents.
26
- * Also moves theme-related imports to @clerk/ui/themes/experimental and Chrome extension imports
27
- * to @clerk/chrome-extension/background. Removes deprecated billing-related props.
28
- *
29
- * @param {Object} file - The file object containing the source code
30
- * @param {string} file.source - The source code to transform
31
- * @param {Object} api - The jscodeshift API
32
- * @param {Function} api.jscodeshift - The jscodeshift function
33
- * @returns {string|undefined} The transformed source code, or undefined if no changes were made
34
- */
35
23
  module.exports = function transformAlignExperimentalUnstablePrefixes({
36
24
  source
37
25
  }, {
package/dist/runner.js CHANGED
@@ -11,11 +11,11 @@ export async function runCodemods(config, sdk, options) {
11
11
  if (codemods.length === 0) {
12
12
  return;
13
13
  }
14
- const glob = typeof options.glob === 'string' ? options.glob.split(/[ ,]/).filter(Boolean) : options.glob;
14
+ const patterns = typeof options.glob === 'string' ? options.glob.split(/[ ,]/).filter(Boolean) : options.glob;
15
15
  for (const transform of codemods) {
16
16
  const spinner = createSpinner(`Running codemod: ${transform}`);
17
17
  try {
18
- const result = await runCodemod(transform, glob, options);
18
+ const result = await runCodemod(transform, patterns, options);
19
19
  spinner.success(`Codemod applied: ${chalk.dim(transform)}`);
20
20
  renderCodemodResults(transform, result);
21
21
  const codemodConfig = getCodemodConfig(transform);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerk/upgrade",
3
- "version": "2.0.0-canary.v20251212200754",
3
+ "version": "2.0.0-canary.v20251213231137",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/clerk/javascript.git",
@@ -51,6 +51,7 @@
51
51
  "dev": "babel --keep-file-extension --out-dir=dist --watch src --copy-files",
52
52
  "format": "node ../../scripts/format-package.mjs",
53
53
  "format:check": "node ../../scripts/format-package.mjs --check",
54
+ "generate-guide": "node scripts/generate-guide.js",
54
55
  "lint": "eslint src/",
55
56
  "lint:publint": "publint",
56
57
  "test": "vitest run",