Repository navigation
Release 0.1.3: Decoder without an import, Unknown.of, and SEAM2001 that says where the Unknown came from - #3
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 oneget<T>(b: Decoder<T>, url)can fetch anddecode b from json ...any boundary. The README shows it, and that Unknown can be carried in fields, arrays and parameters typedUnknown.Unknown.of(value)marks a value as outside data for tests, instead ofas unknown as Unknown.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 inseamcand the editor.SeamResponsehint was missing forResponse | undefined.yarn testpasses (runtime 194, compiler 174, ts-plugin 20, and the rest); the sandbox app and voiceseamc checkare clean.