Skip to content

Commit f2e209f

Browse files
committed
chore: bump @scure/bip39 to v2
1 parent 144ce49 commit f2e209f

File tree

6 files changed

+29
-22
lines changed

6 files changed

+29
-22
lines changed

.changeset/dry-heads-dream.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@fleet-sdk/wallet": patch
3+
---
4+
5+
Bump `@scure/bip39` to `v2`

packages/wallet/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@fleet-sdk/serializer": "workspace:^",
4646
"@noble/curves": "^2.0.1",
4747
"@scure/bip32": "^1.7.0",
48-
"@scure/bip39": "^1.6.0"
48+
"@scure/bip39": "^2.0.1"
4949
},
5050
"engines": {
5151
"node": ">=18"

packages/wallet/src/mnemonic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { generateMnemonic as generate, validateMnemonic as validate } from "@scure/bip39";
2-
import { wordlist as english } from "@scure/bip39/wordlists/english";
2+
import { wordlist as english } from "@scure/bip39/wordlists/english.js";
33

44
export function generateMnemonic(strength = 160, wordlist = english): string {
55
return generate(wordlist, strength);

packages/wallet/src/wordlists.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import {
88
korean,
99
portuguese,
1010
simplifiedChinese,
11-
spanish,
12-
traditionalChinese
11+
spanish
1312
} from "./wordlists";
1413

1514
describe("wordlists", () => {
@@ -18,7 +17,6 @@ describe("wordlists", () => {
1817
expect(english).to.have.length(wordlistLength);
1918
expect(portuguese).to.have.length(wordlistLength);
2019
expect(simplifiedChinese).to.have.length(wordlistLength);
21-
expect(traditionalChinese).to.have.length(wordlistLength);
2220
expect(czech).to.have.length(wordlistLength);
2321
expect(french).to.have.length(wordlistLength);
2422
expect(italian).to.have.length(wordlistLength);

packages/wallet/src/wordlists.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
export { wordlist as english } from "@scure/bip39/wordlists/english";
2-
export { wordlist as japanese } from "@scure/bip39/wordlists/japanese";
3-
export { wordlist as korean } from "@scure/bip39/wordlists/korean";
4-
export { wordlist as spanish } from "@scure/bip39/wordlists/spanish";
5-
export { wordlist as simplifiedChinese } from "@scure/bip39/wordlists/simplified-chinese";
6-
export { wordlist as traditionalChinese } from "@scure/bip39/wordlists/traditional-chinese";
7-
export { wordlist as french } from "@scure/bip39/wordlists/french";
8-
export { wordlist as italian } from "@scure/bip39/wordlists/italian";
9-
export { wordlist as portuguese } from "@scure/bip39/wordlists/portuguese";
10-
export { wordlist as czech } from "@scure/bip39/wordlists/czech";
1+
export { wordlist as english } from "@scure/bip39/wordlists/english.js";
2+
export { wordlist as japanese } from "@scure/bip39/wordlists/japanese.js";
3+
export { wordlist as korean } from "@scure/bip39/wordlists/korean.js";
4+
export { wordlist as spanish } from "@scure/bip39/wordlists/spanish.js";
5+
export { wordlist as simplifiedChinese } from "@scure/bip39/wordlists/simplified-chinese.js";
6+
export { wordlist as french } from "@scure/bip39/wordlists/french.js";
7+
export { wordlist as italian } from "@scure/bip39/wordlists/italian.js";
8+
export { wordlist as portuguese } from "@scure/bip39/wordlists/portuguese.js";
9+
export { wordlist as czech } from "@scure/bip39/wordlists/czech.js";

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)