Skip to content

fix(http/unstable): use relative import for unstable_structured_fields#7155

Merged
bartlomieju merged 1 commit into
mainfrom
fix/http-self-import-structured-fields
May 26, 2026
Merged

fix(http/unstable): use relative import for unstable_structured_fields#7155
bartlomieju merged 1 commit into
mainfrom
fix/http-self-import-structured-fields

Conversation

@bartlomieju

Copy link
Copy Markdown
Member

The 2026.05.26 release publish failed for @std/http@1.1.1 with
export 'unstable-structured-fields' not found in jsr:@std/http.
The cause is a self-import in unstable_message_signatures.ts: it
pulled types and helpers from @std/http/unstable-structured-fields
rather than from the sibling file. At publish time JSR resolves that
specifier against the previously published @std/http (1.1.0), which
does not yet expose the new unstable-structured-fields export — both
modules were added in this release cycle — so the module graph build
errors out before the new version can be published.

Switching the two import sites to a relative
./unstable_structured_fields.ts path avoids the registry lookup and
unblocks the release. No other real imports in the http package use the
@std/http/* self-specifier; the remaining occurrences are all inside
JSDoc examples and do not enter the module graph.

unstable_message_signatures.ts imported sibling unstable_structured_fields
via the JSR self-specifier @std/http/unstable-structured-fields. At publish
time JSR resolves that against the previously published @std/http, which
does not yet contain the new export, so the publish of @std/http@1.1.1
fails with "export 'unstable-structured-fields' not found in jsr:@std/http".
Switch to a relative import.
@github-actions github-actions Bot added the http label May 26, 2026
@codecov

codecov Bot commented May 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.57%. Comparing base (45ff477) to head (fa34094).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7155   +/-   ##
=======================================
  Coverage   94.57%   94.57%           
=======================================
  Files         636      636           
  Lines       52138    52138           
  Branches     9399     9399           
=======================================
  Hits        49311    49311           
  Misses       2249     2249           
  Partials      578      578           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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.

@bartlomieju bartlomieju merged commit f0c9f14 into main May 26, 2026
19 checks passed
@bartlomieju bartlomieju deleted the fix/http-self-import-structured-fields branch May 26, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant