@angular/core 18.0.0-next.1 → 18.0.0-next.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/rxjs-interop/src/to_signal.mjs +2 -2
- package/esm2022/src/application/application_init.mjs +2 -2
- package/esm2022/src/application/application_ref.mjs +10 -15
- package/esm2022/src/application/application_tokens.mjs +3 -3
- package/esm2022/src/authoring/input/input.mjs +37 -14
- package/esm2022/src/authoring/input/input_signal.mjs +1 -1
- package/esm2022/src/authoring/input/input_signal_node.mjs +1 -1
- package/esm2022/src/authoring/input/input_type_checking.mjs +1 -1
- package/esm2022/src/authoring/model/model.mjs +35 -15
- package/esm2022/src/authoring/output/output.mjs +32 -10
- package/esm2022/src/authoring/queries.mjs +11 -1
- package/esm2022/src/change_detection/scheduling/ng_zone_scheduling.mjs +38 -4
- package/esm2022/src/change_detection/scheduling/zoneless_scheduling.mjs +5 -1
- package/esm2022/src/change_detection/scheduling/zoneless_scheduling_impl.mjs +91 -22
- package/esm2022/src/compiler/compiler_facade_interface.mjs +1 -1
- package/esm2022/src/core_private_export.mjs +4 -4
- package/esm2022/src/core_render3_private_export.mjs +2 -2
- package/esm2022/src/defer/instructions.mjs +23 -9
- package/esm2022/src/di/interface/provider.mjs +1 -1
- package/esm2022/src/di/metadata.mjs +1 -1
- package/esm2022/src/hydration/annotate.mjs +35 -49
- package/esm2022/src/hydration/api.mjs +36 -13
- package/esm2022/src/hydration/cleanup.mjs +4 -18
- package/esm2022/src/hydration/i18n.mjs +378 -0
- package/esm2022/src/hydration/interfaces.mjs +2 -1
- package/esm2022/src/hydration/node_lookup_utils.mjs +24 -10
- package/esm2022/src/hydration/utils.mjs +61 -2
- package/esm2022/src/linker/component_factory.mjs +1 -1
- package/esm2022/src/linker/view_container_ref.mjs +2 -2
- package/esm2022/src/linker/view_ref.mjs +4 -4
- package/esm2022/src/metadata/directives.mjs +1 -1
- package/esm2022/src/metadata/ng_module.mjs +1 -1
- package/esm2022/src/platform/platform_ref.mjs +3 -2
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/render3/debug/framework_injector_profiler.mjs +2 -2
- package/esm2022/src/render3/i18n/i18n_apply.mjs +28 -6
- package/esm2022/src/render3/i18n/i18n_parse.mjs +2 -5
- package/esm2022/src/render3/i18n/i18n_util.mjs +6 -1
- package/esm2022/src/render3/instructions/control_flow.mjs +24 -15
- package/esm2022/src/render3/instructions/i18n.mjs +3 -1
- package/esm2022/src/render3/instructions/projection.mjs +35 -9
- package/esm2022/src/render3/instructions/template.mjs +45 -24
- package/esm2022/src/render3/jit/partial.mjs +13 -2
- package/esm2022/src/render3/util/injector_discovery_utils.mjs +13 -9
- package/esm2022/src/render3/util/view_utils.mjs +4 -14
- package/esm2022/src/util/callback_scheduler.mjs +25 -30
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/src/zone/ng_zone.mjs +3 -3
- package/esm2022/testing/src/component_fixture.mjs +24 -59
- package/esm2022/testing/src/fake_async.mjs +6 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/private_export.mjs +9 -0
- package/esm2022/testing/src/test_bed.mjs +4 -4
- package/esm2022/testing/src/test_hooks.mjs +3 -3
- package/esm2022/testing/src/testing.mjs +3 -2
- package/fesm2022/core.mjs +1499 -823
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +2 -2
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +64 -94
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +269 -149
- package/package.json +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +2 -2
- package/schematics/migrations/block-template-entities/bundle.js +313 -255
- package/schematics/migrations/block-template-entities/bundle.js.map +3 -3
- package/schematics/migrations/compiler-options/bundle.js +13 -13
- package/schematics/migrations/invalid-two-way-bindings/bundle.js +316 -257
- package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +3 -3
- package/schematics/migrations/transfer-state/bundle.js +13 -13
- package/schematics/ng-generate/control-flow-migration/bundle.js +349 -276
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +3 -3
- package/schematics/ng-generate/standalone-migration/bundle.js +1811 -1330
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +10 -3
- package/esm2022/src/change_detection/flags.mjs +0 -17
package/testing/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v18.0.0-next.
|
|
2
|
+
* @license Angular v18.0.0-next.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -71,6 +71,7 @@ export declare abstract class ComponentFixture<T> {
|
|
|
71
71
|
changeDetectorRef: ChangeDetectorRef;
|
|
72
72
|
private _renderer;
|
|
73
73
|
private _isDestroyed;
|
|
74
|
+
private readonly pendingTasks;
|
|
74
75
|
ngZone: NgZone | null;
|
|
75
76
|
/** @nodoc */
|
|
76
77
|
constructor(componentRef: ComponentRef<T>);
|
|
@@ -92,14 +93,14 @@ export declare abstract class ComponentFixture<T> {
|
|
|
92
93
|
* Return whether the fixture is currently stable or has async tasks that have not been completed
|
|
93
94
|
* yet.
|
|
94
95
|
*/
|
|
95
|
-
|
|
96
|
+
isStable(): boolean;
|
|
96
97
|
/**
|
|
97
98
|
* Get a promise that resolves when the fixture is stable.
|
|
98
99
|
*
|
|
99
100
|
* This can be used to resume testing after events have triggered asynchronous activity or
|
|
100
101
|
* asynchronous change detection.
|
|
101
102
|
*/
|
|
102
|
-
|
|
103
|
+
whenStable(): Promise<any>;
|
|
103
104
|
/**
|
|
104
105
|
* Retrieves all defer block fixtures in the component fixture.
|
|
105
106
|
*
|
|
@@ -539,6 +540,12 @@ export declare function withModule(moduleDef: TestModuleMetadata): InjectSetupWr
|
|
|
539
540
|
|
|
540
541
|
export declare function withModule(moduleDef: TestModuleMetadata, fn: Function): () => any;
|
|
541
542
|
|
|
543
|
+
/**
|
|
544
|
+
* TODO(atscott): Make public API once we have decided if we want this error and how we want devs to
|
|
545
|
+
* disable it.
|
|
546
|
+
*/
|
|
547
|
+
export declare const ɵAllowDetectChangesAndAcknowledgeItCanHideApplicationBugs: InjectionToken<boolean>;
|
|
548
|
+
|
|
542
549
|
export declare class ɵMetadataOverrider {
|
|
543
550
|
private _references;
|
|
544
551
|
/**
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
// TODO(atscott): Remove prior to v18 release. Keeping this around in case anyone internally needs
|
|
9
|
-
// to opt out temporarily.
|
|
10
|
-
let _ensureDirtyViewsAreAlwaysReachable = true;
|
|
11
|
-
export function getEnsureDirtyViewsAreAlwaysReachable() {
|
|
12
|
-
return _ensureDirtyViewsAreAlwaysReachable;
|
|
13
|
-
}
|
|
14
|
-
export function setEnsureDirtyViewsAreAlwaysReachable(v) {
|
|
15
|
-
_ensureDirtyViewsAreAlwaysReachable = v;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxhZ3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb3JlL3NyYy9jaGFuZ2VfZGV0ZWN0aW9uL2ZsYWdzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVILGtHQUFrRztBQUNsRywwQkFBMEI7QUFDMUIsSUFBSSxtQ0FBbUMsR0FBRyxJQUFJLENBQUM7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