Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/empty-dolls-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@openwallet-foundation/askar-react-native": minor
"@openwallet-foundation/askar-nodejs": minor
"@openwallet-foundation/askar-shared": minor
---

chore: drop support for Node 18
5 changes: 5 additions & 0 deletions .changeset/little-rice-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@openwallet-foundation/askar-nodejs": patch
---

feat: support Node.JS 24
5 changes: 5 additions & 0 deletions .changeset/tough-garlics-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@openwallet-foundation/askar-nodejs": minor
---

rewrite the Node.JS FFI integration based on Koffi. This enabled Node.JS 24 support and provides a more modern integration
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup NodeJS
uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
cache: "pnpm"

- name: Install dependencies
Expand All @@ -43,7 +43,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18, 20, 22]
node-version: [20, 22, 24]

steps:
- name: Checkout Repo
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup NodeJS
uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
cache: "pnpm"

- name: Install Dependencies
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Setup NodeJS
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24
cache: "pnpm"

- name: Install Dependencies
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ packages/askar-react-native/android/.cxx
examples/askar-react-native-example/android
examples/askar-react-native-example/ios
examples/askar-react-native-example/.expo

indy_wallet_sqlite_upgraded.db
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ The JavaScript wrapper is versioned independently from the native bindings. The
| v0.3.0 - v0.3.1 | v0.4.1 | - | - |
| v0.4.0 - v0.4.2 | v0.4.5 | 0.75 - 0.79 | 18, 20, 22 |
| v0.4.3 | v0.4.6 | 0.75 - 0.79 | 18, 20, 22 |
| v0.5.0 | v0.4.6 | 0.75 - 0.79 | 20, 22, 24 |
8 changes: 5 additions & 3 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"$schema": "https://biomejs.dev/schemas/2.3.7/schema.json",
"formatter": {
"lineWidth": 120,
"indentStyle": "space"
Expand All @@ -21,8 +21,10 @@
"allowComments": true
}
},
"organizeImports": {
"enabled": true
"assist": {
"actions": {
"source": { "organizeImports": "on" }
}
},
"linter": {
"enabled": true,
Expand Down
10 changes: 0 additions & 10 deletions lerna.json

This file was deleted.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,26 @@
"url": "https://github.com/openwallet-foundation/askar-wrapper-javascript"
},
"engines": {
"node": ">= 18"
"node": ">= 20"
},
"scripts": {
"style:check": "biome check --unsafe .",
"style:check": "biome check --unsafe",
"style:fix": "pnpm style:check --write",
"types:check": "pnpm -r types:check",
"build": "pnpm -r build",
"clean": "pnpm -r clean",
"test": "node --import tsx --test packages/**/tests/*.test.ts",
"test": "vitest",
"release": "pnpm build && pnpm changeset publish --no-git-tag",
"changeset-version": "pnpm changeset version && pnpm style:fix"
},
"devDependencies": {
"@biomejs/biome": "catalog:",
"@biomejs/biome": "^2.3.7",
"@changesets/cli": "catalog:",
"@types/node": "catalog:",
"rimraf": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:"
"typescript": "catalog:",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^4.0.12"
},
"packageManager": "[email protected]+sha256.c1da43727ccbc1ed42aff4fd6bdb4b1e91e65a818e6efff5b240fbf070ba4eaf"
}
4 changes: 2 additions & 2 deletions packages/askar-nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

Wrapper for Node.Js around Askar

See the [project README](https://github.com/openwallet-foundation/askar-wrapper-javascript) for version compatability between Askar and this JavaScript Wrapper.
See the [project README](https://github.com/openwallet-foundation/askar-wrapper-javascript) for version compatibility between Askar and this JavaScript Wrapper.

## Requirements

This library requires and has been tested with Node.js version `18.x`, `20.x` and `22.x`. Newer versions might also work, but they have not been tested.
This library requires and has been tested with Node.js version `20.x`, `22.x`, and `24.x`. Newer versions might also work, but they have not been tested.

## Installation

Expand Down
14 changes: 6 additions & 8 deletions packages/askar-nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
"publishConfig": {
"access": "public"
},
"files": ["build", "scripts"],
"files": [
"build",
"scripts"
],
"scripts": {
"types:check": "pnpm compile --noEmit",
"build": "pnpm clean && pnpm compile",
Expand All @@ -24,16 +27,11 @@
"install": "node scripts/install.js"
},
"dependencies": {
"@2060.io/ffi-napi": "^4.0.9",
"@2060.io/ref-napi": "^3.0.6",
"@openwallet-foundation/askar-shared": "workspace:*",
"ref-array-di": "^1.2.2",
"ref-struct-di": "^1.1.1"
"koffi": "^2.9.0"
},
"devDependencies": {
"@types/node": "catalog:",
"@types/ref-array-di": "^1.2.3",
"@types/ref-struct-di": "^1.1.6",
"typescript": "catalog:"
},
"binary": {
Expand All @@ -42,6 +40,6 @@
"packageName": "library-{platform}-{arch}.tar.gz"
},
"engines": {
"node": ">= 18"
"node": ">= 20"
}
}
Loading