@angular/platform-browser 18.0.0-next.2 → 18.0.0-next.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.
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v18.0.0-next.2
3
- * (c) 2010-2022 Google LLC. https://angular.io/
2
+ * @license Angular v18.0.0-next.4
3
+ * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -26,15 +26,15 @@ 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: "18.0.0-next.2", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
30
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.2", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] }); }
31
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i0, type: BrowserTestingModule, providers: [
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
30
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.4", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] }); }
31
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: BrowserTestingModule, providers: [
32
32
  { provide: APP_ID, useValue: 'a' },
33
33
  provideZoneChangeDetection(),
34
34
  { provide: PlatformLocation, useClass: MockPlatformLocation },
35
35
  ], imports: [BrowserModule] }); }
36
36
  }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i0, type: BrowserTestingModule, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: BrowserTestingModule, decorators: [{
38
38
  type: NgModule,
39
39
  args: [{
40
40
  exports: [BrowserModule],
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v18.0.0-next.2
3
- * (c) 2010-2022 Google LLC. https://angular.io/
2
+ * @license Angular v18.0.0-next.4
3
+ * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -52,7 +52,7 @@ export declare type ApplicationConfig = ApplicationConfig_2;
52
52
  /**
53
53
  * Bootstraps an instance of an Angular application and renders a standalone component as the
54
54
  * application's root component. More information about standalone components can be found in [this
55
- * guide](guide/standalone-components).
55
+ * guide](guide/components/importing).
56
56
  *
57
57
  * @usageNotes
58
58
  * The root component passed into this function *must* be a standalone one (should have the
@@ -489,7 +489,8 @@ export declare interface HydrationFeature<FeatureKind extends HydrationFeatureKi
489
489
  */
490
490
  export declare enum HydrationFeatureKind {
491
491
  NoHttpTransferCache = 0,
492
- HttpTransferCacheOptions = 1
492
+ HttpTransferCacheOptions = 1,
493
+ I18nSupport = 2
493
494
  }
494
495
 
495
496
  /**
@@ -639,7 +640,7 @@ export declare const platformBrowser: (extraProviders?: StaticProvider[]) => Pla
639
640
  * * Reconciling DOM hydration. Learn more about it [here](guide/hydration).
640
641
  * * [`HttpClient`](api/common/http/HttpClient) response caching while running on the server and
641
642
  * transferring this cache to the client to avoid extra HTTP requests. Learn more about data caching
642
- * [here](/guide/ssr#caching-data-when-using-httpclient).
643
+ * [here](guide/ssr#caching-data-when-using-httpclient).
643
644
  *
644
645
  * These functions allow you to disable some of the default features or configure features
645
646
  * * {@link withNoHttpTransferCache} to disable HTTP transfer cache
@@ -690,7 +691,7 @@ export declare function provideClientHydration(...features: HydrationFeature<Hyd
690
691
  export declare function provideProtractorTestingSupport(): Provider[];
691
692
 
692
693
  /**
693
- * A [DI token](guide/glossary#di-token "DI token definition") that indicates whether styles
694
+ * A DI token that indicates whether styles
694
695
  * of destroyed components should be removed from DOM.
695
696
  *
696
697
  * By default, the value is set to `true`.
@@ -829,6 +830,14 @@ export declare const VERSION: Version;
829
830
  */
830
831
  export declare function withHttpTransferCacheOptions(options: HttpTransferCacheOptions): HydrationFeature<HydrationFeatureKind.HttpTransferCacheOptions>;
831
832
 
833
+ /**
834
+ * Enables support for hydrating i18n blocks.
835
+ *
836
+ * @developerPreview
837
+ * @publicApi
838
+ */
839
+ export declare function withI18nSupport(): HydrationFeature<HydrationFeatureKind.I18nSupport>;
840
+
832
841
  /**
833
842
  * Disables HTTP transfer cache. Effectively causes HTTP requests to be performed twice: once on the
834
843
  * server and other one on the browser.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/platform-browser",
3
- "version": "18.0.0-next.2",
3
+ "version": "18.0.0-next.4",
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": "18.0.0-next.2",
15
- "@angular/core": "18.0.0-next.2",
16
- "@angular/common": "18.0.0-next.2"
14
+ "@angular/animations": "18.0.0-next.4",
15
+ "@angular/core": "18.0.0-next.4",
16
+ "@angular/common": "18.0.0-next.4"
17
17
  },
18
18
  "peerDependenciesMeta": {
19
19
  "@angular/animations": {
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v18.0.0-next.2
3
- * (c) 2010-2022 Google LLC. https://angular.io/
2
+ * @license Angular v18.0.0-next.4
3
+ * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6