@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
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v18.1.
|
|
2
|
+
* @license Angular v18.1.3
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -13061,6 +13061,14 @@ declare const ɵINPUT_SIGNAL_BRAND_READ_TYPE: unique symbol;
|
|
|
13061
13061
|
|
|
13062
13062
|
export declare const ɵINPUT_SIGNAL_BRAND_WRITE_TYPE: unique symbol;
|
|
13063
13063
|
|
|
13064
|
+
/**
|
|
13065
|
+
* `InjectionToken` used to configure how to call the `ErrorHandler`.
|
|
13066
|
+
*
|
|
13067
|
+
* `NgZone` is provided by default today so the default (and only) implementation for this
|
|
13068
|
+
* is calling `ErrorHandler.handleError` outside of the Angular zone.
|
|
13069
|
+
*/
|
|
13070
|
+
export declare const ɵINTERNAL_APPLICATION_ERROR_HANDLER: InjectionToken<(e: any) => void>;
|
|
13071
|
+
|
|
13064
13072
|
/**
|
|
13065
13073
|
* Register a callback to run once before any userspace `afterRender` or
|
|
13066
13074
|
* `afterNextRender` callbacks.
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED
|
@@ -3669,7 +3669,7 @@ var FactoryTarget;
|
|
|
3669
3669
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
3670
3670
|
})(FactoryTarget || (FactoryTarget = {}));
|
|
3671
3671
|
function compileFactoryFunction(meta) {
|
|
3672
|
-
const t = variable("
|
|
3672
|
+
const t = variable("\u0275t");
|
|
3673
3673
|
let baseFactoryVar = null;
|
|
3674
3674
|
const typeForCtor = !isDelegatedFactoryMetadata(meta) ? new BinaryOperatorExpr(BinaryOperator.Or, t, meta.type.value) : t;
|
|
3675
3675
|
let ctorExpr = null;
|
|
@@ -3684,7 +3684,7 @@ function compileFactoryFunction(meta) {
|
|
|
3684
3684
|
const body = [];
|
|
3685
3685
|
let retExpr = null;
|
|
3686
3686
|
function makeConditionalFactory(nonCtorExpr) {
|
|
3687
|
-
const r = variable("
|
|
3687
|
+
const r = variable("\u0275r");
|
|
3688
3688
|
body.push(r.set(NULL_EXPR).toDeclStmt());
|
|
3689
3689
|
const ctorStmt = ctorExpr !== null ? r.set(ctorExpr).toStmt() : importExpr(Identifiers.invalidFactory).callFn([]).toStmt();
|
|
3690
3690
|
body.push(ifStmt(t, [ctorStmt], [r.set(nonCtorExpr).toStmt()]));
|
|
@@ -3708,7 +3708,7 @@ function compileFactoryFunction(meta) {
|
|
|
3708
3708
|
} else {
|
|
3709
3709
|
body.push(new ReturnStatement(retExpr));
|
|
3710
3710
|
}
|
|
3711
|
-
let factoryFn = fn([new FnParam(
|
|
3711
|
+
let factoryFn = fn([new FnParam(t.name, DYNAMIC_TYPE)], body, INFERRED_TYPE, void 0, `${meta.name}_Factory`);
|
|
3712
3712
|
if (baseFactoryVar !== null) {
|
|
3713
3713
|
factoryFn = arrowFn([], [new DeclareVarStmt(baseFactoryVar.name), new ReturnStatement(factoryFn)]).callFn([], void 0, true);
|
|
3714
3714
|
}
|
|
@@ -5168,7 +5168,8 @@ function delegateToFactory(type, useType, unwrapForwardRefs) {
|
|
|
5168
5168
|
return createFactoryFunction(unwrappedType);
|
|
5169
5169
|
}
|
|
5170
5170
|
function createFactoryFunction(type) {
|
|
5171
|
-
|
|
5171
|
+
const t = new FnParam("\u0275t", DYNAMIC_TYPE);
|
|
5172
|
+
return arrowFn([t], type.prop("\u0275fac").callFn([variable(t.name)]));
|
|
5172
5173
|
}
|
|
5173
5174
|
|
|
5174
5175
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
@@ -23451,7 +23452,7 @@ function publishFacade(global) {
|
|
|
23451
23452
|
}
|
|
23452
23453
|
|
|
23453
23454
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
23454
|
-
var VERSION2 = new Version("18.1.
|
|
23455
|
+
var VERSION2 = new Version("18.1.3");
|
|
23455
23456
|
|
|
23456
23457
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
23457
23458
|
var _VisitorMode;
|