Offload functions to worker threads with shared memory primitives for Node.js.
8
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: version 1.2.2

+7 -6
-5
.changeset/tuple-in-struct-serialize.md
··· 1 - --- 2 - 'moroutine': patch 3 - --- 4 - 5 - Fix task-arg roundtrip of `SharedStruct` with a `Tuple`-typed field (and `Tuple` with a `Tuple` element). The recursive `serializeStructField` helper was missing a `Tuple` branch, so a tuple nested inside another shared container would serialize as `{ __shared__: 'Tuple' }` with no `elements`, and worker-side deserialization crashed with `Cannot read properties of undefined (reading 'map')`. `serializeStructField` now mirrors the top-level `serializeArg` for tuples, recursing into elements. Struct-in-struct, tuple-alone, and tuple-of-structs were already handled; struct-with-tuple-field, tuple-of-tuples, and deeper combinations now work too.
+6
CHANGELOG.md
··· 1 1 # moroutine 2 2 3 + ## 1.2.2 4 + 5 + ### Patch Changes 6 + 7 + - cdd5c83: Fix task-arg roundtrip of `SharedStruct` with a `Tuple`-typed field (and `Tuple` with a `Tuple` element). The recursive `serializeStructField` helper was missing a `Tuple` branch, so a tuple nested inside another shared container would serialize as `{ __shared__: 'Tuple' }` with no `elements`, and worker-side deserialization crashed with `Cannot read properties of undefined (reading 'map')`. `serializeStructField` now mirrors the top-level `serializeArg` for tuples, recursing into elements. Struct-in-struct, tuple-alone, and tuple-of-structs were already handled; struct-with-tuple-field, tuple-of-tuples, and deeper combinations now work too. 8 + 3 9 ## 1.2.1 4 10 5 11 ### Patch Changes
+1 -1
package.json
··· 1 1 { 2 2 "name": "moroutine", 3 - "version": "1.2.1", 3 + "version": "1.2.2", 4 4 "repository": { 5 5 "type": "git", 6 6 "url": "git@tangled.org:divy.zone/moroutine"