Skip to content

Release 0.1.3: Decoder without an import, Unknown.of, and SEAM2001 that says where the Unknown came from - #3

Merged
Shogo256 merged 3 commits into
mainfrom
release-0.1.3
Nov 16, 2026
Merged

Shogo256 merged 3 commits into
mainfrom
release-0.1.3

Conversation

@Shogo256

@Shogo256 Shogo256 commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

From a user's list of language proposals: two already worked and needed showing, two were new. Details in CHANGELOG.md and DECISIONS.md ("Passing boundaries and outside data around").

  • Decoder<T> needs no import, so one get<T>(b: Decoder<T>, url) can fetch and decode b from json ... any boundary. The README shows it, and that Unknown can be carried in fields, arrays and parameters typed Unknown.
  • Unknown.of(value) marks a value as outside data for tests, instead of as unknown as Unknown.
  • SEAM2001 names the value holding the Unknown and its origin: Unknown data in `text` (from `res.text()`, line 12) cannot flow into string here, or the path into a value that holds it (in `res.json()` (`res` is SeamResponse)). Same line in seamc and the editor.
  • Fixed: the SeamResponse hint was missing for Response | undefined.
  • All packages to 0.1.3.

yarn test passes (runtime 194, compiler 174, ts-plugin 20, and the rest); the sandbox app and voice seamc check are clean.

…n came from

A boundary is already a Decoder<T> value that `decode b from ...` accepts, so a
generic fetch-and-decode function was possible, but the type had to be imported
and the README never showed it. Decoder now needs no import, like SeamResponse.

Unknown.of(value) marks a value as outside data for tests, replacing
`as unknown as Unknown`. It is the identity at run time.

SEAM2001 now names the value holding the Unknown data and its origin, followed
through consts in the same file (`in `text` (from `res.text()`, line 12)`), or
the path into a value that holds it (`in `res.json()` (`res` is SeamResponse)`).
The SeamResponse hint also shows for `Response | undefined`.
In CI, WebKit once left the HTML request of the deep-nesting test without a
response for the whole 60 s, right after the same backend had answered an admin
call. The test's subject starts once the page is there, so App.navigate tries
the navigation a second time and records it as an annotation; App.open and the
deep-nesting test use it.
@Shogo256
Shogo256 merged commit cbcd90f into main Nov 16, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant