Consume deltic from JSR across conformance, demo, and wpt parity - #46
Merged
Conversation
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.
Follow-up to the ecosystem ruling in polymorph-iroh#45: every deltic consumption surface in this repo — the host module, the conformance leg (deno + browser), the demo, and the WPT parity carrier — moves from raw.githubusercontent URLs + the sha-pinned release-asset fetch to the JSR prereleases deltic publishes per green commit (
0.1.0-pre.g<shorthash>, same hash as the GitHub release). Pin bump rides along:pre-58b2404→ga67ee83(~61 upstream commits; the consumed surface — embedder,runSuite,Translator.translate— is API-stable across it).What this buys
fetch-translator.ts(TAG + sha256 +assertPinConsistency) retires. Deno-side runners (conformance run.ts,examples/deltic-demo) load the translator through the module graph via@deltic/translator— permission-free; release-asset net grants disappear from every recipe.--translatorsurvives as an optional dev override.extract-deltic-translatorrecipe copies the packaged translator wasm out of the lock-pinned module cache into version-freetarget/deltic-browser/, and the@deltic/release-bundle-entryraw-URL alias is replaced by a localbrowser-bundle-entry.ts(upstreamtools/release-bundle/entry.ts's exact surface). Worker protocol and the pinned@polymorph/component-test-jsuntouched.deno.jsons (host module + conformance leg) carrying the same version + their--frozenlocks;just exam-deltic(wired intogha::conformance-checks) asserts onejsr:@deltic/*version repo-wide — the successor toassertPinConsistency.minimumDependencyAgeexemptsjsr:@deltic/*per deltic's consumption README; everything else keeps Deno's default 24-hour supply-chain gate.Discovered en route: Deno stores remote modules as body + a
// denoCacheMetadata={…}trailer; copying a cached wasm asset wholesale yields a module that failsWebAssembly.compilein the page. The extraction script truncates to the graph-reported size and asserts wasm magic + trailer shape.Not changed: worker protocol,
@polymorph/component-test-jspin, Rust, WIT.Gates (all green):
just deltic-module-check12/12;conformance-ct::run-deltic55/55;conformance-ct::run-deltic-browser55/55;demo::deltic100/100 round-tripped;wpt::smokeok;wpt::paritybaseline 50/51 + round-trip 50/50, 0 known losses;wpt::parity-chromium46/51 + 50/50 (exit 0);just exam-deltic;deno check --frozenacross all changed graphs; leftover-reference grep clean.