Skip to content

v0.3.6

Choose a tag to compare

@github-actions github-actions released this 26 Nov 09:41
· 96 commits to main since this release
4c588c4

0.3.6

A second independent review of 0.3.5 found five gaps (#362); this release closes them. No API change.

Fixed

  • A failed fill() scrubs the whole error, not a list of known fields (#363). 0.3.5 rewrote message, stack, data and the cause chain; an AggregateError's members and any field a transport adds to its error (request, attempts) were never visited. Every own property of every error reachable from the one raised is now rewritten. The new test failed on 0.3.5.

    Correction (2026-11-26): this release note first said each Error keeps its identity and class. That holds for the error raised, its cause chain, an AggregateError's members and a list of errors, but not for an Error nested inside a plain payload object or an array of arrays: 0.3.6 copies those payloads through JSON, so such an Error comes back as a plain object, even when the value appears nowhere. A getter, a frozen error and a field that is neither writable nor configurable are not rewritten. Tracked in #366; fixed in the next release.

Docs (the bundled skill)

  • The human-handoff example runs as written. It called path.join(os.tmpdir(), ...) and fs.writeFileSync without declaring them: ReferenceError: path is not defined before the watcher was registered. A new check fails when an example calls fs, os or path that no example of its document declares; no other shipped document failed it.
  • The fixed-delay check reads a timer call whole. The 0.3.5 check tested one line at a time against a decimal-integer pattern and missed 6 of 6 of these: a call spread over lines, a trailing argument after the delay, 1e3, 0x3e8, 1.5, and a comment before the delay. All six are flagged now; five state waits and a zero-delay defer are not.

Tests

  • The navigation tests for emulated devices cover a same-origin navigation with a device set again, after asserting the default width (1440). On the sources from before #342 both fail with actual: 1440, expected: 390.
  • They launch their browser in the first test that runs, not while the module loads: a run whose filter selects no test in the file left one 220 KB profile before and leaves none now.

Stated plainly

  • A value shorter than four characters is removed only as a whole token, so that a one-letter fill does not tear words apart. That is a readability rule, not a secrecy guarantee for a short value that touches a letter or digit.

Known, filed

  • #356, #361, #364: three load-sensitive tests this release does not touch (a raw-TLS guard test, the orphan-reap test, and a SQLite profile test that took 18 s once on the Windows runner against 0.1-1.5 s in five other runs).

Verification

Full suite on a Linux build box: 742 pass, 16 skip, 0 fail. Hosted CI: Linux (bun and Node), macOS and Windows pass.

What's Changed

  • fix: scrub aggregate errors, read timer calls whole in the docs check, declare the handoff example's modules by @code-yeongyu in #363
  • chore(release): 0.3.6 by @code-yeongyu in #365

Full Changelog: v0.3.5...v0.3.6