You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: a release built on the current core #6
The newest release on npm, rayforce-wasm 0.2.1 (2026-08-11), builds core v2.5.13: the Makefile sets RAYFORCE_REF ?= v2.5.13, at the v0.2.1 tag and on master. The core has moved to 3.x since (v3.0.2 is its latest tag), and two of its changes reach a client that decodes what the core sends:
The core's dev (b3b041d2) writes wire version 4 in ser (RAY_SERDE_WIRE_VERSION 4 in src/store/serde.h). 0.2.1 accepts only version 3, so its de of a frame from a current core fails with version: serde wire version mismatch.
The core has added a TIMESPAN type (type 16). 0.2.1 does not know it: decoding a TIMESPAN atom fails with type: deserialize atom: unknown atom type -16, and a literal such as 0D01:00:00 does not parse.
Checked by running 0.2.1 from npm in Node. (de (as 'U8 <bytes>)) was evaluated on the bytes the core's dev gives for (ser 1), which fails with version. With the version byte set to 3, the same bytes decode to 1. The bytes of (ser 0D01:00:00), with the version byte set to 3, fail with the unknown atom type error above.
The request: a release of rayforce-wasm built on a current core tag, and if possible one that follows the core's releases, so that a browser client can read what a current core sends.
Yes, I’ll take this. I’ll update the build to a current core tag and check the wrapper, TIMESPAN handling and decoding of frames from that core in Node and the browser build. I’ll open a PR with the pinned versions and test results; publishing the npm release will be a separate maintainer step.
I found an important version distinction: the latest released core tag, v3.0.2 (d5a44cdb), has TIMESPAN but still uses wire version 3. Updating to that tag alone will not decode current dev’s wire-v4 frames. I’m checking the tagged-core build first and will make this compatibility boundary explicit rather than changing the version byte. The first build also exposed new 32-bit index-layout assertions, so this needs a small WASM adaptation in addition to the version bump.
Draft PR #7 is up with the v3.0.2 build and exact TIMESPAN bindings. Node tests, strict TypeScript checks, native wire-v3 fixtures and Chromium examples passed locally, including engine-side NULL handling and copy-on-write updates. CI is running.
The remaining compatibility decision is explicit in the PR: v3.0.2 still uses wire v3, so this is not yet a solution for current dev’s wire-v4 frames. I’ve asked Anton whether to retain a released tag or pin a tested newer core for that part. Nothing has been published to npm.
The wire-v4 part now has a working private prototype pinned to core fa9bccfd7f96b9248a39b23994f39a15d001b42c. It builds with Emscripten 6.0.6 and decodes real frames generated by a native build of that same commit in both Node and Chromium, including exact TIMESPAN values and a v4 error message. Existing native v3 value fixtures also decode, and the WASM writer emits v4. The smoke/API-contract tests and browser examples passed.
This is separate from the published draft, which still pins v3.0.2. The preview currently uses experimental version metadata and has five wasm32 compiler warnings, so I have not presented it as a release-ready package. Next I’m making the immutable-core build configuration reproducible and extending version-specific error/ownership checks. No npm publication.
Yes. The implementation is in draft PR #7 at bb65e3b9: exact TIMESPAN support and a separately tested immutable core-dev profile that reads/writes wire v4. Node and Chromium tests passed against genuine native v3/v4 frames, including duration values and error messages.
It is not published to npm. The default still pins released core v3.0.2, which uses wire v3; I am waiting on the project decision to ship the tested dev pin or wait for a released wire-v4 core. There is also a known Dict.toJS key-decoding defect covered by separate PR #5, not yet composed into this change.
I let the update linger while handling customer crash support. Sorry for leaving you without a status. The draft is available to inspect, but I am not calling it a completed fix for the default package yet.
Activity
ihrfv commentedon Nov 24, 2026
@morsel-ray it's an easy change, could you please take care of it ?
morsel-ray commentedon Nov 24, 2026
Yes, I’ll take this. I’ll update the build to a current core tag and check the wrapper, TIMESPAN handling and decoding of frames from that core in Node and the browser build. I’ll open a PR with the pinned versions and test results; publishing the npm release will be a separate maintainer step.
morsel-ray commentedon Nov 24, 2026
I found an important version distinction: the latest released core tag, v3.0.2 (
d5a44cdb), has TIMESPAN but still uses wire version 3. Updating to that tag alone will not decode current dev’s wire-v4 frames. I’m checking the tagged-core build first and will make this compatibility boundary explicit rather than changing the version byte. The first build also exposed new 32-bit index-layout assertions, so this needs a small WASM adaptation in addition to the version bump.morsel-ray commentedon Nov 24, 2026
Draft PR #7 is up with the v3.0.2 build and exact TIMESPAN bindings. Node tests, strict TypeScript checks, native wire-v3 fixtures and Chromium examples passed locally, including engine-side NULL handling and copy-on-write updates. CI is running.
The remaining compatibility decision is explicit in the PR: v3.0.2 still uses wire v3, so this is not yet a solution for current dev’s wire-v4 frames. I’ve asked Anton whether to retain a released tag or pin a tested newer core for that part. Nothing has been published to npm.
morsel-ray commentedon Nov 24, 2026
The wire-v4 part now has a working private prototype pinned to core
fa9bccfd7f96b9248a39b23994f39a15d001b42c. It builds with Emscripten 6.0.6 and decodes real frames generated by a native build of that same commit in both Node and Chromium, including exact TIMESPAN values and a v4 error message. Existing native v3 value fixtures also decode, and the WASM writer emits v4. The smoke/API-contract tests and browser examples passed.This is separate from the published draft, which still pins v3.0.2. The preview currently uses experimental version metadata and has five wasm32 compiler warnings, so I have not presented it as a release-ready package. Next I’m making the immutable-core build configuration reproducible and extending version-specific error/ownership checks. No npm publication.
ihrfv commentedon Nov 27, 2026
@morsel-ray any update?
morsel-ray commentedon Nov 27, 2026
Yes. The implementation is in draft PR #7 at
bb65e3b9: exact TIMESPAN support and a separately tested immutable core-dev profile that reads/writes wire v4. Node and Chromium tests passed against genuine native v3/v4 frames, including duration values and error messages.It is not published to npm. The default still pins released core v3.0.2, which uses wire v3; I am waiting on the project decision to ship the tested dev pin or wait for a released wire-v4 core. There is also a known Dict.toJS key-decoding defect covered by separate PR #5, not yet composed into this change.
I let the update linger while handling customer crash support. Sorry for leaving you without a status. The draft is available to inspect, but I am not calling it a completed fix for the default package yet.