@angular/core 20.0.0-next.2 → 20.0.0-next.3
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/fesm2022/core.mjs +413 -365
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/di.mjs +3 -2
- package/fesm2022/primitives/di.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1 -1
- package/fesm2022/primitives/signals.mjs +28 -7
- package/fesm2022/primitives/signals.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -8
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +2 -10
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/weak_ref-DrMdAIDh.mjs +1 -1
- package/index.d.ts +7523 -7489
- package/navigation_types.d-u4EOrrdZ.d.ts +1 -1
- package/package.json +2 -2
- package/primitives/di/index.d.ts +25 -10
- package/primitives/event-dispatch/index.d.ts +1 -1
- package/primitives/signals/index.d.ts +9 -6
- package/rxjs-interop/index.d.ts +1 -10
- package/schematics/bundles/{apply_import_manager-CyRT0UvU.js → apply_import_manager-BXQEjo09.js} +6 -6
- package/schematics/bundles/{checker-DF8ZaFW5.js → checker-BHb19MHt.js} +629 -71
- package/schematics/bundles/cleanup-unused-imports.js +42 -69
- package/schematics/bundles/{compiler_host-Da636uJ8.js → compiler_host-Bk3repE2.js} +2 -2
- package/schematics/bundles/control-flow-migration.js +3 -3
- package/schematics/bundles/imports-CIX-JgAN.js +1 -1
- package/schematics/bundles/{index-DnkWgagp.js → index-BL9kAIe5.js} +11 -11
- package/schematics/bundles/{program-BZk27Ndu.js → index-I8VbxQcO.js} +2234 -2097
- package/schematics/bundles/inject-flags.js +18 -52
- package/schematics/bundles/inject-migration.js +3 -3
- package/schematics/bundles/leading_space-D9nQ8UQC.js +1 -1
- package/schematics/bundles/{migrate_ts_type_references-DtkOnnv0.js → migrate_ts_type_references-KlOTWeDl.js} +20 -20
- package/schematics/bundles/ng_decorators-DznZ5jMl.js +1 -1
- package/schematics/bundles/nodes-B16H9JUd.js +1 -1
- package/schematics/bundles/output-migration.js +62 -90
- package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.js +1 -1
- package/schematics/bundles/property_name-BBwFuqMe.js +1 -1
- package/schematics/bundles/route-lazy-loading.js +3 -3
- package/schematics/bundles/{project_paths-Jtbi76Bs.js → run_in_devkit-C0JPtK2u.js} +262 -197
- package/schematics/bundles/self-closing-tags-migration.js +41 -71
- package/schematics/bundles/signal-input-migration.js +69 -97
- package/schematics/bundles/signal-queries-migration.js +80 -108
- package/schematics/bundles/signals.js +11 -11
- package/schematics/bundles/standalone-migration.js +8 -22
- package/schematics/bundles/symbol-VPWguRxr.js +25 -0
- package/schematics/bundles/test-bed-get.js +98 -0
- package/schematics/migrations.json +5 -0
- package/testing/index.d.ts +1 -3
- package/weak_ref.d-ttyj86RV.d.ts +1 -1
- package/schematics/bundles/index-vGJcp5M7.js +0 -30
package/fesm2022/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-next.
|
|
2
|
+
* @license Angular v20.0.0-next.3
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1521,7 +1521,7 @@ class TestBedCompiler {
|
|
|
1521
1521
|
return this._injector;
|
|
1522
1522
|
}
|
|
1523
1523
|
const providers = [];
|
|
1524
|
-
const compilerOptions = this.platform.injector.get(COMPILER_OPTIONS);
|
|
1524
|
+
const compilerOptions = this.platform.injector.get(COMPILER_OPTIONS, []);
|
|
1525
1525
|
compilerOptions.forEach((opts) => {
|
|
1526
1526
|
if (opts.providers) {
|
|
1527
1527
|
providers.push(opts.providers);
|
|
@@ -1836,10 +1836,6 @@ class TestBedImpl {
|
|
|
1836
1836
|
static inject(token, notFoundValue, options) {
|
|
1837
1837
|
return TestBedImpl.INSTANCE.inject(token, notFoundValue, options);
|
|
1838
1838
|
}
|
|
1839
|
-
/** @deprecated from v9.0.0 use TestBed.inject */
|
|
1840
|
-
static get(token, notFoundValue = Injector.THROW_IF_NOT_FOUND, options) {
|
|
1841
|
-
return TestBedImpl.INSTANCE.inject(token, notFoundValue, options);
|
|
1842
|
-
}
|
|
1843
1839
|
/**
|
|
1844
1840
|
* Runs the given function in the `EnvironmentInjector` context of `TestBed`.
|
|
1845
1841
|
*
|
|
@@ -1997,10 +1993,6 @@ class TestBedImpl {
|
|
|
1997
1993
|
? this.compiler.injector.get(token, notFoundValue, options)
|
|
1998
1994
|
: result;
|
|
1999
1995
|
}
|
|
2000
|
-
/** @deprecated from v9.0.0 use TestBed.inject */
|
|
2001
|
-
get(token, notFoundValue = Injector.THROW_IF_NOT_FOUND, options) {
|
|
2002
|
-
return this.inject(token, notFoundValue, options);
|
|
2003
|
-
}
|
|
2004
1996
|
runInInjectionContext(fn) {
|
|
2005
1997
|
return runInInjectionContext(this.inject(EnvironmentInjector), fn);
|
|
2006
1998
|
}
|