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

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.
This commit is contained in:
Sean Perkins
2023-02-22 12:33:49 -05:00
committed by GitHub
parent 3086c5859e
commit 1dee16f3a2
50 changed files with 9867 additions and 72822 deletions

View File

@ -0,0 +1,7 @@
{
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
"lib": {
"entryFile": "src/public_api.ts"
},
"allowedNonPeerDependencies": ["@ionic/core"]
}

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@
"homepage": "https://ionicframework.com/",
"scripts": {
"test": "echo 'angular no tests yet'",
"build": "ng-packagr -p package.json -c tsconfig.json",
"build": "ng-packagr -p ng-package.json -c tsconfig.json",
"build.prod": "npm run clean && npm run build",
"clean": "rm -rf ./dist",
"lint": "eslint . --ext .ts && npm run prettier",
@ -33,39 +33,31 @@
"prettier": "prettier \"**/*.ts\" --check",
"prettier.fix": "prettier \"**/*.ts\" --write"
},
"ngPackage": {
"lib": {
"entryFile": "src/public_api.ts"
},
"allowedNonPeerDependencies": [
"@ionic/core"
]
},
"peerDependencies": {
"@angular/core": ">=12.0.0",
"@angular/platform-server": ">=12.0.0",
"rxjs": ">=6.6.0",
"@angular/core": ">=14.0.0",
"@angular/platform-server": ">=14.0.0",
"rxjs": ">=7.5.0",
"zone.js": ">=0.11.0"
},
"devDependencies": {
"@angular-eslint/eslint-plugin": "^12.6.1",
"@angular/animations": "^12.0.0",
"@angular/common": "^12.0.0",
"@angular/compiler": "^12.0.0",
"@angular/compiler-cli": "^12.0.0",
"@angular/core": "^12.0.0",
"@angular/platform-browser": "^12.0.0",
"@angular/platform-browser-dynamic": "^12.2.10",
"@angular/platform-server": "^12.0.0",
"@angular-eslint/eslint-plugin": "^14.0.0",
"@angular/animations": "^14.0.0",
"@angular/common": "^14.0.0",
"@angular/compiler": "^14.0.0",
"@angular/compiler-cli": "^14.0.0",
"@angular/core": "^14.0.0",
"@angular/platform-browser": "^14.0.0",
"@angular/platform-browser-dynamic": "^14.0.0",
"@angular/platform-server": "^14.0.0",
"@ionic/eslint-config": "^0.3.0",
"@ionic/prettier-config": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^5.2.0",
"eslint": "^7.32.0",
"eslint-plugin-import": "^2.25.2",
"ng-packagr": "^12.0.0",
"ng-packagr": "^14.0.0",
"prettier": "^2.4.1",
"rxjs": "^7.8.0",
"typescript": "4.2.4"
"typescript": "~4.7.2"
},
"prettier": "@ionic/prettier-config",
"dependencies": {