Skip to content

feat(sanity)!: support angular 21#70

Merged
osnoser1 merged 1 commit into
mainfrom
osnoser1/angular-21-support
Jun 15, 2026
Merged

feat(sanity)!: support angular 21#70
osnoser1 merged 1 commit into
mainfrom
osnoser1/angular-21-support

Conversation

@osnoser1

@osnoser1 osnoser1 commented Jun 15, 2026

Copy link
Copy Markdown
Member

PR Checklist

Updates Angular compatibility for the next supported window. No issue number.

Closes #

N/A

What is the new behavior?

  • Adds Angular 21 to the public @limitless-angular/sanity peer range and compatibility matrix.
  • Removes Angular 18 from the active public peer range and generated-consumer matrix, while keeping the README compatibility table row for historical Angular 18 package-line documentation.
  • Updates workspace Angular build/test tooling to Angular 21, TypeScript 5.9, ng-packagr 21, angular-eslint 21, and Testing Library Angular 19.
  • Applies the Angular 21 SSR bootstrap context migration to server entrypoints.
  • Removes the Angular <19 effect signal-write compatibility branch from Portable Text directives.
  • Reverts the Angular 18 template compatibility workaround in the visual editing insert/context menu components now that Angular 18 is not in the active support window.

Does this PR introduce a breaking change?

  • Yes
  • No

BREAKING CHANGE: Angular 18 is no longer in the supported peer range or required compatibility matrix. Applications using this package line should use Angular 19, Angular 20, or Angular 21. Older package-line compatibility remains documented in the README table.

Other information

Validation run locally:

  • CI=true pnpm install --frozen-lockfile
  • node --test tools/angular-compat/*.test.mjs
  • pnpm run compat:assert
  • pnpm run compat:matrix
  • pnpm run compat:pack
  • pnpm run compat:artifact
  • pnpm run compat:test --angular 21
  • pnpm run compat:release-parity
  • pnpm turbo run build test --affected
  • pnpm run lint
  • pnpm --filter @limitless-angular/sanity build
  • pnpm --filter @limitless-angular/sanity test
  • pnpm --filter @limitless-angular/sanity lint
  • git diff --check

Official ng update @angular/core --migrate-only --from 20.0.0 --to 21.0.0 --allow-dirty hit the repo-local tsconfig path issue documented in the Angular compatibility skill. I inspected Angular 21's add-bootstrap-context-to-server-main migration bundle and applied the same BootstrapContext server bootstrap changes manually. The remaining Angular core v21 migration targets were audited and did not apply.

Package-manager note: pnpm has autoInstallPeers enabled, and Analog declares optional broad peer ranges for Nx and Angular DevKit build tooling. The root overrides pin those auto-installed optional peers to Angular-21-compatible versions so pnpm does not resolve stale Nx 20 / Angular DevKit 19 peers into the Angular 21 workspace graph.

[Optional] What gif best describes this PR or how it makes you feel?

N/A

@netlify

netlify Bot commented Jun 15, 2026

Copy link
Copy Markdown

Deploy Preview for limitless-angular-sanity-example canceled.

Name Link
🔨 Latest commit 95494b3
🔍 Latest deploy log https://app.netlify.com/projects/limitless-angular-sanity-example/deploys/6a307a4146949800088a4552

@pkg-pr-new

pkg-pr-new Bot commented Jun 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@limitless-angular/sanity@70

commit: 95494b3

@osnoser1 osnoser1 changed the title feat(sanity): support angular 21 feat(sanity)!: support angular 21 Jun 15, 2026
@osnoser1 osnoser1 force-pushed the osnoser1/angular-21-support branch from 08f23b8 to a451ca9 Compare June 15, 2026 20:57
Update the active Angular compatibility window to Angular 19 through 21, refresh the Angular 21 workspace toolchain, update the compatibility matrix, and apply the Angular 21 SSR bootstrap context migration.

BREAKING CHANGE: Angular 18 is no longer included in the @limitless-angular/sanity peer dependency range or required compatibility matrix. Use Angular 19, Angular 20, or Angular 21 with this package line.
@osnoser1 osnoser1 force-pushed the osnoser1/angular-21-support branch from a451ca9 to 95494b3 Compare June 15, 2026 22:18
@osnoser1 osnoser1 merged commit 8a8e8a6 into main Jun 15, 2026
18 checks passed
@osnoser1 osnoser1 deleted the osnoser1/angular-21-support branch June 15, 2026 22:24
@osnoser1 osnoser1 mentioned this pull request Jun 18, 2026
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