@angular/ssr 19.2.15 → 19.2.16

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/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { EnvironmentProviders, Type, Provider, ApplicationRef } from '@angular/core';
2
2
  import { DefaultExport } from '@angular/router';
3
+ import { BootstrapContext } from '@angular/platform-browser';
3
4
  import Beasties from './third_party/beasties';
4
5
 
5
6
  /**
@@ -397,7 +398,7 @@ declare class RouteTree<AdditionalMetadata extends Record<string, unknown> = {}>
397
398
  * - A reference to an Angular component or module (`Type<unknown>`) that serves as the root of the application.
398
399
  * - A function that returns a `Promise<ApplicationRef>`, which resolves with the root application reference.
399
400
  */
400
- type AngularBootstrap = Type<unknown> | (() => Promise<ApplicationRef>);
401
+ type AngularBootstrap = Type<unknown> | ((context: BootstrapContext) => Promise<ApplicationRef>);
401
402
 
402
403
  /**
403
404
  * Represents a server asset stored in the manifest.
package/node/index.d.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  import { Type, ApplicationRef, StaticProvider } from '@angular/core';
2
+ import { BootstrapContext } from '@angular/platform-browser';
2
3
  import { IncomingMessage, ServerResponse } from 'node:http';
3
4
  import { Http2ServerRequest, Http2ServerResponse } from 'node:http2';
4
5
 
5
6
  interface CommonEngineOptions {
6
7
  /** A method that when invoked returns a promise that returns an `ApplicationRef` instance once resolved or an NgModule. */
7
- bootstrap?: Type<{}> | (() => Promise<ApplicationRef>);
8
+ bootstrap?: Type<{}> | ((context: BootstrapContext) => Promise<ApplicationRef>);
8
9
  /** A set of platform level providers for all requests. */
9
10
  providers?: StaticProvider[];
10
11
  /** Enable request performance profiling data collection and printing the results in the server console. */
@@ -12,7 +13,7 @@ interface CommonEngineOptions {
12
13
  }
13
14
  interface CommonEngineRenderOptions {
14
15
  /** A method that when invoked returns a promise that returns an `ApplicationRef` instance once resolved or an NgModule. */
15
- bootstrap?: Type<{}> | (() => Promise<ApplicationRef>);
16
+ bootstrap?: Type<{}> | ((context: BootstrapContext) => Promise<ApplicationRef>);
16
17
  /** A set of platform level providers for the current request. */
17
18
  providers?: StaticProvider[];
18
19
  url?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/ssr",
3
- "version": "19.2.15",
3
+ "version": "19.2.16",
4
4
  "description": "Angular server side rendering utilities",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -29,12 +29,12 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@angular-devkit/schematics": "workspace:*",
32
- "@angular/common": "19.2.0-rc.0",
33
- "@angular/compiler": "19.2.0-rc.0",
34
- "@angular/core": "19.2.0-rc.0",
35
- "@angular/platform-browser": "19.2.0-rc.0",
36
- "@angular/platform-server": "19.2.0-rc.0",
37
- "@angular/router": "19.2.0-rc.0",
32
+ "@angular/common": "19.2.15",
33
+ "@angular/compiler": "19.2.15",
34
+ "@angular/core": "19.2.15",
35
+ "@angular/platform-browser": "19.2.15",
36
+ "@angular/platform-server": "19.2.15",
37
+ "@angular/router": "19.2.15",
38
38
  "@schematics/angular": "workspace:*"
39
39
  },
40
40
  "sideEffects": false,