@angular/core 17.0.0-next.3 → 17.0.0-next.4
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/core_reactivity_export_internal.mjs +3 -3
- package/esm2022/src/di/initializer_token.mjs +1 -1
- package/esm2022/src/di/internal_tokens.mjs +1 -1
- package/esm2022/src/di/r3_injector.mjs +3 -4
- package/esm2022/src/metadata/directives.mjs +1 -1
- package/esm2022/src/metadata/resource_loading.mjs +27 -14
- package/esm2022/src/render3/after_render_hooks.mjs +32 -26
- package/esm2022/src/render3/component_ref.mjs +3 -4
- package/esm2022/src/render3/instructions/change_detection.mjs +3 -3
- package/esm2022/src/render3/interfaces/definition.mjs +1 -1
- package/esm2022/src/render3/interfaces/view.mjs +1 -1
- package/esm2022/src/render3/jit/directive.mjs +6 -2
- package/esm2022/src/render3/pipe.mjs +2 -1
- package/esm2022/src/render3/reactivity/effect.mjs +147 -44
- package/esm2022/src/signals/index.mjs +2 -2
- package/esm2022/src/signals/src/graph.mjs +4 -1
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/component_fixture.mjs +4 -2
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/test_bed.mjs +14 -3
- package/esm2022/testing/src/test_bed_compiler.mjs +3 -3
- package/fesm2022/core.mjs +303 -177
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +19 -6
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +59 -18
- package/package.json +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/ng-generate/standalone-migration/bundle.js +81 -157
- package/schematics/ng-generate/standalone-migration/bundle.js.map +3 -3
- package/testing/index.d.ts +10 -2
package/testing/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.0-next.
|
|
2
|
+
* @license Angular v17.0.0-next.4
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -21,6 +21,7 @@ import { PlatformRef } from '@angular/core';
|
|
|
21
21
|
import { ProviderToken } from '@angular/core';
|
|
22
22
|
import { SchemaMetadata } from '@angular/core';
|
|
23
23
|
import { Type } from '@angular/core';
|
|
24
|
+
import { ɵFlushableEffectRunner } from '@angular/core';
|
|
24
25
|
|
|
25
26
|
/**
|
|
26
27
|
* This API should be removed. But doing so seems to break `google3` and so it requires a bit of
|
|
@@ -47,6 +48,7 @@ export declare function async(fn: Function): (done: any) => any;
|
|
|
47
48
|
export declare class ComponentFixture<T> {
|
|
48
49
|
componentRef: ComponentRef<T>;
|
|
49
50
|
ngZone: NgZone | null;
|
|
51
|
+
private effectRunner;
|
|
50
52
|
private _autoDetect;
|
|
51
53
|
/**
|
|
52
54
|
* The DebugElement associated with the root element of this component.
|
|
@@ -77,7 +79,7 @@ export declare class ComponentFixture<T> {
|
|
|
77
79
|
private _onStableSubscription;
|
|
78
80
|
private _onMicrotaskEmptySubscription;
|
|
79
81
|
private _onErrorSubscription;
|
|
80
|
-
constructor(componentRef: ComponentRef<T>, ngZone: NgZone | null, _autoDetect: boolean);
|
|
82
|
+
constructor(componentRef: ComponentRef<T>, ngZone: NgZone | null, effectRunner: ɵFlushableEffectRunner | null, _autoDetect: boolean);
|
|
81
83
|
private _tick;
|
|
82
84
|
/**
|
|
83
85
|
* Trigger a change detection cycle for the component.
|
|
@@ -324,6 +326,12 @@ export declare interface TestBed {
|
|
|
324
326
|
}): TestBed;
|
|
325
327
|
overrideTemplateUsingTestingModule(component: Type<any>, template: string): TestBed;
|
|
326
328
|
createComponent<T>(component: Type<T>): ComponentFixture<T>;
|
|
329
|
+
/**
|
|
330
|
+
* Execute any pending effects.
|
|
331
|
+
*
|
|
332
|
+
* @developerPreview
|
|
333
|
+
*/
|
|
334
|
+
flushEffects(): void;
|
|
327
335
|
}
|
|
328
336
|
|
|
329
337
|
/**
|