nodejs: lazy per-backend libsimplex download (#7543)

* ci: drop dlltool from nodejs libs release

* nodejs: download libsimplex into the user cache

* nodejs: load libsimplex at runtime per backend

* support bot: select db backend with --db

* python: match backend switch error text

* nodejs: download prebuilt add-on at runtime

* ci: build nodejs add-on for libs release

* calculator bot: load libs and add-on in image

* support bot: document add-on override

* nodejs: keep worker test output free of colors

* nodejs: verify sha-256 of downloaded assets

* python: pin core libs release with sha-256

* ci: add packages release script

* ci: release nodejs add-on and open release PR

* ci: publish packages after release PR

* nodejs: keep npm from building the add-on

* calculator bot: build the add-on in the image

* ci: merge package release workflows

* ci: open release PR when publishing fails

* ci: build the add-on with node-addon-api only

* ci: skip publishing in a called packages workflow

* ci: update package release actions to Node 24

* nodejs: fix receive test timeout

* ci: test packages on pull requests

* nodejs: reuse the database in the close stress test

* ci: keep failed package tests from hanging

* ci: skip preset server tests

* ci: plan package builds from the changes

* ci: test packages with a given libsimplex

* ci: test packages with libsimplex of core changes
This commit is contained in:
sh authored and GitHub committed 2026-10-14 09:53:53 +01:00
1 parent 2f4a443dda
commit f65c2da587
73 files changed
+2823 -650

No files matched your search

+7 -7
View File
@@ -3,20 +3,20 @@
"version": "7.1.0-beta.6.2",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"gypfile": false,
"bin": {
"simplex-chat": "dist/cli.js"
},
"files": [
"src",
"cpp",
"dist",
"binding.gyp",
"tsconfig.json",
"docs",
"examples"
],
"scripts": {
"preinstall": "node src/download-libs.js",
"install": "node-gyp configure; node-gyp rebuild --release",
"install-tools": "npm install -g node-gyp",
"configure": "node-gyp configure; mkdir libs 2> /dev/null | true",
"configure": "node-gyp configure",
"build": "node-gyp rebuild && tsc && cp ./src/simplex.* ./dist",
"run": "node src/index.js",
"build-run": "node-gyp build && node src/index.js",
@@ -26,13 +26,13 @@
"dependencies": {
"@simplex-chat/types": "^0.12.1",
"extract-zip": "^2.0.1",
"fast-deep-equal": "^3.1.3",
"node-addon-api": "^8.5.0"
"fast-deep-equal": "^3.1.3"
},
"devDependencies": {
"@types/jest": "^30.0.0",
"@types/node": "^25.0.5",
"jest": "^30.2.0",
"node-addon-api": "^8.5.0",
"ts-jest": "^29.4.6",
"typedoc": "^0.28.15",
"typedoc-plugin-markdown": "^4.9.0",