@nrwl/angular 14.6.0-rc.0 → 14.6.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,6 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [14.6.0-rc.0](https://github.com/nrwl/nx/compare/14.5.7...14.6.0-rc.0) (2022-08-29)
6
+ # [14.6.0-rc.1](https://github.com/nrwl/nx/compare/14.5.7...14.6.0-rc.1) (2022-08-30)
7
7
 
8
8
  **Note:** Version bump only for package @nrwl/angular
package/migrations.json CHANGED
@@ -161,6 +161,12 @@
161
161
  "description": "Update the @angular/cli package version to ~14.1.0.",
162
162
  "factory": "./src/migrations/update-14-5-2/update-angular-cli"
163
163
  },
164
+ "update-rxjs-7-5-0": {
165
+ "cli": "nx",
166
+ "version": "14.5.7-beta.0",
167
+ "description": "Update the rxjs package version to ~7.5.0 if RxJS 7 is used in workspace.",
168
+ "factory": "./src/migrations/update-14-5-7/update-rxjs"
169
+ },
164
170
  "update-angular-cli-version-14-2-0": {
165
171
  "cli": "nx",
166
172
  "version": "14.6.0-beta.0",
@@ -1460,15 +1466,6 @@
1460
1466
  }
1461
1467
  }
1462
1468
  },
1463
- "14.5.7": {
1464
- "version": "14.5.7-beta.0",
1465
- "packages": {
1466
- "rxjs": {
1467
- "version": "~7.5.0",
1468
- "alwaysAddToPackageJson": false
1469
- }
1470
- }
1471
- },
1472
1469
  "14.6.0": {
1473
1470
  "version": "14.6.0-beta.0",
1474
1471
  "packages": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/angular",
3
- "version": "14.6.0-rc.0",
3
+ "version": "14.6.0-rc.1",
4
4
  "description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, Cypress, Karma, and Protractor. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Upgrading AngularJS applications \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -65,13 +65,13 @@
65
65
  },
66
66
  "dependencies": {
67
67
  "@angular-devkit/schematics": "~14.2.0",
68
- "@nrwl/cypress": "14.6.0-rc.0",
69
- "@nrwl/devkit": "14.6.0-rc.0",
70
- "@nrwl/jest": "14.6.0-rc.0",
71
- "@nrwl/linter": "14.6.0-rc.0",
72
- "@nrwl/storybook": "14.6.0-rc.0",
73
- "@nrwl/web": "14.6.0-rc.0",
74
- "@nrwl/workspace": "14.6.0-rc.0",
68
+ "@nrwl/cypress": "14.6.0-rc.1",
69
+ "@nrwl/devkit": "14.6.0-rc.1",
70
+ "@nrwl/jest": "14.6.0-rc.1",
71
+ "@nrwl/linter": "14.6.0-rc.1",
72
+ "@nrwl/storybook": "14.6.0-rc.1",
73
+ "@nrwl/web": "14.6.0-rc.1",
74
+ "@nrwl/workspace": "14.6.0-rc.1",
75
75
  "@phenomnomnominal/tsquery": "4.1.1",
76
76
  "@schematics/angular": "~14.2.0",
77
77
  "chalk": "4.1.0",
@@ -95,5 +95,5 @@
95
95
  "fesm2015": "fesm2015/nrwl-angular.mjs",
96
96
  "typings": "index.d.ts",
97
97
  "sideEffects": false,
98
- "gitHead": "a3126116826b4bc8d492341e2b2b02daa4b2195e"
98
+ "gitHead": "b86ace50d30e09f7a11713e2cffe63699995f928"
99
99
  }
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nrwl/devkit';
2
+ export default function (tree: Tree): Promise<void>;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const devkit_1 = require("@nrwl/devkit");
5
+ const semver_1 = require("semver");
6
+ const rxjsVersion = '~7.5.0';
7
+ function default_1(tree) {
8
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
9
+ let shouldFormat = false;
10
+ (0, devkit_1.updateJson)(tree, 'package.json', (json) => {
11
+ var _a, _b, _c, _d;
12
+ if (((_a = json.devDependencies) === null || _a === void 0 ? void 0 : _a['rxjs']) &&
13
+ (0, semver_1.gte)((0, semver_1.minVersion)((_b = json.devDependencies) === null || _b === void 0 ? void 0 : _b['rxjs']), '7.0.0')) {
14
+ json.devDependencies['rxjs'] = rxjsVersion;
15
+ shouldFormat = true;
16
+ }
17
+ else if (((_c = json.dependencies) === null || _c === void 0 ? void 0 : _c['rxjs']) &&
18
+ (0, semver_1.gte)((0, semver_1.minVersion)((_d = json.dependencies) === null || _d === void 0 ? void 0 : _d['rxjs']), '7.0.0')) {
19
+ json.dependencies['rxjs'] = rxjsVersion;
20
+ shouldFormat = true;
21
+ }
22
+ return json;
23
+ });
24
+ if (shouldFormat) {
25
+ yield (0, devkit_1.formatFiles)(tree);
26
+ }
27
+ });
28
+ }
29
+ exports.default = default_1;
30
+ //# sourceMappingURL=update-rxjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-rxjs.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/migrations/update-14-5-7/update-rxjs.ts"],"names":[],"mappings":";;;AAAA,yCAA6D;AAC7D,mCAAyC;AAEzC,MAAM,WAAW,GAAG,QAAQ,CAAC;AAE7B,mBAA+B,IAAU;;QACvC,IAAI,YAAY,GAAG,KAAK,CAAC;QAEzB,IAAA,mBAAU,EAAC,IAAI,EAAE,cAAc,EAAE,CAAC,IAAI,EAAE,EAAE;;YACxC,IACE,CAAA,MAAA,IAAI,CAAC,eAAe,0CAAG,MAAM,CAAC;gBAC9B,IAAA,YAAG,EAAC,IAAA,mBAAU,EAAC,MAAA,IAAI,CAAC,eAAe,0CAAG,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,EACxD;gBACA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC;gBAC3C,YAAY,GAAG,IAAI,CAAC;aACrB;iBAAM,IACL,CAAA,MAAA,IAAI,CAAC,YAAY,0CAAG,MAAM,CAAC;gBAC3B,IAAA,YAAG,EAAC,IAAA,mBAAU,EAAC,MAAA,IAAI,CAAC,YAAY,0CAAG,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,EACrD;gBACA,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC;gBACxC,YAAY,GAAG,IAAI,CAAC;aACrB;YAED,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;QAEH,IAAI,YAAY,EAAE;YAChB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;IACH,CAAC;CAAA;AAxBD,4BAwBC"}