@angular/core 16.2.0-next.2 → 16.2.0-next.4

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.2.0-next.2
2
+ * @license Angular v16.2.0-next.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1685,7 +1685,7 @@ export declare const ContentChildren: ContentChildrenDecorator;
1685
1685
  /**
1686
1686
  * Type of the ContentChildren decorator / constructor function.
1687
1687
  *
1688
- * @see {@link ContentChildren}.
1688
+ * @see {@link ContentChildren}
1689
1689
  * @publicApi
1690
1690
  */
1691
1691
  export declare interface ContentChildrenDecorator {
@@ -6709,10 +6709,10 @@ export declare interface Query {
6709
6709
  /**
6710
6710
  * Base class for query metadata.
6711
6711
  *
6712
- * @see {@link ContentChildren}.
6713
- * @see {@link ContentChild}.
6714
- * @see {@link ViewChildren}.
6715
- * @see {@link ViewChild}.
6712
+ * @see {@link ContentChildren}
6713
+ * @see {@link ContentChild}
6714
+ * @see {@link ViewChildren}
6715
+ * @see {@link ViewChild}
6716
6716
  *
6717
6717
  * @publicApi
6718
6718
  */
@@ -7682,7 +7682,8 @@ declare const enum RuntimeErrorCode {
7682
7682
  UNEXPECTED_ZONE_STATE = 909,
7683
7683
  UNSAFE_IFRAME_ATTRS = -910,
7684
7684
  VIEW_ALREADY_DESTROYED = 911,
7685
- COMPONENT_ID_COLLISION = -912
7685
+ COMPONENT_ID_COLLISION = -912,
7686
+ RUNTIME_DEPS_INVALID_IMPORTED_TYPE = 1000
7686
7687
  }
7687
7688
 
7688
7689
  /**
@@ -8061,7 +8062,7 @@ export declare interface StaticClassSansProvider {
8061
8062
  * Describes how an `Injector` should be configured as static (that is, without reflection).
8062
8063
  * A static provider provides tokens to an injector for various types of dependencies.
8063
8064
  *
8064
- * @see {@link Injector.create()}.
8065
+ * @see {@link Injector.create()}
8065
8066
  * @see ["Dependency Injection Guide"](guide/dependency-injection-providers).
8066
8067
  *
8067
8068
  * @publicApi
@@ -9791,7 +9792,7 @@ export declare const ViewChild: ViewChildDecorator;
9791
9792
  /**
9792
9793
  * Type of the ViewChild decorator / constructor function.
9793
9794
  *
9794
- * @see {@link ViewChild}.
9795
+ * @see {@link ViewChild}
9795
9796
  * @publicApi
9796
9797
  */
9797
9798
  export declare interface ViewChildDecorator {
@@ -9868,7 +9869,7 @@ export declare const ViewChildren: ViewChildrenDecorator;
9868
9869
  /**
9869
9870
  * Type of the ViewChildren decorator / constructor function.
9870
9871
  *
9871
- * @see {@link ViewChildren}.
9872
+ * @see {@link ViewChildren}
9872
9873
  *
9873
9874
  * @publicApi
9874
9875
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "16.2.0-next.2",
3
+ "version": "16.2.0-next.4",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.2.0-next.2
2
+ * @license Angular v16.2.0-next.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -64,8 +64,8 @@ export declare interface ToObservableOptions {
64
64
  * By default, the subscription will be automatically cleaned up when the current [injection
65
65
  * context](guide/dependency-injection-context) is destroyed. For example, when `toObservable` is
66
66
  * called during the construction of a component, the subscription will be cleaned up when the
67
- * component is destroyed. If an injection context is not available, an explicit `Injector` can be
68
- * passed instead.
67
+ * component is destroyed. If an [injection context](/guide/dependency-injection-context) is not
68
+ * available, an explicit `Injector` can be passed instead.
69
69
  *
70
70
  * If the subscription should persist until the `Observable` itself completes, the `manualCleanup`
71
71
  * option can be specified instead, which disables the automatic subscription teardown. No injection
@@ -85,10 +85,11 @@ export declare function toSignal<T>(source: Observable<T> | Subscribable<T>): Si
85
85
  * `initialValue`, or `undefined` if no `initialValue` is provided. If the `Observable` is
86
86
  * guaranteed to emit synchronously, then the `requireSync` option can be passed instead.
87
87
  *
88
- * By default, the subscription will be automatically cleaned up when the current injection context
89
- * is destroyed. For example, when `toObservable` is called during the construction of a component,
90
- * the subscription will be cleaned up when the component is destroyed. If an injection context is
91
- * not available, an explicit `Injector` can be passed instead.
88
+ * By default, the subscription will be automatically cleaned up when the current [injection
89
+ * context](/guide/dependency-injection-context) is destroyed. For example, when `toObservable` is
90
+ * called during the construction of a component, the subscription will be cleaned up when the
91
+ * component is destroyed. If an injection context is not available, an explicit `Injector` can be
92
+ * passed instead.
92
93
  *
93
94
  * If the subscription should persist until the `Observable` itself completes, the `manualCleanup`
94
95
  * option can be specified instead, which disables the automatic subscription teardown. No injection
@@ -115,8 +116,8 @@ export declare function toSignal<T>(source: Observable<T> | Subscribable<T>, opt
115
116
  * By default, the subscription will be automatically cleaned up when the current [injection
116
117
  * context](guide/dependency-injection-context) is destroyed. For example, when `toObservable` is
117
118
  * called during the construction of a component, the subscription will be cleaned up when the
118
- * component is destroyed. If an injection context is not available, an explicit `Injector` can be
119
- * passed instead.
119
+ * component is destroyed. If an [injection context](/guide/dependency-injection-context) is not
120
+ * available, an explicit `Injector` can be passed instead.
120
121
  *
121
122
  * If the subscription should persist until the `Observable` itself completes, the `manualCleanup`
122
123
  * option can be specified instead, which disables the automatic subscription teardown. No injection
@@ -141,10 +142,11 @@ export declare function toSignal<T, U extends T | null | undefined>(source: Obse
141
142
  * immediately upon subscription. No `initialValue` is needed in this case, and the returned signal
142
143
  * does not include an `undefined` type.
143
144
  *
144
- * By default, the subscription will be automatically cleaned up when the current injection context
145
- * is destroyed. For example, when `toObservable` is called during the construction of a component,
146
- * the subscription will be cleaned up when the component is destroyed. If an injection context is
147
- * not available, an explicit `Injector` can be passed instead.
145
+ * By default, the subscription will be automatically cleaned up when the current [injection
146
+ * context](/guide/dependency-injection-context) is destroyed. For example, when `toObservable` is
147
+ * called during the construction of a component, the subscription will be cleaned up when the
148
+ * component is destroyed. If an injection context is not available, an explicit `Injector` can be
149
+ * passed instead.
148
150
  *
149
151
  * If the subscription should persist until the `Observable` itself completes, the `manualCleanup`
150
152
  * option can be specified instead, which disables the automatic subscription teardown. No injection
@@ -180,8 +182,8 @@ export declare interface ToSignalOptions<T> {
180
182
  /**
181
183
  * `Injector` which will provide the `DestroyRef` used to clean up the Observable subscription.
182
184
  *
183
- * If this is not provided, a `DestroyRef` will be retrieved from the current injection context,
184
- * unless manual cleanup is requested.
185
+ * If this is not provided, a `DestroyRef` will be retrieved from the current [injection
186
+ * context](/guide/dependency-injection-context), unless manual cleanup is requested.
185
187
  */
186
188
  injector?: Injector;
187
189
  /**
@@ -60,7 +60,7 @@ var __async = (__this, __arguments, generator) => {
60
60
  });
61
61
  };
62
62
 
63
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
63
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
64
64
  var guard_and_resolve_interfaces_exports = {};
65
65
  __export(guard_and_resolve_interfaces_exports, {
66
66
  default: () => guard_and_resolve_interfaces_default
@@ -69,7 +69,7 @@ module.exports = __toCommonJS(guard_and_resolve_interfaces_exports);
69
69
  var import_schematics = require("@angular-devkit/schematics");
70
70
  var import_path3 = require("path");
71
71
 
72
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
72
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
73
73
  var import_core = require("@angular-devkit/core");
74
74
  function getProjectTsConfigPaths(tree) {
75
75
  return __async(this, null, function* () {
@@ -149,11 +149,11 @@ function getWorkspace(tree) {
149
149
  });
150
150
  }
151
151
 
152
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
152
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
153
153
  var import_path = require("path");
154
154
  var import_typescript2 = __toESM(require("typescript"), 1);
155
155
 
156
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
156
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
157
157
  var path = __toESM(require("path"), 1);
158
158
  var import_typescript = __toESM(require("typescript"), 1);
159
159
  function parseTsconfigFile(tsconfigPath, basePath) {
@@ -170,7 +170,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
170
170
  return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
171
171
  }
172
172
 
173
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
173
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
174
174
  function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
175
175
  const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
176
176
  return import_typescript2.default.createProgram(rootNames, options, host);
@@ -203,13 +203,13 @@ function canMigrateFile(basePath, sourceFile, program) {
203
203
  return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
204
204
  }
205
205
 
206
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
206
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
207
207
  var import_typescript7 = __toESM(require("typescript"), 1);
208
208
 
209
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
209
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
210
210
  var import_typescript4 = __toESM(require("typescript"), 1);
211
211
 
212
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
212
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
213
213
  var import_path2 = require("path");
214
214
  var import_typescript3 = __toESM(require("typescript"), 1);
215
215
  var ImportManager = class {
@@ -393,7 +393,7 @@ ${text}`;
393
393
  }
394
394
  };
395
395
 
396
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
396
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
397
397
  var ChangeTracker = class {
398
398
  constructor(_printer, _importRemapper) {
399
399
  __publicField(this, "_printer");
@@ -449,7 +449,7 @@ function normalizePath(path2) {
449
449
  return path2.replace(/\\/g, "/");
450
450
  }
451
451
 
452
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
452
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
453
453
  var import_typescript5 = __toESM(require("typescript"), 1);
454
454
  function getImportOfIdentifier(typeChecker, node) {
455
455
  const symbol = typeChecker.getSymbolAtLocation(node);
@@ -521,7 +521,7 @@ function findImportSpecifier(nodes, specifierName) {
521
521
  });
522
522
  }
523
523
 
524
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
524
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
525
525
  var import_typescript6 = __toESM(require("typescript"), 1);
526
526
  function closestNode(node, predicate) {
527
527
  let current = node.parent;
@@ -534,7 +534,7 @@ function closestNode(node, predicate) {
534
534
  return null;
535
535
  }
536
536
 
537
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
537
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
538
538
  var deprecatedInterfaces = /* @__PURE__ */ new Set(["CanLoad", "CanMatch", "CanActivate", "CanDeactivate", "CanActivateChild", "Resolve"]);
539
539
  var routerModule = "@angular/router";
540
540
  function migrateFile(sourceFile, typeChecker, rewriteFn) {
@@ -647,7 +647,7 @@ function visitTypeReference(typeReference, typeChecker, changeTracker, sourceFil
647
647
  import_typescript7.default.forEachChild(typeReference, visitTypeReferenceChildren);
648
648
  }
649
649
 
650
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
650
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
651
651
  function guard_and_resolve_interfaces_default() {
652
652
  return (tree) => __async(this, null, function* () {
653
653
  const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
@@ -56,7 +56,7 @@ var __async = (__this, __arguments, generator) => {
56
56
  });
57
57
  };
58
58
 
59
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
59
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
60
60
  var remove_module_id_exports = {};
61
61
  __export(remove_module_id_exports, {
62
62
  default: () => remove_module_id_default
@@ -66,13 +66,13 @@ var import_schematics = require("@angular-devkit/schematics");
66
66
  var import_path2 = require("path");
67
67
  var import_typescript8 = __toESM(require("typescript"), 1);
68
68
 
69
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
69
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
70
70
  var import_typescript4 = __toESM(require("typescript"), 1);
71
71
 
72
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
72
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
73
73
  var import_typescript2 = __toESM(require("typescript"), 1);
74
74
 
75
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
75
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
76
76
  var import_typescript = __toESM(require("typescript"), 1);
77
77
  function getImportOfIdentifier(typeChecker, node) {
78
78
  const symbol = typeChecker.getSymbolAtLocation(node);
@@ -94,7 +94,7 @@ function getImportOfIdentifier(typeChecker, node) {
94
94
  };
95
95
  }
96
96
 
97
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
97
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
98
98
  function getCallDecoratorImport(typeChecker, decorator) {
99
99
  if (!import_typescript2.default.isCallExpression(decorator.expression) || !import_typescript2.default.isIdentifier(decorator.expression.expression)) {
100
100
  return null;
@@ -103,7 +103,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
103
103
  return getImportOfIdentifier(typeChecker, identifier);
104
104
  }
105
105
 
106
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
106
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
107
107
  function getAngularDecorators(typeChecker, decorators) {
108
108
  return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
109
109
  node,
@@ -113,7 +113,7 @@ function getAngularDecorators(typeChecker, decorators) {
113
113
  }));
114
114
  }
115
115
 
116
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/functions.mjs
116
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/functions.mjs
117
117
  var import_typescript3 = __toESM(require("typescript"), 1);
118
118
  function unwrapExpression(node) {
119
119
  if (import_typescript3.default.isParenthesizedExpression(node) || import_typescript3.default.isAsExpression(node)) {
@@ -123,7 +123,7 @@ function unwrapExpression(node) {
123
123
  }
124
124
  }
125
125
 
126
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
126
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
127
127
  function extractAngularClassMetadata(typeChecker, node) {
128
128
  const decorators = import_typescript4.default.getDecorators(node);
129
129
  if (!decorators || !decorators.length) {
@@ -150,7 +150,7 @@ function extractAngularClassMetadata(typeChecker, node) {
150
150
  };
151
151
  }
152
152
 
153
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
153
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
154
154
  var import_core = require("@angular-devkit/core");
155
155
  function getProjectTsConfigPaths(tree) {
156
156
  return __async(this, null, function* () {
@@ -230,11 +230,11 @@ function getWorkspace(tree) {
230
230
  });
231
231
  }
232
232
 
233
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
233
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
234
234
  var import_path = require("path");
235
235
  var import_typescript6 = __toESM(require("typescript"), 1);
236
236
 
237
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
237
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
238
238
  var path = __toESM(require("path"), 1);
239
239
  var import_typescript5 = __toESM(require("typescript"), 1);
240
240
  function parseTsconfigFile(tsconfigPath, basePath) {
@@ -251,7 +251,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
251
251
  return import_typescript5.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
252
252
  }
253
253
 
254
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
254
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
255
255
  function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
256
256
  const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
257
257
  return import_typescript6.default.createProgram(rootNames, options, host);
@@ -284,7 +284,7 @@ function canMigrateFile(basePath, sourceFile, program) {
284
284
  return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
285
285
  }
286
286
 
287
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/property_name.mjs
287
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/property_name.mjs
288
288
  var import_typescript7 = __toESM(require("typescript"), 1);
289
289
  function getPropertyNameText(node) {
290
290
  if (import_typescript7.default.isIdentifier(node) || import_typescript7.default.isStringLiteralLike(node)) {
@@ -293,7 +293,7 @@ function getPropertyNameText(node) {
293
293
  return null;
294
294
  }
295
295
 
296
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
296
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
297
297
  function remove_module_id_default() {
298
298
  return (tree) => __async(this, null, function* () {
299
299
  const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);