Skip to content

Commit

Permalink
chore(clerk-js): Update zxcvbn dependency (#2326) (#2332)
Browse files Browse the repository at this point in the history
* chore(clerk-js): Update zxcvbn dependency

* chore(repo): Add changesets

(cherry picked from commit 69ce3e1)

Co-authored-by: Lennart <lekoarts@gmail.com>
  • Loading branch information
clerk-cookie and LekoArts committed Dec 13, 2023
1 parent 2dc93d4 commit b4868ab
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/angry-clocks-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/clerk-js': patch
---

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`.
5 changes: 5 additions & 0 deletions .changeset/long-dancers-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/types': patch
---

Adjust `ZxcvbnResult` interface to use current `feedback.warning` type as used in the upstream `@zxcvbn-ts/core` library.
14 changes: 8 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/clerk-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
"@emotion/cache": "11.11.0",
"@emotion/react": "11.11.1",
"@floating-ui/react": "0.25.4",
"@zxcvbn-ts/core": "2.2.1",
"@zxcvbn-ts/language-common": "3.0.2",
"@zxcvbn-ts/core": "3.0.4",
"@zxcvbn-ts/language-common": "3.0.4",
"browser-tabs-lock": "1.2.15",
"copy-to-clipboard": "3.3.3",
"core-js": "3.26.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/passwords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { PasswordSettingsData } from './userSettings';

export interface ZxcvbnResult {
feedback: {
warning: string;
warning: string | null;
suggestions: string[];
};
score: 0 | 1 | 2 | 3 | 4;
Expand Down

0 comments on commit b4868ab

Please sign in to comment.