@qalqi/headless-hermes 0.2.0 → 0.2.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.
Files changed (2) hide show
  1. package/README.md +33 -1
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -134,7 +134,22 @@ $ npx napi-host demo/app.js
134
134
  hello from Node-API | add(20, 22) = 42
135
135
  ```
136
136
 
137
- Async work, thread-safe functions and Promises work: the host runs the event loop they need.
137
+ The host runs the event loop addons need, and they behave as on Node:
138
+ - **Async work**, and **Promises** resolved from other threads.
139
+ - **Thread-safe functions**: a referenced one keeps the process alive, and after `unref`/`release` it exits.
140
+ - **External array buffers**, **finalizers** and **env cleanup hooks**.
141
+
142
+ `gc()` is always there (Hermes' own), so a test can collect garbage and check that its finalizers ran. Every addon
143
+ example in the repository prints the same output on `napi-host` as on Node, and CI runs them under AddressSanitizer
144
+ and Valgrind.
145
+
146
+ **Which Node-API functions?** `napi-host` exports all 155 functions of Node-API 10. Each
147
+ [release](https://github.com/qalqi/headless-hermes-jsi-node-api/releases) attaches `node-api-conformance.md` and
148
+ `.json`, which give for every function:
149
+ - the Node-API version it arrived in;
150
+ - whether `napi-host` exports it;
151
+ - which tested examples call it;
152
+ - known differences: external strings are always copied, and `napi_adjust_external_memory` only keeps a count.
138
153
 
139
154
  ## What you get
140
155
 
@@ -166,6 +181,23 @@ so each tarball links to the run and source that built it.
166
181
  Only need `hermesc` to compile bytecode for a React Native release build? Use Meta's
167
182
  [`hermes-compiler`](https://www.npmjs.com/package/hermes-compiler). This package is for running and embedding Hermes.
168
183
 
184
+ ## What's new in 0.2.1
185
+
186
+ - **Hermes** `static_h` [`64d47e22`](https://github.com/facebook/hermes/commit/64d47e22398073ca6a5ae65249ddcc65e85df3fd)
187
+ (2026-11-30). 0.2.0 was built on `d41288df`.
188
+ - **The Node-API lifecycle is tested against Node.** New examples cover:
189
+ - external array buffers;
190
+ - blocking thread-safe functions;
191
+ - event-loop liveness (`ref`/`unref`/`release`);
192
+ - finalizers after `gc()`;
193
+ - env cleanup hooks.
194
+
195
+ Each prints the same output on `napi-host` as on Node.
196
+ - **Memory-checked.** The addon examples and their stress variants (8 threads × 256 calls) run under
197
+ AddressSanitizer/LeakSanitizer and Valgrind in CI.
198
+ - **A Node-API conformance table** comes with every release: `node-api-conformance.md` and `.json`. All 155 functions
199
+ of Node-API 10 are exported.
200
+
169
201
  ## License
170
202
 
171
203
  Packaging: Apache-2.0. Hermes: MIT, Meta Platforms, Inc. and affiliates (`LICENSE-hermes` in each platform package).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qalqi/headless-hermes",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Hermes JavaScript engine for headless use (no React Native): hermes and hermesc, hermes-jsi-run (a JSI host for native libraries) and napi-host (Node-API addons on Hermes), the runtime library and headers, prebuilt per platform",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -34,11 +34,11 @@
34
34
  "node": ">=18"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@qalqi/headless-hermes-linux-x64": "0.2.0",
38
- "@qalqi/headless-hermes-linux-arm64": "0.2.0",
39
- "@qalqi/headless-hermes-darwin-arm64": "0.2.0"
37
+ "@qalqi/headless-hermes-linux-x64": "0.2.1",
38
+ "@qalqi/headless-hermes-linux-arm64": "0.2.1",
39
+ "@qalqi/headless-hermes-darwin-arm64": "0.2.1"
40
40
  },
41
41
  "hermes": {
42
- "commit": "d41288df5432666c832abc2b2d8d53a14c1ec3de"
42
+ "commit": "64d47e22398073ca6a5ae65249ddcc65e85df3fd"
43
43
  }
44
44
  }