@angular/core 13.0.0-next.4 → 13.0.0-next.8

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 (90) hide show
  1. package/bundles/core-testing.umd.js +18 -18
  2. package/bundles/core-testing.umd.js.map +1 -1
  3. package/bundles/core.umd.js +57 -56
  4. package/bundles/core.umd.js.map +1 -1
  5. package/core.d.ts +10 -9
  6. package/core.metadata.json +1 -1
  7. package/esm2015/src/di/injector.js +2 -2
  8. package/esm2015/src/di/reflective_injector.js +2 -2
  9. package/esm2015/src/i18n/locale_data_api.js +5 -4
  10. package/esm2015/src/i18n/tokens.js +6 -6
  11. package/esm2015/src/linker/component_factory_resolver.js +2 -2
  12. package/esm2015/src/reflection/reflection_capabilities.js +3 -3
  13. package/esm2015/src/version.js +1 -1
  14. package/esm2015/testing/src/resolvers.js +1 -1
  15. package/fesm2015/core.js +16 -15
  16. package/fesm2015/core.js.map +1 -1
  17. package/fesm2015/testing.js +1 -1
  18. package/fesm2015/testing.js.map +1 -1
  19. package/package.json +2 -2
  20. package/schematics/migrations/abstract-control-parent/index.js +17 -8
  21. package/schematics/migrations/abstract-control-parent/util.js +6 -6
  22. package/schematics/migrations/activated-route-snapshot-fragment/index.js +18 -9
  23. package/schematics/migrations/activated-route-snapshot-fragment/util.js +4 -4
  24. package/schematics/migrations/can-activate-with-redirect-to/index.js +18 -9
  25. package/schematics/migrations/deep-shadow-piercing-selector/index.js +3 -3
  26. package/schematics/migrations/dynamic-queries/index.js +19 -10
  27. package/schematics/migrations/dynamic-queries/util.js +2 -2
  28. package/schematics/migrations/initial-navigation/collector.js +4 -4
  29. package/schematics/migrations/initial-navigation/index.js +16 -7
  30. package/schematics/migrations/initial-navigation/util.js +3 -3
  31. package/schematics/migrations/missing-injectable/definition_collector.js +5 -5
  32. package/schematics/migrations/missing-injectable/index.js +17 -8
  33. package/schematics/migrations/missing-injectable/transform.js +2 -2
  34. package/schematics/migrations/module-with-providers/collector.js +3 -3
  35. package/schematics/migrations/module-with-providers/index.js +17 -8
  36. package/schematics/migrations/module-with-providers/transform.js +3 -3
  37. package/schematics/migrations/module-with-providers/util.js +2 -2
  38. package/schematics/migrations/move-document/index.js +19 -10
  39. package/schematics/migrations/native-view-encapsulation/index.js +17 -8
  40. package/schematics/migrations/native-view-encapsulation/util.js +2 -2
  41. package/schematics/migrations/navigation-extras-omissions/index.js +18 -9
  42. package/schematics/migrations/navigation-extras-omissions/util.js +3 -3
  43. package/schematics/migrations/relative-link-resolution/collector.js +4 -4
  44. package/schematics/migrations/relative-link-resolution/index.js +16 -7
  45. package/schematics/migrations/relative-link-resolution/util.js +3 -3
  46. package/schematics/migrations/renderer-to-renderer2/index.js +24 -15
  47. package/schematics/migrations/renderer-to-renderer2/util.js +8 -8
  48. package/schematics/migrations/router-link-empty-expression/analyze_template.js +3 -3
  49. package/schematics/migrations/router-link-empty-expression/angular/html_routerlink_empty_expr_visitor.js +5 -5
  50. package/schematics/migrations/router-link-empty-expression/index.js +47 -24
  51. package/schematics/migrations/router-preserve-query-params/index.js +18 -9
  52. package/schematics/migrations/router-preserve-query-params/util.js +3 -3
  53. package/schematics/migrations/static-queries/angular/directive_inputs.js +5 -5
  54. package/schematics/migrations/static-queries/angular/ng_query_visitor.js +7 -7
  55. package/schematics/migrations/static-queries/index.js +7 -7
  56. package/schematics/migrations/static-queries/strategies/template_strategy/template_strategy.js +4 -4
  57. package/schematics/migrations/static-queries/strategies/usage_strategy/declaration_usage_visitor.js +9 -9
  58. package/schematics/migrations/static-queries/strategies/usage_strategy/super_class_context.js +6 -6
  59. package/schematics/migrations/static-queries/strategies/usage_strategy/template_usage_visitor.js +9 -9
  60. package/schematics/migrations/static-queries/strategies/usage_strategy/usage_strategy.js +6 -6
  61. package/schematics/migrations/static-queries/transform.js +2 -2
  62. package/schematics/migrations/template-var-assignment/analyze_template.js +3 -3
  63. package/schematics/migrations/template-var-assignment/angular/html_variable_assignment_visitor.js +4 -4
  64. package/schematics/migrations/template-var-assignment/index.js +17 -8
  65. package/schematics/migrations/undecorated-classes-with-decorated-fields/index.js +17 -8
  66. package/schematics/migrations/undecorated-classes-with-decorated-fields/transform.js +7 -7
  67. package/schematics/migrations/undecorated-classes-with-di/create_ngc_program.js +3 -3
  68. package/schematics/migrations/undecorated-classes-with-di/decorator_rewrite/decorator_rewriter.js +2 -2
  69. package/schematics/migrations/undecorated-classes-with-di/decorator_rewrite/import_rewrite_visitor.js +8 -8
  70. package/schematics/migrations/undecorated-classes-with-di/decorator_rewrite/path_format.js +2 -2
  71. package/schematics/migrations/undecorated-classes-with-di/decorator_rewrite/source_file_exports.js +2 -2
  72. package/schematics/migrations/undecorated-classes-with-di/index.js +17 -8
  73. package/schematics/migrations/undecorated-classes-with-di/ng_declaration_collector.js +4 -4
  74. package/schematics/migrations/undecorated-classes-with-di/transform.js +10 -10
  75. package/schematics/migrations/wait-for-async/index.js +22 -13
  76. package/schematics/migrations/wait-for-async/util.js +2 -2
  77. package/schematics/migrations/xhr-factory/index.js +2 -2
  78. package/schematics/migrations.json +1 -1
  79. package/schematics/utils/import_manager.js +3 -3
  80. package/schematics/utils/ng_component_template.js +10 -10
  81. package/schematics/utils/ng_decorators.js +2 -2
  82. package/schematics/utils/parse_html.js +2 -2
  83. package/schematics/utils/project_tsconfig_paths.d.ts +2 -2
  84. package/schematics/utils/project_tsconfig_paths.js +88 -54
  85. package/schematics/utils/typescript/compiler_host.js +5 -5
  86. package/schematics/utils/typescript/decorators.js +2 -2
  87. package/schematics/utils/typescript/find_base_classes.js +2 -2
  88. package/src/r3_symbols.d.ts +1 -1
  89. package/testing/testing.d.ts +1 -1
  90. package/testing.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v13.0.0-next.4
2
+ * @license Angular v13.0.0-next.8
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1160,18 +1160,18 @@
1160
1160
  // Enqueue any compilation tasks for the directly declared component.
1161
1161
  if (moduleDef.declarations !== undefined) {
1162
1162
  this.queueTypeArray(moduleDef.declarations, TestingModuleOverride.DECLARATION);
1163
- (_a = this.declarations).push.apply(_a, __spreadArray([], __read(moduleDef.declarations)));
1163
+ (_a = this.declarations).push.apply(_a, __spreadArray([], __read(moduleDef.declarations), false));
1164
1164
  }
1165
1165
  // Enqueue any compilation tasks for imported modules.
1166
1166
  if (moduleDef.imports !== undefined) {
1167
1167
  this.queueTypesFromModulesArray(moduleDef.imports);
1168
- (_b = this.imports).push.apply(_b, __spreadArray([], __read(moduleDef.imports)));
1168
+ (_b = this.imports).push.apply(_b, __spreadArray([], __read(moduleDef.imports), false));
1169
1169
  }
1170
1170
  if (moduleDef.providers !== undefined) {
1171
- (_c = this.providers).push.apply(_c, __spreadArray([], __read(moduleDef.providers)));
1171
+ (_c = this.providers).push.apply(_c, __spreadArray([], __read(moduleDef.providers), false));
1172
1172
  }
1173
1173
  if (moduleDef.schemas !== undefined) {
1174
- (_d = this.schemas).push.apply(_d, __spreadArray([], __read(moduleDef.schemas)));
1174
+ (_d = this.schemas).push.apply(_d, __spreadArray([], __read(moduleDef.schemas), false));
1175
1175
  }
1176
1176
  };
1177
1177
  R3TestBedCompiler.prototype.overrideModule = function (ngModule, override) {
@@ -1445,7 +1445,7 @@
1445
1445
  this.moduleProvidersOverridden.add(moduleType);
1446
1446
  var injectorDef = moduleType[core.ɵNG_INJ_DEF];
1447
1447
  if (this.providerOverridesByToken.size > 0) {
1448
- var providers = __spreadArray(__spreadArray([], __read(injectorDef.providers)), __read((this.providerOverridesByModule.get(moduleType) || [])));
1448
+ var providers = __spreadArray(__spreadArray([], __read(injectorDef.providers), false), __read((this.providerOverridesByModule.get(moduleType) || [])), false);
1449
1449
  if (this.hasProviderOverrides(providers)) {
1450
1450
  this.maybeStoreNgDef(core.ɵNG_INJ_DEF, moduleType);
1451
1451
  this.storeFieldOfDefOnType(moduleType, core.ɵNG_INJ_DEF, 'providers');
@@ -1730,13 +1730,13 @@
1730
1730
  return RootScopeModule;
1731
1731
  }());
1732
1732
  core.ɵcompileNgModuleDefs(RootScopeModule, {
1733
- providers: __spreadArray([], __read(this.rootProviderOverrides)),
1733
+ providers: __spreadArray([], __read(this.rootProviderOverrides), false),
1734
1734
  });
1735
1735
  var ngZone = new core.NgZone({ enableLongStackTrace: true });
1736
1736
  var providers = __spreadArray(__spreadArray([
1737
1737
  { provide: core.NgZone, useValue: ngZone },
1738
1738
  { provide: core.Compiler, useFactory: function () { return new R3TestCompiler(_this); } }
1739
- ], __read(this.providers)), __read(this.providerOverrides));
1739
+ ], __read(this.providers), false), __read(this.providerOverrides), false);
1740
1740
  var imports = [RootScopeModule, this.additionalModuleTypes, this.imports || []];
1741
1741
  // clang-format off
1742
1742
  core.ɵcompileNgModuleDefs(this.testModuleType, {
@@ -1761,7 +1761,7 @@
1761
1761
  }
1762
1762
  });
1763
1763
  if (this.compilerProviders !== null) {
1764
- providers.push.apply(providers, __spreadArray([], __read(this.compilerProviders)));
1764
+ providers.push.apply(providers, __spreadArray([], __read(this.compilerProviders), false));
1765
1765
  }
1766
1766
  // TODO(ocombe): make this work with an Injector directly instead of creating a module for it
1767
1767
  var CompilerModule = /** @class */ (function () {
@@ -1799,7 +1799,7 @@
1799
1799
  return [];
1800
1800
  var flattenedProviders = flatten(providers);
1801
1801
  var overrides = this.getProviderOverrides(flattenedProviders);
1802
- var overriddenProviders = __spreadArray(__spreadArray([], __read(flattenedProviders)), __read(overrides));
1802
+ var overriddenProviders = __spreadArray(__spreadArray([], __read(flattenedProviders), false), __read(overrides), false);
1803
1803
  var final = [];
1804
1804
  var seenOverriddenProviders = new Set();
1805
1805
  // We iterate through the list of providers in reverse order to make sure provider overrides
@@ -1857,7 +1857,7 @@
1857
1857
  var out = [];
1858
1858
  values.forEach(function (value) {
1859
1859
  if (Array.isArray(value)) {
1860
- out.push.apply(out, __spreadArray([], __read(flatten(value, mapFn))));
1860
+ out.push.apply(out, __spreadArray([], __read(flatten(value, mapFn)), false));
1861
1861
  }
1862
1862
  else {
1863
1863
  out.push(mapFn ? mapFn(value) : value);
@@ -2655,16 +2655,16 @@
2655
2655
  var _f, _g, _h, _j;
2656
2656
  this._assertNotInstantiated('TestBed.configureTestingModule', 'configure the test module');
2657
2657
  if (moduleDef.providers) {
2658
- (_f = this._providers).push.apply(_f, __spreadArray([], __read(moduleDef.providers)));
2658
+ (_f = this._providers).push.apply(_f, __spreadArray([], __read(moduleDef.providers), false));
2659
2659
  }
2660
2660
  if (moduleDef.declarations) {
2661
- (_g = this._declarations).push.apply(_g, __spreadArray([], __read(moduleDef.declarations)));
2661
+ (_g = this._declarations).push.apply(_g, __spreadArray([], __read(moduleDef.declarations), false));
2662
2662
  }
2663
2663
  if (moduleDef.imports) {
2664
- (_h = this._imports).push.apply(_h, __spreadArray([], __read(moduleDef.imports)));
2664
+ (_h = this._imports).push.apply(_h, __spreadArray([], __read(moduleDef.imports), false));
2665
2665
  }
2666
2666
  if (moduleDef.schemas) {
2667
- (_j = this._schemas).push.apply(_j, __spreadArray([], __read(moduleDef.schemas)));
2667
+ (_j = this._schemas).push.apply(_j, __spreadArray([], __read(moduleDef.schemas), false));
2668
2668
  }
2669
2669
  if (moduleDef.aotSummaries) {
2670
2670
  this._aotSummaries.push(moduleDef.aotSummaries);
@@ -2743,7 +2743,7 @@
2743
2743
  var e_2, _f;
2744
2744
  var _this = this;
2745
2745
  var providers = this._providers.concat([{ provide: TestBed, useValue: this }]);
2746
- var declarations = __spreadArray(__spreadArray([], __read(this._declarations)), __read(this._templateOverrides.map(function (entry) { return entry.templateOf; })));
2746
+ var declarations = __spreadArray(__spreadArray([], __read(this._declarations), false), __read(this._templateOverrides.map(function (entry) { return entry.templateOf; })), false);
2747
2747
  var rootScopeImports = [];
2748
2748
  var rootProviderOverrides = this._rootProviderOverrides;
2749
2749
  if (this._isRoot) {
@@ -2754,7 +2754,7 @@
2754
2754
  }());
2755
2755
  RootScopeModule.decorators = [
2756
2756
  { type: core.NgModule, args: [{
2757
- providers: __spreadArray([], __read(rootProviderOverrides)),
2757
+ providers: __spreadArray([], __read(rootProviderOverrides), false),
2758
2758
  jit: true,
2759
2759
  },] }
2760
2760
  ];
@@ -2774,7 +2774,7 @@
2774
2774
  var compilerFactory = this.platform.injector.get(TestingCompilerFactory);
2775
2775
  this._compiler = compilerFactory.createTestingCompiler(this._compilerOptions);
2776
2776
  try {
2777
- for (var _g = __values(__spreadArray([this._testEnvAotSummaries], __read(this._aotSummaries))), _h = _g.next(); !_h.done; _h = _g.next()) {
2777
+ for (var _g = __values(__spreadArray([this._testEnvAotSummaries], __read(this._aotSummaries), false)), _h = _g.next(); !_h.done; _h = _g.next()) {
2778
2778
  var summary = _h.value;
2779
2779
  this._compiler.loadAotSummaries(summary);
2780
2780
  }