@angular/core 14.0.0-next.11 → 14.0.0-next.14

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 (54) hide show
  1. package/core.d.ts +121 -66
  2. package/esm2020/src/application_ref.mjs +118 -32
  3. package/esm2020/src/application_tokens.mjs +5 -2
  4. package/esm2020/src/change_detection/change_detection.mjs +2 -2
  5. package/esm2020/src/change_detection/differs/default_iterable_differ.mjs +2 -2
  6. package/esm2020/src/change_detection/differs/default_keyvalue_differ.mjs +2 -2
  7. package/esm2020/src/compiler/compiler_facade_interface.mjs +7 -1
  8. package/esm2020/src/console.mjs +4 -3
  9. package/esm2020/src/core.mjs +2 -2
  10. package/esm2020/src/core_private_export.mjs +3 -2
  11. package/esm2020/src/core_render3_private_export.mjs +2 -2
  12. package/esm2020/src/di/index.mjs +2 -1
  13. package/esm2020/src/di/injection_token.mjs +7 -1
  14. package/esm2020/src/di/interface/defs.mjs +1 -1
  15. package/esm2020/src/di/r3_injector.mjs +216 -125
  16. package/esm2020/src/di/scope.mjs +1 -1
  17. package/esm2020/src/errors.mjs +1 -1
  18. package/esm2020/src/linker/component_factory.mjs +1 -1
  19. package/esm2020/src/linker/ng_module_factory.mjs +1 -1
  20. package/esm2020/src/linker/view_container_ref.mjs +12 -9
  21. package/esm2020/src/platform_core_providers.mjs +3 -14
  22. package/esm2020/src/render3/bindings.mjs +2 -2
  23. package/esm2020/src/render3/component_ref.mjs +8 -4
  24. package/esm2020/src/render3/definition.mjs +14 -20
  25. package/esm2020/src/render3/errors.mjs +6 -3
  26. package/esm2020/src/render3/errors_di.mjs +1 -1
  27. package/esm2020/src/render3/features/inherit_definition_feature.mjs +3 -2
  28. package/esm2020/src/render3/features/standalone_feature.mjs +7 -0
  29. package/esm2020/src/render3/index.mjs +4 -3
  30. package/esm2020/src/render3/instructions/shared.mjs +33 -15
  31. package/esm2020/src/render3/interfaces/definition.mjs +1 -1
  32. package/esm2020/src/render3/interfaces/public_definitions.mjs +1 -1
  33. package/esm2020/src/render3/jit/directive.mjs +2 -3
  34. package/esm2020/src/render3/jit/environment.mjs +2 -1
  35. package/esm2020/src/render3/ng_module_ref.mjs +33 -4
  36. package/esm2020/src/testability/testability.mjs +4 -3
  37. package/esm2020/src/version.mjs +1 -1
  38. package/esm2020/testing/src/logger.mjs +3 -3
  39. package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
  40. package/esm2020/testing/src/r3_test_bed.mjs +5 -8
  41. package/esm2020/testing/src/test_bed.mjs +1 -1
  42. package/esm2020/testing/src/test_bed_common.mjs +1 -1
  43. package/fesm2015/core.mjs +487 -229
  44. package/fesm2015/core.mjs.map +1 -1
  45. package/fesm2015/testing.mjs +5 -8
  46. package/fesm2015/testing.mjs.map +1 -1
  47. package/fesm2020/core.mjs +485 -230
  48. package/fesm2020/core.mjs.map +1 -1
  49. package/fesm2020/testing.mjs +5 -8
  50. package/fesm2020/testing.mjs.map +1 -1
  51. package/package.json +1 -1
  52. package/schematics/migrations.json +2 -2
  53. package/testing/testing.d.ts +1 -42
  54. package/esm2020/src/change_detection/change_detection_util.mjs +0 -64
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.0.0-next.11
2
+ * @license Angular v14.0.0-next.14
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1539,9 +1539,9 @@ class TestBedRender3 {
1539
1539
  *
1540
1540
  * @publicApi
1541
1541
  */
1542
- static initTestEnvironment(ngModule, platform, summariesOrOptions) {
1542
+ static initTestEnvironment(ngModule, platform, options) {
1543
1543
  const testBed = _getTestBedRender3();
1544
- testBed.initTestEnvironment(ngModule, platform, summariesOrOptions);
1544
+ testBed.initTestEnvironment(ngModule, platform, options);
1545
1545
  return testBed;
1546
1546
  }
1547
1547
  /**
@@ -1639,14 +1639,11 @@ class TestBedRender3 {
1639
1639
  *
1640
1640
  * @publicApi
1641
1641
  */
1642
- initTestEnvironment(ngModule, platform, summariesOrOptions) {
1642
+ initTestEnvironment(ngModule, platform, options) {
1643
1643
  if (this.platform || this.ngModule) {
1644
1644
  throw new Error('Cannot set base providers because it has already been called');
1645
1645
  }
1646
- // If `summariesOrOptions` is a function, it means that it's
1647
- // an AOT summaries factory which Ivy doesn't support.
1648
- TestBedRender3._environmentTeardownOptions =
1649
- typeof summariesOrOptions === 'function' ? undefined : summariesOrOptions === null || summariesOrOptions === void 0 ? void 0 : summariesOrOptions.teardown;
1646
+ TestBedRender3._environmentTeardownOptions = options === null || options === void 0 ? void 0 : options.teardown;
1650
1647
  this.platform = platform;
1651
1648
  this.ngModule = ngModule;
1652
1649
  this._compiler = new R3TestBedCompiler(this.platform, this.ngModule);