@angular/core 18.2.11 → 18.2.13

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.2.11
2
+ * @license Angular v18.2.13
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.2.11
2
+ * @license Angular v18.2.13
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.2.11
2
+ * @license Angular v18.2.13
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.2.11
2
+ * @license Angular v18.2.13
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -175,10 +175,10 @@ class TestBedApplicationErrorHandler {
175
175
  throw e;
176
176
  }
177
177
  }
178
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TestBedApplicationErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
179
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TestBedApplicationErrorHandler }); }
178
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TestBedApplicationErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
179
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TestBedApplicationErrorHandler }); }
180
180
  }
181
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TestBedApplicationErrorHandler, decorators: [{
181
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TestBedApplicationErrorHandler, decorators: [{
182
182
  type: Injectable
183
183
  }] });
184
184
 
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.2.11
2
+ * @license Angular v18.2.13
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "18.2.11",
3
+ "version": "18.2.13",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.2.11
2
+ * @license Angular v18.2.13
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.2.11
2
+ * @license Angular v18.2.13
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.2.11
2
+ * @license Angular v18.2.13
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -23451,7 +23451,7 @@ function publishFacade(global) {
23451
23451
  }
23452
23452
 
23453
23453
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
23454
- var VERSION2 = new Version("18.2.11");
23454
+ var VERSION2 = new Version("18.2.13");
23455
23455
 
23456
23456
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
23457
23457
  var _VisitorMode;
@@ -23451,7 +23451,7 @@ function publishFacade(global) {
23451
23451
  }
23452
23452
 
23453
23453
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
23454
- var VERSION2 = new Version("18.2.11");
23454
+ var VERSION2 = new Version("18.2.13");
23455
23455
 
23456
23456
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
23457
23457
  var _VisitorMode;
@@ -27394,46 +27394,45 @@ function migrateTestingModuleImports(node, commonHttpIdentifiers, commonHttpTest
27394
27394
  }
27395
27395
  const commonHttpAddedImports = addedImports.get(COMMON_HTTP);
27396
27396
  const httpClient = importsArray.elements.find((elt) => elt.getText() === HTTP_CLIENT_MODULE);
27397
- if (httpClient && commonHttpIdentifiers.has(HTTP_CLIENT_MODULE)) {
27397
+ const httpClientTesting = importsArray.elements.find((elt) => elt.getText() === HTTP_CLIENT_TESTING_MODULE);
27398
+ if (httpClientTesting && commonHttpTestingIdentifiers.has(HTTP_CLIENT_TESTING_MODULE)) {
27398
27399
  commonHttpAddedImports == null ? void 0 : commonHttpAddedImports.add(PROVIDE_HTTP_CLIENT);
27399
27400
  commonHttpAddedImports == null ? void 0 : commonHttpAddedImports.add(WITH_INTERCEPTORS_FROM_DI);
27401
+ (_a2 = addedImports.get(COMMON_HTTP_TESTING)) == null ? void 0 : _a2.add(PROVIDE_HTTP_CLIENT_TESTING);
27400
27402
  const newImports = import_typescript96.default.factory.createArrayLiteralExpression([
27401
- ...importsArray.elements.filter((item) => item !== httpClient)
27403
+ ...importsArray.elements.filter((item) => item !== httpClientTesting && item !== httpClient)
27402
27404
  ]);
27403
27405
  const provideHttpClient = createCallExpression(PROVIDE_HTTP_CLIENT, [
27404
27406
  createCallExpression(WITH_INTERCEPTORS_FROM_DI)
27405
27407
  ]);
27408
+ const provideHttpClientTesting = createCallExpression(PROVIDE_HTTP_CLIENT_TESTING);
27406
27409
  const providers = getProvidersFromLiteralExpr(configureTestingModuleArgs);
27407
27410
  let newProviders;
27408
27411
  if (!providers) {
27409
- newProviders = import_typescript96.default.factory.createArrayLiteralExpression([provideHttpClient]);
27412
+ newProviders = import_typescript96.default.factory.createArrayLiteralExpression([
27413
+ provideHttpClient,
27414
+ provideHttpClientTesting
27415
+ ]);
27410
27416
  } else {
27411
- newProviders = import_typescript96.default.factory.updateArrayLiteralExpression(providers, import_typescript96.default.factory.createNodeArray([...providers.elements, provideHttpClient], providers.elements.hasTrailingComma));
27417
+ newProviders = import_typescript96.default.factory.updateArrayLiteralExpression(providers, import_typescript96.default.factory.createNodeArray([...providers.elements, provideHttpClient, provideHttpClientTesting], providers.elements.hasTrailingComma));
27412
27418
  }
27413
27419
  const newTestingModuleArgs = updateTestBedConfiguration(configureTestingModuleArgs, newImports, newProviders);
27414
27420
  changeTracker.replaceNode(configureTestingModuleArgs, newTestingModuleArgs);
27415
- }
27416
- const httpClientTesting = importsArray.elements.find((elt) => elt.getText() === HTTP_CLIENT_TESTING_MODULE);
27417
- if (httpClientTesting && commonHttpTestingIdentifiers.has(HTTP_CLIENT_TESTING_MODULE)) {
27421
+ } else if (httpClient && commonHttpIdentifiers.has(HTTP_CLIENT_MODULE)) {
27418
27422
  commonHttpAddedImports == null ? void 0 : commonHttpAddedImports.add(PROVIDE_HTTP_CLIENT);
27419
27423
  commonHttpAddedImports == null ? void 0 : commonHttpAddedImports.add(WITH_INTERCEPTORS_FROM_DI);
27420
- (_a2 = addedImports.get(COMMON_HTTP_TESTING)) == null ? void 0 : _a2.add(PROVIDE_HTTP_CLIENT_TESTING);
27421
27424
  const newImports = import_typescript96.default.factory.createArrayLiteralExpression([
27422
- ...importsArray.elements.filter((item) => item !== httpClientTesting)
27425
+ ...importsArray.elements.filter((item) => item !== httpClient)
27423
27426
  ]);
27424
27427
  const provideHttpClient = createCallExpression(PROVIDE_HTTP_CLIENT, [
27425
27428
  createCallExpression(WITH_INTERCEPTORS_FROM_DI)
27426
27429
  ]);
27427
- const provideHttpClientTesting = createCallExpression(PROVIDE_HTTP_CLIENT_TESTING);
27428
27430
  const providers = getProvidersFromLiteralExpr(configureTestingModuleArgs);
27429
27431
  let newProviders;
27430
27432
  if (!providers) {
27431
- newProviders = import_typescript96.default.factory.createArrayLiteralExpression([
27432
- provideHttpClient,
27433
- provideHttpClientTesting
27434
- ]);
27433
+ newProviders = import_typescript96.default.factory.createArrayLiteralExpression([provideHttpClient]);
27435
27434
  } else {
27436
- newProviders = import_typescript96.default.factory.updateArrayLiteralExpression(providers, import_typescript96.default.factory.createNodeArray([...providers.elements, provideHttpClient, provideHttpClientTesting], providers.elements.hasTrailingComma));
27435
+ newProviders = import_typescript96.default.factory.updateArrayLiteralExpression(providers, import_typescript96.default.factory.createNodeArray([...providers.elements, provideHttpClient], providers.elements.hasTrailingComma));
27437
27436
  }
27438
27437
  const newTestingModuleArgs = updateTestBedConfiguration(configureTestingModuleArgs, newImports, newProviders);
27439
27438
  changeTracker.replaceNode(configureTestingModuleArgs, newTestingModuleArgs);
@@ -23572,7 +23572,7 @@ function publishFacade(global) {
23572
23572
  }
23573
23573
 
23574
23574
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
23575
- var VERSION2 = new Version("18.2.11");
23575
+ var VERSION2 = new Version("18.2.13");
23576
23576
 
23577
23577
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
23578
23578
  var _VisitorMode;
@@ -23357,7 +23357,7 @@ function publishFacade(global) {
23357
23357
  }
23358
23358
 
23359
23359
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
23360
- var VERSION2 = new Version("18.2.11");
23360
+ var VERSION2 = new Version("18.2.13");
23361
23361
 
23362
23362
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
23363
23363
  var _VisitorMode;
@@ -23314,7 +23314,7 @@ function publishFacade(global) {
23314
23314
  }
23315
23315
 
23316
23316
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
23317
- var VERSION2 = new Version("18.2.11");
23317
+ var VERSION2 = new Version("18.2.13");
23318
23318
 
23319
23319
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
23320
23320
  var _VisitorMode;
@@ -23315,7 +23315,7 @@ function publishFacade(global) {
23315
23315
  }
23316
23316
 
23317
23317
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
23318
- var VERSION2 = new Version("18.2.11");
23318
+ var VERSION2 = new Version("18.2.13");
23319
23319
 
23320
23320
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
23321
23321
  var _VisitorMode;
@@ -26226,7 +26226,7 @@ function publishFacade(global) {
26226
26226
  }
26227
26227
 
26228
26228
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
26229
- var VERSION2 = new Version("18.2.11");
26229
+ var VERSION2 = new Version("18.2.13");
26230
26230
 
26231
26231
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
26232
26232
  var _I18N_ATTR = "i18n";
@@ -27343,7 +27343,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
27343
27343
  function compileDeclareClassMetadata(metadata) {
27344
27344
  const definitionMap = new DefinitionMap();
27345
27345
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
27346
- definitionMap.set("version", literal("18.2.11"));
27346
+ definitionMap.set("version", literal("18.2.13"));
27347
27347
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27348
27348
  definitionMap.set("type", metadata.type);
27349
27349
  definitionMap.set("decorators", metadata.decorators);
@@ -27362,7 +27362,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
27362
27362
  callbackReturnDefinitionMap.set("ctorParameters", (_a2 = metadata.ctorParameters) != null ? _a2 : literal(null));
27363
27363
  callbackReturnDefinitionMap.set("propDecorators", (_b2 = metadata.propDecorators) != null ? _b2 : literal(null));
27364
27364
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
27365
- definitionMap.set("version", literal("18.2.11"));
27365
+ definitionMap.set("version", literal("18.2.13"));
27366
27366
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27367
27367
  definitionMap.set("type", metadata.type);
27368
27368
  definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
@@ -27430,7 +27430,7 @@ function createDirectiveDefinitionMap(meta) {
27430
27430
  const definitionMap = new DefinitionMap();
27431
27431
  const minVersion = getMinimumVersionForPartialOutput(meta);
27432
27432
  definitionMap.set("minVersion", literal(minVersion));
27433
- definitionMap.set("version", literal("18.2.11"));
27433
+ definitionMap.set("version", literal("18.2.13"));
27434
27434
  definitionMap.set("type", meta.type.value);
27435
27435
  if (meta.isStandalone) {
27436
27436
  definitionMap.set("isStandalone", literal(meta.isStandalone));
@@ -27748,7 +27748,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION2 = "12.0.0";
27748
27748
  function compileDeclareFactoryFunction(meta) {
27749
27749
  const definitionMap = new DefinitionMap();
27750
27750
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
27751
- definitionMap.set("version", literal("18.2.11"));
27751
+ definitionMap.set("version", literal("18.2.13"));
27752
27752
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27753
27753
  definitionMap.set("type", meta.type.value);
27754
27754
  definitionMap.set("deps", compileDependencies(meta.deps));
@@ -27771,7 +27771,7 @@ function compileDeclareInjectableFromMetadata(meta) {
27771
27771
  function createInjectableDefinitionMap(meta) {
27772
27772
  const definitionMap = new DefinitionMap();
27773
27773
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
27774
- definitionMap.set("version", literal("18.2.11"));
27774
+ definitionMap.set("version", literal("18.2.13"));
27775
27775
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27776
27776
  definitionMap.set("type", meta.type.value);
27777
27777
  if (meta.providedIn !== void 0) {
@@ -27809,7 +27809,7 @@ function compileDeclareInjectorFromMetadata(meta) {
27809
27809
  function createInjectorDefinitionMap(meta) {
27810
27810
  const definitionMap = new DefinitionMap();
27811
27811
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
27812
- definitionMap.set("version", literal("18.2.11"));
27812
+ definitionMap.set("version", literal("18.2.13"));
27813
27813
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27814
27814
  definitionMap.set("type", meta.type.value);
27815
27815
  definitionMap.set("providers", meta.providers);
@@ -27833,7 +27833,7 @@ function createNgModuleDefinitionMap(meta) {
27833
27833
  throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
27834
27834
  }
27835
27835
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
27836
- definitionMap.set("version", literal("18.2.11"));
27836
+ definitionMap.set("version", literal("18.2.13"));
27837
27837
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27838
27838
  definitionMap.set("type", meta.type.value);
27839
27839
  if (meta.bootstrap.length > 0) {
@@ -27868,7 +27868,7 @@ function compileDeclarePipeFromMetadata(meta) {
27868
27868
  function createPipeDefinitionMap(meta) {
27869
27869
  const definitionMap = new DefinitionMap();
27870
27870
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
27871
- definitionMap.set("version", literal("18.2.11"));
27871
+ definitionMap.set("version", literal("18.2.13"));
27872
27872
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27873
27873
  definitionMap.set("type", meta.type.value);
27874
27874
  if (meta.isStandalone) {
@@ -27885,7 +27885,7 @@ function createPipeDefinitionMap(meta) {
27885
27885
  publishFacade(_global);
27886
27886
 
27887
27887
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version.mjs
27888
- var VERSION3 = new Version("18.2.11");
27888
+ var VERSION3 = new Version("18.2.13");
27889
27889
 
27890
27890
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
27891
27891
  var import_typescript5 = __toESM(require("typescript"), 1);
@@ -47306,6 +47306,7 @@ function extractTypeAlias(declaration) {
47306
47306
  name: declaration.name.getText(),
47307
47307
  type: declaration.type.getText(),
47308
47308
  entryType: EntryType.TypeAlias,
47309
+ generics: extractGenerics(declaration),
47309
47310
  rawComment: extractRawJsDoc(declaration),
47310
47311
  description: extractJsDocDescription(declaration),
47311
47312
  jsdocTags: extractJsDocTags(declaration)
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.2.11
2
+ * @license Angular v18.2.13
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */