@angular/core 20.1.0-next.3 → 20.1.0

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 (61) hide show
  1. package/api.d.d.ts +1 -1
  2. package/chrome_dev_tools_performance.d.d.ts +1 -1
  3. package/discovery.d.d.ts +1 -1
  4. package/event_dispatcher.d.d.ts +1 -1
  5. package/fesm2022/attribute.mjs +1 -1
  6. package/fesm2022/core.mjs +14 -6
  7. package/fesm2022/core.mjs.map +1 -1
  8. package/fesm2022/debug_node.mjs +8 -6
  9. package/fesm2022/debug_node.mjs.map +1 -1
  10. package/fesm2022/{injector.mjs → not_found.mjs} +28 -25
  11. package/fesm2022/not_found.mjs.map +1 -0
  12. package/fesm2022/primitives/di.mjs +11 -3
  13. package/fesm2022/primitives/di.mjs.map +1 -1
  14. package/fesm2022/primitives/event-dispatch.mjs +1 -1
  15. package/fesm2022/primitives/signals.mjs +1 -1
  16. package/fesm2022/resource.mjs +1 -1
  17. package/fesm2022/root_effect_scheduler.mjs +3 -3
  18. package/fesm2022/root_effect_scheduler.mjs.map +1 -1
  19. package/fesm2022/rxjs-interop.mjs +2 -2
  20. package/fesm2022/signal.mjs +1 -1
  21. package/fesm2022/testing.mjs +2 -2
  22. package/fesm2022/untracked.mjs +1 -1
  23. package/fesm2022/weak_ref.mjs +1 -1
  24. package/graph.d.d.ts +1 -1
  25. package/index.d.ts +7 -8
  26. package/package.json +2 -2
  27. package/primitives/di/index.d.ts +11 -3
  28. package/primitives/event-dispatch/index.d.ts +1 -1
  29. package/primitives/signals/index.d.ts +1 -1
  30. package/rxjs-interop/index.d.ts +1 -1
  31. package/schematics/bundles/{apply_import_manager-C11Q8021.cjs → apply_import_manager-B0fYYMpr.cjs} +3 -3
  32. package/schematics/bundles/{checker-BVnpy__J.cjs → checker-DLInMAS3.cjs} +533 -1264
  33. package/schematics/bundles/cleanup-unused-imports.cjs +6 -5
  34. package/schematics/bundles/{compiler_host-j95cyBKm.cjs → compiler_host-Doj9KVJf.cjs} +2 -2
  35. package/schematics/bundles/control-flow-migration.cjs +3 -3
  36. package/schematics/bundles/document-core.cjs +6 -5
  37. package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
  38. package/schematics/bundles/{index-BkA2Tb_u.cjs → index-BmuUS1AB.cjs} +947 -71
  39. package/schematics/bundles/{index-DYpSE68_.cjs → index-Bp8sCiq1.cjs} +5 -4
  40. package/schematics/bundles/inject-flags.cjs +6 -5
  41. package/schematics/bundles/inject-migration.cjs +3 -3
  42. package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
  43. package/schematics/bundles/{migrate_ts_type_references-Covsxz7y.cjs → migrate_ts_type_references-CmZ0155c.cjs} +6 -5
  44. package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
  45. package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
  46. package/schematics/bundles/output-migration.cjs +7 -6
  47. package/schematics/bundles/{project_paths-3GwjSb-R.cjs → project_paths-D2SJWT7x.cjs} +39 -3
  48. package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.cjs +1 -1
  49. package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
  50. package/schematics/bundles/route-lazy-loading.cjs +3 -3
  51. package/schematics/bundles/self-closing-tags-migration.cjs +5 -4
  52. package/schematics/bundles/signal-input-migration.cjs +8 -7
  53. package/schematics/bundles/signal-queries-migration.cjs +8 -7
  54. package/schematics/bundles/signals.cjs +8 -7
  55. package/schematics/bundles/standalone-migration.cjs +4 -4
  56. package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
  57. package/schematics/bundles/test-bed-get.cjs +5 -4
  58. package/signal.d.d.ts +1 -1
  59. package/testing/index.d.ts +1 -1
  60. package/weak_ref.d.d.ts +1 -1
  61. package/fesm2022/injector.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.3
2
+ * @license Angular v20.1.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -8,7 +8,7 @@ import { Observable, ReplaySubject } from 'rxjs';
8
8
  import { takeUntil } from 'rxjs/operators';
9
9
  import { assertInInjectionContext, inject, DestroyRef, RuntimeError, Injector, assertNotInReactiveContext, signal, PendingTasks } from './root_effect_scheduler.mjs';
10
10
  import { getOutputDestroyRef, effect, untracked, computed, resource, encapsulateResourceError } from './resource.mjs';
11
- import './injector.mjs';
11
+ import './not_found.mjs';
12
12
  import './signal.mjs';
13
13
  import '@angular/core/primitives/di';
14
14
  import '@angular/core/primitives/signals';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.3
2
+ * @license Angular v20.1.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.3
2
+ * @license Angular v20.1.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -13,7 +13,7 @@ import './signal.mjs';
13
13
  import '@angular/core/primitives/signals';
14
14
  import 'rxjs/operators';
15
15
  import './attribute.mjs';
16
- import './injector.mjs';
16
+ import './not_found.mjs';
17
17
  import '@angular/core/primitives/di';
18
18
 
19
19
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.3
2
+ * @license Angular v20.1.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.3
2
+ * @license Angular v20.1.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/graph.d.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.3
2
+ * @license Angular v20.1.0
3
3
  * (c) 2010-2025 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 v20.1.0-next.3
2
+ * @license Angular v20.1.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1762,8 +1762,7 @@ interface Injectable {
1762
1762
  * - `Type<any>` - associates the injectable with an `@NgModule` or other `InjectorType`. This
1763
1763
  * option is DEPRECATED.
1764
1764
  * - 'null' : Equivalent to `undefined`. The injectable is not provided in any scope automatically
1765
- * and must be added to a `providers` array of an [@NgModule](api/core/NgModule#providers),
1766
- * [@Component](api/core/Directive#providers) or [@Directive](api/core/Directive#providers).
1765
+ * and must be added to a `providers` array.
1767
1766
  *
1768
1767
  * The following options specify that this injectable should be provided in one of the following
1769
1768
  * injectors:
@@ -2303,7 +2302,7 @@ interface AfterRenderOptions {
2303
2302
  * }
2304
2303
  * ```
2305
2304
  *
2306
- * @developerPreview
2305
+ * @publicApi 20.0
2307
2306
  */
2308
2307
  declare function afterEveryRender<E = never, W = never, M = never>(spec: {
2309
2308
  earlyRead?: () => E;
@@ -2361,7 +2360,7 @@ declare function afterEveryRender<E = never, W = never, M = never>(spec: {
2361
2360
  * }
2362
2361
  * ```
2363
2362
  *
2364
- * @publicApi
2363
+ * @publicApi 20.0
2365
2364
  */
2366
2365
  declare function afterEveryRender(callback: VoidFunction, options?: AfterRenderOptions): AfterRenderRef;
2367
2366
  /**
@@ -2441,7 +2440,7 @@ declare function afterEveryRender(callback: VoidFunction, options?: AfterRenderO
2441
2440
  * }
2442
2441
  * ```
2443
2442
  *
2444
- * @developerPreview
2443
+ * @publicApi 20.0
2445
2444
  */
2446
2445
  declare function afterNextRender<E = never, W = never, M = never>(spec: {
2447
2446
  earlyRead?: () => E;
@@ -2608,7 +2607,7 @@ declare function afterRenderEffect<E = never, W = never, M = never>(spec: {
2608
2607
 
2609
2608
  /**
2610
2609
  * Asserts that the current stack frame is not within a reactive context. Useful
2611
- * to disallow certain code from running inside a reactive context (see {@link /api/core/rxjs/toSignal toSignal})
2610
+ * to disallow certain code from running inside a reactive context (see {@link /api/core/rxjs-interop/toSignal toSignal})
2612
2611
  *
2613
2612
  * @param debugFn a reference to the function making the assertion (used for the error message).
2614
2613
  *
@@ -5563,7 +5562,7 @@ declare const PERFORMANCE_MARK_PREFIX = "\uD83C\uDD70\uFE0F";
5563
5562
  declare function startMeasuring<T>(label: string): void;
5564
5563
  /**
5565
5564
  * Function that will stop measuring against the performance API
5566
- * Should be used in pair with stopMeasuring
5565
+ * Should be used in pair with startMeasuring
5567
5566
  */
5568
5567
  declare function stopMeasuring(label: string): void;
5569
5568
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "20.1.0-next.3",
3
+ "version": "20.1.0",
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": "20.1.0-next.3",
49
+ "@angular/compiler": "20.1.0",
50
50
  "rxjs": "^6.5.3 || ^7.4.0",
51
51
  "zone.js": "~0.15.0"
52
52
  },
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.3
2
+ * @license Angular v20.1.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -74,6 +74,14 @@ interface ɵɵInjectableDeclaration<T> {
74
74
  interface InjectionToken<T> {
75
75
  ɵprov: ɵɵInjectableDeclaration<T>;
76
76
  }
77
+ declare function defineInjectable<T>(opts: {
78
+ token: unknown;
79
+ providedIn?: Type<any> | 'root' | 'platform' | 'any' | 'environment' | null;
80
+ factory: () => T;
81
+ }): ɵɵInjectableDeclaration<T>;
82
+ type Constructor<T> = Function & {
83
+ prototype: T;
84
+ };
77
85
  declare function registerInjectable<T>(ctor: unknown, declaration: ɵɵInjectableDeclaration<T>): InjectionToken<T>;
78
86
 
79
87
  /**
@@ -103,7 +111,7 @@ interface Injector {
103
111
  }
104
112
  declare function getCurrentInjector(): Injector | undefined | null;
105
113
  declare function setCurrentInjector(injector: Injector | null | undefined): Injector | undefined | null;
106
- declare function inject<T>(token: InjectionToken<T>, options?: unknown): T | NotFound;
114
+ declare function inject<T>(token: InjectionToken<T> | Constructor<T>): T;
107
115
 
108
- export { NOT_FOUND, NotFoundError, getCurrentInjector, inject, isNotFound, registerInjectable, setCurrentInjector };
116
+ export { NOT_FOUND, NotFoundError, defineInjectable, getCurrentInjector, inject, isNotFound, registerInjectable, setCurrentInjector };
109
117
  export type { InjectionToken, Injector, NotFound, ɵɵInjectableDeclaration };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.3
2
+ * @license Angular v20.1.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.3
2
+ * @license Angular v20.1.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.3
2
+ * @license Angular v20.1.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v20.1.0-next.3
3
+ * @license Angular v20.1.0
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -8,8 +8,8 @@
8
8
 
9
9
  var ts = require('typescript');
10
10
  require('os');
11
- var checker = require('./checker-BVnpy__J.cjs');
12
- var project_paths = require('./project_paths-3GwjSb-R.cjs');
11
+ var checker = require('./checker-DLInMAS3.cjs');
12
+ var project_paths = require('./project_paths-D2SJWT7x.cjs');
13
13
 
14
14
  /**
15
15
  * Applies import manager changes, and writes them as replacements the