@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.
Files changed (36) hide show
  1. package/esm2020/src/application_init.mjs +2 -1
  2. package/esm2020/src/application_ref.mjs +9 -2
  3. package/esm2020/src/di/r3_injector.mjs +2 -2
  4. package/esm2020/src/errors.mjs +1 -1
  5. package/esm2020/src/version.mjs +1 -1
  6. package/esm2020/testing/src/logger.mjs +3 -3
  7. package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
  8. package/esm2020/testing/src/test_bed.mjs +1 -1
  9. package/fesm2015/core.mjs +12 -4
  10. package/fesm2015/core.mjs.map +1 -1
  11. package/fesm2015/testing.mjs +3 -3
  12. package/fesm2015/testing.mjs.map +1 -1
  13. package/fesm2020/core.mjs +12 -4
  14. package/fesm2020/core.mjs.map +1 -1
  15. package/fesm2020/testing.mjs +3 -3
  16. package/fesm2020/testing.mjs.map +1 -1
  17. package/index.d.ts +2 -2
  18. package/package.json +1 -1
  19. package/schematics/migrations.json +3 -18
  20. package/testing/index.d.ts +4 -1
  21. package/schematics/migrations/entry-components/index.d.ts +0 -11
  22. package/schematics/migrations/entry-components/index.js +0 -71
  23. package/schematics/migrations/entry-components/util.d.ts +0 -16
  24. package/schematics/migrations/entry-components/util.js +0 -57
  25. package/schematics/migrations/path-match-type/index.d.ts +0 -11
  26. package/schematics/migrations/path-match-type/index.js +0 -95
  27. package/schematics/migrations/path-match-type/transform.d.ts +0 -19
  28. package/schematics/migrations/path-match-type/transform.js +0 -48
  29. package/schematics/migrations/path-match-type/update_recorder.d.ts +0 -18
  30. package/schematics/migrations/path-match-type/update_recorder.js +0 -20
  31. package/schematics/migrations/path-match-type/util.d.ts +0 -11
  32. package/schematics/migrations/path-match-type/util.js +0 -106
  33. package/schematics/migrations/typed-forms/index.d.ts +0 -10
  34. package/schematics/migrations/typed-forms/index.js +0 -68
  35. package/schematics/migrations/typed-forms/util.d.ts +0 -19
  36. package/schematics/migrations/typed-forms/util.js +0 -134
package/fesm2020/core.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.0.3
2
+ * @license Angular v15.0.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -8575,7 +8575,7 @@ class R3Injector extends EnvironmentInjector {
8575
8575
  try {
8576
8576
  const initializers = this.get(ENVIRONMENT_INITIALIZER.multi, EMPTY_ARRAY, InjectFlags.Self);
8577
8577
  if (ngDevMode && !Array.isArray(initializers)) {
8578
- throw new RuntimeError(209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `ENVIRONMENT_INITIALIZER` token value ' +
8578
+ throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `ENVIRONMENT_INITIALIZER` token value ' +
8579
8579
  `(expected an array, but got ${typeof initializers}). ` +
8580
8580
  'Please check that the `ENVIRONMENT_INITIALIZER` token is configured as a ' +
8581
8581
  '`multi: true` provider.');
@@ -9005,7 +9005,7 @@ class Version {
9005
9005
  /**
9006
9006
  * @publicApi
9007
9007
  */
9008
- const VERSION = new Version('15.0.3');
9008
+ const VERSION = new Version('15.0.4');
9009
9009
 
9010
9010
  /**
9011
9011
  * @license
@@ -24689,6 +24689,7 @@ class ApplicationInitStatus {
24689
24689
  this.reject = noop;
24690
24690
  this.initialized = false;
24691
24691
  this.done = false;
24692
+ // TODO: Throw RuntimeErrorCode.INVALID_MULTI_PROVIDER if appInits is not an array
24692
24693
  this.donePromise = new Promise((res, rej) => {
24693
24694
  this.resolve = res;
24694
24695
  this.reject = rej;
@@ -26760,7 +26761,14 @@ class ApplicationRef {
26760
26761
  this.tick();
26761
26762
  this.components.push(componentRef);
26762
26763
  // Get the listeners lazily to prevent DI cycles.
26763
- const listeners = this._injector.get(APP_BOOTSTRAP_LISTENER, []).concat(this._bootstrapListeners);
26764
+ const listeners = this._injector.get(APP_BOOTSTRAP_LISTENER, []);
26765
+ if (ngDevMode && !Array.isArray(listeners)) {
26766
+ throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `APP_BOOTSTRAP_LISTENER` token value ' +
26767
+ `(expected an array, but got ${typeof listeners}). ` +
26768
+ 'Please check that the `APP_BOOTSTRAP_LISTENER` token is configured as a ' +
26769
+ '`multi: true` provider.');
26770
+ }
26771
+ listeners.push(...this._bootstrapListeners);
26764
26772
  listeners.forEach((listener) => listener(componentRef));
26765
26773
  }
26766
26774
  /** @internal */