@angular/core 18.1.1 → 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/primitives/event-dispatch/index.mjs +2 -1
- package/esm2022/primitives/event-dispatch/src/bootstrap_app_scoped.mjs +18 -3
- package/esm2022/primitives/event-dispatch/src/bootstrap_global.mjs +18 -7
- package/esm2022/primitives/event-dispatch/src/earlyeventcontract.mjs +25 -1
- package/esm2022/primitives/event-dispatch/src/event_type.mjs +2 -2
- package/esm2022/primitives/event-dispatch/src/eventcontract.mjs +40 -35
- package/esm2022/rxjs-interop/src/to_signal.mjs +6 -5
- 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 +8 -8
- package/esm2022/src/event_dispatch/event_delegation.mjs +2 -4
- package/esm2022/src/hydration/event_replay.mjs +6 -6
- 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/after_render_hooks.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/event-dispatch-contract.min.js +1 -1
- package/fesm2022/core.mjs +735 -731
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +144 -35
- package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +6 -5
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +69 -3
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +10 -2
- package/package.json +1 -1
- package/primitives/event-dispatch/index.d.ts +28 -13
- 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 +11 -7
- package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +2 -2
- package/schematics/ng-generate/control-flow-migration/bundle.js +11 -7
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +2 -2
- package/schematics/ng-generate/standalone-migration/bundle.js +114 -78
- 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
|
|
@@ -8421,6 +8422,7 @@ var CHAINABLE = /* @__PURE__ */ new Set([
|
|
|
8421
8422
|
Identifiers.twoWayListener,
|
|
8422
8423
|
Identifiers.declareLet
|
|
8423
8424
|
]);
|
|
8425
|
+
var MAX_CHAIN_LENGTH = 256;
|
|
8424
8426
|
function chain(job) {
|
|
8425
8427
|
for (const unit of job.units) {
|
|
8426
8428
|
chainOperationsInList(unit.create);
|
|
@@ -8443,16 +8445,18 @@ function chainOperationsInList(opList) {
|
|
|
8443
8445
|
chain2 = null;
|
|
8444
8446
|
continue;
|
|
8445
8447
|
}
|
|
8446
|
-
if (chain2 !== null && chain2.instruction === instruction) {
|
|
8448
|
+
if (chain2 !== null && chain2.instruction === instruction && chain2.length < MAX_CHAIN_LENGTH) {
|
|
8447
8449
|
const expression = chain2.expression.callFn(op.statement.expr.args, op.statement.expr.sourceSpan, op.statement.expr.pure);
|
|
8448
8450
|
chain2.expression = expression;
|
|
8449
8451
|
chain2.op.statement = expression.toStmt();
|
|
8452
|
+
chain2.length++;
|
|
8450
8453
|
OpList.remove(op);
|
|
8451
8454
|
} else {
|
|
8452
8455
|
chain2 = {
|
|
8453
8456
|
op,
|
|
8454
8457
|
instruction,
|
|
8455
|
-
expression: op.statement.expr
|
|
8458
|
+
expression: op.statement.expr,
|
|
8459
|
+
length: 1
|
|
8456
8460
|
};
|
|
8457
8461
|
}
|
|
8458
8462
|
}
|
|
@@ -23286,7 +23290,7 @@ function publishFacade(global) {
|
|
|
23286
23290
|
}
|
|
23287
23291
|
|
|
23288
23292
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
23289
|
-
var VERSION2 = new Version("18.1.
|
|
23293
|
+
var VERSION2 = new Version("18.1.3");
|
|
23290
23294
|
|
|
23291
23295
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
23292
23296
|
var _VisitorMode;
|