@angular/core 17.0.7 → 17.0.8
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_ref.mjs +4 -8
- package/esm2022/src/application/create_application.mjs +2 -2
- package/esm2022/src/change_detection/flags.mjs +16 -0
- package/esm2022/src/change_detection/scheduling/ng_zone_scheduling.mjs +164 -0
- package/esm2022/src/change_detection/scheduling/zoneless_scheduling.mjs +13 -0
- package/esm2022/src/core.mjs +2 -2
- package/esm2022/src/core_private_export.mjs +4 -2
- package/esm2022/src/event_emitter.mjs +1 -2
- package/esm2022/src/pending_tasks.mjs +57 -0
- 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 +13 -9
- package/esm2022/src/render3/instructions/mark_view_dirty.mjs +3 -2
- package/esm2022/src/render3/instructions/shared.mjs +3 -2
- package/esm2022/src/render3/interfaces/view.mjs +1 -1
- package/esm2022/src/render3/util/view_utils.mjs +18 -5
- package/esm2022/src/render3/view_ref.mjs +2 -1
- package/esm2022/src/version.mjs +6 -5
- package/esm2022/src/zone/ng_zone.mjs +1 -61
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +172 -136
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +38 -22
- package/package.json +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/block-template-entities/bundle.js +268 -229
- package/schematics/migrations/block-template-entities/bundle.js.map +4 -4
- package/schematics/ng-generate/control-flow-migration/bundle.js +433 -295
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +4 -4
- package/schematics/ng-generate/standalone-migration/bundle.js +276 -215
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
- package/esm2022/src/change_detection/scheduling.mjs +0 -103
- package/esm2022/src/initial_render_pending_tasks.mjs +0 -49
package/fesm2022/testing.mjs
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.
|
|
2
|
+
* @license Angular v17.0.8
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -642,7 +642,6 @@ export declare class ApplicationRef {
|
|
|
642
642
|
private _destroyed;
|
|
643
643
|
private _destroyListeners;
|
|
644
644
|
private readonly internalErrorHandler;
|
|
645
|
-
private readonly zoneIsStable;
|
|
646
645
|
/**
|
|
647
646
|
* Indicates whether this instance was destroyed.
|
|
648
647
|
*/
|
|
@@ -5924,6 +5923,8 @@ declare interface LViewEnvironment {
|
|
|
5924
5923
|
inlineEffectRunner: FlushableEffectRunner | null;
|
|
5925
5924
|
/** Container for after render hooks */
|
|
5926
5925
|
afterRenderEventManager: ɵAfterRenderEventManager | null;
|
|
5926
|
+
/** Scheduler for change detection to notify when application state changes. */
|
|
5927
|
+
changeDetectionScheduler: ɵChangeDetectionScheduler | null;
|
|
5927
5928
|
}
|
|
5928
5929
|
|
|
5929
5930
|
/** Flags associated with an LView (saved in LView[FLAGS]) */
|
|
@@ -10853,6 +10854,14 @@ export declare const enum ɵBypassType {
|
|
|
10853
10854
|
Style = "Style"
|
|
10854
10855
|
}
|
|
10855
10856
|
|
|
10857
|
+
|
|
10858
|
+
/**
|
|
10859
|
+
* Injectable that is notified when an `LView` is made aware of changes to application state.
|
|
10860
|
+
*/
|
|
10861
|
+
export declare abstract class ɵChangeDetectionScheduler {
|
|
10862
|
+
abstract notify(): void;
|
|
10863
|
+
}
|
|
10864
|
+
|
|
10856
10865
|
export declare function ɵclearResolutionOfComponentResourcesQueue(): Map<Type<any>, Component>;
|
|
10857
10866
|
|
|
10858
10867
|
/**
|
|
@@ -11403,6 +11412,9 @@ export declare function ɵgetDeferBlocks(lView: LView, deferBlocks: ɵDeferBlock
|
|
|
11403
11412
|
*/
|
|
11404
11413
|
export declare function ɵgetDirectives(node: Node): {}[];
|
|
11405
11414
|
|
|
11415
|
+
|
|
11416
|
+
export declare function ɵgetEnsureDirtyViewsAreAlwaysReachable(): boolean;
|
|
11417
|
+
|
|
11406
11418
|
/**
|
|
11407
11419
|
* Retrieves the host element of a component or directive instance.
|
|
11408
11420
|
* The host element is the DOM element that matched the selector of the directive.
|
|
@@ -11514,26 +11526,6 @@ export declare type ɵImageConfig = {
|
|
|
11514
11526
|
disableImageLazyLoadWarning?: boolean;
|
|
11515
11527
|
};
|
|
11516
11528
|
|
|
11517
|
-
/**
|
|
11518
|
-
* *Internal* service that keeps track of pending tasks happening in the system
|
|
11519
|
-
* during the initial rendering. No tasks are tracked after an initial
|
|
11520
|
-
* rendering.
|
|
11521
|
-
*
|
|
11522
|
-
* This information is needed to make sure that the serialization on the server
|
|
11523
|
-
* is delayed until all tasks in the queue (such as an initial navigation or a
|
|
11524
|
-
* pending HTTP request) are completed.
|
|
11525
|
-
*/
|
|
11526
|
-
export declare class ɵInitialRenderPendingTasks implements OnDestroy {
|
|
11527
|
-
private taskId;
|
|
11528
|
-
private pendingTasks;
|
|
11529
|
-
hasPendingTasks: BehaviorSubject<boolean>;
|
|
11530
|
-
add(): number;
|
|
11531
|
-
remove(taskId: number): void;
|
|
11532
|
-
ngOnDestroy(): void;
|
|
11533
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ɵInitialRenderPendingTasks, never>;
|
|
11534
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ɵInitialRenderPendingTasks>;
|
|
11535
|
-
}
|
|
11536
|
-
|
|
11537
11529
|
/** Returns a ChangeDetectorRef (a.k.a. a ViewRef) */
|
|
11538
11530
|
export declare function ɵinjectChangeDetectorRef(flags: InjectFlags): ChangeDetectorRef;
|
|
11539
11531
|
|
|
@@ -11870,6 +11862,28 @@ export declare const ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR: {};
|
|
|
11870
11862
|
*/
|
|
11871
11863
|
export declare function ɵpatchComponentDefWithScope<C>(componentDef: ɵComponentDef<C>, transitiveScopes: ɵNgModuleTransitiveScopes): void;
|
|
11872
11864
|
|
|
11865
|
+
/**
|
|
11866
|
+
* *Internal* service that keeps track of pending tasks happening in the system.
|
|
11867
|
+
*
|
|
11868
|
+
* This information is needed to make sure that the serialization on the server
|
|
11869
|
+
* is delayed until all tasks in the queue (such as an initial navigation or a
|
|
11870
|
+
* pending HTTP request) are completed.
|
|
11871
|
+
*
|
|
11872
|
+
* Pending tasks continue to contribute to the stableness of `ApplicationRef`
|
|
11873
|
+
* throughout the lifetime of the application.
|
|
11874
|
+
*/
|
|
11875
|
+
export declare class ɵPendingTasks implements OnDestroy {
|
|
11876
|
+
private taskId;
|
|
11877
|
+
private pendingTasks;
|
|
11878
|
+
private get _hasPendingTasks();
|
|
11879
|
+
hasPendingTasks: BehaviorSubject<boolean>;
|
|
11880
|
+
add(): number;
|
|
11881
|
+
remove(taskId: number): void;
|
|
11882
|
+
ngOnDestroy(): void;
|
|
11883
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ɵPendingTasks, never>;
|
|
11884
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ɵPendingTasks>;
|
|
11885
|
+
}
|
|
11886
|
+
|
|
11873
11887
|
|
|
11874
11888
|
/**
|
|
11875
11889
|
* A guarded `performance.mark` for feature marking.
|
|
@@ -12361,6 +12375,8 @@ export declare function ɵsetCurrentInjector(injector: Injector | null | undefin
|
|
|
12361
12375
|
*/
|
|
12362
12376
|
export declare function ɵsetDocument(document: Document | undefined): void;
|
|
12363
12377
|
|
|
12378
|
+
export declare function ɵsetEnsureDirtyViewsAreAlwaysReachable(v: boolean): void;
|
|
12379
|
+
|
|
12364
12380
|
export declare function ɵsetInjectorProfilerContext(context: ɵInjectorProfilerContext): ɵInjectorProfilerContext;
|
|
12365
12381
|
|
|
12366
12382
|
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED