@angular/core 14.0.0-next.12 → 14.0.0-next.15
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/esm2020/src/application_ref.mjs +212 -50
- package/esm2020/src/application_tokens.mjs +5 -2
- package/esm2020/src/change_detection/change_detection.mjs +2 -2
- package/esm2020/src/change_detection/differs/default_iterable_differ.mjs +2 -2
- package/esm2020/src/change_detection/differs/default_keyvalue_differ.mjs +2 -2
- package/esm2020/src/compiler/compiler_facade_interface.mjs +7 -1
- package/esm2020/src/console.mjs +4 -3
- package/esm2020/src/core.mjs +2 -2
- package/esm2020/src/core_private_export.mjs +4 -3
- package/esm2020/src/core_render3_private_export.mjs +4 -3
- package/esm2020/src/di/create_injector.mjs +36 -0
- package/esm2020/src/di/index.mjs +4 -1
- package/esm2020/src/di/initializer_token.mjs +16 -0
- package/esm2020/src/di/injection_token.mjs +7 -1
- package/esm2020/src/di/injector.mjs +2 -2
- package/esm2020/src/di/injector_compatibility.mjs +1 -3
- package/esm2020/src/di/interface/defs.mjs +1 -1
- package/esm2020/src/di/interface/provider.mjs +1 -1
- package/esm2020/src/di/internal_tokens.mjs +10 -0
- package/esm2020/src/di/provider_collection.mjs +209 -0
- package/esm2020/src/di/r3_injector.mjs +66 -153
- package/esm2020/src/di/scope.mjs +1 -1
- package/esm2020/src/errors.mjs +1 -1
- package/esm2020/src/linker/component_factory.mjs +1 -1
- package/esm2020/src/linker/ng_module_factory.mjs +1 -1
- package/esm2020/src/linker/view_container_ref.mjs +12 -9
- package/esm2020/src/metadata/directives.mjs +1 -1
- package/esm2020/src/metadata/ng_module.mjs +1 -1
- package/esm2020/src/metadata.mjs +1 -1
- package/esm2020/src/platform_core_providers.mjs +3 -14
- package/esm2020/src/render3/bindings.mjs +2 -2
- package/esm2020/src/render3/component_ref.mjs +12 -4
- package/esm2020/src/render3/definition.mjs +16 -20
- package/esm2020/src/render3/di_setup.mjs +3 -2
- package/esm2020/src/render3/errors.mjs +21 -3
- package/esm2020/src/render3/errors_di.mjs +1 -1
- package/esm2020/src/render3/features/inherit_definition_feature.mjs +3 -2
- package/esm2020/src/render3/features/standalone_feature.mjs +69 -0
- package/esm2020/src/render3/index.mjs +4 -3
- package/esm2020/src/render3/instructions/shared.mjs +6 -3
- package/esm2020/src/render3/interfaces/definition.mjs +1 -1
- package/esm2020/src/render3/interfaces/public_definitions.mjs +1 -1
- package/esm2020/src/render3/jit/directive.mjs +93 -8
- package/esm2020/src/render3/jit/environment.mjs +2 -1
- package/esm2020/src/render3/jit/module.mjs +64 -17
- package/esm2020/src/render3/jit/pipe.mjs +2 -4
- package/esm2020/src/render3/ng_module_ref.mjs +34 -4
- package/esm2020/src/testability/testability.mjs +4 -3
- package/esm2020/src/util/global.mjs +8 -8
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/esm2020/testing/src/r3_test_bed.mjs +5 -8
- package/esm2020/testing/src/test_bed.mjs +1 -1
- package/esm2020/testing/src/test_bed_common.mjs +1 -1
- package/fesm2015/core.mjs +1009 -407
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +5 -8
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +1007 -408
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +5 -8
- package/fesm2020/testing.mjs.map +1 -1
- package/{core.d.ts → index.d.ts} +14716 -14613
- package/package.json +4 -4
- package/testing/{testing.d.ts → index.d.ts} +537 -577
- package/esm2020/src/change_detection/change_detection_util.mjs +0 -64
- package/testing/package.json +0 -9
package/fesm2020/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.0-next.
|
|
2
|
+
* @license Angular v14.0.0-next.15
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1537,9 +1537,9 @@ class TestBedRender3 {
|
|
|
1537
1537
|
*
|
|
1538
1538
|
* @publicApi
|
|
1539
1539
|
*/
|
|
1540
|
-
static initTestEnvironment(ngModule, platform,
|
|
1540
|
+
static initTestEnvironment(ngModule, platform, options) {
|
|
1541
1541
|
const testBed = _getTestBedRender3();
|
|
1542
|
-
testBed.initTestEnvironment(ngModule, platform,
|
|
1542
|
+
testBed.initTestEnvironment(ngModule, platform, options);
|
|
1543
1543
|
return testBed;
|
|
1544
1544
|
}
|
|
1545
1545
|
/**
|
|
@@ -1637,14 +1637,11 @@ class TestBedRender3 {
|
|
|
1637
1637
|
*
|
|
1638
1638
|
* @publicApi
|
|
1639
1639
|
*/
|
|
1640
|
-
initTestEnvironment(ngModule, platform,
|
|
1640
|
+
initTestEnvironment(ngModule, platform, options) {
|
|
1641
1641
|
if (this.platform || this.ngModule) {
|
|
1642
1642
|
throw new Error('Cannot set base providers because it has already been called');
|
|
1643
1643
|
}
|
|
1644
|
-
|
|
1645
|
-
// an AOT summaries factory which Ivy doesn't support.
|
|
1646
|
-
TestBedRender3._environmentTeardownOptions =
|
|
1647
|
-
typeof summariesOrOptions === 'function' ? undefined : summariesOrOptions?.teardown;
|
|
1644
|
+
TestBedRender3._environmentTeardownOptions = options?.teardown;
|
|
1648
1645
|
this.platform = platform;
|
|
1649
1646
|
this.ngModule = ngModule;
|
|
1650
1647
|
this._compiler = new R3TestBedCompiler(this.platform, this.ngModule);
|