@angular/core 13.2.0 → 14.0.0-next.2

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 (44) hide show
  1. package/core.d.ts +78 -80
  2. package/esm2020/src/application_init.mjs +1 -1
  3. package/esm2020/src/application_ref.mjs +3 -22
  4. package/esm2020/src/change_detection/change_detection.mjs +2 -3
  5. package/esm2020/src/compiler/compiler_facade_interface.mjs +1 -1
  6. package/esm2020/src/core_private_export.mjs +2 -1
  7. package/esm2020/src/debug/debug_node.mjs +128 -45
  8. package/esm2020/src/di/r3_injector.mjs +5 -15
  9. package/esm2020/src/di/reflective_injector.mjs +1 -1
  10. package/esm2020/src/errors.mjs +22 -5
  11. package/esm2020/src/metadata/directives.mjs +14 -5
  12. package/esm2020/src/reflection/reflector.mjs +1 -1
  13. package/esm2020/src/render3/context_discovery.mjs +1 -1
  14. package/esm2020/src/render3/instructions/shared.mjs +2 -2
  15. package/esm2020/src/render3/jit/directive.mjs +5 -2
  16. package/esm2020/src/render3/jit/pipe.mjs +5 -2
  17. package/esm2020/src/util/coercion.mjs +12 -0
  18. package/esm2020/src/version.mjs +1 -1
  19. package/esm2020/testing/src/logger.mjs +3 -3
  20. package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
  21. package/esm2020/testing/src/r3_test_bed.mjs +6 -1
  22. package/fesm2015/core.mjs +191 -93
  23. package/fesm2015/core.mjs.map +1 -1
  24. package/fesm2015/testing.mjs +6 -1
  25. package/fesm2015/testing.mjs.map +1 -1
  26. package/fesm2020/core.mjs +191 -93
  27. package/fesm2020/core.mjs.map +1 -1
  28. package/fesm2020/testing.mjs +6 -1
  29. package/fesm2020/testing.mjs.map +1 -1
  30. package/package.json +1 -1
  31. package/schematics/migrations/typed-forms/index.js +2 -2
  32. package/schematics/migrations/typed-forms/util.js +3 -8
  33. package/schematics/migrations.json +6 -16
  34. package/testing/testing.d.ts +1 -1
  35. package/schematics/migrations/router-link-empty-expression/analyze_template.d.ts +0 -11
  36. package/schematics/migrations/router-link-empty-expression/analyze_template.js +0 -34
  37. package/schematics/migrations/router-link-empty-expression/angular/html_routerlink_empty_expr_visitor.d.ts +0 -20
  38. package/schematics/migrations/router-link-empty-expression/angular/html_routerlink_empty_expr_visitor.js +0 -47
  39. package/schematics/migrations/router-link-empty-expression/index.d.ts +0 -11
  40. package/schematics/migrations/router-link-empty-expression/index.js +0 -170
  41. package/schematics/migrations/testbed-teardown/index.d.ts +0 -11
  42. package/schematics/migrations/testbed-teardown/index.js +0 -92
  43. package/schematics/migrations/testbed-teardown/util.d.ts +0 -35
  44. package/schematics/migrations/testbed-teardown/util.js +0 -188
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v13.2.0
2
+ * @license Angular v14.0.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1695,6 +1695,11 @@ class TestBedRender3 {
1695
1695
  }
1696
1696
  configureTestingModule(moduleDef) {
1697
1697
  this.assertNotInstantiated('R3TestBed.configureTestingModule', 'configure the test module');
1698
+ // Trigger module scoping queue flush before executing other TestBed operations in a test.
1699
+ // This is needed for the first test invocation to ensure that globally declared modules have
1700
+ // their components scoped properly. See the `checkGlobalCompilationFinished` function
1701
+ // description for additional info.
1702
+ this.checkGlobalCompilationFinished();
1698
1703
  // Always re-assign the teardown options, even if they're undefined.
1699
1704
  // This ensures that we don't carry the options between tests.
1700
1705
  this._instanceTeardownOptions = moduleDef.teardown;