@angular/core 18.1.2 → 18.1.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/esm2022/src/application/application_init.mjs +2 -2
- package/esm2022/src/application/application_module.mjs +2 -2
- package/esm2022/src/application/application_ref.mjs +2 -2
- package/esm2022/src/change_detection/scheduling/ng_zone_scheduling.mjs +3 -10
- package/esm2022/src/change_detection/scheduling/zoneless_scheduling_impl.mjs +2 -2
- package/esm2022/src/console.mjs +2 -2
- package/esm2022/src/core_private_export.mjs +2 -1
- package/esm2022/src/error_handler.mjs +4 -2
- package/esm2022/src/event_delegation_utils.mjs +2 -2
- package/esm2022/src/image_performance_warning.mjs +2 -2
- package/esm2022/src/linker/compiler.mjs +2 -2
- package/esm2022/src/platform/platform_ref.mjs +2 -2
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/render3/node_manipulation.mjs +9 -2
- package/esm2022/src/testability/testability.mjs +3 -3
- package/esm2022/src/util/callback_scheduler.mjs +26 -23
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/application_error_handler.mjs +43 -0
- package/esm2022/testing/src/component_fixture.mjs +13 -2
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/test_bed_common.mjs +1 -1
- package/esm2022/testing/src/test_bed_compiler.mjs +24 -2
- package/fesm2022/core.mjs +723 -718
- 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 +69 -3
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +9 -1
- 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/invalid-two-way-bindings/bundle.js +6 -5
- package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +2 -2
- package/schematics/ng-generate/control-flow-migration/bundle.js +6 -5
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +2 -2
- package/schematics/ng-generate/standalone-migration/bundle.js +109 -76
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +2 -1
|
@@ -3540,7 +3540,7 @@ var FactoryTarget;
|
|
|
3540
3540
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
3541
3541
|
})(FactoryTarget || (FactoryTarget = {}));
|
|
3542
3542
|
function compileFactoryFunction(meta) {
|
|
3543
|
-
const t = variable("
|
|
3543
|
+
const t = variable("\u0275t");
|
|
3544
3544
|
let baseFactoryVar = null;
|
|
3545
3545
|
const typeForCtor = !isDelegatedFactoryMetadata(meta) ? new BinaryOperatorExpr(BinaryOperator.Or, t, meta.type.value) : t;
|
|
3546
3546
|
let ctorExpr = null;
|
|
@@ -3555,7 +3555,7 @@ function compileFactoryFunction(meta) {
|
|
|
3555
3555
|
const body = [];
|
|
3556
3556
|
let retExpr = null;
|
|
3557
3557
|
function makeConditionalFactory(nonCtorExpr) {
|
|
3558
|
-
const r = variable("
|
|
3558
|
+
const r = variable("\u0275r");
|
|
3559
3559
|
body.push(r.set(NULL_EXPR).toDeclStmt());
|
|
3560
3560
|
const ctorStmt = ctorExpr !== null ? r.set(ctorExpr).toStmt() : importExpr(Identifiers.invalidFactory).callFn([]).toStmt();
|
|
3561
3561
|
body.push(ifStmt(t, [ctorStmt], [r.set(nonCtorExpr).toStmt()]));
|
|
@@ -3579,7 +3579,7 @@ function compileFactoryFunction(meta) {
|
|
|
3579
3579
|
} else {
|
|
3580
3580
|
body.push(new ReturnStatement(retExpr));
|
|
3581
3581
|
}
|
|
3582
|
-
let factoryFn = fn([new FnParam(
|
|
3582
|
+
let factoryFn = fn([new FnParam(t.name, DYNAMIC_TYPE)], body, INFERRED_TYPE, void 0, `${meta.name}_Factory`);
|
|
3583
3583
|
if (baseFactoryVar !== null) {
|
|
3584
3584
|
factoryFn = arrowFn([], [new DeclareVarStmt(baseFactoryVar.name), new ReturnStatement(factoryFn)]).callFn([], void 0, true);
|
|
3585
3585
|
}
|
|
@@ -4963,7 +4963,8 @@ function delegateToFactory(type, useType, unwrapForwardRefs) {
|
|
|
4963
4963
|
return createFactoryFunction(unwrappedType);
|
|
4964
4964
|
}
|
|
4965
4965
|
function createFactoryFunction(type) {
|
|
4966
|
-
|
|
4966
|
+
const t = new FnParam("\u0275t", DYNAMIC_TYPE);
|
|
4967
|
+
return arrowFn([t], type.prop("\u0275fac").callFn([variable(t.name)]));
|
|
4967
4968
|
}
|
|
4968
4969
|
|
|
4969
4970
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
@@ -23289,7 +23290,7 @@ function publishFacade(global) {
|
|
|
23289
23290
|
}
|
|
23290
23291
|
|
|
23291
23292
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
23292
|
-
var VERSION2 = new Version("18.1.
|
|
23293
|
+
var VERSION2 = new Version("18.1.3");
|
|
23293
23294
|
|
|
23294
23295
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
23295
23296
|
var _VisitorMode;
|