Skip to content

Upgrade angular 22 - #2

Merged
maestro957 merged 4 commits into
masterfrom
upgrade-angular-22
Jul 21, 2026
Merged

maestro957 merged 4 commits into
masterfrom
upgrade-angular-22

Conversation

@maestro957

Copy link
Copy Markdown
Contributor

Angular 22 Upgrade with Vitest Migration

Overview

This PR upgrades centeva-angular-mentions to Angular 22, migrates from Karma/Jasmine to Vitest for unit testing, and releases as v2.0.0 due to breaking changes.

Breaking Changes

  • Minimum Angular version is now 22.0.0 (previously 7.2.0+)
  • Applications using this library must upgrade to Angular 22+

Changes

  • ⬆️ Upgrade all @angular/* packages to 22.0.7
  • ⬆️ Upgrade TypeScript to 6.0.3 with ignoreDeprecations: "6.0" for baseUrl deprecation
  • 🧪 Replace Karma/Jasmine with Vitest for unit testing
  • Update peerDependencies to require @angular/core,common >=22.0.0
  • Modernize angular.json builders: serve and extract-i18n now use @angular/build namespace
  • Maintain smoke spec for library test validation
  • 📦 Bump version to 2.0.0 (major release)

Testing

  • ✅ Library builds successfully: npx ng build angular-mentions --configuration production
  • ✅ Unit tests pass with Vitest: ng test angular-mentions --watch=false
  • ✅ Demo app builds and runs: ng serve
  • ✅ Package published to npm as v2.0.0

Migration Notes

  • Karma/Jasmine dependencies remain in devDependencies for Protractor e2e tests (deprecated, scheduled for removal in separate PR)

Related Issues

  • Related to Angular 22 framework support initiative

Robert Emmett added 3 commits July 17, 2026 12:51
BREAKING CHANGE: requires Angular 22+

- Upgrade @angular/* to 22.0.7, TypeScript to 6.0.3
- Replace Karma/Jasmine with Vitest for unit testing
- Update peerDependencies to Angular >=22.0.0
- Modernize angular.json builders to @angular/build namespace
@maestro957 maestro957 self-assigned this Jul 21, 2026
@SkaTeaBoi SkaTeaBoi self-assigned this Jul 21, 2026
@maestro957
maestro957 merged commit 4dc5dcc into master Jul 21, 2026
1 check failed
@maestro957
maestro957 deleted the upgrade-angular-22 branch July 21, 2026 18:39
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.

2 participants