Skip to content

Fix published workers and Vite SDK integration - #46

Merged
fazzatti merged 3 commits into
devfrom
fix/published-worker-entrypoints
Oct 12, 2026
Merged

fazzatti merged 3 commits into
devfrom
fix/published-worker-entrypoints

Conversation

@fazzatti

@fazzatti fazzatti commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

JSR's npm distribution of Convee 2.4.0 cannot start ordinary Node workers: the bootstrap points to entry.ts, while its host modules are outside the exported runtime graph. Installed SDK pipelines can also fail in Vite development because dependency prebundling embeds a second Convee context registry.

This 2.4.1 patch exports the dedicated /workers/entry bootstrap, resolves sibling modules using their actual TypeScript/JavaScript extension, and keeps one Convee runtime when Vite prebundles consuming SDKs. The Vite integration recognizes JSR's npm package spelling directly. Existing worker definition and execution APIs are unchanged.

The compiled consumer now preserves production resource URL literals. A new browser regression forces a consuming SDK to be prebundled; it fails against the previous plugin and passes with this fix. Installed Colibri channel workers also pass across Chromium, Firefox and WebKit in development and production, without application-side dependency exclusions or rewritten import aliases.

Validation: 1,020 test steps pass; authored production lines, branches and functions are exactly 100% covered. Types, lint, TSDoc and README examples pass. Compiled Node 24.1.0 and Bun 1.4.3 consumers pass. CI additionally verifies the supported runtime matrix, Rust ABI fixtures and mutation checks.

This release is required by Colibri #168. The local installed-package proof uses a temporary candidate distribution; actual JSR-generated npm execution must be rechecked after publication. Published 2.4.0 remains a failing negative control.

@codecov-commenter

codecov-commenter commented Oct 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (1d69def) to head (f68abec).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev       #46   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           48        49    +1     
  Lines         3712      3724   +12     
  Branches       723       724    +1     
=========================================
+ Hits          3712      3724   +12     
Files with missing lines Coverage Δ
src/workers/entry.ts 100.00% <ø> (ø)
src/workers/module-url.ts 100.00% <100.00%> (ø)
src/workers/pool.ts 100.00% <100.00%> (ø)
src/workers/vite.ts 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fazzatti fazzatti changed the title Fix published worker bootstrap loading Fix published workers and Vite SDK integration Oct 12, 2026
@fazzatti
fazzatti merged commit 436f428 into dev Oct 12, 2026
13 checks passed
@fazzatti
fazzatti deleted the fix/published-worker-entrypoints branch October 12, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants