Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(angular,angular-server): angular v14 minimum support #26822

Merged
merged 27 commits into from
Feb 22, 2023

Conversation

sean-perkins
Copy link
Contributor

@sean-perkins sean-perkins commented Feb 17, 2023

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
    • Some docs updates need to be made in the ionic-docs repo, in a separate PR. See the contributing guide for details.
  • Build (npm run build) was run locally and any changes were pushed
  • Lint (npm run lint) has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue URL: Internal

What is the new behavior?

Upgrades the @ionic/angular and @ionic/angular-server packages to target a minimum supported version of Angular 14.

@ionic/angular

  • Removes dev-preview environmentInjector properties for standalone routing from ion-router-outlet and ion-tabs.
    • Ionic supports standalone component routing without any extra configuration
  • ComponentFactoryResolver deprecated usage has been migrated to createComponent or ViewContainerRef, depending on the usage requirement
  • Filled in types for router implementation
  • Refactored dependency injection usage to use inject syntax (aligning with the Angular team's convention)

Test Infrastructure

  • Removes the test infrastructure and test apps for Angular (ng12) and Angular 13 (ng13)
  • Upgrades the Angular 15 test app to use v15 official dependencies

Does this introduce a breaking change?

  • Yes
  • No

Other information

Ionic v7 targets a minimum of Angular 14. We no longer need to test these older targets of Angular.
This commit bumps the developer dependencies and peer dependencies to Angular 14. As a result, we need to update ng-packagr, which requires the `ng-package.json` configuration instead of the config living local to the `package.json`. The platform file change is a build-time error with the types, as a result of the typescript dependency version bump.

There is a pending issue with the ng14 test app with this commit that I am digging into more and will fix in a follow-up commit.
Similar to earlier changes, the ng-packagr version bump requires that we split out the config into a separate file.
@stackblitz
Copy link

stackblitz bot commented Feb 17, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions github-actions bot added the package: angular @ionic/angular package label Feb 17, 2023
@sean-perkins sean-perkins changed the title feat(angular): angular 14 minimum support (do not merge) feat(angular,angular-server): angular 14 minimum support (do not merge) Feb 20, 2023
@sean-perkins sean-perkins changed the title feat(angular,angular-server): angular 14 minimum support (do not merge) feat(angular,angular-server): angular v14 minimum support Feb 21, 2023
@sean-perkins sean-perkins marked this pull request as ready for review February 21, 2023 16:04
@sean-perkins sean-perkins requested a review from a team as a code owner February 21, 2023 16:04
@liamdebeasi
Copy link
Contributor

Don't forget to update the commit description with the breaking change message too

@sean-perkins sean-perkins merged commit 1dee16f into feature-7.0 Feb 22, 2023
@sean-perkins sean-perkins deleted the FW-1640 branch February 22, 2023 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: angular @ionic/angular package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants