@minip2p/node 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/package.json +17 -15
package/README.md
CHANGED
|
@@ -21,6 +21,8 @@ endpoint.close();
|
|
|
21
21
|
|
|
22
22
|
The Node binding accepts the same TCP, QUIC, circuit-relay, signed-discovery, and mDNS configuration as `@minip2p/react-native`.
|
|
23
23
|
|
|
24
|
+
For a runnable two-peer example, see the [Node.js ping example](https://github.com/deepso7/minip2p/tree/main/examples/nodejs).
|
|
25
|
+
|
|
24
26
|
## Development
|
|
25
27
|
|
|
26
28
|
Build the package from this repository and run its test suite with:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minip2p/node",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Node.js bindings for minip2p",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libp2p",
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
"registry": "https://registry.npmjs.org/"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@minip2p/core": "0.5.
|
|
39
|
+
"@minip2p/core": "0.5.4"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@minip2p/test-fixtures": "0.0.0",
|
|
43
|
-
"@napi-rs/cli": "3.
|
|
44
|
-
"@types/node": "26.
|
|
43
|
+
"@napi-rs/cli": "3.9.0",
|
|
44
|
+
"@types/node": "26.5.0",
|
|
45
45
|
"del-cli": "7.0.0",
|
|
46
46
|
"typescript": "7.0.2"
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@minip2p/node-darwin-arm64": "0.5.
|
|
50
|
-
"@minip2p/node-darwin-x64": "0.5.
|
|
51
|
-
"@minip2p/node-linux-arm64-gnu": "0.5.
|
|
52
|
-
"@minip2p/node-linux-arm64-musl": "0.5.
|
|
53
|
-
"@minip2p/node-linux-x64-gnu": "0.5.
|
|
54
|
-
"@minip2p/node-linux-x64-musl": "0.5.
|
|
55
|
-
"@minip2p/node-win32-x64-msvc": "0.5.
|
|
49
|
+
"@minip2p/node-darwin-arm64": "0.5.4",
|
|
50
|
+
"@minip2p/node-darwin-x64": "0.5.4",
|
|
51
|
+
"@minip2p/node-linux-arm64-gnu": "0.5.4",
|
|
52
|
+
"@minip2p/node-linux-arm64-musl": "0.5.4",
|
|
53
|
+
"@minip2p/node-linux-x64-gnu": "0.5.4",
|
|
54
|
+
"@minip2p/node-linux-x64-musl": "0.5.4",
|
|
55
|
+
"@minip2p/node-win32-x64-msvc": "0.5.4"
|
|
56
56
|
},
|
|
57
57
|
"napi": {
|
|
58
58
|
"binaryName": "minip2p",
|
|
@@ -70,14 +70,16 @@
|
|
|
70
70
|
"node": ">=24"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
|
-
"bench": "vitest bench --run --
|
|
73
|
+
"bench": "vitest bench --run --reporter=default --reporter=json --outputFile ../../../target/bench-node-vitest.json && python3 ../../../scripts/bench_results.py vitest --report ../../../target/bench-node-vitest.json --output ../../../target/bench-results/node-ffi.json --git-sha \"${BENCH_GIT_SHA:-$(git rev-parse HEAD)}\"",
|
|
74
74
|
"build": "del-cli dist && tsc -p tsconfig.build.json",
|
|
75
75
|
"clean": "del-cli dist",
|
|
76
76
|
"native:build": "napi build --platform --no-js --dts ../../../target/minip2p-nodejs.d.ts --release --manifest-path ../../../crates/nodejs/Cargo.toml --output-dir . -- --locked",
|
|
77
77
|
"native:build:target": "napi build --platform --no-js --dts ../../../target/minip2p-nodejs.d.ts --release --manifest-path ../../../crates/nodejs/Cargo.toml --output-dir .",
|
|
78
78
|
"pretest": "cargo build --locked -p minip2p-relay-server-example",
|
|
79
|
-
"test": "vitest run
|
|
80
|
-
"test:watch": "vitest
|
|
81
|
-
"typecheck": "tsc -p tsconfig.json"
|
|
79
|
+
"test": "vitest run",
|
|
80
|
+
"test:watch": "vitest",
|
|
81
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
82
|
+
"native:artifacts": "napi artifacts --cwd ../../.. --package-json-path bindings/ts/node/package.json --npm-dir bindings/ts/node-platforms --output-dir bindings/ts/node/artifacts",
|
|
83
|
+
"native:prepublish": "napi prepublish --cwd ../../.. --package-json-path bindings/ts/node/package.json --npm-dir bindings/ts/node-platforms -t npm --no-gh-release"
|
|
82
84
|
}
|
|
83
85
|
}
|