node-ctypes 2.11.0 → 2.11.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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.11.1] - 2026-11-10
11
+
12
+ ### Fixed
13
+
14
+ - **Worker termination during a call**: terminating a worker thread (or any
15
+ environment shutdown) while a node-ctypes call was being prepared or
16
+ completed could abort the process with `std::terminate` (an empty
17
+ `Napi::Error`): Node-API can no longer throw a JavaScript exception there,
18
+ and the C++ exception escaped the native callback.
19
+ Such exceptions are now discarded during shutdown
20
+ (`NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS`), and the executor and async call
21
+ teardown paths no longer let C++ exceptions escape destructors or the
22
+ completion callback.
23
+
24
+ ### Added
25
+
26
+ - **Regression test**: workers terminated at random points while they make
27
+ sync, `callAsync` and `callOn` calls.
28
+
10
29
  ## [2.11.0] - 2026-11-10
11
30
 
12
31
  ### Added
@@ -1181,7 +1200,8 @@ It contains breaking changes: see [Migrating from 1.x](README.md#migrating-from-
1181
1200
 
1182
1201
  Initial releases.
1183
1202
 
1184
- [Unreleased]: https://github.com/dmazzella/node-ctypes/compare/v2.11.0...HEAD
1203
+ [Unreleased]: https://github.com/dmazzella/node-ctypes/compare/v2.11.1...HEAD
1204
+ [2.11.1]: https://github.com/dmazzella/node-ctypes/compare/v2.11.0...v2.11.1
1185
1205
  [2.11.0]: https://github.com/dmazzella/node-ctypes/compare/v2.10.0...v2.11.0
1186
1206
  [2.10.0]: https://github.com/dmazzella/node-ctypes/compare/v2.9.0...v2.10.0
1187
1207
  [2.9.0]: https://github.com/dmazzella/node-ctypes/compare/v2.8.0...v2.9.0
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-ctypes",
3
- "version": "2.11.0",
3
+ "version": "2.11.1",
4
4
  "description": "Python ctypes-like FFI for Node.js using libffi",
5
5
  "author": "Damiano Mazzella",
6
6
  "license": "MIT",