Repository navigation
test(npm): verify HTTP Wasm loaders in verify-pack - #105
Merged
byteland-app merged 3 commits intoNov 25, 2026
Conversation
- Add esnext.disposable and portable global types to pkg/tunelet.d.ts - Replace RequestInfo and BufferSource aliases before tsc runs - Remove synthetic DOM and disposable libs from tsconfig.json - Check browser, WebWorker and NodeNext consumers in verify-pack.mjs - Test HTTP loaders, 404 retries, buffers, modules and initSync - Verify both tunelet and @bytelandtechnology/tunelet archives - Document the declaration matrix and loader checks in AGENTS.md
Contributor
|
Review: The zero-dependency node:http loader verification (streaming application/wasm, MIME fallback, 404 retry, and scoped/unscoped archive checks) is very clean and much lighter than #103's Chromium/CDP harness. However, the declare global approach in normalize-wasm-pkg.mjs pollutes consumer globals and is superseded by #123. Please rebase after #123 and keep only the lightweight HTTP loader verification in scripts/verify-pack.mjs. |
- Delete scripts/normalize-wasm-pkg.mjs in favor of #123 - Restore package.json, tsconfig.json and AGENTS.md to main - Restore the TypeScript and default checks in scripts/verify-pack.mjs - Keep the isolated node:http loader checks in scripts/verify-pack.mjs
Contributor
Author
|
Addressed in
|
byteland-app
deleted the
stitch/verify-http-loaders-and-consumer-types-jm0-60d92b7c-bd43-44b3-b3ba-59d14f5a7f75
branch
November 25, 2026 14:28
This was referenced Nov 25, 2026
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.
Summary
scripts/verify-pack.mjsto verify HTTP Wasm loaders across bothtuneletand@bytelandtechnology/tuneletarchives with a zero-dependency localnode:httpserver (127.0.0.1:0) and isolated Node.js child processes (check-http.mjs):http-404-retry: verifyloadTuneletpromise rejection and cache reset on HTTP404, subsequent recovery on HTTP200, post-initialization promise caching without refetching, and stereo/mono PCM block processing.http-response-wasm: verifyloadTunelet(Response)withContent-Type: application/wasmexecutesWebAssembly.instantiateStreamingwith zero warnings and zeroWebAssembly.instantiatefallback calls, followed by stereo/mono PCM block processing.http-response-octet-stream: verifyloadTunelet(Response)withContent-Type: application/octet-streamtriggersWebAssembly.instantiateStreamingMIME rejection, warning emission, andWebAssembly.instantiatefallback, followed by stereo/mono PCM block processing.scripts/normalize-wasm-pkg.mjsremoved, andpackage.json,tsconfig.json,AGENTS.md, and baseline runtime/TypeScript checks kept aligned withmainso test(npm): verify HTTP Wasm loaders in verify-pack #105 and fix(wasm): sanitize TypeScript declarations and Wasm exports #123 merge without conflicts).Verification
cargo fmt --checkcargo clippy --locked --lib -- -D warningscargo build --locked --releaseRUSTDOCFLAGS="-D warnings" cargo doc --locked --no-depscargo package --lockedRUSTDOCFLAGS="-D warnings" npm run check:wasmnpm run verify:packAutomated PR initiated by user @byteland-app via Stitch Loop.