@angular/core 19.0.0-rc.0 → 19.0.0-rc.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 (40) hide show
  1. package/fesm2022/core.mjs +13699 -13802
  2. package/fesm2022/core.mjs.map +1 -1
  3. package/fesm2022/primitives/event-dispatch.mjs +2 -2
  4. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  5. package/fesm2022/primitives/signals.mjs +1 -1
  6. package/fesm2022/primitives/signals.mjs.map +1 -1
  7. package/fesm2022/rxjs-interop.mjs +1 -1
  8. package/fesm2022/rxjs-interop.mjs.map +1 -1
  9. package/fesm2022/testing.mjs +6 -6
  10. package/fesm2022/testing.mjs.map +1 -1
  11. package/index.d.ts +28 -62
  12. package/package.json +1 -1
  13. package/primitives/event-dispatch/index.d.ts +1 -1
  14. package/primitives/signals/index.d.ts +1 -1
  15. package/rxjs-interop/index.d.ts +1 -1
  16. package/schematics/bundles/{checker-2451e7c5.js → checker-cd95ebda.js} +191 -169
  17. package/schematics/bundles/combine_units-528c4a5d.js +1703 -0
  18. package/schematics/bundles/{compiler_host-f54f8309.js → compiler_host-40e8d55f.js} +8 -5
  19. package/schematics/bundles/control-flow-migration.js +3 -3
  20. package/schematics/bundles/explicit-standalone-flag.js +5 -5
  21. package/schematics/bundles/{imports-44987700.js → imports-4ac08251.js} +1 -1
  22. package/schematics/bundles/inject-migration.js +131 -37
  23. package/schematics/bundles/{leading_space-6e7a8ec6.js → leading_space-d190b83b.js} +1 -1
  24. package/schematics/bundles/{migrate_ts_type_references-ab18a7c3.js → migrate_ts_type_references-0bcee7cb.js} +528 -32
  25. package/schematics/bundles/{ng_decorators-3ad437d2.js → nodes-0e7d45ca.js} +15 -2
  26. package/schematics/bundles/output-migration.js +30 -6906
  27. package/schematics/bundles/pending-tasks.js +5 -5
  28. package/schematics/bundles/{program-58424797.js → program-8f30df93.js} +119 -59
  29. package/schematics/bundles/{project_tsconfig_paths-6c9cde78.js → project_tsconfig_paths-e9ccccbf.js} +1 -1
  30. package/schematics/bundles/provide-initializer.js +17 -28
  31. package/schematics/bundles/route-lazy-loading.js +10 -5
  32. package/schematics/bundles/signal-input-migration.js +50 -37
  33. package/schematics/bundles/signal-queries-migration.js +26 -19
  34. package/schematics/bundles/signals.js +7 -7
  35. package/schematics/bundles/standalone-migration.js +167 -84
  36. package/schematics/migrations.json +1 -1
  37. package/schematics/ng-generate/signals/schema.json +1 -0
  38. package/testing/index.d.ts +1 -1
  39. package/schematics/bundles/combine_units-c52492ab.js +0 -31202
  40. package/schematics/bundles/nodes-ffdce442.js +0 -27
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-rc.0
2
+ * @license Angular v19.0.0-rc.2
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -3041,20 +3041,6 @@ declare const DEFER_BLOCK_ID = "di";
3041
3041
 
3042
3042
  declare const DEFER_BLOCK_STATE = "s";
3043
3043
 
3044
- declare const DEFER_HYDRATE_TRIGGERS = "t";
3045
-
3046
- declare const DEFER_PARENT_BLOCK_ID = "p";
3047
-
3048
- /**
3049
- * Basic set of data structures used for identifying a defer block
3050
- * and triggering defer blocks
3051
- */
3052
- declare interface DeferBlock {
3053
- lView: LView;
3054
- tNode: TNode;
3055
- lContainer: LContainer;
3056
- }
3057
-
3058
3044
  /**
3059
3045
  * Represents defer trigger types.
3060
3046
  */
@@ -3114,6 +3100,16 @@ declare interface DehydratedContainerView extends DehydratedView {
3114
3100
  data: Readonly<SerializedContainerView>;
3115
3101
  }
3116
3102
 
3103
+ /**
3104
+ * Basic set of data structures used for identifying a defer block
3105
+ * and triggering defer blocks
3106
+ */
3107
+ declare interface DehydratedDeferBlock {
3108
+ lView: LView;
3109
+ tNode: TNode;
3110
+ lContainer: LContainer;
3111
+ }
3112
+
3117
3113
  /**
3118
3114
  * An object that contains information about a dehydrated ICU case,
3119
3115
  * to facilitate cleaning up ICU cases that were active during
@@ -3188,10 +3184,6 @@ declare interface DehydratedView {
3188
3184
  * removed from the DOM during hydration cleanup.
3189
3185
  */
3190
3186
  dehydratedIcuData?: Map<number, DehydratedIcuData>;
3191
- /**
3192
- * A mapping of defer block unique ids to the defer block data
3193
- */
3194
- dehydratedDeferBlockData?: Record<string, SerializedDeferBlock>;
3195
3187
  }
3196
3188
 
3197
3189
  /**
@@ -5055,7 +5047,7 @@ declare type HostDirectiveBindingMap = {
5055
5047
  [publicName: string]: string;
5056
5048
  };
5057
5049
 
5058
- /** Values that can be used to define a host directive through the `HostDirectivesFeature`. */
5050
+ /** Value that can be used to configure a host directive. */
5059
5051
  declare type HostDirectiveConfig = Type<unknown> | {
5060
5052
  directive: Type<unknown>;
5061
5053
  inputs?: string[];
@@ -9985,33 +9977,6 @@ declare interface SerializedContainerView extends SerializedView {
9985
9977
  [MULTIPLIER]?: number;
9986
9978
  }
9987
9979
 
9988
- /**
9989
- * Serialized data structure that contains relevant defer block
9990
- * information that describes a given incremental hydration boundary
9991
- */
9992
- declare interface SerializedDeferBlock {
9993
- /**
9994
- * This contains the unique id of this defer block's parent, if it exists.
9995
- */
9996
- [DEFER_PARENT_BLOCK_ID]: string | null;
9997
- /**
9998
- * This field represents a status, based on the `DeferBlockState` enum.
9999
- */
10000
- [DEFER_BLOCK_STATE]?: number;
10001
- /**
10002
- * Number of root nodes that belong to this defer block's template.
10003
- * This information is needed to effectively traverse the DOM tree
10004
- * and add jsaction attributes to root nodes appropriately for
10005
- * incremental hydration.
10006
- */
10007
- [NUM_ROOT_NODES]: number;
10008
- /**
10009
- * The list of triggers that exist for incremental hydration, based on the
10010
- * `Trigger` enum.
10011
- */
10012
- [DEFER_HYDRATE_TRIGGERS]: (DeferBlockTrigger | SerializedTriggerDetails)[] | null;
10013
- }
10014
-
10015
9980
  /**
10016
9981
  * Represents element containers within this view, stored as key-value pairs
10017
9982
  * where key is an index of a container in an LView (also used in the
@@ -10023,11 +9988,6 @@ declare interface SerializedElementContainers {
10023
9988
  [key: number]: number;
10024
9989
  }
10025
9990
 
10026
- declare interface SerializedTriggerDetails {
10027
- trigger: DeferBlockTrigger;
10028
- delay?: number;
10029
- }
10030
-
10031
9991
  /**
10032
9992
  * Serialized data structure that contains relevant hydration
10033
9993
  * annotation information that describes a given hydration boundary
@@ -13210,7 +13170,7 @@ export declare interface ɵDeferBlockDependencyInterceptor {
13210
13170
  /**
13211
13171
  * Defer block instance for testing.
13212
13172
  */
13213
- export declare interface ɵDeferBlockDetails extends DeferBlock {
13173
+ export declare interface ɵDeferBlockDetails extends DehydratedDeferBlock {
13214
13174
  tDetails: TDeferBlockDetails;
13215
13175
  }
13216
13176
 
@@ -13385,8 +13345,17 @@ export declare interface ɵDirectiveDef<T> {
13385
13345
  * configuration. Host directives will be added to the map as they're being matched to the node.
13386
13346
  */
13387
13347
  findHostDirectiveDefs: ((currentDef: ɵDirectiveDef<unknown>, matchedDefs: ɵDirectiveDef<unknown>[], hostDirectiveDefs: HostDirectiveDefs) => void) | null;
13388
- /** Additional directives to be applied whenever the directive has been matched. */
13389
- hostDirectives: HostDirectiveDef[] | null;
13348
+ /**
13349
+ * Additional directives to be applied whenever the directive has been matched.
13350
+ *
13351
+ * `HostDirectiveConfig` objects represent a host directive that can be resolved eagerly and were
13352
+ * already pre-processed when the definition was created. A function needs to be resolved lazily
13353
+ * during directive matching, because it's a forward reference.
13354
+ *
13355
+ * **Note:** we can't `HostDirectiveConfig` in the array, because there's no way to distinguish if
13356
+ * a function in the array is a `Type` or a `() => HostDirectiveConfig[]`.
13357
+ */
13358
+ hostDirectives: (HostDirectiveDef | (() => HostDirectiveConfig[]))[] | null;
13390
13359
  setInput: (<U extends T>(this: ɵDirectiveDef<U>, instance: U, inputSignalNode: null | ɵInputSignalNode<unknown, unknown>, value: any, publicName: string, privateName: string) => void) | null;
13391
13360
  }
13392
13361
 
@@ -13919,12 +13888,6 @@ export declare const ɵNG_PIPE_DEF: string;
13919
13888
 
13920
13889
  export declare const ɵNG_PROV_DEF: string;
13921
13890
 
13922
- /**
13923
- * A constant defining the default value for the standalone attribute in Directive and Pipes decorators.
13924
- * Extracted to a separate file to facilitate G3 patches.
13925
- */
13926
- export declare const ɵNG_STANDALONE_DEFAULT_VALUE = true;
13927
-
13928
13891
  /**
13929
13892
  * Runtime link information for NgModules.
13930
13893
  *
@@ -14300,6 +14263,7 @@ export declare class ɵRender3NgModuleRef<T> extends NgModuleRef<T> implements I
14300
14263
  onDestroy(callback: () => void): void;
14301
14264
  }
14302
14265
 
14266
+ /** Rendering Helpers */
14303
14267
  /**
14304
14268
  * Transitions a defer block to the new state. Updates the necessary
14305
14269
  * data structures and renders corresponding block.
@@ -14455,6 +14419,7 @@ export declare const enum ɵRuntimeErrorCode {
14455
14419
  MISSING_HYDRATION_ANNOTATIONS = -505,
14456
14420
  HYDRATION_STABLE_TIMEDOUT = -506,
14457
14421
  MISSING_SSR_CONTENT_INTEGRITY_MARKER = -507,
14422
+ MISCONFIGURED_INCREMENTAL_HYDRATION = 508,
14458
14423
  SIGNAL_WRITE_FROM_ILLEGAL_CONTEXT = 600,
14459
14424
  REQUIRE_SYNC_WITHOUT_SYNC_EMIT = 601,
14460
14425
  ASSERTION_NOT_INSIDE_REACTIVE_CONTEXT = -602,
@@ -17587,10 +17552,11 @@ export declare function ɵɵrepeaterTrackByIndex(index: number): number;
17587
17552
  * Replaces the metadata of a component type and re-renders all live instances of the component.
17588
17553
  * @param type Class whose metadata will be replaced.
17589
17554
  * @param applyMetadata Callback that will apply a new set of metadata on the `type` when invoked.
17555
+ * @param environment Core runtime environment to use when applying the HMR update.
17590
17556
  * @param locals Local symbols from the source location that have to be exposed to the callback.
17591
17557
  * @codeGenApi
17592
17558
  */
17593
- export declare function ɵɵreplaceMetadata(type: Type<unknown>, applyMetadata: (...args: [Type<unknown>, Record<string, unknown>, ...unknown[]]) => void, locals: unknown[]): void;
17559
+ export declare function ɵɵreplaceMetadata(type: Type<unknown>, applyMetadata: (...args: [Type<unknown>, Record<string, unknown>, ...unknown[]]) => void, environment: Record<string, unknown>, locals: unknown[]): void;
17594
17560
 
17595
17561
  /**
17596
17562
  * Clears the view set in `ɵɵrestoreView` from memory. Returns the passed in
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "19.0.0-rc.0",
3
+ "version": "19.0.0-rc.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 v19.0.0-rc.0
2
+ * @license Angular v19.0.0-rc.2
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 v19.0.0-rc.0
2
+ * @license Angular v19.0.0-rc.2
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 v19.0.0-rc.0
2
+ * @license Angular v19.0.0-rc.2
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */