@angular/core 18.0.3 → 18.0.5

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 (51) hide show
  1. package/esm2022/primitives/event-dispatch/src/eventcontract.mjs +2 -2
  2. package/esm2022/src/authoring/model/model_signal.mjs +2 -3
  3. package/esm2022/src/change_detection/change_detector_ref.mjs +3 -2
  4. package/esm2022/src/change_detection/scheduling/zoneless_scheduling_impl.mjs +2 -2
  5. package/esm2022/src/core_render3_private_export.mjs +2 -2
  6. package/esm2022/src/defer/instructions.mjs +3 -11
  7. package/esm2022/src/di/host_tag_name_token.mjs +4 -1
  8. package/esm2022/src/errors.mjs +1 -1
  9. package/esm2022/src/event_delegation_utils.mjs +3 -2
  10. package/esm2022/src/hydration/annotate.mjs +27 -16
  11. package/esm2022/src/hydration/error_handling.mjs +3 -1
  12. package/esm2022/src/hydration/event_replay.mjs +34 -15
  13. package/esm2022/src/hydration/i18n.mjs +102 -18
  14. package/esm2022/src/hydration/node_lookup_utils.mjs +12 -6
  15. package/esm2022/src/render3/after_render_hooks.mjs +3 -1
  16. package/esm2022/src/render3/chained_injector.mjs +34 -0
  17. package/esm2022/src/render3/collect_native_nodes.mjs +6 -1
  18. package/esm2022/src/render3/component_ref.mjs +3 -28
  19. package/esm2022/src/render3/index.mjs +2 -2
  20. package/esm2022/src/render3/instructions/all.mjs +2 -1
  21. package/esm2022/src/render3/instructions/i18n_icu_container_visitor.mjs +61 -51
  22. package/esm2022/src/render3/instructions/let_declaration.mjs +62 -0
  23. package/esm2022/src/render3/instructions/projection.mjs +14 -11
  24. package/esm2022/src/render3/instructions/shared.mjs +1 -1
  25. package/esm2022/src/render3/interfaces/node.mjs +2 -1
  26. package/esm2022/src/render3/jit/environment.mjs +4 -1
  27. package/esm2022/src/render3/node_assert.mjs +9 -8
  28. package/esm2022/src/render3/node_manipulation.mjs +10 -3
  29. package/esm2022/src/render3/util/injector_discovery_utils.mjs +14 -5
  30. package/esm2022/src/render3/util/injector_utils.mjs +10 -1
  31. package/esm2022/src/version.mjs +1 -1
  32. package/esm2022/testing/src/logger.mjs +3 -3
  33. package/fesm2022/core.mjs +422 -202
  34. package/fesm2022/core.mjs.map +1 -1
  35. package/fesm2022/primitives/event-dispatch.mjs +2 -2
  36. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  37. package/fesm2022/primitives/signals.mjs +1 -1
  38. package/fesm2022/rxjs-interop.mjs +1 -1
  39. package/fesm2022/testing.mjs +1 -1
  40. package/index.d.ts +36 -5
  41. package/package.json +1 -1
  42. package/primitives/event-dispatch/index.d.ts +2 -2
  43. package/primitives/signals/index.d.ts +1 -1
  44. package/rxjs-interop/index.d.ts +1 -1
  45. package/schematics/migrations/invalid-two-way-bindings/bundle.js +271 -62
  46. package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +4 -4
  47. package/schematics/ng-generate/control-flow-migration/bundle.js +278 -62
  48. package/schematics/ng-generate/control-flow-migration/bundle.js.map +4 -4
  49. package/schematics/ng-generate/standalone-migration/bundle.js +287 -76
  50. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  51. package/testing/index.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.0.3
2
+ * @license Angular v18.0.5
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.0.3
2
+ * @license Angular v18.0.5
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.0.3
2
+ * @license Angular v18.0.5
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.0.3
2
+ * @license Angular v18.0.5
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -104,6 +104,7 @@ export declare interface AfterContentInit {
104
104
  * </div>
105
105
  *
106
106
  * @param callback A callback function to register
107
+ * @param options Options to control the behavior of the callback
107
108
  *
108
109
  * @usageNotes
109
110
  *
@@ -156,6 +157,7 @@ export declare function afterNextRender(callback: VoidFunction, options?: AfterR
156
157
  * </div>
157
158
  *
158
159
  * @param callback A callback function to register
160
+ * @param options Options to control the behavior of the callback
159
161
  *
160
162
  * @usageNotes
161
163
  *
@@ -6993,10 +6995,8 @@ export declare interface ModelOptions {
6993
6995
  *
6994
6996
  * @developerPreview
6995
6997
  */
6996
- export declare interface ModelSignal<T> extends WritableSignal<T>, OutputRef<T> {
6998
+ export declare interface ModelSignal<T> extends WritableSignal<T>, InputSignal<T>, OutputRef<T> {
6997
6999
  [SIGNAL]: InputSignalNode<T, T>;
6998
- [ɵINPUT_SIGNAL_BRAND_READ_TYPE]: T;
6999
- [ɵINPUT_SIGNAL_BRAND_WRITE_TYPE]: T;
7000
7000
  }
7001
7001
 
7002
7002
  /**
@@ -10407,6 +10407,10 @@ declare const enum TNodeType {
10407
10407
  * existing `TNode` (rather than create a new one) and just update the missing information.
10408
10408
  */
10409
10409
  Placeholder = 64,
10410
+ /**
10411
+ * The TNode contains information about a `@let` declaration.
10412
+ */
10413
+ LetDeclaration = 128,
10410
10414
  AnyRNode = 3,// Text | Element
10411
10415
  AnyContainer = 12
10412
10416
  }
@@ -13568,6 +13572,7 @@ export declare const enum ɵRuntimeErrorCode {
13568
13572
  HOST_DIRECTIVE_UNDEFINED_BINDING = 311,
13569
13573
  HOST_DIRECTIVE_CONFLICTING_ALIAS = 312,
13570
13574
  MULTIPLE_MATCHING_PIPES = 313,
13575
+ UNINITIALIZED_LET_ACCESS = 314,
13571
13576
  MULTIPLE_PLATFORMS = 400,
13572
13577
  PLATFORM_NOT_FOUND = 401,
13573
13578
  MISSING_REQUIRED_INJECTABLE_IN_BOOTSTRAP = 402,
@@ -13609,7 +13614,7 @@ export declare const enum ɵRuntimeErrorCode {
13609
13614
  UNEXPECTED_ZONEJS_PRESENT_IN_ZONELESS_MODE = 914,
13610
13615
  REQUIRED_INPUT_NO_VALUE = -950,
13611
13616
  REQUIRED_QUERY_NO_VALUE = -951,
13612
- REQUIRED_MODEL_NO_VALUE = -952,
13617
+ REQUIRED_MODEL_NO_VALUE = 952,
13613
13618
  OUTPUT_REF_DESTROYED = 953,
13614
13619
  LOOP_TRACK_DUPLICATE_KEYS = -955,
13615
13620
  LOOP_TRACK_RECREATE = -956,
@@ -14848,6 +14853,15 @@ export declare function ɵɵcontentQuerySignal<T>(directiveIndex: number, target
14848
14853
  */
14849
14854
  export declare function ɵɵCopyDefinitionFeature(definition: ɵDirectiveDef<any> | ɵComponentDef<any>): void;
14850
14855
 
14856
+ /**
14857
+ * Declares an `@let` at a specific data slot. Returns itself to allow chaining.
14858
+ *
14859
+ * @param index Index at which to declare the `@let`.
14860
+ *
14861
+ * @codeGenApi
14862
+ */
14863
+ export declare function ɵɵdeclareLet(index: number): typeof ɵɵdeclareLet;
14864
+
14851
14865
  /**
14852
14866
  * Creates runtime data structures for defer blocks.
14853
14867
  *
@@ -16526,6 +16540,15 @@ export declare function ɵɵqueryAdvance(indexOffset?: number): void;
16526
16540
  */
16527
16541
  export declare function ɵɵqueryRefresh(queryList: QueryList<any>): boolean;
16528
16542
 
16543
+ /**
16544
+ * Retrieves the value of a `@let` declaration defined in a parent view.
16545
+ *
16546
+ * @param index Index of the declaration within the view.
16547
+ *
16548
+ * @codeGenApi
16549
+ */
16550
+ export declare function ɵɵreadContextLet<T>(index: number): T;
16551
+
16529
16552
  /**
16530
16553
  * Retrieves a local reference from the current contextViewData.
16531
16554
  *
@@ -16779,6 +16802,14 @@ export declare function ɵɵsetNgModuleScope(type: any, scope: NgModuleScopeInfo
16779
16802
  */
16780
16803
  export declare function ɵɵStandaloneFeature(definition: ɵComponentDef<unknown>): void;
16781
16804
 
16805
+ /**
16806
+ * Instruction that stores the value of a `@let` declaration on the current view.
16807
+ * Returns the value to allow usage inside variable initializers.
16808
+ *
16809
+ * @codeGenApi
16810
+ */
16811
+ export declare function ɵɵstoreLet<T>(value: T): T;
16812
+
16782
16813
  /**
16783
16814
  * Update style bindings using an object literal on an element.
16784
16815
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "18.0.3",
3
+ "version": "18.0.5",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.0.3
2
+ * @license Angular v18.0.5
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -142,7 +142,7 @@ export declare class EventContract implements UnrenamedEventContract {
142
142
  /** Whether to add an a11y click listener. */
143
143
  private addA11yClickListener;
144
144
  ecaacs?: (updateEventInfoForA11yClick: typeof a11yClickLib.updateEventInfoForA11yClick, preventDefaultForA11yClick: typeof a11yClickLib.preventDefaultForA11yClick, populateClickOnlyAction: typeof a11yClickLib.populateClickOnlyAction) => void;
145
- constructor(containerManager: EventContractContainerManager, useActionResolver?: boolean);
145
+ constructor(containerManager: EventContractContainerManager, useActionResolver: false);
146
146
  private handleEvent;
147
147
  /**
148
148
  * Handle an `EventInfo`.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.0.3
2
+ * @license Angular v18.0.5
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.0.3
2
+ * @license Angular v18.0.5
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */