@angular/core 17.0.0-rc.0 → 17.0.0-rc.1
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_init.mjs +3 -2
- package/esm2022/src/application_ref.mjs +3 -3
- package/esm2022/src/application_tokens.mjs +1 -11
- package/esm2022/src/core.mjs +2 -2
- package/esm2022/src/core_private_export.mjs +2 -2
- package/esm2022/src/defer/cleanup.mjs +23 -53
- package/esm2022/src/defer/dom_triggers.mjs +15 -15
- package/esm2022/src/defer/idle_scheduler.mjs +20 -17
- package/esm2022/src/defer/instructions.mjs +66 -45
- package/esm2022/src/defer/interfaces.mjs +3 -1
- package/esm2022/src/defer/timer_scheduler.mjs +43 -34
- package/esm2022/src/defer/utils.mjs +2 -14
- package/esm2022/src/di/r3_injector.mjs +6 -1
- package/esm2022/src/errors.mjs +1 -1
- package/esm2022/src/hydration/api.mjs +2 -3
- package/esm2022/src/hydration/skip_hydration.mjs +7 -7
- package/esm2022/src/linker/view_container_ref.mjs +4 -6
- package/esm2022/src/metadata/directives.mjs +1 -1
- package/esm2022/src/render3/after_render_hooks.mjs +25 -21
- package/esm2022/src/render3/debug/injector_profiler.mjs +26 -8
- package/esm2022/src/render3/instructions/change_detection.mjs +24 -3
- package/esm2022/src/render3/util/injector_discovery_utils.mjs +26 -2
- package/esm2022/src/render3/util/view_utils.mjs +1 -4
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/defer.mjs +6 -3
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +376 -329
- 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 +6 -3
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +12 -13
- 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 +788 -370
- package/schematics/migrations/block-template-entities/bundle.js.map +4 -4
- package/schematics/migrations/compiler-options/bundle.js +13 -13
- package/schematics/migrations/transfer-state/bundle.js +13 -13
- package/schematics/ng-generate/control-flow-migration/bundle.js +988 -528
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +4 -4
- package/schematics/ng-generate/standalone-migration/bundle.js +1047 -628
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.0-rc.
|
|
2
|
+
* @license Angular v17.0.0-rc.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -477,7 +477,7 @@ export declare const APP_ID: InjectionToken<string>;
|
|
|
477
477
|
* ```
|
|
478
478
|
*
|
|
479
479
|
* ### Example with standalone application
|
|
480
|
-
*
|
|
480
|
+
* ```
|
|
481
481
|
* function initializeAppFactory(httpClient: HttpClient): () => Observable<any> {
|
|
482
482
|
* return () => httpClient.get("https://someUrl.com/api/user")
|
|
483
483
|
* .pipe(
|
|
@@ -496,6 +496,7 @@ export declare const APP_ID: InjectionToken<string>;
|
|
|
496
496
|
* },
|
|
497
497
|
* ],
|
|
498
498
|
* });
|
|
499
|
+
* ```
|
|
499
500
|
*
|
|
500
501
|
* @publicApi
|
|
501
502
|
*/
|
|
@@ -7103,7 +7104,7 @@ export declare type ProviderToken<T> = Type<T> | AbstractType<T> | InjectionToke
|
|
|
7103
7104
|
* `BootstrapOptions` instead.
|
|
7104
7105
|
*
|
|
7105
7106
|
* @usageNotes
|
|
7106
|
-
* ```typescript
|
|
7107
|
+
* ```typescript
|
|
7107
7108
|
* bootstrapApplication(MyApp, {providers: [
|
|
7108
7109
|
* provideZoneChangeDetection({eventCoalescing: true}),
|
|
7109
7110
|
* ]});
|
|
@@ -11314,14 +11315,6 @@ export declare abstract class ɵEffectScheduler {
|
|
|
11314
11315
|
static ɵprov: unknown;
|
|
11315
11316
|
}
|
|
11316
11317
|
|
|
11317
|
-
/**
|
|
11318
|
-
* Internal token to collect all SSR-related features enabled for this application.
|
|
11319
|
-
*
|
|
11320
|
-
* Note: the token is in `core` to let other packages register features (the `core`
|
|
11321
|
-
* package is imported in other packages).
|
|
11322
|
-
*/
|
|
11323
|
-
export declare const ɵENABLED_SSR_FEATURES: InjectionToken<Set<string>>;
|
|
11324
|
-
|
|
11325
11318
|
/**
|
|
11326
11319
|
* Index of each type of locale data from the extra locale data array
|
|
11327
11320
|
*/
|
|
@@ -12080,8 +12073,12 @@ export declare class ɵRender3NgModuleRef<T> extends NgModuleRef<T> implements I
|
|
|
12080
12073
|
* @param newState New state that should be applied to the defer block.
|
|
12081
12074
|
* @param tNode TNode that represents a defer block.
|
|
12082
12075
|
* @param lContainer Represents an instance of a defer block.
|
|
12076
|
+
* @param skipTimerScheduling Indicates that `@loading` and `@placeholder` block
|
|
12077
|
+
* should be rendered immediately, even if they have `after` or `minimum` config
|
|
12078
|
+
* options setup. This flag to needed for testing APIs to transition defer block
|
|
12079
|
+
* between states via `DeferFixture.render` method.
|
|
12083
12080
|
*/
|
|
12084
|
-
export declare function ɵrenderDeferBlockState(newState: ɵDeferBlockState, tNode: TNode, lContainer: LContainer): void;
|
|
12081
|
+
export declare function ɵrenderDeferBlockState(newState: ɵDeferBlockState, tNode: TNode, lContainer: LContainer, skipTimerScheduling?: boolean): void;
|
|
12085
12082
|
|
|
12086
12083
|
/**
|
|
12087
12084
|
* Flags passed into template functions to determine which blocks (i.e. creation, update)
|
|
@@ -12182,6 +12179,7 @@ export declare const enum ɵRuntimeErrorCode {
|
|
|
12182
12179
|
EXPRESSION_CHANGED_AFTER_CHECKED = -100,
|
|
12183
12180
|
RECURSIVE_APPLICATION_REF_TICK = 101,
|
|
12184
12181
|
RECURSIVE_APPLICATION_RENDER = 102,
|
|
12182
|
+
INFINITE_CHANGE_DETECTION = 103,
|
|
12185
12183
|
CYCLIC_DI_DEPENDENCY = -200,
|
|
12186
12184
|
PROVIDER_NOT_FOUND = -201,
|
|
12187
12185
|
INVALID_FACTORY_DEPENDENCY = 202,
|
|
@@ -12227,6 +12225,7 @@ export declare const enum ɵRuntimeErrorCode {
|
|
|
12227
12225
|
ASSERTION_NOT_INSIDE_REACTIVE_CONTEXT = -602,
|
|
12228
12226
|
INVALID_I18N_STRUCTURE = 700,
|
|
12229
12227
|
MISSING_LOCALE_DATA = 701,
|
|
12228
|
+
DEFER_LOADING_FAILED = 750,
|
|
12230
12229
|
IMPORT_PROVIDERS_FROM_STANDALONE = 800,
|
|
12231
12230
|
INVALID_DIFFER_INPUT = 900,
|
|
12232
12231
|
NO_SUPPORTING_DIFFER_FACTORY = 901,
|
|
@@ -12413,7 +12412,7 @@ export declare function ɵtransitiveScopesFor<T>(type: Type<T>): ɵNgModuleTrans
|
|
|
12413
12412
|
* @param tDetails Static information about this defer block.
|
|
12414
12413
|
* @param lView LView of a host view.
|
|
12415
12414
|
*/
|
|
12416
|
-
export declare function ɵtriggerResourceLoading(tDetails: TDeferBlockDetails, lView: LView): void;
|
|
12415
|
+
export declare function ɵtriggerResourceLoading(tDetails: TDeferBlockDetails, lView: LView, tNode: TNode): void;
|
|
12417
12416
|
|
|
12418
12417
|
/**
|
|
12419
12418
|
* Ellipses the string in the middle when longer than the max length
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED