Repository navigation
fix(npm): normalize Wasm types and verify browser loaders - #103
Closed
google-labs-stitch[bot] wants to merge 1 commit into
Closed
google-labs-stitch[bot] wants to merge 1 commit into
google-labs-stitch[bot] wants to merge 1 commit into
Conversation
- Normalize pkg/tunelet.d.ts for browser, worker and Node.js types - Remove DOM and ESNext.Disposable from tsconfig.json - Check strict browser, WebWorker and NodeNext package fixtures - Verify Node.js file:, Uint8Array, Module and initSync loaders - Verify HTTP 404 retry, import map, MIME fallback and Web Workers - Pin browser-actions/setup-chrome in ci.yml and release.yml - Document local Chrome prerequisites and verify:pack in AGENTS.md
This was referenced Nov 25, 2026
Contributor
|
Closing this PR. Injecting declare global { interface Request/Response/URL ... } into pkg/tunelet.d.ts pollutes consumer global scopes (prefer #123), and requiring Chrome/Chromium + an 871-line custom CDP client in verify-pack and release.yml adds heavy maintenance overhead. Lightweight HTTP loader checks can be adapted from #105 instead. |
byteland-app
deleted the
stitch/verify-browser-loaders-chromium-fixtures-jm1-82cb0dc5-3175-4799-9e6d-80b37286edbb
branch
November 25, 2026 08:04
Contributor
Author
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
This change normalizes the generated
pkg/tunelet.d.tsdeclarations duringnpm run buildand expandsnpm run verify:packto check isolated TypeScript fixtures, cold-start Node.js loaders and headless Chromium HTTP and Web Worker loaders.Changes
scripts/normalize-pkg.mjstonpm run build:wasmto removepkg/.gitignore, referenceesnext.disposable, replaceRequestInfoandBufferSourcewith portable unions and declare open-endedRequest,Response,URLandWebAssemblyinterfaces.compilerOptions.libintsconfig.jsonto["ES2020"]so the package build does not hide consumer type errors behind internalDOMorESNext.Disposableflags.scripts/verify-pack.mjsto unpack the eight-file archive into isolated browser (DOM),WebWorkerand Node.jsNodeNextfixtures for bothtuneletand@bytelandtechnology/tuneletand runtsc --noEmit --strictwithoutskipLibCheck.file:retry recovery, defaultloadTunelet(), explicitfile:URL,Uint8Array,Promise<WebAssembly.Module>andinitSyncon root and./wasmexports.scripts/verify-browser.mjsto serve unpackeddist/andpkg/over a local HTTP server with<script type="importmap">,application/wasm,application/octet-stream, HTTP404and module Web Worker routes, and verify them in headless Chromium through the Chrome DevTools Protocol.browser-actions/setup-chrome@48ad923757ca74d66703209fe939badbdf80f2f4(v2.2.0) in.github/workflows/ci.ymland.github/workflows/release.ymlwithcontents: readpermissions and passCHROME_BINtonpm run verify:packbefore artifact upload.CHROME_BINinAGENTS.md.Verification
cargo fmt --checkcargo clippy --locked --lib -- -D warningscargo build --locked --releaseRUSTDOCFLAGS="-D warnings" cargo doc --locked --no-depscargo package --list --lockedRUSTDOCFLAGS="-D warnings" npm run check:wasmCHROME_BIN=/usr/bin/google-chrome npm run verify:packAutomated PR initiated by user @byteland-app via Stitch Loop.