@angular-devkit/core 13.0.0-next.9 → 13.0.0-rc.3

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/node/BUILD.bazel CHANGED
@@ -28,6 +28,7 @@ ts_library(
28
28
  deps = [
29
29
  "//packages/angular_devkit/core",
30
30
  "@npm//@types/node",
31
+ "@npm//chokidar",
31
32
  "@npm//rxjs",
32
33
  ],
33
34
  )
package/node/host.js CHANGED
@@ -114,7 +114,8 @@ class NodeJsAsyncHost {
114
114
  watch(path, _options) {
115
115
  return new rxjs_1.Observable((obs) => {
116
116
  loadFSWatcher();
117
- const watcher = new FSWatcher({ persistent: true }).add((0, src_1.getSystemPath)(path));
117
+ const watcher = new FSWatcher({ persistent: true });
118
+ watcher.add((0, src_1.getSystemPath)(path));
118
119
  watcher
119
120
  .on('change', (path) => {
120
121
  obs.next({
@@ -232,9 +233,9 @@ class NodeJsSyncHost {
232
233
  // Some hosts may not support watching.
233
234
  watch(path, _options) {
234
235
  return new rxjs_1.Observable((obs) => {
235
- const opts = { persistent: false };
236
236
  loadFSWatcher();
237
- const watcher = new FSWatcher(opts).add((0, src_1.getSystemPath)(path));
237
+ const watcher = new FSWatcher({ persistent: false });
238
+ watcher.add((0, src_1.getSystemPath)(path));
238
239
  watcher
239
240
  .on('change', (path) => {
240
241
  obs.next({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-devkit/core",
3
- "version": "13.0.0-next.9",
3
+ "version": "13.0.0-rc.3",
4
4
  "description": "Angular DevKit - Core Utility Library",
5
5
  "main": "src/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -20,13 +20,21 @@
20
20
  "rxjs": "6.6.7",
21
21
  "source-map": "0.7.3"
22
22
  },
23
+ "peerDependencies": {
24
+ "chokidar": "^3.5.2"
25
+ },
26
+ "peerDependenciesMeta": {
27
+ "chokidar": {
28
+ "optional": true
29
+ }
30
+ },
23
31
  "repository": {
24
32
  "type": "git",
25
33
  "url": "https://github.com/angular/angular-cli.git"
26
34
  },
27
35
  "engines": {
28
36
  "node": "^12.20.0 || ^14.15.0 || >=16.10.0",
29
- "npm": "^6.11.0 || ^7.5.6",
37
+ "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
30
38
  "yarn": ">= 1.13.0"
31
39
  },
32
40
  "author": "Angular Authors",
@@ -25,7 +25,7 @@ export declare enum NgCliAnalyticsDimensions {
25
25
  RamInGigabytes = 3,
26
26
  NodeVersion = 4,
27
27
  NgAddCollection = 6,
28
- NgIvyEnabled = 8,
28
+ AotEnabled = 8,
29
29
  BuildErrors = 20
30
30
  }
31
31
  export declare enum NgCliAnalyticsMetrics {
@@ -39,7 +39,7 @@ var NgCliAnalyticsDimensions;
39
39
  NgCliAnalyticsDimensions[NgCliAnalyticsDimensions["RamInGigabytes"] = 3] = "RamInGigabytes";
40
40
  NgCliAnalyticsDimensions[NgCliAnalyticsDimensions["NodeVersion"] = 4] = "NodeVersion";
41
41
  NgCliAnalyticsDimensions[NgCliAnalyticsDimensions["NgAddCollection"] = 6] = "NgAddCollection";
42
- NgCliAnalyticsDimensions[NgCliAnalyticsDimensions["NgIvyEnabled"] = 8] = "NgIvyEnabled";
42
+ NgCliAnalyticsDimensions[NgCliAnalyticsDimensions["AotEnabled"] = 8] = "AotEnabled";
43
43
  NgCliAnalyticsDimensions[NgCliAnalyticsDimensions["BuildErrors"] = 20] = "BuildErrors";
44
44
  })(NgCliAnalyticsDimensions = exports.NgCliAnalyticsDimensions || (exports.NgCliAnalyticsDimensions = {}));
45
45
  var NgCliAnalyticsMetrics;
@@ -68,7 +68,7 @@ exports.NgCliAnalyticsDimensionsFlagInfo = {
68
68
  RamInGigabytes: ['RAM (In GB)', 'number'],
69
69
  NodeVersion: ['Node Version', 'number'],
70
70
  NgAddCollection: ['--collection', 'string'],
71
- NgIvyEnabled: ['Ivy Enabled', 'boolean'],
71
+ AotEnabled: ['AOT Enabled', 'boolean'],
72
72
  BuildErrors: ['Build Errors (comma separated)', 'string'],
73
73
  };
74
74
  // This table is used when generating the analytics.md file. It should match the enum above
@@ -11,4 +11,4 @@ export declare function mapObject<T, V>(obj: {
11
11
  }, mapper: (k: string, v: T) => V): {
12
12
  [k: string]: V;
13
13
  };
14
- export declare function deepCopy<T extends any>(value: T): T;
14
+ export declare function deepCopy<T>(value: T): T;
@@ -17,10 +17,8 @@ function mapObject(obj, mapper) {
17
17
  }
18
18
  exports.mapObject = mapObject;
19
19
  const copySymbol = Symbol();
20
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
21
20
  function deepCopy(value) {
22
21
  if (Array.isArray(value)) {
23
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
24
22
  return value.map((o) => deepCopy(o));
25
23
  }
26
24
  else if (value && typeof value === 'object') {