@angular/core 21.2.1 → 21.2.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 (64) hide show
  1. package/fesm2022/_attribute-chunk.mjs +1 -1
  2. package/fesm2022/_debug_node-chunk.mjs +94 -37
  3. package/fesm2022/_debug_node-chunk.mjs.map +1 -1
  4. package/fesm2022/_effect-chunk.mjs +1 -1
  5. package/fesm2022/_effect-chunk2.mjs +2 -2
  6. package/fesm2022/_effect-chunk2.mjs.map +1 -1
  7. package/fesm2022/_not_found-chunk.mjs +1 -1
  8. package/fesm2022/_resource-chunk.mjs +1 -1
  9. package/fesm2022/_untracked-chunk.mjs +1 -1
  10. package/fesm2022/_weak_ref-chunk.mjs +1 -1
  11. package/fesm2022/core.mjs +5 -33
  12. package/fesm2022/core.mjs.map +1 -1
  13. package/fesm2022/primitives-di.mjs +1 -1
  14. package/fesm2022/primitives-event-dispatch.mjs +1 -1
  15. package/fesm2022/primitives-signals.mjs +1 -1
  16. package/fesm2022/rxjs-interop.mjs +1 -1
  17. package/fesm2022/testing.mjs +1 -1
  18. package/package.json +2 -2
  19. package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +1 -1
  20. package/schematics/bundles/application-config-core.cjs +1 -1
  21. package/schematics/bundles/apply_import_manager-CxA_YYgB.cjs +1 -1
  22. package/schematics/bundles/bootstrap-options-migration.cjs +1 -1
  23. package/schematics/bundles/cleanup-unused-imports.cjs +1 -1
  24. package/schematics/bundles/common-to-standalone-migration.cjs +1 -1
  25. package/schematics/bundles/compiler_host-CY14HvaP.cjs +1 -1
  26. package/schematics/bundles/control-flow-migration.cjs +1 -1
  27. package/schematics/bundles/imports-CVmcbVA9.cjs +1 -1
  28. package/schematics/bundles/index-BtLcQH8g.cjs +1 -1
  29. package/schematics/bundles/inject-migration.cjs +1 -1
  30. package/schematics/bundles/leading_space-BTPRV0wu.cjs +1 -1
  31. package/schematics/bundles/migrate_ts_type_references-MWoZx-Cb.cjs +1 -1
  32. package/schematics/bundles/ng_component_template-BOuKAnQd.cjs +1 -1
  33. package/schematics/bundles/ng_decorators-DYy6II6x.cjs +1 -1
  34. package/schematics/bundles/ngclass-to-class-migration.cjs +1 -1
  35. package/schematics/bundles/ngstyle-to-style-migration.cjs +1 -1
  36. package/schematics/bundles/nodes-ZSQ7WZRB.cjs +1 -1
  37. package/schematics/bundles/output-migration.cjs +1 -1
  38. package/schematics/bundles/parse_html-C8eKA9px.cjs +1 -1
  39. package/schematics/bundles/project_paths-D2V-Uh2L.cjs +1 -1
  40. package/schematics/bundles/project_tsconfig_paths-DkkMibv-.cjs +1 -1
  41. package/schematics/bundles/property_name-BCpALNpZ.cjs +1 -1
  42. package/schematics/bundles/route-lazy-loading.cjs +1 -1
  43. package/schematics/bundles/router-current-navigation.cjs +1 -1
  44. package/schematics/bundles/router-last-successful-navigation.cjs +1 -1
  45. package/schematics/bundles/router-testing-module-migration.cjs +1 -1
  46. package/schematics/bundles/self-closing-tags-migration.cjs +1 -1
  47. package/schematics/bundles/signal-input-migration.cjs +1 -1
  48. package/schematics/bundles/signal-queries-migration.cjs +1 -1
  49. package/schematics/bundles/signals.cjs +1 -1
  50. package/schematics/bundles/standalone-migration.cjs +1 -1
  51. package/schematics/bundles/symbol-DZeHSR-V.cjs +1 -1
  52. package/types/_api-chunk.d.ts +1 -1
  53. package/types/_chrome_dev_tools_performance-chunk.d.ts +1 -1
  54. package/types/_discovery-chunk.d.ts +59 -51
  55. package/types/_effect-chunk.d.ts +1 -1
  56. package/types/_event_dispatcher-chunk.d.ts +1 -1
  57. package/types/_formatter-chunk.d.ts +1 -1
  58. package/types/_weak_ref-chunk.d.ts +1 -1
  59. package/types/core.d.ts +594 -593
  60. package/types/primitives-di.d.ts +1 -1
  61. package/types/primitives-event-dispatch.d.ts +1 -1
  62. package/types/primitives-signals.d.ts +1 -1
  63. package/types/rxjs-interop.d.ts +1 -1
  64. package/types/testing.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v21.2.2
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v21.2.2
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v21.2.2
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v21.2.2
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v21.2.2
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "21.2.1",
3
+ "version": "21.2.2",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -46,7 +46,7 @@
46
46
  "tslib": "^2.3.0"
47
47
  },
48
48
  "peerDependencies": {
49
- "@angular/compiler": "21.2.1",
49
+ "@angular/compiler": "21.2.2",
50
50
  "rxjs": "^6.5.3 || ^7.4.0",
51
51
  "zone.js": "~0.15.0 || ~0.16.0"
52
52
  },
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.2.1
3
+ * @license Angular v21.2.2
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v21.2.2
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v21.2.2
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v21.2.2
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -94,6 +94,62 @@ interface AnimationLViewData {
94
94
  */
95
95
  type AnimationClassBindingFn = () => string | string[];
96
96
 
97
+ /** Actions that are supported by the tracing framework. */
98
+ declare enum TracingAction {
99
+ CHANGE_DETECTION = 0,
100
+ AFTER_NEXT_RENDER = 1
101
+ }
102
+ /** A single tracing snapshot. */
103
+ interface TracingSnapshot {
104
+ run<T>(action: TracingAction, fn: () => T): T;
105
+ /** Disposes of the tracing snapshot. Must be run exactly once per TracingSnapshot. */
106
+ dispose(): void;
107
+ }
108
+ /**
109
+ * Injection token for a `TracingService`, optionally provided.
110
+ */
111
+ declare const TracingService: InjectionToken<TracingService<TracingSnapshot>>;
112
+ /**
113
+ * Tracing mechanism which can associate causes (snapshots) with runs of
114
+ * subsequent operations.
115
+ *
116
+ * Not defined by Angular directly, but defined in contexts where tracing is
117
+ * desired.
118
+ */
119
+ interface TracingService<T extends TracingSnapshot> {
120
+ /**
121
+ * Take a snapshot of the current context which will be stored by Angular and
122
+ * used when additional work is performed that was scheduled in this context.
123
+ *
124
+ * @param linkedSnapshot Optional snapshot to use link to the current context.
125
+ * The caller is no longer responsible for calling dispose on the linkedSnapshot.
126
+ *
127
+ * @return The tracing snapshot. The caller is responsible for diposing of the
128
+ * snapshot.
129
+ */
130
+ snapshot(linkedSnapshot: T | null): T;
131
+ /**
132
+ * Propagate the current tracing context to the provided function.
133
+ * @param fn A function.
134
+ * @return A function that will propagate the current tracing context.
135
+ */
136
+ propagate?<T extends Function>(fn: T): T;
137
+ /**
138
+ * Wrap an event listener bound by the framework for tracing.
139
+ * @param element Element on which the event is bound.
140
+ * @param eventName Name of the event.
141
+ * @param handler Event handler.
142
+ * @return A new event handler to be bound instead of the original one.
143
+ */
144
+ wrapEventListener?<T extends Function>(element: HTMLElement, eventName: string, handler: T): T;
145
+ /**
146
+ * Trace the creation of a component instance.
147
+ * @param className Name of the component. May be null if the class is anonymous.
148
+ * @param fn Function that creates the component instance.
149
+ */
150
+ componentCreate?<T>(className: string | null, fn: () => T): T;
151
+ }
152
+
97
153
  declare const enum NotificationSource {
98
154
  MarkAncestorsForTraversal = 0,
99
155
  SetInput = 1,
@@ -3058,56 +3114,6 @@ declare abstract class Sanitizer {
3058
3114
  static ɵprov: unknown;
3059
3115
  }
3060
3116
 
3061
- /** Actions that are supported by the tracing framework. */
3062
- declare enum TracingAction {
3063
- CHANGE_DETECTION = 0,
3064
- AFTER_NEXT_RENDER = 1
3065
- }
3066
- /** A single tracing snapshot. */
3067
- interface TracingSnapshot {
3068
- run<T>(action: TracingAction, fn: () => T): T;
3069
- /** Disposes of the tracing snapshot. Must be run exactly once per TracingSnapshot. */
3070
- dispose(): void;
3071
- }
3072
- /**
3073
- * Injection token for a `TracingService`, optionally provided.
3074
- */
3075
- declare const TracingService: InjectionToken<TracingService<TracingSnapshot>>;
3076
- /**
3077
- * Tracing mechanism which can associate causes (snapshots) with runs of
3078
- * subsequent operations.
3079
- *
3080
- * Not defined by Angular directly, but defined in contexts where tracing is
3081
- * desired.
3082
- */
3083
- interface TracingService<T extends TracingSnapshot> {
3084
- /**
3085
- * Take a snapshot of the current context which will be stored by Angular and
3086
- * used when additional work is performed that was scheduled in this context.
3087
- *
3088
- * @param linkedSnapshot Optional snapshot to use link to the current context.
3089
- * The caller is no longer responsible for calling dispose on the linkedSnapshot.
3090
- *
3091
- * @return The tracing snapshot. The caller is responsible for diposing of the
3092
- * snapshot.
3093
- */
3094
- snapshot(linkedSnapshot: T | null): T;
3095
- /**
3096
- * Propagate the current tracing context to the provided function.
3097
- * @param fn A function.
3098
- * @return A function that will propagate the current tracing context.
3099
- */
3100
- propagate?<T extends Function>(fn: T): T;
3101
- /**
3102
- * Wrap an event listener bound by the framework for tracing.
3103
- * @param element Element on which the event is bound.
3104
- * @param eventName Name of the event.
3105
- * @param handler Event handler.
3106
- * @return A new event handler to be bound instead of the original one.
3107
- */
3108
- wrapEventListener?<T extends Function>(element: HTMLElement, eventName: string, handler: T): T;
3109
- }
3110
-
3111
3117
  /**
3112
3118
  * A callback that runs after render.
3113
3119
  *
@@ -4256,6 +4262,8 @@ interface LViewEnvironment {
4256
4262
  sanitizer: Sanitizer | null;
4257
4263
  /** Scheduler for change detection to notify when application state changes. */
4258
4264
  changeDetectionScheduler: ChangeDetectionScheduler | null;
4265
+ /** Service used for tracing different parts of the application. */
4266
+ tracingService: TracingService<TracingSnapshot> | null;
4259
4267
  /**
4260
4268
  * Whether `ng-reflect-*` attributes should be produced in dev mode
4261
4269
  * (always disabled in prod mode).
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v21.2.2
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v21.2.2
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v21.2.2
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v21.2.2
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */