@angular/core 17.1.1 → 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.
Files changed (48) hide show
  1. package/esm2022/src/application/application_init.mjs +2 -2
  2. package/esm2022/src/application/application_ref.mjs +2 -2
  3. package/esm2022/src/application/application_tokens.mjs +9 -9
  4. package/esm2022/src/change_detection/scheduling/zoneless_scheduling_impl.mjs +51 -18
  5. package/esm2022/src/core_private_export.mjs +2 -2
  6. package/esm2022/src/defer/instructions.mjs +4 -2
  7. package/esm2022/src/di/forward_ref.mjs +1 -1
  8. package/esm2022/src/di/initializer_token.mjs +2 -2
  9. package/esm2022/src/di/injector.mjs +4 -4
  10. package/esm2022/src/di/injector_token.mjs +2 -2
  11. package/esm2022/src/di/internal_tokens.mjs +2 -2
  12. package/esm2022/src/di/scope.mjs +2 -2
  13. package/esm2022/src/hydration/error_handling.mjs +17 -6
  14. package/esm2022/src/hydration/utils.mjs +54 -8
  15. package/esm2022/src/i18n/tokens.mjs +5 -5
  16. package/esm2022/src/linker/compiler.mjs +2 -2
  17. package/esm2022/src/metadata/di.mjs +1 -1
  18. package/esm2022/src/platform/platform.mjs +2 -2
  19. package/esm2022/src/platform/platform_ref.mjs +2 -2
  20. package/esm2022/src/render3/component_ref.mjs +1 -1
  21. package/esm2022/src/render3/instructions/element.mjs +3 -3
  22. package/esm2022/src/util/ng_dev_mode.mjs +11 -3
  23. package/esm2022/src/version.mjs +1 -1
  24. package/esm2022/testing/src/component_fixture.mjs +128 -93
  25. package/esm2022/testing/src/logger.mjs +3 -3
  26. package/esm2022/testing/src/test_bed.mjs +11 -6
  27. package/esm2022/testing/src/test_bed_common.mjs +9 -2
  28. package/esm2022/testing/src/test_bed_compiler.mjs +5 -4
  29. package/esm2022/testing/src/testing.mjs +2 -2
  30. package/fesm2022/core.mjs +156 -59
  31. package/fesm2022/core.mjs.map +1 -1
  32. package/fesm2022/primitives/signals.mjs +1 -1
  33. package/fesm2022/rxjs-interop.mjs +1 -1
  34. package/fesm2022/testing.mjs +143 -96
  35. package/fesm2022/testing.mjs.map +1 -1
  36. package/index.d.ts +37 -7
  37. package/package.json +1 -1
  38. package/primitives/signals/index.d.ts +1 -1
  39. package/rxjs-interop/index.d.ts +1 -1
  40. package/schematics/migrations/block-template-entities/bundle.js +229 -200
  41. package/schematics/migrations/block-template-entities/bundle.js.map +3 -3
  42. package/schematics/migrations/compiler-options/bundle.js +13 -13
  43. package/schematics/migrations/transfer-state/bundle.js +13 -13
  44. package/schematics/ng-generate/control-flow-migration/bundle.js +239 -210
  45. package/schematics/ng-generate/control-flow-migration/bundle.js.map +3 -3
  46. package/schematics/ng-generate/standalone-migration/bundle.js +535 -492
  47. package/schematics/ng-generate/standalone-migration/bundle.js.map +3 -3
  48. package/testing/index.d.ts +6 -17
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.1.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](guide/glossary#di-token "DI token definition") that indicates which animations
335
+ * A [DI token](api/core/InjectionToken) that indicates which animations
336
336
  * module has been loaded.
337
337
  * @publicApi
338
338
  */
@@ -3925,7 +3925,7 @@ declare const FLAGS = 2;
3925
3925
  export declare function forwardRef(forwardRefFn: ForwardRefFn): Type<any>;
3926
3926
 
3927
3927
  /**
3928
- * An interface that a function passed into {@link forwardRef} has to implement.
3928
+ * An interface that a function passed into `forwardRef` has to implement.
3929
3929
  *
3930
3930
  * @usageNotes
3931
3931
  * ### Example
@@ -4545,6 +4545,18 @@ export declare interface HostListenerDecorator {
4545
4545
 
4546
4546
  declare const HYDRATION = 6;
4547
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
+
4548
4560
  declare namespace i0 {
4549
4561
  export {
4550
4562
  ɵɵinject,
@@ -5211,10 +5223,10 @@ export declare const INJECTOR: InjectionToken<Injector>;
5211
5223
 
5212
5224
  /**
5213
5225
  * Concrete injectors implement this interface. Injectors are configured
5214
- * with [providers](guide/glossary#provider) that associate
5215
- * dependencies of various types with [injection tokens](guide/glossary#di-token).
5226
+ * with [providers](guide/dependency-injection-providers) that associate
5227
+ * dependencies of various types with [injection tokens](guide/dependency-injection-providers).
5216
5228
  *
5217
- * @see ["DI Providers"](guide/dependency-injection-providers).
5229
+ * @see [DI Providers](guide/dependency-injection-providers).
5218
5230
  * @see {@link StaticProvider}
5219
5231
  *
5220
5232
  * @usageNotes
@@ -10672,6 +10684,8 @@ export declare interface ViewChildDecorator {
10672
10684
  *
10673
10685
  * @usageNotes
10674
10686
  *
10687
+ * ### Example 1
10688
+ *
10675
10689
  * {@example core/di/ts/viewChild/view_child_example.ts region='Component'}
10676
10690
  *
10677
10691
  * ### Example 2
@@ -11572,9 +11586,11 @@ export declare const ɵDEFER_BLOCK_CONFIG: InjectionToken<ɵDeferBlockConfig>;
11572
11586
 
11573
11587
  /**
11574
11588
  * **INTERNAL**, avoid referencing it in application code.
11575
- *
11589
+ * *
11576
11590
  * Injector token that allows to provide `DeferBlockDependencyInterceptor` class
11577
11591
  * implementation.
11592
+ *
11593
+ * This token is only injected in devMode
11578
11594
  */
11579
11595
  export declare const ɵDEFER_BLOCK_DEPENDENCY_INTERCEPTOR: InjectionToken<ɵDeferBlockDependencyInterceptor>;
11580
11596
 
@@ -11998,6 +12014,18 @@ export declare type ɵGlobalDevModeUtils = {
11998
12014
  [GLOBAL_PUBLISH_EXPANDO_KEY]: typeof globalUtilsFunctions;
11999
12015
  };
12000
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
+
12001
12029
  /**
12002
12030
  * Injection token that configures the image optimized image functionality.
12003
12031
  * See {@link ImageConfig} for additional information about parameters that
@@ -12523,6 +12551,8 @@ export declare interface ɵProviderRecord {
12523
12551
 
12524
12552
  export declare function ɵprovideZonelessChangeDetection(): EnvironmentProviders;
12525
12553
 
12554
+ export declare function ɵreadHydrationInfo(node: RNode): ɵHydrationInfo | null;
12555
+
12526
12556
  export declare class ɵReflectionCapabilities implements PlatformReflectionCapabilities {
12527
12557
  private _reflect;
12528
12558
  constructor(reflect?: any);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "17.1.1",
3
+ "version": "17.1.2",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.1.1
2
+ * @license Angular v17.1.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.1.1
2
+ * @license Angular v17.1.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */