@angular/core 15.0.0-next.6 → 15.0.0-rc.1
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/esm2020/src/di/provider_collection.mjs +1 -2
- package/esm2020/src/di/r3_injector.mjs +1 -3
- package/esm2020/src/metadata/directives.mjs +1 -1
- package/esm2020/src/render3/features/host_directives_feature.mjs +6 -7
- package/esm2020/src/render3/ng_module_ref.mjs +1 -2
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/fesm2015/core.mjs +7 -12
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +7 -12
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +7 -12
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +7 -12
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +1 -12
- package/package.json +1 -1
- package/testing/index.d.ts +1 -1
package/fesm2015/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.0.0-
|
|
2
|
+
* @license Angular v15.0.0-rc.1
|
|
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-
|
|
7684
|
+
const VERSION = new Version('15.0.0-rc.1');
|
|
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
|
|
14897
|
+
* @param hostDirectiveBindings Host directive mapping object that shold be validated.
|
|
14902
14898
|
*/
|
|
14903
|
-
function validateMappings(bindingType, def,
|
|
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
|
|
14907
|
-
if (
|
|
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 =
|
|
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);
|