Skip to content

Fix exact dependency scopes and import-map JSON formatting - #1422

Merged
ije merged 1 commit into
mainfrom
ije/fix-importmap-scopes-json
Oct 8, 2026
Merged

ije merged 1 commit into
mainfrom
ije/fix-importmap-scopes-json

Conversation

@ije

@ije ije commented Oct 8, 2026

Copy link
Copy Markdown
Member

Conflicting exact dependency versions now receive package-specific scopes, so adding a package that requires dep@1.0.0 does not change or inherit another package's dep@2.0.0 mapping. Exact peer conflicts report the same warning as incompatible version ranges.

Import-map formatting now JSON-escapes keys and values, including configuration, scopes, and integrity entries, and inserts commas only between emitted mappings. Regression tests cover dependency resolution, quoted data URLs, skipped null/empty entries, and CLI HTML updates.

Validation: go test -mod=readonly -race ./internal/importmap ./cli

@ije
ije merged commit 6e9da8c into main Oct 8, 2026
5 checks passed
@ije
ije deleted the ije/fix-importmap-scopes-json branch October 8, 2026 03:57
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.

1 participant