@angular/core 17.1.0 → 17.1.2
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_ref.mjs +2 -2
- package/esm2022/src/application/application_tokens.mjs +9 -9
- package/esm2022/src/change_detection/scheduling/zoneless_scheduling_impl.mjs +51 -18
- package/esm2022/src/core_private_export.mjs +2 -2
- package/esm2022/src/defer/instructions.mjs +4 -2
- package/esm2022/src/di/forward_ref.mjs +1 -1
- package/esm2022/src/di/initializer_token.mjs +2 -2
- package/esm2022/src/di/injector.mjs +4 -4
- package/esm2022/src/di/injector_token.mjs +2 -2
- package/esm2022/src/di/internal_tokens.mjs +2 -2
- package/esm2022/src/di/scope.mjs +2 -2
- package/esm2022/src/hydration/error_handling.mjs +17 -6
- package/esm2022/src/hydration/utils.mjs +54 -8
- package/esm2022/src/i18n/tokens.mjs +5 -5
- package/esm2022/src/linker/compiler.mjs +2 -2
- package/esm2022/src/metadata/di.mjs +1 -1
- package/esm2022/src/platform/platform.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/instructions/element.mjs +3 -3
- package/esm2022/src/render3/node_manipulation.mjs +2 -5
- package/esm2022/src/render3/util/global_utils.mjs +3 -1
- package/esm2022/src/util/ng_dev_mode.mjs +11 -3
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/component_fixture.mjs +128 -93
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/test_bed.mjs +11 -6
- package/esm2022/testing/src/test_bed_common.mjs +9 -2
- package/esm2022/testing/src/test_bed_compiler.mjs +5 -4
- package/esm2022/testing/src/testing.mjs +2 -2
- package/fesm2022/core.mjs +157 -62
- 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 +143 -96
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +38 -10
- 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 +230 -201
- package/schematics/migrations/block-template-entities/bundle.js.map +3 -3
- 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 +240 -211
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +3 -3
- package/schematics/ng-generate/standalone-migration/bundle.js +536 -493
- package/schematics/ng-generate/standalone-migration/bundle.js.map +3 -3
- package/testing/index.d.ts +6 -17
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.1.
|
|
2
|
+
* @license Angular v17.1.2
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -332,7 +332,7 @@ export declare interface AfterViewInit {
|
|
|
332
332
|
}
|
|
333
333
|
|
|
334
334
|
/**
|
|
335
|
-
* A [DI token](
|
|
335
|
+
* A [DI token](api/core/InjectionToken) that indicates which animations
|
|
336
336
|
* module has been loaded.
|
|
337
337
|
* @publicApi
|
|
338
338
|
*/
|
|
@@ -1221,9 +1221,6 @@ export declare abstract class CompilerFactory {
|
|
|
1221
1221
|
/**
|
|
1222
1222
|
* Options for creating a compiler.
|
|
1223
1223
|
*
|
|
1224
|
-
* Note: the `useJit` and `missingTranslation` config options are not used in Ivy, passing them has
|
|
1225
|
-
* no effect. Those config options are deprecated since v13.
|
|
1226
|
-
*
|
|
1227
1224
|
* @publicApi
|
|
1228
1225
|
*/
|
|
1229
1226
|
export declare type CompilerOptions = {
|
|
@@ -3928,7 +3925,7 @@ declare const FLAGS = 2;
|
|
|
3928
3925
|
export declare function forwardRef(forwardRefFn: ForwardRefFn): Type<any>;
|
|
3929
3926
|
|
|
3930
3927
|
/**
|
|
3931
|
-
* An interface that a function passed into
|
|
3928
|
+
* An interface that a function passed into `forwardRef` has to implement.
|
|
3932
3929
|
*
|
|
3933
3930
|
* @usageNotes
|
|
3934
3931
|
* ### Example
|
|
@@ -4203,6 +4200,7 @@ declare const globalUtilsFunctions: {
|
|
|
4203
4200
|
getRootComponents: typeof getRootComponents;
|
|
4204
4201
|
getDirectives: typeof ɵgetDirectives;
|
|
4205
4202
|
applyChanges: typeof applyChanges;
|
|
4203
|
+
isSignal: typeof isSignal;
|
|
4206
4204
|
};
|
|
4207
4205
|
|
|
4208
4206
|
/**
|
|
@@ -4547,6 +4545,18 @@ export declare interface HostListenerDecorator {
|
|
|
4547
4545
|
|
|
4548
4546
|
declare const HYDRATION = 6;
|
|
4549
4547
|
|
|
4548
|
+
declare const HYDRATION_INFO_KEY = "__ngDebugHydrationInfo__";
|
|
4549
|
+
|
|
4550
|
+
/**
|
|
4551
|
+
* Internal type that represents a claimed node.
|
|
4552
|
+
* Only used in dev mode.
|
|
4553
|
+
*/
|
|
4554
|
+
declare enum HydrationStatus {
|
|
4555
|
+
Hydrated = "hydrated",
|
|
4556
|
+
Skipped = "skipped",
|
|
4557
|
+
Mismatched = "mismatched"
|
|
4558
|
+
}
|
|
4559
|
+
|
|
4550
4560
|
declare namespace i0 {
|
|
4551
4561
|
export {
|
|
4552
4562
|
ɵɵinject,
|
|
@@ -5213,10 +5223,10 @@ export declare const INJECTOR: InjectionToken<Injector>;
|
|
|
5213
5223
|
|
|
5214
5224
|
/**
|
|
5215
5225
|
* Concrete injectors implement this interface. Injectors are configured
|
|
5216
|
-
* with [providers](guide/
|
|
5217
|
-
* dependencies of various types with [injection tokens](guide/
|
|
5226
|
+
* with [providers](guide/dependency-injection-providers) that associate
|
|
5227
|
+
* dependencies of various types with [injection tokens](guide/dependency-injection-providers).
|
|
5218
5228
|
*
|
|
5219
|
-
* @see [
|
|
5229
|
+
* @see [DI Providers](guide/dependency-injection-providers).
|
|
5220
5230
|
* @see {@link StaticProvider}
|
|
5221
5231
|
*
|
|
5222
5232
|
* @usageNotes
|
|
@@ -10674,6 +10684,8 @@ export declare interface ViewChildDecorator {
|
|
|
10674
10684
|
*
|
|
10675
10685
|
* @usageNotes
|
|
10676
10686
|
*
|
|
10687
|
+
* ### Example 1
|
|
10688
|
+
*
|
|
10677
10689
|
* {@example core/di/ts/viewChild/view_child_example.ts region='Component'}
|
|
10678
10690
|
*
|
|
10679
10691
|
* ### Example 2
|
|
@@ -11574,9 +11586,11 @@ export declare const ɵDEFER_BLOCK_CONFIG: InjectionToken<ɵDeferBlockConfig>;
|
|
|
11574
11586
|
|
|
11575
11587
|
/**
|
|
11576
11588
|
* **INTERNAL**, avoid referencing it in application code.
|
|
11577
|
-
*
|
|
11589
|
+
* *
|
|
11578
11590
|
* Injector token that allows to provide `DeferBlockDependencyInterceptor` class
|
|
11579
11591
|
* implementation.
|
|
11592
|
+
*
|
|
11593
|
+
* This token is only injected in devMode
|
|
11580
11594
|
*/
|
|
11581
11595
|
export declare const ɵDEFER_BLOCK_DEPENDENCY_INTERCEPTOR: InjectionToken<ɵDeferBlockDependencyInterceptor>;
|
|
11582
11596
|
|
|
@@ -12000,6 +12014,18 @@ export declare type ɵGlobalDevModeUtils = {
|
|
|
12000
12014
|
[GLOBAL_PUBLISH_EXPANDO_KEY]: typeof globalUtilsFunctions;
|
|
12001
12015
|
};
|
|
12002
12016
|
|
|
12017
|
+
export declare type ɵHydratedNode = {
|
|
12018
|
+
[HYDRATION_INFO_KEY]?: ɵHydrationInfo;
|
|
12019
|
+
};
|
|
12020
|
+
|
|
12021
|
+
export declare type ɵHydrationInfo = {
|
|
12022
|
+
status: HydrationStatus.Hydrated | HydrationStatus.Skipped;
|
|
12023
|
+
} | {
|
|
12024
|
+
status: HydrationStatus.Mismatched;
|
|
12025
|
+
actualNodeDetails: string | null;
|
|
12026
|
+
expectedNodeDetails: string | null;
|
|
12027
|
+
};
|
|
12028
|
+
|
|
12003
12029
|
/**
|
|
12004
12030
|
* Injection token that configures the image optimized image functionality.
|
|
12005
12031
|
* See {@link ImageConfig} for additional information about parameters that
|
|
@@ -12525,6 +12551,8 @@ export declare interface ɵProviderRecord {
|
|
|
12525
12551
|
|
|
12526
12552
|
export declare function ɵprovideZonelessChangeDetection(): EnvironmentProviders;
|
|
12527
12553
|
|
|
12554
|
+
export declare function ɵreadHydrationInfo(node: RNode): ɵHydrationInfo | null;
|
|
12555
|
+
|
|
12528
12556
|
export declare class ɵReflectionCapabilities implements PlatformReflectionCapabilities {
|
|
12529
12557
|
private _reflect;
|
|
12530
12558
|
constructor(reflect?: any);
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED