@clerk/upgrade 1.0.3 → 1.0.5

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 CHANGED
@@ -103,7 +103,7 @@ export default function App({
103
103
  })), !isEmpty(sdks) && fromVersion && toVersion && dir && isEmpty(ignore) && !configComplete && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, null, "Are there any files or directories you'd like to ignore? If so, you can add them below, separated by commas. We ignore \"node_modules\" and \".git\" by default."), /*#__PURE__*/React.createElement(Text, {
104
104
  color: "gray"
105
105
  }, "(globstar syntax supported)"), /*#__PURE__*/React.createElement(TextInput, {
106
- placeholder: "docs/**, images/**",
106
+ placeholder: "**/public**, **/docs/**",
107
107
  defaultValue: ignore,
108
108
  onSubmit: val => {
109
109
  setIgnore(val.includes(',') ? val.split(/\s*,\s*/) : [].concat(val));
package/dist/cli.js CHANGED
@@ -19,6 +19,7 @@ const cli = meow(`
19
19
 
20
20
  Examples
21
21
  $ clerk-upgrade --sdk=nextjs --dir=src/**
22
+ $ clerk-upgrade --ignore=**/public/** --ignore=**/dist/**
22
23
  `, {
23
24
  importMeta: import.meta,
24
25
  flags: {
@@ -57,6 +58,7 @@ render( /*#__PURE__*/React.createElement(App, {
57
58
  _toVersion: cli.flags.to,
58
59
  _sdk: cli.flags.sdk,
59
60
  _dir: cli.flags.dir,
61
+ _ignore: cli.flags.ignore,
60
62
  _yolo: cli.flags.yolo,
61
63
  noWarnings: cli.flags.noWarnings,
62
64
  disableTelemetry: cli.flags.disableTelemetry
@@ -1,6 +1,6 @@
1
1
  # Upgrading to Clerk Core 2
2
2
 
3
- In Febrary 2024, [we updated](https://clerk.com/changelog/2024-01-16) Clerk's SDKs to include Core 2. This new core includes:
3
+ In April 2024, we updated Clerk's SDKs to include Core 2. This new core includes:
4
4
 
5
5
  - 💅 Redesigned and improved component UIs.
6
6
  - 🔪 The 401 & "flash of white page" that was visible sometimes when syncing auth state was eliminated.
@@ -12,14 +12,14 @@ In Febrary 2024, [we updated](https://clerk.com/changelog/2024-01-16) Clerk's SD
12
12
  Core 2 brings both UI changes and breaking code changes, so each SDK has been updated to a new major version.
13
13
  We expect upgrades to take less than 30 minutes, and are providing a CLI tool to assist with the process. Please select your SDK below to get started:
14
14
 
15
- - [Next.js](/nextjs)
16
- - [Remix](/remix)
17
- - [Expo](/expo)
18
- - [Node](/node)
19
- - [Fastify](/fastify)
20
- - [React](/react)
21
- - [Backend](/backend)
22
- - [JS](/js)
23
- - [Chrome Extension](/chrome-extension)
15
+ - [Next.js](/docs/upgrade-guides/core-2/nextjs)
16
+ - [Remix](/docs/upgrade-guides/core-2/remix)
17
+ - [Expo](/docs/upgrade-guides/core-2/expo)
18
+ - [Node](/docs/upgrade-guides/core-2/node)
19
+ - [Fastify](/docs/upgrade-guides/core-2/fastify)
20
+ - [React](/docs/upgrade-guides/core-2/react)
21
+ - [Backend](/docs/upgrade-guides/core-2/backend)
22
+ - [JS](/docs/upgrade-guides/core-2/javascript)
23
+ - [Chrome Extension](/docs/upgrade-guides/core-2/chrome-extension)
24
24
 
25
- Note that the `Gastsby`, `Go`, and `Ruby` SDKs do not yet have a core 2 release ready - if you are using any of these SDKs there is nothing actionable right now.
25
+ Note that the `Gatsby`, `Go`, and `Ruby` SDKs do not yet have a Core 2 release ready - if you are using any of these SDKs there is nothing actionable right now.
package/dist/scan.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ProgressBar } from '@inkjs/ui';
2
2
  import fs from 'fs/promises';
3
- import { globby } from 'globby';
3
+ import { convertPathToPattern, globby } from 'globby';
4
4
  import indexToPosition from 'index-to-position';
5
5
  import { Newline, Text } from 'ink';
6
6
  import path from 'path';
@@ -54,8 +54,8 @@ export default function Scan({
54
54
  '**/*.(mp4|mkv|wmv|m4v|mov|avi|flv|webm|flac|mka|m4a|aac|ogg)+' // common video files
55
55
  );
56
56
 
57
- globby(path.resolve(dir), {
58
- ignore: [...ignore.filter(x => x)]
57
+ globby(convertPathToPattern(path.resolve(dir)), {
58
+ ignore: ignore.filter(Boolean)
59
59
  }).then(files => {
60
60
  setFiles(files);
61
61
  });
@@ -30,6 +30,6 @@ All `afterSignXUrl` props and `CLERK_AFTER_SIGN_X_URL` environment variables hav
30
30
  If neither value is set, Clerk will redirect to the `redirect_url` if present, otherwise it will redirect to `/`. If you'd like to retain the current behavior of your app without any changes, you can switch `afterSignXUrl` with `signXFallbackRedirectUrl` as such:
31
31
 
32
32
  ```diff
33
- - <SignIn afterSignInUrl='/foo' />
34
- + <SignIn signInFallbackRedirectUrl='/foo' />
33
+ - <SignIn afterSignInUrl='/foo' afterSignUpUrl='/bar' />
34
+ + <SignIn fallbackRedirectUrl='/foo' signUpFallbackRedirectUrl='/bar' />
35
35
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerk/upgrade",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",