Skip to content

Commit 7c48a2e

Browse files
committed
refactor(@angular/ssr): deprecate CommonEngine APIs
DEPRECATED: CommonEngine APIs are deprecated in favor of AngularNodeAppEngine or AngularAppEngine.
1 parent deca40b commit 7c48a2e

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

packages/angular/ssr/node/src/common-engine/common-engine.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ import {
2424

2525
const SSG_MARKER_REGEXP = /ng-server-context=["']\w*\|?ssg\|?\w*["']/;
2626

27+
/**
28+
* @deprecated Part of Angular's Webpack support deprecation. Use `AngularNodeAppEngine` or `AngularAppEngine` instead.
29+
* Deprecated since v22.
30+
*/
2731
export interface CommonEngineOptions {
2832
/** A method that when invoked returns a promise that returns an `ApplicationRef` instance once resolved or an NgModule. */
2933
bootstrap?: Type<{}> | ((context: BootstrapContext) => Promise<ApplicationRef>);
@@ -38,6 +42,10 @@ export interface CommonEngineOptions {
3842
allowedHosts?: readonly string[];
3943
}
4044

45+
/**
46+
* @deprecated Part of Angular's Webpack support deprecation. Use `AngularNodeAppEngine` or `AngularAppEngine` instead.
47+
* Deprecated since v22.
48+
*/
4149
export interface CommonEngineRenderOptions {
4250
/** A method that when invoked returns a promise that returns an `ApplicationRef` instance once resolved or an NgModule. */
4351
bootstrap?: Type<{}> | ((context: BootstrapContext) => Promise<ApplicationRef>);
@@ -63,8 +71,10 @@ export interface CommonEngineRenderOptions {
6371

6472
/**
6573
* A common engine to use to server render an application.
74+
*
75+
* @deprecated Part of Angular's Webpack support deprecation. Use `AngularNodeAppEngine` or `AngularAppEngine` instead.
76+
* Deprecated since v22.
6677
*/
67-
6878
export class CommonEngine {
6979
private readonly templateCache = new Map<string, string>();
7080
private readonly inlineCriticalCssProcessor = new CommonEngineInlineCriticalCssProcessor();

0 commit comments

Comments
 (0)