@angular/core 18.2.8 → 18.2.9
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/esm2022/src/event_emitter.mjs +4 -1
- package/esm2022/src/interface/type.mjs +1 -1
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/render3/definition.mjs +1 -1
- package/esm2022/src/render3/features/input_transforms_feature.mjs +1 -1
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/application_error_handler.mjs +3 -3
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +6 -3
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +4 -4
- package/index.d.ts +3 -9
- package/package.json +1 -1
- package/primitives/event-dispatch/index.d.ts +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/after-render-phase/bundle.js +1 -1
- package/schematics/migrations/http-providers/bundle.js +1 -1
- package/schematics/migrations/invalid-two-way-bindings/bundle.js +1 -1
- package/schematics/ng-generate/control-flow-migration/bundle.js +1 -1
- package/schematics/ng-generate/inject-migration/bundle.js +1 -1
- package/schematics/ng-generate/route-lazy-loading/bundle.js +1 -1
- package/schematics/ng-generate/standalone-migration/bundle.js +38 -19
- package/testing/index.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v18.2.
|
|
2
|
+
* @license Angular v18.2.9
|
|
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.
|
|
179
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
178
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TestBedApplicationErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
179
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TestBedApplicationErrorHandler }); }
|
|
180
180
|
}
|
|
181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", 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.
|
|
2
|
+
* @license Angular v18.2.9
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -7272,12 +7272,6 @@ declare const MOVED_VIEWS = 9;
|
|
|
7272
7272
|
|
|
7273
7273
|
declare const MULTIPLIER = "x";
|
|
7274
7274
|
|
|
7275
|
-
declare type Mutable<T extends {
|
|
7276
|
-
[x: string]: any;
|
|
7277
|
-
}, K extends string> = {
|
|
7278
|
-
[P in K]: T[P];
|
|
7279
|
-
};
|
|
7280
|
-
|
|
7281
7275
|
declare const NATIVE = 7;
|
|
7282
7276
|
|
|
7283
7277
|
declare const NEXT = 4;
|
|
@@ -15199,7 +15193,7 @@ export declare function ɵɵdeferWhen(rawValue: unknown): void;
|
|
|
15199
15193
|
* ```
|
|
15200
15194
|
* @codeGenApi
|
|
15201
15195
|
*/
|
|
15202
|
-
export declare function ɵɵdefineComponent<T>(componentDefinition: ComponentDefinition<T>):
|
|
15196
|
+
export declare function ɵɵdefineComponent<T>(componentDefinition: ComponentDefinition<T>): ɵComponentDef<any>;
|
|
15203
15197
|
|
|
15204
15198
|
/**
|
|
15205
15199
|
* Create a directive definition object.
|
|
@@ -15217,7 +15211,7 @@ export declare function ɵɵdefineComponent<T>(componentDefinition: ComponentDef
|
|
|
15217
15211
|
*
|
|
15218
15212
|
* @codeGenApi
|
|
15219
15213
|
*/
|
|
15220
|
-
export declare function ɵɵdefineDirective<T>(directiveDefinition: DirectiveDefinition<T>):
|
|
15214
|
+
export declare function ɵɵdefineDirective<T>(directiveDefinition: DirectiveDefinition<T>): ɵDirectiveDef<any>;
|
|
15221
15215
|
|
|
15222
15216
|
/**
|
|
15223
15217
|
* Construct an injectable definition which defines how a token will be constructed by the DI
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED
|
@@ -23493,7 +23493,7 @@ function publishFacade(global) {
|
|
|
23493
23493
|
}
|
|
23494
23494
|
|
|
23495
23495
|
// bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
|
|
23496
|
-
var VERSION2 = new Version("18.2.
|
|
23496
|
+
var VERSION2 = new Version("18.2.9");
|
|
23497
23497
|
|
|
23498
23498
|
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
23499
23499
|
var _VisitorMode;
|
|
@@ -23493,7 +23493,7 @@ function publishFacade(global) {
|
|
|
23493
23493
|
}
|
|
23494
23494
|
|
|
23495
23495
|
// bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
|
|
23496
|
-
var VERSION2 = new Version("18.2.
|
|
23496
|
+
var VERSION2 = new Version("18.2.9");
|
|
23497
23497
|
|
|
23498
23498
|
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
23499
23499
|
var _VisitorMode;
|
|
@@ -23614,7 +23614,7 @@ function publishFacade(global) {
|
|
|
23614
23614
|
}
|
|
23615
23615
|
|
|
23616
23616
|
// bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
|
|
23617
|
-
var VERSION2 = new Version("18.2.
|
|
23617
|
+
var VERSION2 = new Version("18.2.9");
|
|
23618
23618
|
|
|
23619
23619
|
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
23620
23620
|
var _VisitorMode;
|
|
@@ -23399,7 +23399,7 @@ function publishFacade(global) {
|
|
|
23399
23399
|
}
|
|
23400
23400
|
|
|
23401
23401
|
// bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
|
|
23402
|
-
var VERSION2 = new Version("18.2.
|
|
23402
|
+
var VERSION2 = new Version("18.2.9");
|
|
23403
23403
|
|
|
23404
23404
|
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
23405
23405
|
var _VisitorMode;
|
|
@@ -23356,7 +23356,7 @@ function publishFacade(global) {
|
|
|
23356
23356
|
}
|
|
23357
23357
|
|
|
23358
23358
|
// bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
|
|
23359
|
-
var VERSION2 = new Version("18.2.
|
|
23359
|
+
var VERSION2 = new Version("18.2.9");
|
|
23360
23360
|
|
|
23361
23361
|
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
23362
23362
|
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.
|
|
23360
|
+
var VERSION2 = new Version("18.2.9");
|
|
23361
23361
|
|
|
23362
23362
|
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
23363
23363
|
var _VisitorMode;
|
|
@@ -26268,7 +26268,7 @@ function publishFacade(global) {
|
|
|
26268
26268
|
}
|
|
26269
26269
|
|
|
26270
26270
|
// bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
|
|
26271
|
-
var VERSION2 = new Version("18.2.
|
|
26271
|
+
var VERSION2 = new Version("18.2.9");
|
|
26272
26272
|
|
|
26273
26273
|
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
26274
26274
|
var _I18N_ATTR = "i18n";
|
|
@@ -27385,7 +27385,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
|
|
|
27385
27385
|
function compileDeclareClassMetadata(metadata) {
|
|
27386
27386
|
const definitionMap = new DefinitionMap();
|
|
27387
27387
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
27388
|
-
definitionMap.set("version", literal("18.2.
|
|
27388
|
+
definitionMap.set("version", literal("18.2.9"));
|
|
27389
27389
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27390
27390
|
definitionMap.set("type", metadata.type);
|
|
27391
27391
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -27404,7 +27404,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
27404
27404
|
callbackReturnDefinitionMap.set("ctorParameters", (_a2 = metadata.ctorParameters) != null ? _a2 : literal(null));
|
|
27405
27405
|
callbackReturnDefinitionMap.set("propDecorators", (_b2 = metadata.propDecorators) != null ? _b2 : literal(null));
|
|
27406
27406
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
27407
|
-
definitionMap.set("version", literal("18.2.
|
|
27407
|
+
definitionMap.set("version", literal("18.2.9"));
|
|
27408
27408
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27409
27409
|
definitionMap.set("type", metadata.type);
|
|
27410
27410
|
definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -27472,7 +27472,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
27472
27472
|
const definitionMap = new DefinitionMap();
|
|
27473
27473
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
27474
27474
|
definitionMap.set("minVersion", literal(minVersion));
|
|
27475
|
-
definitionMap.set("version", literal("18.2.
|
|
27475
|
+
definitionMap.set("version", literal("18.2.9"));
|
|
27476
27476
|
definitionMap.set("type", meta.type.value);
|
|
27477
27477
|
if (meta.isStandalone) {
|
|
27478
27478
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -27790,7 +27790,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION2 = "12.0.0";
|
|
|
27790
27790
|
function compileDeclareFactoryFunction(meta) {
|
|
27791
27791
|
const definitionMap = new DefinitionMap();
|
|
27792
27792
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
|
|
27793
|
-
definitionMap.set("version", literal("18.2.
|
|
27793
|
+
definitionMap.set("version", literal("18.2.9"));
|
|
27794
27794
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27795
27795
|
definitionMap.set("type", meta.type.value);
|
|
27796
27796
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -27813,7 +27813,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
27813
27813
|
function createInjectableDefinitionMap(meta) {
|
|
27814
27814
|
const definitionMap = new DefinitionMap();
|
|
27815
27815
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
27816
|
-
definitionMap.set("version", literal("18.2.
|
|
27816
|
+
definitionMap.set("version", literal("18.2.9"));
|
|
27817
27817
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27818
27818
|
definitionMap.set("type", meta.type.value);
|
|
27819
27819
|
if (meta.providedIn !== void 0) {
|
|
@@ -27851,7 +27851,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
27851
27851
|
function createInjectorDefinitionMap(meta) {
|
|
27852
27852
|
const definitionMap = new DefinitionMap();
|
|
27853
27853
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
27854
|
-
definitionMap.set("version", literal("18.2.
|
|
27854
|
+
definitionMap.set("version", literal("18.2.9"));
|
|
27855
27855
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27856
27856
|
definitionMap.set("type", meta.type.value);
|
|
27857
27857
|
definitionMap.set("providers", meta.providers);
|
|
@@ -27875,7 +27875,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
27875
27875
|
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
27876
27876
|
}
|
|
27877
27877
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
27878
|
-
definitionMap.set("version", literal("18.2.
|
|
27878
|
+
definitionMap.set("version", literal("18.2.9"));
|
|
27879
27879
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27880
27880
|
definitionMap.set("type", meta.type.value);
|
|
27881
27881
|
if (meta.bootstrap.length > 0) {
|
|
@@ -27910,7 +27910,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
27910
27910
|
function createPipeDefinitionMap(meta) {
|
|
27911
27911
|
const definitionMap = new DefinitionMap();
|
|
27912
27912
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
27913
|
-
definitionMap.set("version", literal("18.2.
|
|
27913
|
+
definitionMap.set("version", literal("18.2.9"));
|
|
27914
27914
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27915
27915
|
definitionMap.set("type", meta.type.value);
|
|
27916
27916
|
if (meta.isStandalone) {
|
|
@@ -27927,7 +27927,7 @@ function createPipeDefinitionMap(meta) {
|
|
|
27927
27927
|
publishFacade(_global);
|
|
27928
27928
|
|
|
27929
27929
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
27930
|
-
var VERSION3 = new Version("18.2.
|
|
27930
|
+
var VERSION3 = new Version("18.2.9");
|
|
27931
27931
|
|
|
27932
27932
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
27933
27933
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
@@ -35359,6 +35359,7 @@ function makeUnknownComponentDeferredImportDiagnostic(ref, rawExpr) {
|
|
|
35359
35359
|
}
|
|
35360
35360
|
|
|
35361
35361
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
35362
|
+
var IN_PROGRESS_RESOLUTION = {};
|
|
35362
35363
|
var LocalModuleScopeRegistry = class {
|
|
35363
35364
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
35364
35365
|
this.localReader = localReader;
|
|
@@ -35431,8 +35432,12 @@ var LocalModuleScopeRegistry = class {
|
|
|
35431
35432
|
}
|
|
35432
35433
|
getScopeOfModuleReference(ref) {
|
|
35433
35434
|
if (this.cache.has(ref.node)) {
|
|
35434
|
-
|
|
35435
|
+
const cachedValue = this.cache.get(ref.node);
|
|
35436
|
+
if (cachedValue !== IN_PROGRESS_RESOLUTION) {
|
|
35437
|
+
return cachedValue;
|
|
35438
|
+
}
|
|
35435
35439
|
}
|
|
35440
|
+
this.cache.set(ref.node, IN_PROGRESS_RESOLUTION);
|
|
35436
35441
|
this.sealed = true;
|
|
35437
35442
|
const ngModule = this.localReader.getNgModuleMetadata(ref);
|
|
35438
35443
|
if (ngModule === null) {
|
|
@@ -35452,10 +35457,12 @@ var LocalModuleScopeRegistry = class {
|
|
|
35452
35457
|
for (const decl of ngModule.imports) {
|
|
35453
35458
|
const importScope = this.getExportedScope(decl, diagnostics, ref.node, "import");
|
|
35454
35459
|
if (importScope !== null) {
|
|
35455
|
-
if (importScope === "invalid" || importScope.exported.isPoisoned) {
|
|
35456
|
-
diagnostics.push(invalidTransitiveNgModuleRef(decl, ngModule.rawImports, "import"));
|
|
35460
|
+
if (importScope === "invalid" || importScope === "cycle" || importScope.exported.isPoisoned) {
|
|
35457
35461
|
isPoisoned = true;
|
|
35458
|
-
if (importScope
|
|
35462
|
+
if (importScope !== "cycle") {
|
|
35463
|
+
diagnostics.push(invalidTransitiveNgModuleRef(decl, ngModule.rawImports, "import"));
|
|
35464
|
+
}
|
|
35465
|
+
if (importScope === "invalid" || importScope === "cycle") {
|
|
35459
35466
|
continue;
|
|
35460
35467
|
}
|
|
35461
35468
|
}
|
|
@@ -35522,10 +35529,12 @@ var LocalModuleScopeRegistry = class {
|
|
|
35522
35529
|
}
|
|
35523
35530
|
for (const decl of ngModule.exports) {
|
|
35524
35531
|
const exportScope = this.getExportedScope(decl, diagnostics, ref.node, "export");
|
|
35525
|
-
if (exportScope === "invalid" || exportScope !== null && exportScope.exported.isPoisoned) {
|
|
35526
|
-
diagnostics.push(invalidTransitiveNgModuleRef(decl, ngModule.rawExports, "export"));
|
|
35532
|
+
if (exportScope === "invalid" || exportScope === "cycle" || exportScope !== null && exportScope.exported.isPoisoned) {
|
|
35527
35533
|
isPoisoned = true;
|
|
35528
|
-
if (exportScope
|
|
35534
|
+
if (exportScope !== "cycle") {
|
|
35535
|
+
diagnostics.push(invalidTransitiveNgModuleRef(decl, ngModule.rawExports, "export"));
|
|
35536
|
+
}
|
|
35537
|
+
if (exportScope === "invalid" || exportScope === "cycle") {
|
|
35529
35538
|
continue;
|
|
35530
35539
|
}
|
|
35531
35540
|
} else if (exportScope !== null) {
|
|
@@ -35593,6 +35602,10 @@ var LocalModuleScopeRegistry = class {
|
|
|
35593
35602
|
}
|
|
35594
35603
|
return this.dependencyScopeReader.resolve(ref);
|
|
35595
35604
|
} else {
|
|
35605
|
+
if (this.cache.get(ref.node) === IN_PROGRESS_RESOLUTION) {
|
|
35606
|
+
diagnostics.push(makeDiagnostic(type === "import" ? ErrorCode.NGMODULE_INVALID_IMPORT : ErrorCode.NGMODULE_INVALID_EXPORT, identifierOfNode(ref.node) || ref.node, `NgModule "${type}" field contains a cycle`));
|
|
35607
|
+
return "cycle";
|
|
35608
|
+
}
|
|
35596
35609
|
return this.getScopeOfModuleReference(ref);
|
|
35597
35610
|
}
|
|
35598
35611
|
}
|
|
@@ -46902,9 +46915,15 @@ var ClassExtractor = class {
|
|
|
46902
46915
|
return result;
|
|
46903
46916
|
}
|
|
46904
46917
|
filterMethodOverloads(declarations) {
|
|
46905
|
-
return declarations.filter((declaration) => {
|
|
46918
|
+
return declarations.filter((declaration, index) => {
|
|
46919
|
+
var _a2;
|
|
46906
46920
|
if (import_typescript102.default.isFunctionDeclaration(declaration) || import_typescript102.default.isMethodDeclaration(declaration)) {
|
|
46907
|
-
|
|
46921
|
+
if (import_typescript102.default.getCombinedModifierFlags(declaration) & import_typescript102.default.ModifierFlags.Abstract) {
|
|
46922
|
+
const previousDeclaration = declarations[index - 1];
|
|
46923
|
+
const samePreviousAbstractMethod = previousDeclaration && import_typescript102.default.isMethodDeclaration(previousDeclaration) && import_typescript102.default.getCombinedModifierFlags(previousDeclaration) & import_typescript102.default.ModifierFlags.Abstract && previousDeclaration.name.getText() === ((_a2 = declaration.name) == null ? void 0 : _a2.getText());
|
|
46924
|
+
return !samePreviousAbstractMethod;
|
|
46925
|
+
}
|
|
46926
|
+
return !!declaration.body;
|
|
46908
46927
|
}
|
|
46909
46928
|
return true;
|
|
46910
46929
|
});
|
package/testing/index.d.ts
CHANGED