@gjsify/sab-native 0.25.1 → 0.26.0
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/lib/types/index.d.ts +1 -1
- package/package.json +3 -3
package/lib/types/index.d.ts
CHANGED
|
@@ -162,7 +162,7 @@ export declare class SharedBuffer {
|
|
|
162
162
|
* call requires a `JSContext*` which GJS does not expose to
|
|
163
163
|
* GObject-introspected `.so` plugins. The fix has to land in GJS
|
|
164
164
|
* itself (e.g. a `byteArray.fromGBytesShared` helper). Tracked under
|
|
165
|
-
*
|
|
165
|
+
* status/upstream-patch-candidates.md.
|
|
166
166
|
*
|
|
167
167
|
* Modifications to the returned array therefore do NOT propagate back
|
|
168
168
|
* to the region — use `writeBytes()` to commit changes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/sab-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "Optional Vala/GObject bridge providing cross-process shared memory + atomics for @gjsify/worker_threads. Wraps Linux memfd_create(2) + mmap(MAP_SHARED) to back JS-visible SharedBuffer regions whose fds can be passed to child workers via SCM_RIGHTS over a Unix-domain socket; exposes typed accessors (getInt32LE / setUint8 / etc.) plus atomics built on __atomic_* GCC builtins and SYS_futex for wait/notify. Workaround for the stock-GJS gap where SharedArrayBuffer is unavailable (Mozilla disables the SAB constructor without COOP/COEP opts) and SAB cannot share backing stores across Gio.Subprocess workers anyway.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/esm/index.js",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"@girs/gio-2.0": "^4.1.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@gjsify/cli": "^0.
|
|
74
|
-
"@gjsify/unit": "^0.
|
|
73
|
+
"@gjsify/cli": "^0.26.0",
|
|
74
|
+
"@gjsify/unit": "^0.26.0",
|
|
75
75
|
"@ts-for-gir/cli": "^4.1.0",
|
|
76
76
|
"@types/node": "^25.9.2",
|
|
77
77
|
"typescript": "^6.0.3"
|