@clerk/upgrade 2.0.0-canary.v20251212085920 → 2.0.0-canary.v20251212165243

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.
@@ -1,8 +1,8 @@
1
1
  import { dirname, resolve } from 'node:path';
2
2
  import { fileURLToPath } from 'node:url';
3
3
  import chalk from 'chalk';
4
- import { globby } from 'globby';
5
4
  import { run } from 'jscodeshift/src/Runner.js';
5
+ import { glob } from 'tinyglobby';
6
6
  const __dirname = dirname(fileURLToPath(import.meta.url));
7
7
  const CODEMOD_CONFIG = {
8
8
  'transform-remove-deprecated-props': {
@@ -10,12 +10,12 @@ const CODEMOD_CONFIG = {
10
10
  }
11
11
  };
12
12
  const GLOBBY_IGNORE = ['**/*.md', 'node_modules/**', '**/node_modules/**', '.git/**', '**/*.json', 'package.json', '**/package.json', 'package-lock.json', '**/package-lock.json', 'yarn.lock', '**/yarn.lock', 'pnpm-lock.yaml', '**/pnpm-lock.yaml', 'yalc.lock', '**/*.{ico,png,webp,svg,gif,jpg,jpeg}', '**/*.{mp4,mkv,wmv,m4v,mov,avi,flv,webm,flac,mka,m4a,aac,ogg}', '**/*.{css,scss,sass,less,styl}'];
13
- export async function runCodemod(transform = 'transform-async-request', glob, options = {}) {
13
+ export async function runCodemod(transform = 'transform-async-request', patterns, options = {}) {
14
14
  if (!transform) {
15
15
  throw new Error('No transform provided');
16
16
  }
17
17
  const resolvedPath = resolve(__dirname, `${transform}.cjs`);
18
- const paths = await globby(glob, {
18
+ const paths = await glob(patterns, {
19
19
  ignore: GLOBBY_IGNORE
20
20
  });
21
21
  if (options.skipCodemods) {
package/dist/runner.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import fs from 'node:fs/promises';
2
2
  import path from 'node:path';
3
3
  import chalk from 'chalk';
4
- import { convertPathToPattern, globby } from 'globby';
5
4
  import indexToPosition from 'index-to-position';
5
+ import { glob } from 'tinyglobby';
6
6
  import { getCodemodConfig, runCodemod } from './codemods/index.js';
7
7
  import { createSpinner, renderCodemodResults } from './render.js';
8
8
  const GLOBBY_IGNORE = ['node_modules/**', '**/node_modules/**', '.git/**', 'dist/**', '**/dist/**', 'build/**', '**/build/**', '.next/**', '**/.next/**', 'package.json', '**/package.json', 'package-lock.json', '**/package-lock.json', 'yarn.lock', '**/yarn.lock', 'pnpm-lock.yaml', '**/pnpm-lock.yaml', '**/*.{png,webp,svg,gif,jpg,jpeg}', '**/*.{mp4,mkv,wmv,m4v,mov,avi,flv,webm,flac,mka,m4a,aac,ogg}'];
@@ -35,8 +35,10 @@ export async function runScans(config, sdk, options) {
35
35
  }
36
36
  const spinner = createSpinner('Scanning files for breaking changes...');
37
37
  try {
38
- const pattern = convertPathToPattern(path.resolve(options.dir));
39
- const files = await globby(pattern, {
38
+ const cwd = path.resolve(options.dir);
39
+ const files = await glob('**/*', {
40
+ cwd,
41
+ absolute: true,
40
42
  ignore: [...GLOBBY_IGNORE, ...(options.ignore || [])]
41
43
  });
42
44
  const results = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerk/upgrade",
3
- "version": "2.0.0-canary.v20251212085920",
3
+ "version": "2.0.0-canary.v20251212165243",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/clerk/javascript.git",
@@ -24,7 +24,6 @@
24
24
  "chalk": "^5.3.0",
25
25
  "ejs": "3.1.10",
26
26
  "execa": "9.4.1",
27
- "globby": "^14.0.1",
28
27
  "gray-matter": "^4.0.3",
29
28
  "index-to-position": "^0.1.2",
30
29
  "jscodeshift": "^17.0.0",
@@ -32,7 +31,8 @@
32
31
  "meow": "^11.0.0",
33
32
  "read-pkg": "^9.0.1",
34
33
  "semver-regex": "^4.0.5",
35
- "temp-dir": "^3.0.0"
34
+ "temp-dir": "^3.0.0",
35
+ "tinyglobby": "^0.2.15"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@babel/cli": "^7.24.7",