@angular/core 20.1.0-next.3 → 20.1.0-rc.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.
- package/api.d.d.ts +1 -1
- package/chrome_dev_tools_performance.d.d.ts +1 -1
- package/discovery.d.d.ts +1 -1
- package/event_dispatcher.d.d.ts +1 -1
- package/fesm2022/attribute.mjs +1 -1
- package/fesm2022/core.mjs +13 -5
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/debug_node.mjs +3 -3
- package/fesm2022/debug_node.mjs.map +1 -1
- package/fesm2022/{injector.mjs → not_found.mjs} +28 -25
- package/fesm2022/not_found.mjs.map +1 -0
- package/fesm2022/primitives/di.mjs +11 -3
- package/fesm2022/primitives/di.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/resource.mjs +1 -1
- package/fesm2022/root_effect_scheduler.mjs +3 -3
- package/fesm2022/root_effect_scheduler.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +2 -2
- package/fesm2022/signal.mjs +1 -1
- package/fesm2022/testing.mjs +2 -2
- package/fesm2022/untracked.mjs +1 -1
- package/fesm2022/weak_ref.mjs +1 -1
- package/graph.d.d.ts +1 -1
- package/index.d.ts +6 -7
- package/package.json +2 -2
- package/primitives/di/index.d.ts +11 -3
- package/primitives/event-dispatch/index.d.ts +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/bundles/{apply_import_manager-C11Q8021.cjs → apply_import_manager-DEMoyu96.cjs} +3 -3
- package/schematics/bundles/{checker-BVnpy__J.cjs → checker-CwuJOWZI.cjs} +154 -158
- package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
- package/schematics/bundles/{compiler_host-j95cyBKm.cjs → compiler_host-B1N_OYoF.cjs} +2 -2
- package/schematics/bundles/control-flow-migration.cjs +3 -3
- package/schematics/bundles/document-core.cjs +5 -5
- package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
- package/schematics/bundles/{index-BkA2Tb_u.cjs → index-CmuNlSML.cjs} +29 -29
- package/schematics/bundles/{index-DYpSE68_.cjs → index-DPxKO2pR.cjs} +4 -4
- package/schematics/bundles/inject-flags.cjs +5 -5
- package/schematics/bundles/inject-migration.cjs +3 -3
- package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
- package/schematics/bundles/{migrate_ts_type_references-Covsxz7y.cjs → migrate_ts_type_references-Da3yLjVM.cjs} +5 -5
- package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
- package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +6 -6
- package/schematics/bundles/{project_paths-3GwjSb-R.cjs → project_paths-86Qe1BQQ.cjs} +3 -3
- package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.cjs +1 -1
- package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +3 -3
- package/schematics/bundles/self-closing-tags-migration.cjs +4 -4
- package/schematics/bundles/signal-input-migration.cjs +7 -7
- package/schematics/bundles/signal-queries-migration.cjs +7 -7
- package/schematics/bundles/signals.cjs +7 -7
- package/schematics/bundles/standalone-migration.cjs +4 -4
- package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
- package/schematics/bundles/test-bed-get.cjs +4 -4
- package/signal.d.d.ts +1 -1
- package/testing/index.d.ts +1 -1
- package/weak_ref.d.d.ts +1 -1
- package/fesm2022/injector.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0-
|
|
2
|
+
* @license Angular v20.1.0-rc.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 './
|
|
11
|
+
import './not_found.mjs';
|
|
12
12
|
import './signal.mjs';
|
|
13
13
|
import '@angular/core/primitives/di';
|
|
14
14
|
import '@angular/core/primitives/signals';
|
package/fesm2022/signal.mjs
CHANGED
package/fesm2022/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0-
|
|
2
|
+
* @license Angular v20.1.0-rc.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 './
|
|
16
|
+
import './not_found.mjs';
|
|
17
17
|
import '@angular/core/primitives/di';
|
|
18
18
|
|
|
19
19
|
/**
|
package/fesm2022/untracked.mjs
CHANGED
package/fesm2022/weak_ref.mjs
CHANGED
package/graph.d.d.ts
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0-
|
|
2
|
+
* @license Angular v20.1.0-rc.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
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/core",
|
|
3
|
-
"version": "20.1.0-
|
|
3
|
+
"version": "20.1.0-rc.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-
|
|
49
|
+
"@angular/compiler": "20.1.0-rc.0",
|
|
50
50
|
"rxjs": "^6.5.3 || ^7.4.0",
|
|
51
51
|
"zone.js": "~0.15.0"
|
|
52
52
|
},
|
package/primitives/di/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0-
|
|
2
|
+
* @license Angular v20.1.0-rc.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
|
|
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 };
|
package/rxjs-interop/index.d.ts
CHANGED
package/schematics/bundles/{apply_import_manager-C11Q8021.cjs → apply_import_manager-DEMoyu96.cjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.1.0-
|
|
3
|
+
* @license Angular v20.1.0-rc.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-
|
|
12
|
-
var project_paths = require('./project_paths-
|
|
11
|
+
var checker = require('./checker-CwuJOWZI.cjs');
|
|
12
|
+
var project_paths = require('./project_paths-86Qe1BQQ.cjs');
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Applies import manager changes, and writes them as replacements the
|