@angular/core 15.1.0-next.2 → 15.1.0-next.3

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/fesm2015/core.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.1.0-next.2
2
+ * @license Angular v15.1.0-next.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -8569,7 +8569,7 @@ class R3Injector extends EnvironmentInjector {
8569
8569
  try {
8570
8570
  const initializers = this.get(ENVIRONMENT_INITIALIZER.multi, EMPTY_ARRAY, InjectFlags.Self);
8571
8571
  if (ngDevMode && !Array.isArray(initializers)) {
8572
- throw new RuntimeError(209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `ENVIRONMENT_INITIALIZER` token value ' +
8572
+ throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `ENVIRONMENT_INITIALIZER` token value ' +
8573
8573
  `(expected an array, but got ${typeof initializers}). ` +
8574
8574
  'Please check that the `ENVIRONMENT_INITIALIZER` token is configured as a ' +
8575
8575
  '`multi: true` provider.');
@@ -8999,7 +8999,7 @@ class Version {
8999
8999
  /**
9000
9000
  * @publicApi
9001
9001
  */
9002
- const VERSION = new Version('15.1.0-next.2');
9002
+ const VERSION = new Version('15.1.0-next.3');
9003
9003
 
9004
9004
  /**
9005
9005
  * @license
@@ -24666,6 +24666,7 @@ class ApplicationInitStatus {
24666
24666
  this.reject = noop;
24667
24667
  this.initialized = false;
24668
24668
  this.done = false;
24669
+ // TODO: Throw RuntimeErrorCode.INVALID_MULTI_PROVIDER if appInits is not an array
24669
24670
  this.donePromise = new Promise((res, rej) => {
24670
24671
  this.resolve = res;
24671
24672
  this.reject = rej;
@@ -26757,7 +26758,14 @@ class ApplicationRef {
26757
26758
  this.tick();
26758
26759
  this.components.push(componentRef);
26759
26760
  // Get the listeners lazily to prevent DI cycles.
26760
- const listeners = this._injector.get(APP_BOOTSTRAP_LISTENER, []).concat(this._bootstrapListeners);
26761
+ const listeners = this._injector.get(APP_BOOTSTRAP_LISTENER, []);
26762
+ if (ngDevMode && !Array.isArray(listeners)) {
26763
+ throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `APP_BOOTSTRAP_LISTENER` token value ' +
26764
+ `(expected an array, but got ${typeof listeners}). ` +
26765
+ 'Please check that the `APP_BOOTSTRAP_LISTENER` token is configured as a ' +
26766
+ '`multi: true` provider.');
26767
+ }
26768
+ listeners.push(...this._bootstrapListeners);
26761
26769
  listeners.forEach((listener) => listener(componentRef));
26762
26770
  }
26763
26771
  /** @internal */