@angular/platform-browser 17.0.0-next.7 → 17.0.0-next.8

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.0.0-next.7
2
+ * @license Angular v17.0.0-next.8
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -26,9 +26,9 @@ const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesti
26
26
  * @publicApi
27
27
  */
28
28
  class BrowserTestingModule {
29
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
30
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.7", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] }); }
31
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: BrowserTestingModule, providers: [
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
30
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.8", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] }); }
31
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: BrowserTestingModule, providers: [
32
32
  { provide: APP_ID, useValue: 'a' },
33
33
  provideZoneChangeDetection(),
34
34
  { provide: PlatformLocation, useClass: MockPlatformLocation },
@@ -36,7 +36,7 @@ class BrowserTestingModule {
36
36
  { provide: ɵEffectScheduler, useExisting: ɵZoneAwareQueueingScheduler },
37
37
  ], imports: [BrowserModule] }); }
38
38
  }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: BrowserTestingModule, decorators: [{
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: BrowserTestingModule, decorators: [{
40
40
  type: NgModule,
41
41
  args: [{
42
42
  exports: [BrowserModule],
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.0.0-next.7
2
+ * @license Angular v17.0.0-next.8
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -12,6 +12,7 @@ import { DebugElement } from '@angular/core';
12
12
  import { DebugNode } from '@angular/core';
13
13
  import { EnvironmentProviders } from '@angular/core';
14
14
  import { GetTestability } from '@angular/core';
15
+ import { HttpTransferCacheOptions } from '@angular/common/http';
15
16
  import * as i0 from '@angular/core';
16
17
  import * as i1 from '@angular/common';
17
18
  import { InjectionToken } from '@angular/core';
@@ -489,8 +490,8 @@ export declare interface HydrationFeature<FeatureKind extends HydrationFeatureKi
489
490
  * @developerPreview
490
491
  */
491
492
  export declare const enum HydrationFeatureKind {
492
- NoDomReuseFeature = 0,
493
- NoHttpTransferCache = 1
493
+ NoHttpTransferCache = 0,
494
+ HttpTransferCacheOptions = 1
494
495
  }
495
496
 
496
497
  /**
@@ -635,19 +636,16 @@ export declare const platformBrowser: (extraProviders?: StaticProvider[]) => Pla
635
636
  * Sets up providers necessary to enable hydration functionality for the application.
636
637
  *
637
638
  * By default, the function enables the recommended set of features for the optimal
638
- * performance for most of the applications. You can enable/disable features by
639
- * passing special functions (from the `HydrationFeatures` set) as arguments to the
640
- * `provideClientHydration` function. It includes the following features:
639
+ * performance for most of the applications. It includes the following features:
641
640
  *
642
641
  * * Reconciling DOM hydration. Learn more about it [here](guide/hydration).
643
642
  * * [`HttpClient`](api/common/http/HttpClient) response caching while running on the server and
644
643
  * transferring this cache to the client to avoid extra HTTP requests. Learn more about data caching
645
644
  * [here](/guide/universal#caching-data-when-using-httpclient).
646
645
  *
647
- * These functions functions will allow you to disable some of the default features:
648
- * * {@link withNoDomReuse} to disable DOM nodes reuse during hydration
646
+ * These functions allow you to disable some of the default features or configure features
649
647
  * * {@link withNoHttpTransferCache} to disable HTTP transfer cache
650
- *
648
+ * * {@link withHttpTransferCacheOptions} to configure some HTTP transfer cache options
651
649
  *
652
650
  * @usageNotes
653
651
  *
@@ -670,8 +668,8 @@ export declare const platformBrowser: (extraProviders?: StaticProvider[]) => Pla
670
668
  * export class AppModule {}
671
669
  * ```
672
670
  *
673
- * @see {@link withNoDomReuse}
674
671
  * @see {@link withNoHttpTransferCache}
672
+ * @see {@link withHttpTransferCacheOptions}
675
673
  *
676
674
  * @param features Optional features to configure additional router behaviors.
677
675
  * @returns A set of providers to enable hydration.
@@ -825,37 +823,15 @@ export declare const TransferState: {
825
823
  export declare const VERSION: Version;
826
824
 
827
825
  /**
828
- * Disables DOM nodes reuse during hydration. Effectively makes
829
- * Angular re-render an application from scratch on the client.
830
- *
831
- * When this option is enabled, make sure that the initial navigation
832
- * option is configured for the Router as `enabledBlocking` by using the
833
- * `withEnabledBlockingInitialNavigation` in the `provideRouter` call:
834
- *
835
- * ```
836
- * bootstrapApplication(RootComponent, {
837
- * providers: [
838
- * provideRouter(
839
- * // ... other features ...
840
- * withEnabledBlockingInitialNavigation()
841
- * ),
842
- * provideClientHydration(withNoDomReuse())
843
- * ]
844
- * });
845
- * ```
846
- *
847
- * This would ensure that the application is rerendered after all async
848
- * operations in the Router (such as lazy-loading of components,
849
- * waiting for async guards and resolvers) are completed to avoid
850
- * clearing the DOM on the client too soon, thus causing content flicker.
851
- *
852
- * @see {@link provideRouter}
853
- * @see {@link withEnabledBlockingInitialNavigation}
826
+ * The function accepts a an object, which allows to configure cache parameters,
827
+ * such as which headers should be included (no headers are included by default),
828
+ * wether POST requests should be cached or a callback function to determine if a
829
+ * particular request should be cached.
854
830
  *
855
831
  * @publicApi
856
832
  * @developerPreview
857
833
  */
858
- export declare function withNoDomReuse(): HydrationFeature<HydrationFeatureKind.NoDomReuseFeature>;
834
+ export declare function withHttpTransferCacheOptions(options: HttpTransferCacheOptions): HydrationFeature<HydrationFeatureKind.HttpTransferCacheOptions>;
859
835
 
860
836
  /**
861
837
  * Disables HTTP transfer cache. Effectively causes HTTP requests to be performed twice: once on the
@@ -1021,6 +997,25 @@ export declare class ɵKeyEventsPlugin extends EventManagerPlugin {
1021
997
  static ɵprov: i0.ɵɵInjectableDeclaration<ɵKeyEventsPlugin>;
1022
998
  }
1023
999
 
1000
+
1001
+ /**
1002
+ * The list of error codes used in runtime code of the `platform-browser` package.
1003
+ * Reserved error code range: 5000-5500.
1004
+ */
1005
+ export declare const enum ɵRuntimeErrorCode {
1006
+ UNSUPPORTED_ZONEJS_INSTANCE = -5000,
1007
+ BROWER_MODULE_ALREADY_LOADED = 5100,
1008
+ NO_PLUGIN_FOR_EVENT = 5101,
1009
+ UNSUPPORTED_EVENT_TARGET = 5102,
1010
+ TESTABILITY_NOT_FOUND = 5103,
1011
+ ROOT_NODE_NOT_FOUND = -5104,
1012
+ UNEXPECTED_SYNTHETIC_PROPERTY = 5105,
1013
+ SANITIZATION_UNSAFE_SCRIPT = 5200,
1014
+ SANITIZATION_UNSAFE_RESOURCE_URL = 5201,
1015
+ SANITIZATION_UNEXPECTED_CTX = 5202,
1016
+ ANIMATION_RENDERER_ASYNC_LOADING_FAILURE = 5300
1017
+ }
1018
+
1024
1019
  export declare class ɵSharedStylesHost implements OnDestroy {
1025
1020
  private readonly doc;
1026
1021
  private readonly appId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/platform-browser",
3
- "version": "17.0.0-next.7",
3
+ "version": "17.0.0-next.8",
4
4
  "description": "Angular - library for using Angular in a web browser",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -11,9 +11,9 @@
11
11
  "tslib": "^2.3.0"
12
12
  },
13
13
  "peerDependencies": {
14
- "@angular/animations": "17.0.0-next.7",
15
- "@angular/core": "17.0.0-next.7",
16
- "@angular/common": "17.0.0-next.7"
14
+ "@angular/animations": "17.0.0-next.8",
15
+ "@angular/core": "17.0.0-next.8",
16
+ "@angular/common": "17.0.0-next.8"
17
17
  },
18
18
  "peerDependenciesMeta": {
19
19
  "@angular/animations": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.0.0-next.7
2
+ * @license Angular v17.0.0-next.8
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */