Skip to content

Commit

Permalink
feat(angular,angular-server): angular v14 minimum support (#26822)
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

Angular v14 is now required to use `@ionic/angular` and `@ionic/angular-server`. Upgrade your project to Angular v14 by following the [Angular v14 update guide](https://update.angular.io/?l=3&v=13.0-14.0).

The dev-preview `environmentInjector` property has been removed from `ion-tabs` and `ion-router-outlet`. Standalone component routing is now available without additional custom configuration. Remove the `environmentInjector` property from your `ion-tabs` and `ion-router-outlet` components.
  • Loading branch information
sean-perkins committed Feb 22, 2023
1 parent 3086c58 commit 1dee16f
Show file tree
Hide file tree
Showing 50 changed files with 11,077 additions and 74,032 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
strategy:
fail-fast: false
matrix:
apps: [ng12, ng13, ng14, ng15]
apps: [ng14, ng15]
needs: [build-angular, build-angular-server]
runs-on: ubuntu-latest
steps:
Expand Down
8 changes: 6 additions & 2 deletions BREAKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ This section details the desktop browser, JavaScript framework, and mobile platf

| Framework | Supported Version |
| --------- | --------------------- |
| Angular | 13+ |
| Angular | 14+ |
| React | 17+ |
| Vue | 3.0.6+ |

Expand All @@ -74,7 +74,7 @@ This section details the desktop browser, JavaScript framework, and mobile platf

<h4 id="version-7x-accordion-group">Accordion Group</h4>

-`ionChange` is no longer emitted when the `value` of `ion-accordion-group` is modified externally. `ionChange` is only emitted from user committed changes, such as clicking or tapping the accordion header.
- `ionChange` is no longer emitted when the `value` of `ion-accordion-group` is modified externally. `ionChange` is only emitted from user committed changes, such as clicking or tapping the accordion header.

- Accordion Group no longer automatically adjusts the `value` property when passed an array and `multiple="false"`. Developers should update their apps to ensure they are using the API correctly.

Expand Down Expand Up @@ -289,8 +289,12 @@ Any references to the virtual scroll types from `@ionic/core` have been removed.

<h4 id="version-7x-angular">Angular</h4>

- Angular v14 is now required to use `@ionic/angular` and `@ionic/angular-server`. Upgrade your project to Angular v14 by following the [Angular v14 update guide](https://update.angular.io/?l=3&v=13.0-14.0).

- `null` values on form components will no longer be converted to the empty string (`''`) or `false`. This impacts `ion-checkbox`, `ion-datetime`, `ion-input`, `ion-radio`, `ion-radio-group`, `ion-range`, `ion-searchbar`, `ion-segment`, `ion-select`, `ion-textarea`, and `ion-toggle`.

- The dev-preview `environmentInjector` property has been removed from `ion-tabs` and `ion-router-outlet`. Standalone component routing is now available without additional custom configuration. Remove the `environmentInjector` property from your `ion-tabs` and `ion-router-outlet` components.

<h4 id="version-7x-react">React</h4>

`@ionic/react` and `@ionic/react-router` no longer ship a CommonJS entry point. Instead, only an ES Module entry point is provided for improved compatibility with Vite.
Expand Down
7 changes: 7 additions & 0 deletions angular/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
"lib": {
"entryFile": "src/index.ts"
},
"allowedNonPeerDependencies": ["@ionic/core", "ionicons", "jsonc-parser"]
}

0 comments on commit 1dee16f

Please sign in to comment.