Skip to content

fix(ext): delete bg-sw.js + stale wasm from extension root (Closes #189) - #196

Closed
gHashTag wants to merge 5 commits into
mainfrom
fix/ext-zero-js-189-v2
Closed

gHashTag wants to merge 5 commits into
mainfrom
fix/ext-zero-js-189-v2

Conversation

@gHashTag

Copy link
Copy Markdown
Collaborator

Summary

  • Remove extension/bg-sw.js (L9: no JS outside dist/)
  • Remove extension/trios_ext_bg.wasm (should be in dist/wasm/ only)
  • All extension logic is Rust→WASM via crates/trios-ext/
  • Service worker: dist/bg-sw.js (auto-generated WASM loader)

Verification

  • cargo clippy --all-targets --all-features -- -D warnings = 0
  • cargo test --workspace = 425+ tests, 0 failures
  • find extension -name "*.js" -not -path "*/dist/*" = empty

Closes #189

…ompliance) — Closes #156 #189

- Remove extension/bg-sw.js (L9: no JS outside dist/)
- Remove extension/trios_ext_bg.wasm (should be in dist/wasm/ only)
- All extension logic is Rust→WASM via crates/trios-ext/
- Service worker: dist/bg-sw.js (auto-generated WASM loader)
@gHashTag
gHashTag force-pushed the fix/ext-zero-js-189-v2 branch from 5befbaf to 5e5b45e Compare April 21, 2026 05:23
Remove unused imports, fix needless returns/mut, use .first()
instead of .get(0), add Default impl for GhClient.

Refs #189
#189)

- Add crates/xtask with build-ext and ci-check commands
- build-ext: wasm-pack + generate shim files + clean rogue JS
- ci-check: L9 (no JS outside dist/), CSP (no inline scripts), artifacts
- Add CSP inline-script check to CI workflow
- Add xtask ci-check step to CI
- No .sh files used (L7 compliant — Rust build pipeline)
Remove unused imports, fix needless returns/mut, use .first()
instead of .get(0), add Default impl for GhClient.

Refs #189
@gHashTag

Copy link
Copy Markdown
Collaborator Author

Superseded by #197 (merged)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant