@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/fesm2020/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
  */
@@ -8583,7 +8583,7 @@ class R3Injector extends EnvironmentInjector {
8583
8583
  try {
8584
8584
  const initializers = this.get(ENVIRONMENT_INITIALIZER.multi, EMPTY_ARRAY, InjectFlags.Self);
8585
8585
  if (ngDevMode && !Array.isArray(initializers)) {
8586
- throw new RuntimeError(209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `ENVIRONMENT_INITIALIZER` token value ' +
8586
+ throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `ENVIRONMENT_INITIALIZER` token value ' +
8587
8587
  `(expected an array, but got ${typeof initializers}). ` +
8588
8588
  'Please check that the `ENVIRONMENT_INITIALIZER` token is configured as a ' +
8589
8589
  '`multi: true` provider.');
@@ -9013,7 +9013,7 @@ class Version {
9013
9013
  /**
9014
9014
  * @publicApi
9015
9015
  */
9016
- const VERSION = new Version('15.1.0-next.2');
9016
+ const VERSION = new Version('15.1.0-next.3');
9017
9017
 
9018
9018
  /**
9019
9019
  * @license
@@ -24696,6 +24696,7 @@ class ApplicationInitStatus {
24696
24696
  this.reject = noop;
24697
24697
  this.initialized = false;
24698
24698
  this.done = false;
24699
+ // TODO: Throw RuntimeErrorCode.INVALID_MULTI_PROVIDER if appInits is not an array
24699
24700
  this.donePromise = new Promise((res, rej) => {
24700
24701
  this.resolve = res;
24701
24702
  this.reject = rej;
@@ -26767,7 +26768,14 @@ class ApplicationRef {
26767
26768
  this.tick();
26768
26769
  this.components.push(componentRef);
26769
26770
  // Get the listeners lazily to prevent DI cycles.
26770
- const listeners = this._injector.get(APP_BOOTSTRAP_LISTENER, []).concat(this._bootstrapListeners);
26771
+ const listeners = this._injector.get(APP_BOOTSTRAP_LISTENER, []);
26772
+ if (ngDevMode && !Array.isArray(listeners)) {
26773
+ throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `APP_BOOTSTRAP_LISTENER` token value ' +
26774
+ `(expected an array, but got ${typeof listeners}). ` +
26775
+ 'Please check that the `APP_BOOTSTRAP_LISTENER` token is configured as a ' +
26776
+ '`multi: true` provider.');
26777
+ }
26778
+ listeners.push(...this._bootstrapListeners);
26771
26779
  listeners.forEach((listener) => listener(componentRef));
26772
26780
  }
26773
26781
  /** @internal */