@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.
@@ -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
  */
@@ -6839,7 +6839,6 @@ function makeEnvironmentProviders(providers) {
6839
6839
  *
6840
6840
  * @returns Collected providers from the specified list of types.
6841
6841
  * @publicApi
6842
- * @developerPreview
6843
6842
  */
6844
6843
  function importProvidersFrom(...sources) {
6845
6844
  return {
@@ -7095,8 +7094,6 @@ function getNullInjector() {
7095
7094
  /**
7096
7095
  * An `Injector` that's part of the environment injector hierarchy, which exists outside of the
7097
7096
  * component tree.
7098
- *
7099
- * @developerPreview
7100
7097
  */
7101
7098
  class EnvironmentInjector {
7102
7099
  }
@@ -7684,7 +7681,7 @@ class Version {
7684
7681
  /**
7685
7682
  * @publicApi
7686
7683
  */
7687
- const VERSION = new Version('15.0.0-next.6');
7684
+ const VERSION = new Version('15.0.0-rc.0');
7688
7685
 
7689
7686
  /**
7690
7687
  * @license
@@ -14875,7 +14872,6 @@ function patchDeclaredInputs(declaredInputs, exposedInputs) {
14875
14872
  * @param matchedDefs Directives that have been matched so far.
14876
14873
  */
14877
14874
  function validateHostDirective(hostDirectiveConfig, directiveDef, matchedDefs) {
14878
- // TODO(crisbeto): implement more of these checks in the compiler.
14879
14875
  const type = hostDirectiveConfig.directive;
14880
14876
  if (directiveDef === null) {
14881
14877
  if (getComponentDef$1(type) !== null) {
@@ -14898,17 +14894,17 @@ function validateHostDirective(hostDirectiveConfig, directiveDef, matchedDefs) {
14898
14894
  * Checks that the host directive inputs/outputs configuration is valid.
14899
14895
  * @param bindingType Kind of binding that is being validated. Used in the error message.
14900
14896
  * @param def Definition of the host directive that is being validated against.
14901
- * @param hostDirectiveDefs Host directive mapping object that shold be validated.
14897
+ * @param hostDirectiveBindings Host directive mapping object that shold be validated.
14902
14898
  */
14903
- function validateMappings(bindingType, def, hostDirectiveDefs) {
14899
+ function validateMappings(bindingType, def, hostDirectiveBindings) {
14904
14900
  const className = def.type.name;
14905
14901
  const bindings = bindingType === 'input' ? def.inputs : def.outputs;
14906
- for (const publicName in hostDirectiveDefs) {
14907
- if (hostDirectiveDefs.hasOwnProperty(publicName)) {
14902
+ for (const publicName in hostDirectiveBindings) {
14903
+ if (hostDirectiveBindings.hasOwnProperty(publicName)) {
14908
14904
  if (!bindings.hasOwnProperty(publicName)) {
14909
14905
  throw new RuntimeError(311 /* RuntimeErrorCode.HOST_DIRECTIVE_UNDEFINED_BINDING */, `Directive ${className} does not have an ${bindingType} with a public name of ${publicName}.`);
14910
14906
  }
14911
- const remappedPublicName = hostDirectiveDefs[publicName];
14907
+ const remappedPublicName = hostDirectiveBindings[publicName];
14912
14908
  if (bindings.hasOwnProperty(remappedPublicName) &&
14913
14909
  bindings[remappedPublicName] !== publicName) {
14914
14910
  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.`);
@@ -22283,7 +22279,6 @@ class EnvironmentNgModuleRefAdapter extends NgModuleRef$1 {
22283
22279
  * messages.
22284
22280
  *
22285
22281
  * @publicApi
22286
- * @developerPreview
22287
22282
  */
22288
22283
  function createEnvironmentInjector(providers, parent, debugName = null) {
22289
22284
  const adapter = new EnvironmentNgModuleRefAdapter(providers, parent, debugName);