Skip to content

Commit

Permalink
Bump deps. Improve ESM compat
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Sep 3, 2024
1 parent fd24c1f commit 8cb0615
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 52 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ jobs:
strategy:
matrix:
node:
- 14
- 16
- 18
- 20
- 22
steps:
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
- name: Use Node.js ${{ matrix.node }}
Expand Down
12 changes: 6 additions & 6 deletions build/package-lock.json

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

29 changes: 16 additions & 13 deletions package-lock.json

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

47 changes: 17 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "@scure/bip39",
"version": "1.3.0",
"description": "Secure, audited & minimal implementation of BIP39 mnemonic phrases",
"main": "index.js",
"files": [
"index.js",
"index.d.ts",
Expand All @@ -11,14 +10,12 @@
"esm",
"src/index.ts"
],
"types": "index.d.ts",
"sideEffects": false,
"dependencies": {
"@noble/hashes": "~1.4.0",
"@scure/base": "~1.1.6"
"@noble/hashes": "~1.5.0",
"@scure/base": "~1.1.7"
},
"devDependencies": {
"@paulmillr/jsbt": "0.1.0",
"@paulmillr/jsbt": "0.2.1",
"micro-should": "0.4.0",
"prettier": "3.3.2",
"typescript": "5.5.2"
Expand Down Expand Up @@ -48,66 +45,56 @@
"fetch-wordlist": "./scripts/fetch-wordlist.js"
},
"sideEffects": false,
"main": "index.js",
"types": "./index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./esm/index.js",
"default": "./index.js"
"require": "./index.js"
},
"./index": {
"types": "./index.d.ts",
"import": "./esm/index.js",
"default": "./index.js"
"require": "./index.js"
},
"./wordlists/czech": {
"types": "./wordlists/czech.d.ts",
"import": "./esm/wordlists/czech.js",
"default": "./wordlists/czech.js"
"require": "./wordlists/czech.js"
},
"./wordlists/english": {
"types": "./wordlists/english.d.ts",
"import": "./esm/wordlists/english.js",
"default": "./wordlists/english.js"
"require": "./wordlists/english.js"
},
"./wordlists/french": {
"types": "./wordlists/french.d.ts",
"import": "./esm/wordlists/french.js",
"default": "./wordlists/french.js"
"require": "./wordlists/french.js"
},
"./wordlists/italian": {
"types": "./wordlists/italian.d.ts",
"import": "./esm/wordlists/italian.js",
"default": "./wordlists/italian.js"
"require": "./wordlists/italian.js"
},
"./wordlists/japanese": {
"types": "./wordlists/japanese.d.ts",
"import": "./esm/wordlists/japanese.js",
"default": "./wordlists/japanese.js"
"require": "./wordlists/japanese.js"
},
"./wordlists/korean": {
"types": "./wordlists/korean.d.ts",
"import": "./esm/wordlists/korean.js",
"default": "./wordlists/korean.js"
"require": "./wordlists/korean.js"
},
"./wordlists/portuguese": {
"types": "./wordlists/portuguese.d.ts",
"import": "./esm/wordlists/portuguese.js",
"default": "./wordlists/portuguese.js"
"require": "./wordlists/portuguese.js"
},
"./wordlists/simplified-chinese": {
"types": "./wordlists/simplified-chinese.d.ts",
"import": "./esm/wordlists/simplified-chinese.js",
"default": "./wordlists/simplified-chinese.js"
"require": "./wordlists/simplified-chinese.js"
},
"./wordlists/spanish": {
"types": "./wordlists/spanish.d.ts",
"import": "./esm/wordlists/spanish.js",
"default": "./wordlists/spanish.js"
"require": "./wordlists/spanish.js"
},
"./wordlists/traditional-chinese": {
"types": "./wordlists/traditional-chinese.d.ts",
"import": "./esm/wordlists/traditional-chinese.js",
"default": "./wordlists/traditional-chinese.js"
"require": "./wordlists/traditional-chinese.js"
}
},
"keywords": [
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "@paulmillr/jsbt/tsconfigs/esm.json",
"extends": "@paulmillr/jsbt/tsconfig.esm.json",
"compilerOptions": {
"sourceMap": false,
"declarationMap": false,
"outDir": "./esm"
},
"include": ["index.ts", "src"],
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"extends": "@paulmillr/jsbt/tsconfigs/cjs.json",
"extends": "@paulmillr/jsbt/tsconfig.cjs.json",
"compilerOptions": {
"sourceMap": false,
"outDir": "."
"declarationMap": false,
"outDir": ".",
},
"include": ["index.ts", "src"],
"exclude": ["node_modules", "lib"]
Expand Down

0 comments on commit 8cb0615

Please sign in to comment.