@angular/core 15.0.3 → 15.0.4
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/application_init.mjs +2 -1
- package/esm2020/src/application_ref.mjs +9 -2
- package/esm2020/src/di/r3_injector.mjs +2 -2
- package/esm2020/src/errors.mjs +1 -1
- 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/esm2020/testing/src/test_bed.mjs +1 -1
- package/fesm2015/core.mjs +12 -4
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +3 -3
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +12 -4
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +3 -3
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +2 -2
- package/package.json +1 -1
- package/schematics/migrations.json +3 -18
- package/testing/index.d.ts +4 -1
- package/schematics/migrations/entry-components/index.d.ts +0 -11
- package/schematics/migrations/entry-components/index.js +0 -71
- package/schematics/migrations/entry-components/util.d.ts +0 -16
- package/schematics/migrations/entry-components/util.js +0 -57
- package/schematics/migrations/path-match-type/index.d.ts +0 -11
- package/schematics/migrations/path-match-type/index.js +0 -95
- package/schematics/migrations/path-match-type/transform.d.ts +0 -19
- package/schematics/migrations/path-match-type/transform.js +0 -48
- package/schematics/migrations/path-match-type/update_recorder.d.ts +0 -18
- package/schematics/migrations/path-match-type/update_recorder.js +0 -20
- package/schematics/migrations/path-match-type/util.d.ts +0 -11
- package/schematics/migrations/path-match-type/util.js +0 -106
- package/schematics/migrations/typed-forms/index.d.ts +0 -10
- package/schematics/migrations/typed-forms/index.js +0 -68
- package/schematics/migrations/typed-forms/util.d.ts +0 -19
- package/schematics/migrations/typed-forms/util.js +0 -134
package/fesm2015/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.0.
|
|
2
|
+
* @license Angular v15.0.4
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -8561,7 +8561,7 @@ class R3Injector extends EnvironmentInjector {
|
|
|
8561
8561
|
try {
|
|
8562
8562
|
const initializers = this.get(ENVIRONMENT_INITIALIZER.multi, EMPTY_ARRAY, InjectFlags.Self);
|
|
8563
8563
|
if (ngDevMode && !Array.isArray(initializers)) {
|
|
8564
|
-
throw new RuntimeError(209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `ENVIRONMENT_INITIALIZER` token value ' +
|
|
8564
|
+
throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `ENVIRONMENT_INITIALIZER` token value ' +
|
|
8565
8565
|
`(expected an array, but got ${typeof initializers}). ` +
|
|
8566
8566
|
'Please check that the `ENVIRONMENT_INITIALIZER` token is configured as a ' +
|
|
8567
8567
|
'`multi: true` provider.');
|
|
@@ -8991,7 +8991,7 @@ class Version {
|
|
|
8991
8991
|
/**
|
|
8992
8992
|
* @publicApi
|
|
8993
8993
|
*/
|
|
8994
|
-
const VERSION = new Version('15.0.
|
|
8994
|
+
const VERSION = new Version('15.0.4');
|
|
8995
8995
|
|
|
8996
8996
|
/**
|
|
8997
8997
|
* @license
|
|
@@ -24659,6 +24659,7 @@ class ApplicationInitStatus {
|
|
|
24659
24659
|
this.reject = noop;
|
|
24660
24660
|
this.initialized = false;
|
|
24661
24661
|
this.done = false;
|
|
24662
|
+
// TODO: Throw RuntimeErrorCode.INVALID_MULTI_PROVIDER if appInits is not an array
|
|
24662
24663
|
this.donePromise = new Promise((res, rej) => {
|
|
24663
24664
|
this.resolve = res;
|
|
24664
24665
|
this.reject = rej;
|
|
@@ -26750,7 +26751,14 @@ class ApplicationRef {
|
|
|
26750
26751
|
this.tick();
|
|
26751
26752
|
this.components.push(componentRef);
|
|
26752
26753
|
// Get the listeners lazily to prevent DI cycles.
|
|
26753
|
-
const listeners = this._injector.get(APP_BOOTSTRAP_LISTENER, [])
|
|
26754
|
+
const listeners = this._injector.get(APP_BOOTSTRAP_LISTENER, []);
|
|
26755
|
+
if (ngDevMode && !Array.isArray(listeners)) {
|
|
26756
|
+
throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `APP_BOOTSTRAP_LISTENER` token value ' +
|
|
26757
|
+
`(expected an array, but got ${typeof listeners}). ` +
|
|
26758
|
+
'Please check that the `APP_BOOTSTRAP_LISTENER` token is configured as a ' +
|
|
26759
|
+
'`multi: true` provider.');
|
|
26760
|
+
}
|
|
26761
|
+
listeners.push(...this._bootstrapListeners);
|
|
26754
26762
|
listeners.forEach((listener) => listener(componentRef));
|
|
26755
26763
|
}
|
|
26756
26764
|
/** @internal */
|