Skip to content

Commit f626ebc

Browse files
authored
chore: update dependencies, add vite, support node 24, drop node 18 (#72)
1 parent a4f1969 commit f626ebc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1792
-1128
lines changed

.changeset/empty-dolls-tickle.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@openwallet-foundation/askar-react-native": minor
3+
"@openwallet-foundation/askar-nodejs": minor
4+
"@openwallet-foundation/askar-shared": minor
5+
---
6+
7+
chore: drop support for Node 18

.changeset/little-rice-obey.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@openwallet-foundation/askar-nodejs": patch
3+
---
4+
5+
feat: support Node.JS 24

.changeset/tough-garlics-build.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@openwallet-foundation/askar-nodejs": minor
3+
---
4+
5+
rewrite the Node.JS FFI integration based on Koffi. This enabled Node.JS 24 support and provides a more modern integration

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup NodeJS
2424
uses: actions/setup-node@v6
2525
with:
26-
node-version: 22
26+
node-version: 24
2727
cache: "pnpm"
2828

2929
- name: Install dependencies
@@ -43,7 +43,7 @@ jobs:
4343
strategy:
4444
fail-fast: false
4545
matrix:
46-
node-version: [18, 20, 22]
46+
node-version: [20, 22, 24]
4747

4848
steps:
4949
- name: Checkout Repo

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup NodeJS
2222
uses: actions/setup-node@v6
2323
with:
24-
node-version: 22
24+
node-version: 24
2525
cache: "pnpm"
2626

2727
- name: Install Dependencies
@@ -62,7 +62,7 @@ jobs:
6262
- name: Setup NodeJS
6363
uses: actions/setup-node@v6
6464
with:
65-
node-version: 20
65+
node-version: 24
6666
cache: "pnpm"
6767

6868
- name: Install Dependencies

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ packages/askar-react-native/android/.cxx
1717
examples/askar-react-native-example/android
1818
examples/askar-react-native-example/ios
1919
examples/askar-react-native-example/.expo
20+
21+
indy_wallet_sqlite_upgraded.db

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ The JavaScript wrapper is versioned independently from the native bindings. The
2424
| v0.3.0 - v0.3.1 | v0.4.1 | - | - |
2525
| v0.4.0 - v0.4.2 | v0.4.5 | 0.75 - 0.79 | 18, 20, 22 |
2626
| v0.4.3 | v0.4.6 | 0.75 - 0.79 | 18, 20, 22 |
27+
| v0.5.0 | v0.4.6 | 0.75 - 0.79 | 20, 22, 24 |

biome.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.7/schema.json",
33
"formatter": {
44
"lineWidth": 120,
55
"indentStyle": "space"
@@ -21,8 +21,10 @@
2121
"allowComments": true
2222
}
2323
},
24-
"organizeImports": {
25-
"enabled": true
24+
"assist": {
25+
"actions": {
26+
"source": { "organizeImports": "on" }
27+
}
2628
},
2729
"linter": {
2830
"enabled": true,

lerna.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,26 @@
77
"url": "https://github.com/openwallet-foundation/askar-wrapper-javascript"
88
},
99
"engines": {
10-
"node": ">= 18"
10+
"node": ">= 20"
1111
},
1212
"scripts": {
13-
"style:check": "biome check --unsafe .",
13+
"style:check": "biome check --unsafe",
1414
"style:fix": "pnpm style:check --write",
1515
"types:check": "pnpm -r types:check",
1616
"build": "pnpm -r build",
1717
"clean": "pnpm -r clean",
18-
"test": "node --import tsx --test packages/**/tests/*.test.ts",
18+
"test": "vitest",
1919
"release": "pnpm build && pnpm changeset publish --no-git-tag",
2020
"changeset-version": "pnpm changeset version && pnpm style:fix"
2121
},
2222
"devDependencies": {
23-
"@biomejs/biome": "catalog:",
23+
"@biomejs/biome": "^2.3.7",
2424
"@changesets/cli": "catalog:",
2525
"@types/node": "catalog:",
2626
"rimraf": "catalog:",
27-
"tsx": "catalog:",
28-
"typescript": "catalog:"
27+
"typescript": "catalog:",
28+
"vite-tsconfig-paths": "^5.1.4",
29+
"vitest": "^4.0.12"
2930
},
3031
"packageManager": "[email protected]+sha256.c1da43727ccbc1ed42aff4fd6bdb4b1e91e65a818e6efff5b240fbf070ba4eaf"
3132
}

0 commit comments

Comments
 (0)