@push.rocks/smartvpn 2.7.0 → 2.7.1

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.
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "format": "tsrust.build-provenance.v2",
3
- "binarySha256": "9a5aed62511c9afb659443f5274fdf71fd168206722b3c474f17311e761f8683",
3
+ "binarySha256": "e06e9bec1206146c13370d105610c056dd3684cca29d1280e7befd5a08c34e99",
4
4
  "buildInfo": {
5
5
  "projectName": "@push.rocks/smartvpn",
6
- "projectVersion": "2.7.0",
7
- "gitCommit": "02b302a29e212742fa3e1a9e2160f3858e0d6ea7",
6
+ "projectVersion": "2.7.1",
7
+ "gitCommit": "d1bbbeaec9ed99d89334375aa615471c3f2615ef",
8
8
  "gitDirty": false,
9
- "builtAt": "2026-10-14T23:00:02.136Z",
10
- "tsrustVersion": "4.5.1",
9
+ "builtAt": "2026-10-26T21:48:04.722Z",
10
+ "tsrustVersion": "1.1.1",
11
11
  "binary": "smartvpn_daemon",
12
12
  "target": "linux_amd64_musl"
13
13
  }
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "format": "tsrust.build-provenance.v2",
3
- "binarySha256": "c09d9af20517c278fbcee6db74e24a44447ab3e173e88955a2b595cd796b3603",
3
+ "binarySha256": "8ae1a19ef3b0b11251a3af628ef1caaf7ff81d0c66b8033c32fccf8da4271e77",
4
4
  "buildInfo": {
5
5
  "projectName": "@push.rocks/smartvpn",
6
- "projectVersion": "2.7.0",
7
- "gitCommit": "02b302a29e212742fa3e1a9e2160f3858e0d6ea7",
6
+ "projectVersion": "2.7.1",
7
+ "gitCommit": "d1bbbeaec9ed99d89334375aa615471c3f2615ef",
8
8
  "gitDirty": false,
9
- "builtAt": "2026-10-14T23:02:32.733Z",
10
- "tsrustVersion": "4.5.1",
9
+ "builtAt": "2026-10-26T21:50:58.538Z",
10
+ "tsrustVersion": "1.1.1",
11
11
  "binary": "smartvpn_daemon",
12
12
  "target": "linux_arm64_musl"
13
13
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@push.rocks/smartvpn',
6
- version: '2.7.0',
6
+ version: '2.7.1',
7
7
  description: 'A VPN solution with TypeScript control plane and Rust data plane daemon'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxzQkFBc0I7SUFDNUIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHlFQUF5RTtDQUN2RixDQUFBIn0=
@@ -1602,6 +1602,32 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
1602
1602
  IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1603
1603
  DEALINGS IN THE SOFTWARE.</pre>
1604
1604
  </section>
1605
+ <section>
1606
+ <h2>MIT License (MIT)</h2>
1607
+ <ul>
1608
+ <li>tikv-jemalloc-ctl 0.7.0</li>
1609
+ </ul>
1610
+ <pre>Copyright (c) 2017 Steven Fackler
1611
+
1612
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1613
+ of this software and associated documentation files (the &quot;Software&quot;), to deal
1614
+ in the Software without restriction, including without limitation the rights
1615
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1616
+ copies of the Software, and to permit persons to whom the Software is
1617
+ furnished to do so, subject to the following conditions:
1618
+
1619
+ The above copyright notice and this permission notice shall be included in all
1620
+ copies or substantial portions of the Software.
1621
+
1622
+ THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1623
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1624
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1625
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1626
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1627
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1628
+ SOFTWARE.
1629
+ </pre>
1630
+ </section>
1605
1631
  <section>
1606
1632
  <h2>MIT License (MIT)</h2>
1607
1633
  <ul>
@@ -3534,6 +3560,7 @@ DEALINGS IN THE SOFTWARE.</pre>
3534
3560
  <li>itoa 1.0.17</li>
3535
3561
  <li>once_cell 1.21.3</li>
3536
3562
  <li>parking 2.2.1</li>
3563
+ <li>paste 1.0.15</li>
3537
3564
  <li>pin-project-lite 0.2.16</li>
3538
3565
  <li>piper 0.2.4</li>
3539
3566
  <li>proc-macro2 1.0.106</li>
@@ -5,7 +5,7 @@
5
5
  "files": {
6
6
  "assets/third-party-licenses.md": "6be2373e39312d90eb3571bef614c89df565f98c917795d7aea3497f52ef19f1",
7
7
  "notices/aho-corasick-license.txt": "0f96a83840e146e43c0ec96a22ec1f392e0680e6c1226e6f3ba87e0740af850f",
8
- "notices/cargo-dependencies.html": "39c9877784b7b77bf2a9ba6f4d71fd0c791230ca79b10180b57c578408b3d291",
8
+ "notices/cargo-dependencies.html": "16aba7d84413a8e418b4a2bfb6c1e2ed97fd5df834380501630a5694d37dcc4a",
9
9
  "notices/compiler-builtins-license.txt": "ab6eec6caf0fa5775e411c7a8bc6a45c4ef2956b0980b157ab74fc5cd62a928b",
10
10
  "notices/defmt-license.txt": "0d17b75c1867fd568bcbb735f329d0d4253846c4b756a65e4d440c1e4bd59187",
11
11
  "notices/jemalloc-license.txt": "94aa2caa98c25d942f58b956c71dba6a99ff98fc3a31cbc669fe2a4cd0268b53",
@@ -17,11 +17,11 @@
17
17
  "notices/valuable-license.txt": "ed60d479b8fd1f64e9cbc3de449a16a53ac1b3d1b6aeb9bf9d190a8e93061b44",
18
18
  "rust-toolchain.toml": "19da9ff32e229a69ff5dde28ac23233256ff25e413a8c579155cf641f4f0634f",
19
19
  "rust/.cargo/config.toml": "eb6896791bd573f2cb099aa41c7d3668c6d368166945abd3553c8d8029ba8b7b",
20
- "rust/Cargo.lock": "2e05b92f0002e6bcea69c94b900821bb4fa36bb4f22d3112f186cea1bc761e89",
21
- "rust/Cargo.toml": "f65fa4e7ebaad6aed9fcf66011dd0f0a0f5253b26b656ad672300b99e3040704",
20
+ "rust/Cargo.lock": "1684d251ee05413f0305152879a2a1d993dfb51682a8e393e24cc8cab25bac51",
21
+ "rust/Cargo.toml": "6bf9e1f26e6f137f1a6af8f624e320dcdc14aa07612758d1c095cf8b09bbabb0",
22
22
  "rust/about.hbs": "a7c35d089563a08520a6e5f351aadae659e1f7bf24cabedbca3de8a89e966f86",
23
23
  "rust/about.toml": "a457e0cc7532020c0f87532919a754997213ccbec6211c9501b8c198d404ed72",
24
- "third-party-notices.md": "be663adf30d43caa602953e6b98d91c1b0fe3d221041389fe616bf6fcdf40b00"
24
+ "third-party-notices.md": "97f0781c96dd6628f6a3488f1f1e7706012d7c8a8deace551009d06fad8e16a1"
25
25
  },
26
26
  "supplementalCargoNotices": {
27
27
  "aho-corasick@1.1.4": "notices/aho-corasick-license.txt",
@@ -664,6 +664,11 @@
664
664
  "version": "0.9.12",
665
665
  "license": "MIT OR Apache-2.0"
666
666
  },
667
+ {
668
+ "name": "paste",
669
+ "version": "1.0.15",
670
+ "license": "MIT OR Apache-2.0"
671
+ },
667
672
  {
668
673
  "name": "pem",
669
674
  "version": "3.0.6",
@@ -999,6 +1004,11 @@
999
1004
  "version": "1.1.9",
1000
1005
  "license": "MIT OR Apache-2.0"
1001
1006
  },
1007
+ {
1008
+ "name": "tikv-jemalloc-ctl",
1009
+ "version": "0.7.0",
1010
+ "license": "MIT/Apache-2.0"
1011
+ },
1002
1012
  {
1003
1013
  "name": "tikv-jemalloc-sys",
1004
1014
  "version": "0.7.1+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@push.rocks/smartvpn",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "private": false,
5
5
  "description": "A VPN solution with TypeScript control plane and Rust data plane daemon",
6
6
  "type": "module",
@@ -29,11 +29,9 @@
29
29
  "@push.rocks/smartsea": "^1.0.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@git.zone/tsbuild": "^6.0.2",
33
- "@git.zone/tsrun": "^3.0.3",
34
- "@git.zone/tsrust": "^4.5.1",
35
- "@git.zone/tstest": "^8.0.0",
36
- "@types/node": "^26.6.4"
32
+ "@git.zone/rsrepo": "^1.1.1",
33
+ "@git.zone/tsrepo": "^1.1.1",
34
+ "@types/node": "^26.6.5"
37
35
  },
38
36
  "files": [
39
37
  "ts/**/*",
@@ -55,11 +53,11 @@
55
53
  ]
56
54
  },
57
55
  "scripts": {
58
- "build": "(tsbuild tsfolders) && (tsrust)",
59
- "build:release": "(tsbuild tsfolders) && (tsrust --configured-targets) && (tsrust verify)",
60
- "test:before": "(tsrust)",
61
- "test": "tstest test/ --verbose --logfile --timeout 90",
56
+ "build": "(tsrepo build tsfolders) && (rsrepo)",
57
+ "build:release": "(tsrepo build tsfolders) && (rsrepo --configured-targets) && (rsrepo verify)",
58
+ "test:before": "(rsrepo)",
59
+ "test": "tsrepo test test/ --verbose --logfile --timeout 90",
62
60
  "test:rust": "cd rust && cargo test",
63
- "buildDocs": "tsdoc"
61
+ "buildDocs": "tsrepo docs"
64
62
  }
65
63
  }
package/readme.md CHANGED
@@ -130,7 +130,10 @@ A Linux stdio client accepts `networkNamespaceFd` in `IVpnClientOptions`. Pass a
130
130
  already open network namespace descriptor; the caller retains ownership and keeps
131
131
  it valid through each `start()`. The child validates its inherited duplicate,
132
132
  enters the namespace before creating runtime threads or sockets, then closes the
133
- duplicate. Invalid descriptors and failed entry cannot produce a ready client.
133
+ duplicate. jemalloc's background purge threads start after entry too, so every
134
+ thread of the daemon runs in the namespace. A child that already runs another
135
+ thread at entry, for example under `_RJEM_MALLOC_CONF=background_thread:true`,
136
+ refuses to start. Invalid descriptors and failed entry cannot produce a ready client.
134
137
  Stopping the client waits for process termination before the caller releases its
135
138
  namespace owner. A running child remains in its namespace if the caller closes
136
139
  the original descriptor, but a later start still requires a valid descriptor.
@@ -241,6 +244,19 @@ policy removal, conntrack drainage, delivery of previously queued network packet
241
244
  or safe allocation reuse. IPv6, underlay, workload links, sysctls, global routes and
242
245
  firewall policy remain the caller's responsibility.
243
246
 
247
+ Apart from the retirement on changed or restored kernel inventory above, SmartVPN
248
+ never deletes a device it made unless its owner releases it with `disconnect()` (or
249
+ `stop()`). A prepare accepted before the session stops, whether by transport loss,
250
+ the relay's `Disconnect`, `stopManagedForwarding` or lease expiry, still runs to its
251
+ own end, which its route and audit steps bound (3 seconds each). A TUN it made
252
+ stays, with the same interface index, in the stopped session's custody. Only then
253
+ does the prepare reject, with the stopped session's refusal `Stopped managed session
254
+ cannot restart`, and the `stopped` event follows.
255
+ `inspectManagedSession(generation)` reports phase `stopped` with that device as
256
+ `runtime`; it holds the split routes of the assignment it was prepared for
257
+ (`runtime.assignment`). A rejected prepare therefore does not prove that no device
258
+ exists: inspect, and lower a device that is still there, before disconnecting.
259
+
244
260
  ### Retained managed TUN runtime
245
261
 
246
262
  An authenticated native managed connection with `forwardingMode: 'tun'` returns
@@ -1157,7 +1173,7 @@ pnpm test
1157
1173
  cd rust && cargo test
1158
1174
 
1159
1175
  # Run a specific TS test
1160
- tstest test/test.flowcontrol.node.ts --verbose
1176
+ pnpm exec tsrepo test test/test.flowcontrol.node.ts --verbose
1161
1177
  ```
1162
1178
 
1163
1179
  ### Project Structure
@@ -6,7 +6,7 @@ SmartVPN's own code is MIT-licensed under [license.md](./license.md).
6
6
  ## Cargo dependencies
7
7
 
8
8
  [Cargo dependency notices](./notices/cargo-dependencies.html) reproduce the selected
9
- upstream license and copyright texts for 270 third-party packages. Eight additional
9
+ upstream license and copyright texts for 272 third-party packages. Eight additional
10
10
  locked, feature-inactive packages are covered by these supplemental MIT notices:
11
11
 
12
12
  - [aho-corasick 1.1.4](./notices/aho-corasick-license.txt), from the published crate's `LICENSE-MIT`.
@@ -22,7 +22,7 @@ locked, feature-inactive packages are covered by these supplemental MIT notices:
22
22
  - [valuable 0.1.1](./notices/valuable-license.txt), from
23
23
  [its pinned upstream LICENSE](https://github.com/tokio-rs/valuable/blob/9efc29b6e58cef28f6566a47aa7e142a55fead77/LICENSE).
24
24
 
25
- Together these cover all 278 locked external packages, conservatively including
25
+ Together these cover all 280 locked external packages, conservatively including
26
26
  build-only and target-inactive dependencies. Listing a package does not mean it
27
27
  is linked into either Linux executable. MIT is preferred where offered as an
28
28
  alternative; other selected terms include Apache-2.0, BSD, ISC, Unicode-3.0,
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@push.rocks/smartvpn',
6
- version: '2.7.0',
6
+ version: '2.7.1',
7
7
  description: 'A VPN solution with TypeScript control plane and Rust data plane daemon'
8
8
  }