@angular/core 15.0.0-next.6 → 15.0.0-rc.0

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/fesm2020/core.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.0.0-next.6
2
+ * @license Angular v15.0.0-rc.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -6453,7 +6453,6 @@ function makeEnvironmentProviders(providers) {
6453
6453
  *
6454
6454
  * @returns Collected providers from the specified list of types.
6455
6455
  * @publicApi
6456
- * @developerPreview
6457
6456
  */
6458
6457
  function importProvidersFrom(...sources) {
6459
6458
  return {
@@ -6709,8 +6708,6 @@ function getNullInjector() {
6709
6708
  /**
6710
6709
  * An `Injector` that's part of the environment injector hierarchy, which exists outside of the
6711
6710
  * component tree.
6712
- *
6713
- * @developerPreview
6714
6711
  */
6715
6712
  class EnvironmentInjector {
6716
6713
  }
@@ -7298,7 +7295,7 @@ class Version {
7298
7295
  /**
7299
7296
  * @publicApi
7300
7297
  */
7301
- const VERSION = new Version('15.0.0-next.6');
7298
+ const VERSION = new Version('15.0.0-rc.0');
7302
7299
 
7303
7300
  /**
7304
7301
  * @license
@@ -14541,7 +14538,6 @@ function patchDeclaredInputs(declaredInputs, exposedInputs) {
14541
14538
  * @param matchedDefs Directives that have been matched so far.
14542
14539
  */
14543
14540
  function validateHostDirective(hostDirectiveConfig, directiveDef, matchedDefs) {
14544
- // TODO(crisbeto): implement more of these checks in the compiler.
14545
14541
  const type = hostDirectiveConfig.directive;
14546
14542
  if (directiveDef === null) {
14547
14543
  if (getComponentDef(type) !== null) {
@@ -14564,17 +14560,17 @@ function validateHostDirective(hostDirectiveConfig, directiveDef, matchedDefs) {
14564
14560
  * Checks that the host directive inputs/outputs configuration is valid.
14565
14561
  * @param bindingType Kind of binding that is being validated. Used in the error message.
14566
14562
  * @param def Definition of the host directive that is being validated against.
14567
- * @param hostDirectiveDefs Host directive mapping object that shold be validated.
14563
+ * @param hostDirectiveBindings Host directive mapping object that shold be validated.
14568
14564
  */
14569
- function validateMappings(bindingType, def, hostDirectiveDefs) {
14565
+ function validateMappings(bindingType, def, hostDirectiveBindings) {
14570
14566
  const className = def.type.name;
14571
14567
  const bindings = bindingType === 'input' ? def.inputs : def.outputs;
14572
- for (const publicName in hostDirectiveDefs) {
14573
- if (hostDirectiveDefs.hasOwnProperty(publicName)) {
14568
+ for (const publicName in hostDirectiveBindings) {
14569
+ if (hostDirectiveBindings.hasOwnProperty(publicName)) {
14574
14570
  if (!bindings.hasOwnProperty(publicName)) {
14575
14571
  throw new RuntimeError(311 /* RuntimeErrorCode.HOST_DIRECTIVE_UNDEFINED_BINDING */, `Directive ${className} does not have an ${bindingType} with a public name of ${publicName}.`);
14576
14572
  }
14577
- const remappedPublicName = hostDirectiveDefs[publicName];
14573
+ const remappedPublicName = hostDirectiveBindings[publicName];
14578
14574
  if (bindings.hasOwnProperty(remappedPublicName) &&
14579
14575
  bindings[remappedPublicName] !== publicName) {
14580
14576
  throw new RuntimeError(312 /* RuntimeErrorCode.HOST_DIRECTIVE_CONFLICTING_ALIAS */, `Cannot alias ${bindingType} ${publicName} of host directive ${className} to ${remappedPublicName}, because it already has a different ${bindingType} with the same public name.`);
@@ -21949,7 +21945,6 @@ class EnvironmentNgModuleRefAdapter extends NgModuleRef$1 {
21949
21945
  * messages.
21950
21946
  *
21951
21947
  * @publicApi
21952
- * @developerPreview
21953
21948
  */
21954
21949
  function createEnvironmentInjector(providers, parent, debugName = null) {
21955
21950
  const adapter = new EnvironmentNgModuleRefAdapter(providers, parent, debugName);