@angular/platform-server 16.0.0-next.2 → 16.0.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.2
2
+ * @license Angular v16.0.0-next.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -23,10 +23,10 @@ const platformServerTesting = createPlatformFactory(ɵplatformCoreDynamicTesting
23
23
  */
24
24
  class ServerTestingModule {
25
25
  }
26
- ServerTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
27
- ServerTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerTestingModule, imports: [NoopAnimationsModule], exports: [BrowserDynamicTestingModule] });
28
- ServerTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerTestingModule, providers: ɵSERVER_RENDER_PROVIDERS, imports: [NoopAnimationsModule, BrowserDynamicTestingModule] });
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerTestingModule, decorators: [{
26
+ ServerTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: ServerTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
27
+ ServerTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.3", ngImport: i0, type: ServerTestingModule, imports: [NoopAnimationsModule], exports: [BrowserDynamicTestingModule] });
28
+ ServerTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: ServerTestingModule, providers: ɵSERVER_RENDER_PROVIDERS, imports: [NoopAnimationsModule, BrowserDynamicTestingModule] });
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: ServerTestingModule, decorators: [{
30
30
  type: NgModule,
31
31
  args: [{
32
32
  exports: [BrowserDynamicTestingModule],
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.2
2
+ * @license Angular v16.0.0-next.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -105,6 +105,23 @@ export declare class PlatformState {
105
105
  static ɵprov: i0.ɵɵInjectableDeclaration<PlatformState>;
106
106
  }
107
107
 
108
+ /**
109
+ * Sets up providers necessary to enable server rendering functionality for the application.
110
+ *
111
+ * @usageNotes
112
+ *
113
+ * Basic example of how you can add server support to your application:
114
+ * ```ts
115
+ * bootstrapApplication(AppComponent, {
116
+ * providers: [provideServerSupport()]
117
+ * });
118
+ * ```
119
+ *
120
+ * @publicApi
121
+ * @returns A set of providers to setup the server.
122
+ */
123
+ export declare function provideServerSupport(): EnvironmentProviders;
124
+
108
125
  /**
109
126
  * Bootstraps an instance of an Angular application and renders it to a string.
110
127
 
@@ -240,10 +257,11 @@ export declare class ɵServerRendererFactory2 implements RendererFactory2 {
240
257
  private ngZone;
241
258
  private document;
242
259
  private sharedStylesHost;
260
+ private appId;
243
261
  private rendererByCompId;
244
262
  private defaultRenderer;
245
263
  private schema;
246
- constructor(eventManager: EventManager, ngZone: NgZone, document: any, sharedStylesHost: ɵSharedStylesHost);
264
+ constructor(eventManager: EventManager, ngZone: NgZone, document: Document, sharedStylesHost: ɵSharedStylesHost, appId: string);
247
265
  createRenderer(element: any, type: RendererType2 | null): Renderer2;
248
266
  begin(): void;
249
267
  end(): void;
package/init/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.2
2
+ * @license Angular v16.0.0-next.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/platform-server",
3
- "version": "16.0.0-next.2",
3
+ "version": "16.0.0-next.3",
4
4
  "description": "Angular - library for using Angular in Node.js",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -8,12 +8,12 @@
8
8
  "node": "^16.13.0 || >=18.10.0"
9
9
  },
10
10
  "peerDependencies": {
11
- "@angular/animations": "16.0.0-next.2",
12
- "@angular/common": "16.0.0-next.2",
13
- "@angular/compiler": "16.0.0-next.2",
14
- "@angular/core": "16.0.0-next.2",
15
- "@angular/platform-browser": "16.0.0-next.2",
16
- "@angular/platform-browser-dynamic": "16.0.0-next.2"
11
+ "@angular/animations": "16.0.0-next.3",
12
+ "@angular/common": "16.0.0-next.3",
13
+ "@angular/compiler": "16.0.0-next.3",
14
+ "@angular/core": "16.0.0-next.3",
15
+ "@angular/platform-browser": "16.0.0-next.3",
16
+ "@angular/platform-browser-dynamic": "16.0.0-next.3"
17
17
  },
18
18
  "dependencies": {
19
19
  "tslib": "^2.3.0",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.2
2
+ * @license Angular v16.0.0-next.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */