fix(http/unstable): use relative import for unstable_structured_fields#7155
Merged
Conversation
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.
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
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.
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: itpulled types and helpers from
@std/http/unstable-structured-fieldsrather 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-fieldsexport — bothmodules 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.tspath avoids the registry lookup andunblocks the release. No other real imports in the http package use the
@std/http/*self-specifier; the remaining occurrences are all insideJSDoc examples and do not enter the module graph.