Skip to content

Commit 69ce3e1

Browse files
authored
chore(clerk-js): Update zxcvbn dependency (#2326)
* chore(clerk-js): Update zxcvbn dependency * chore(repo): Add changesets
1 parent 75ea300 commit 69ce3e1

File tree

5 files changed

+21
-9
lines changed

5 files changed

+21
-9
lines changed

.changeset/angry-clocks-attend.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
---
4+
5+
Update `@zxcvbn-ts/core` from `2.2.1` to `3.0.4`. Update `@zxcvbn-ts/language-common` from `3.0.2` to `3.0.4`.

.changeset/long-dancers-whisper.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/types': patch
3+
---
4+
5+
Adjust `ZxcvbnResult` interface to use current `feedback.warning` type as used in the upstream `@zxcvbn-ts/core` library.

package-lock.json

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/clerk-js/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
"@emotion/cache": "11.11.0",
5757
"@emotion/react": "11.11.1",
5858
"@floating-ui/react": "0.25.4",
59-
"@zxcvbn-ts/core": "2.2.1",
60-
"@zxcvbn-ts/language-common": "3.0.2",
59+
"@zxcvbn-ts/core": "3.0.4",
60+
"@zxcvbn-ts/language-common": "3.0.4",
6161
"browser-tabs-lock": "1.2.15",
6262
"copy-to-clipboard": "3.3.3",
6363
"core-js": "3.26.1",

packages/types/src/passwords.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { PasswordSettingsData } from './userSettings';
22

33
export interface ZxcvbnResult {
44
feedback: {
5-
warning: string;
5+
warning: string | null;
66
suggestions: string[];
77
};
88
score: 0 | 1 | 2 | 3 | 4;

0 commit comments

Comments
 (0)