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

build: build packages with Ivy #3219

Merged
merged 1 commit into from
Nov 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/component-store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/component-store",
"version": "12.5.1",
"version": "13.0.0-beta.0",
"description": "Reactive store for component state",
"repository": {
"type": "git",
Expand All @@ -22,8 +22,8 @@
},
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/core": "^12.0.0",
"rxjs": "^6.5.3 || ^7.0.0"
"@angular/core": "^13.0.0-rc.0",
"rxjs": "^6.5.3 || ^7.4.0"
},
"schematics": "./schematics/collection.json",
"sideEffects": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^12.5.1';
export const platformVersion = '^13.0.0-beta.0';
4 changes: 2 additions & 2 deletions modules/component-store/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"files": ["public_api.ts"],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"compilationMode": "partial",
timdeschryver marked this conversation as resolved.
Show resolved Hide resolved
// Work around for issue: https://github.com/angular/angular/issues/22210
"strictMetadataEmit": false,
"skipTemplateCodegen": true,
"flatModuleOutFile": "index.js",
"flatModuleId": "@ngrx/component-store",
"enableIvy": false
"flatModuleId": "@ngrx/component-store"
}
}
8 changes: 4 additions & 4 deletions modules/component/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/component",
"version": "12.5.1",
"version": "13.0.0-beta.0",
"description": "Reactive Extensions for Angular Components",
"repository": {
"type": "git",
Expand All @@ -20,9 +20,9 @@
},
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/common": "^12.0.0",
"@angular/core": "^12.0.0",
"rxjs": "^6.5.3 || ^7.0.0"
"@angular/common": "^13.0.0-rc.0",
"@angular/core": "^13.0.0-rc.0",
"rxjs": "^6.5.3 || ^7.4.0"
},
"schematics": "./schematics/collection.json",
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion modules/component/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^12.5.1';
export const platformVersion = '^13.0.0-beta.0';
4 changes: 2 additions & 2 deletions modules/component/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"files": ["public_api.ts"],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"compilationMode": "partial",
// Work around for issue: https://github.com/angular/angular/issues/22210
"strictMetadataEmit": false,
"flatModuleOutFile": "index.js",
"flatModuleId": "@ngrx/component",
"enableIvy": false
"flatModuleId": "@ngrx/component"
}
}
14 changes: 7 additions & 7 deletions modules/data/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/data",
"version": "12.5.1",
"version": "13.0.0-beta.0",
"description": "API management for NgRx",
"repository": {
"type": "git",
Expand All @@ -20,12 +20,12 @@
},
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/common": "^12.0.0",
"@angular/core": "^12.0.0",
"@ngrx/store": "12.5.1",
"@ngrx/effects": "12.5.1",
"@ngrx/entity": "12.5.1",
"rxjs": "^6.5.3 || ^7.0.0"
"@angular/common": "^13.0.0-rc.0",
"@angular/core": "^13.0.0-rc.0",
"@ngrx/store": "13.0.0-beta.0",
"@ngrx/effects": "13.0.0-beta.0",
"@ngrx/entity": "13.0.0-beta.0",
"rxjs": "^6.5.3 || ^7.4.0"
},
"schematics": "./schematics/collection.json",
"ng-update": {
Expand Down
2 changes: 1 addition & 1 deletion modules/data/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^12.5.1';
export const platformVersion = '^13.0.0-beta.0';
4 changes: 2 additions & 2 deletions modules/data/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"files": ["public_api.ts"],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"compilationMode": "partial",
// Work around for issue: https://github.com/angular/angular/issues/22210
"strictMetadataEmit": false,
"skipTemplateCodegen": true,
"flatModuleOutFile": "index.js",
"flatModuleId": "@ngrx/data",
"enableIvy": false
"flatModuleId": "@ngrx/data"
}
}
8 changes: 4 additions & 4 deletions modules/effects/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/effects",
"version": "12.5.1",
"version": "13.0.0-beta.0",
"description": "Side effect model for @ngrx/store",
"repository": {
"type": "git",
Expand All @@ -21,9 +21,9 @@
},
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/core": "^12.0.0",
"@ngrx/store": "12.5.1",
"rxjs": "^6.5.3 || ^7.0.0"
"@angular/core": "^13.0.0-rc.0",
"@ngrx/store": "13.0.0-beta.0",
"rxjs": "^6.5.3 || ^7.4.0"
},
"schematics": "./schematics/collection.json",
"ng-update": {
Expand Down
2 changes: 1 addition & 1 deletion modules/effects/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^12.5.1';
export const platformVersion = '^13.0.0-beta.0';
4 changes: 2 additions & 2 deletions modules/effects/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"files": ["public_api.ts"],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"compilationMode": "partial",
// Work around for issue: https://github.com/angular/angular/issues/22210
"strictMetadataEmit": false,
"skipTemplateCodegen": true,
"flatModuleOutFile": "index.js",
"flatModuleId": "@ngrx/effects",
"enableIvy": false
"flatModuleId": "@ngrx/effects"
}
}
8 changes: 4 additions & 4 deletions modules/entity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/entity",
"version": "12.5.1",
"version": "13.0.0-beta.0",
"description": "Common utilities for entity reducers",
"repository": {
"type": "git",
Expand All @@ -20,9 +20,9 @@
},
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/core": "^12.0.0",
"@ngrx/store": "12.5.1",
"rxjs": "^6.5.3 || ^7.0.0"
"@angular/core": "^13.0.0-rc.0",
"@ngrx/store": "13.0.0-beta.0",
"rxjs": "^6.5.3 || ^7.4.0"
},
"schematics": "./schematics/collection.json",
"ng-update": {
Expand Down
2 changes: 1 addition & 1 deletion modules/entity/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^12.5.1';
export const platformVersion = '^13.0.0-beta.0';
4 changes: 2 additions & 2 deletions modules/entity/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"files": ["public_api.ts"],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"compilationMode": "partial",
// Work around for issue: https://github.com/angular/angular/issues/22210
"strictMetadataEmit": false,
"skipTemplateCodegen": true,
"flatModuleOutFile": "index.js",
"flatModuleId": "@ngrx/entity",
"enableIvy": false
"flatModuleId": "@ngrx/entity"
}
}
12 changes: 6 additions & 6 deletions modules/router-store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/router-store",
"version": "12.5.1",
"version": "13.0.0-beta.0",
"description": "Bindings to connect @angular/router to @ngrx/store",
"repository": {
"type": "git",
Expand All @@ -20,11 +20,11 @@
},
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/common": "^12.0.0",
"@angular/core": "^12.0.0",
"@angular/router": "^12.0.0",
"@ngrx/store": "12.5.1",
"rxjs": "^6.5.3 || ^7.0.0"
"@angular/common": "^13.0.0-rc.0",
"@angular/core": "^13.0.0-rc.0",
"@angular/router": "^13.0.0-rc.0",
"@ngrx/store": "13.0.0-beta.0",
"rxjs": "^6.5.3 || ^7.4.0"
},
"schematics": "./schematics/collection.json",
"ng-update": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^12.5.1';
export const platformVersion = '^13.0.0-beta.0';
4 changes: 2 additions & 2 deletions modules/router-store/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"files": ["public_api.ts"],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"compilationMode": "partial",
// Work around for issue: https://github.com/angular/angular/issues/22210
"strictMetadataEmit": false,
"skipTemplateCodegen": true,
"flatModuleOutFile": "index.js",
"flatModuleId": "@ngrx/router-store",
"enableIvy": false
"flatModuleId": "@ngrx/router-store"
}
}
2 changes: 1 addition & 1 deletion modules/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^12.5.1';
export const platformVersion = '^13.0.0-beta.0';
2 changes: 1 addition & 1 deletion modules/schematics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/schematics",
"version": "12.5.1",
"version": "13.0.0-beta.0",
"description": "NgRx Schematics for Angular",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion modules/schematics/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^12.5.1';
export const platformVersion = '^13.0.0-beta.0';
6 changes: 3 additions & 3 deletions modules/store-devtools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/store-devtools",
"version": "12.5.1",
"version": "13.0.0-beta.0",
"description": "Developer tools for @ngrx/store",
"repository": {
"type": "git",
Expand All @@ -20,8 +20,8 @@
},
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@ngrx/store": "12.5.1",
"rxjs": "^6.5.3 || ^7.0.0"
"@ngrx/store": "13.0.0-beta.0",
"rxjs": "^6.5.3 || ^7.4.0"
},
"schematics": "./schematics/collection.json",
"ng-update": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^12.5.1';
export const platformVersion = '^13.0.0-beta.0';
4 changes: 2 additions & 2 deletions modules/store-devtools/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"files": ["public_api.ts"],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"compilationMode": "partial",
// Work around for issue: https://github.com/angular/angular/issues/22210
"strictMetadataEmit": false,
"skipTemplateCodegen": true,
"flatModuleOutFile": "index.js",
"flatModuleId": "@ngrx/store-devtools",
"enableIvy": false
"flatModuleId": "@ngrx/store-devtools"
}
}
6 changes: 3 additions & 3 deletions modules/store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/store",
"version": "12.5.1",
"version": "13.0.0-beta.0",
"description": "RxJS powered Redux for Angular apps",
"repository": {
"type": "git",
Expand All @@ -21,8 +21,8 @@
},
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/core": "^12.0.0",
"rxjs": "^6.5.3 || ^7.0.0"
"@angular/core": "^13.0.0-rc.0",
"rxjs": "^6.5.3 || ^7.4.0"
},
"schematics": "./schematics/collection.json",
"ng-update": {
Expand Down
2 changes: 1 addition & 1 deletion modules/store/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^12.5.1';
export const platformVersion = '^13.0.0-beta.0';
4 changes: 2 additions & 2 deletions modules/store/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"exclude": ["**/*.spec.ts"],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"compilationMode": "partial",
// Work around for issue: https://github.com/angular/angular/issues/22210
"strictMetadataEmit": false,
"skipTemplateCodegen": true,
"flatModuleOutFile": "index.js",
"flatModuleId": "@ngrx/store",
"enableIvy": false
"flatModuleId": "@ngrx/store"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/platform",
"version": "12.5.1",
"version": "13.0.0-beta.0",
"description": "monorepo for ngrx development",
"scripts": {
"ng": "ng",
Expand Down Expand Up @@ -111,7 +111,7 @@
"core-js": "^2.5.4",
"opencollective": "^1.0.3",
"rxjs": "~7.4.0",
"tslib": "^2.2.0",
"tslib": "^2.3.1",
"zone.js": "0.11.4"
},
"devDependencies": {
Expand Down
10 changes: 0 additions & 10 deletions projects/data-example-app/src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@
* BROWSER POLYFILLS
*/

/** IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.

/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
*/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.

/**
* By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags
Expand Down
10 changes: 0 additions & 10 deletions projects/example-app/src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@
* BROWSER POLYFILLS
*/

/** IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.

/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
*/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.

/**
* By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags
Expand Down
23 changes: 23 additions & 0 deletions projects/ngrx.io/content/guide/migration/v13.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# V13 Update Guide

## Angular CLI update

NgRx supports using the Angular CLI `ng update` command to update your dependencies. Migration schematics are run to make the upgrade smoother. These schematics will fix some of the breaking changes.

To update your packages to the latest released version, run the command below.

```sh
ng update @ngrx/store
```

## Dependencies

Version 13 has the minimum version requirements:

- Angular version 13.x
- Angular CLI version 13.x
- TypeScript version 4.4.x
- RxJS version 7.4.x

## Breaking changes

Loading