Skip to content

deps: bump Angular minor-and-patch group, pin sourcemap-codec to 1.6 - #497

Merged
ksroda-sa merged 1 commit into
mainfrom
fix/pr478-angular-sourcemap-codec
Nov 2, 2026
Merged

ksroda-sa merged 1 commit into
mainfrom
fix/pr478-angular-sourcemap-codec

Conversation

@ksroda-sa

Copy link
Copy Markdown
Collaborator

Supersedes #478, which was red and conflicting.

Why #478 failed

@angular/compiler-cli 22.2.x imports encodeRangeMappings from @jridgewell/sourcemap-codec. That export only exists in 1.6.0+, but compiler-cli still declares ^1.4.14. Dependabot's lockfile reused the existing 1.5.5 entry for that range, so ng build failed in both Angular samples:

SyntaxError: The requested module '@jridgewell/sourcemap-codec' does not provide an export named 'encodeRangeMappings'

Recreating the Dependabot PR wouldn't help, because main's lockfile still resolves ^1.4.14 to 1.5.5.

Changes

Verification

Run locally in both samples: yarn install --immutable, format:check, build:ci and test:ci all pass. cd scripts && yarn all passes.

🤖 Generated with Claude Code

Supersedes #478. @angular/compiler-cli 22.2.x imports
encodeRangeMappings from @jridgewell/sourcemap-codec, which only
exists in 1.6.0+, but still declares ^1.4.14. The deduped lockfile
kept 1.5.5 for that range, breaking `ng build`. Refresh the codec so
every range resolves to 1.6.0, and rebase the bump onto current main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 2, 2026 11:05
@ksroda-sa
ksroda-sa requested a review from a team as a code owner November 2, 2026 11:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the Angular sample dependency and metadata updates.

No open issues 🎉

What changed in this PR

Updates the Angular authentication samples, superseding #478 and addressing its compiler build failure caused by the older sourcemap-codec resolution.

Changes:

  • Aligns both samples on Angular 22.2.3 and updates the authentication library and development tools.
  • Refreshes dependency resolutions, including sourcemap-codec 1.6.0 without adding a new resolution override.
  • Updates generated snippet metadata to match the authentication library version.
File Description
snippets.json Updates both Angular samples’ library metadata to 22.0.2.
samples/​angular/​token-refresh/​yarn.lock Refreshes dependencies and resolves sourcemap-codec to 1.6.0.
samples/​angular/​token-refresh/​package.json Updates Angular, authentication, and development dependencies.
samples/​angular/​login-pkce/​package.json Applies matching dependency updates to the login sample.

Review effort: Balanced

@ksroda-sa
ksroda-sa merged commit fe2042c into main Nov 2, 2026
23 checks passed
@ksroda-sa
ksroda-sa deleted the fix/pr478-angular-sourcemap-codec branch November 2, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants