@angular/core 16.2.0 → 16.2.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/fesm2022/core.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.2.0
2
+ * @license Angular v16.2.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -761,7 +761,7 @@ Please check that 1) the type for the parameter at index ${index} is correct and
761
761
  }
762
762
  /**
763
763
  * Injects a token from the currently active injector.
764
- * `inject` is only supported in a [injection context](/guide/dependency-injection-context). It can
764
+ * `inject` is only supported in an [injection context](/guide/dependency-injection-context). It can
765
765
  * be used during:
766
766
  * - Construction (via the `constructor`) of a class being instantiated by the DI system, such
767
767
  * as an `@Injectable` or `@Component`.
@@ -10291,7 +10291,7 @@ class Version {
10291
10291
  /**
10292
10292
  * @publicApi
10293
10293
  */
10294
- const VERSION = new Version('16.2.0');
10294
+ const VERSION = new Version('16.2.1');
10295
10295
 
10296
10296
  // This default value is when checking the hierarchy for a token.
10297
10297
  //
@@ -31268,11 +31268,15 @@ function withDomHydration() {
31268
31268
  const appRef = inject(ApplicationRef);
31269
31269
  const injector = inject(Injector);
31270
31270
  return () => {
31271
+ // Wait until an app becomes stable and cleanup all views that
31272
+ // were not claimed during the application bootstrap process.
31273
+ // The timing is similar to when we start the serialization process
31274
+ // on the server.
31275
+ //
31276
+ // Note: the cleanup task *MUST* be scheduled within the Angular zone
31277
+ // to ensure that change detection is properly run afterward.
31271
31278
  whenStable(appRef, injector).then(() => {
31272
- // Wait until an app becomes stable and cleanup all views that
31273
- // were not claimed during the application bootstrap process.
31274
- // The timing is similar to when we start the serialization process
31275
- // on the server.
31279
+ NgZone.assertInAngularZone();
31276
31280
  cleanupDehydratedViews(appRef);
31277
31281
  if (typeof ngDevMode !== 'undefined' && ngDevMode) {
31278
31282
  printHydrationStats(injector);
@@ -31317,10 +31321,10 @@ function verifySsrContentsIntegrity() {
31317
31321
  }
31318
31322
  }
31319
31323
  if (!hydrationMarker) {
31320
- throw new RuntimeError(507 /* RuntimeErrorCode.MISSING_SSR_CONTENT_INTEGRITY_MARKER */, typeof ngDevMode !== 'undefined' && ngDevMode &&
31324
+ throw new RuntimeError(-507 /* RuntimeErrorCode.MISSING_SSR_CONTENT_INTEGRITY_MARKER */, typeof ngDevMode !== 'undefined' && ngDevMode &&
31321
31325
  'Angular hydration logic detected that HTML content of this page was modified after it ' +
31322
31326
  'was produced during server side rendering. Make sure that there are no optimizations ' +
31323
- 'that remove comment nodes from HTML are enabled on your CDN. Angular hydration ' +
31327
+ 'that remove comment nodes from HTML enabled on your CDN. Angular hydration ' +
31324
31328
  'relies on HTML produced by the server, including whitespaces and comment nodes.');
31325
31329
  }
31326
31330
  }