diff --git a/goldens/public-api/angular/ssr/tokens/index.api.md b/goldens/public-api/angular/ssr/tokens/index.api.md deleted file mode 100644 index ca962ea0c990..000000000000 --- a/goldens/public-api/angular/ssr/tokens/index.api.md +++ /dev/null @@ -1,20 +0,0 @@ -## API Report File for "@angular/ssr_tokens" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import { InjectionToken } from '@angular/core'; - -// @public -export const REQUEST: InjectionToken; - -// @public -export const REQUEST_CONTEXT: InjectionToken; - -// @public -export const RESPONSE_INIT: InjectionToken; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/packages/angular/ssr/BUILD.bazel b/packages/angular/ssr/BUILD.bazel index 872962542c1d..6c50d6896238 100644 --- a/packages/angular/ssr/BUILD.bazel +++ b/packages/angular/ssr/BUILD.bazel @@ -20,7 +20,6 @@ ts_library( tsconfig = "//:tsconfig-build-ng", deps = [ "//packages/angular/ssr/third_party/beasties:bundled_beasties_lib", - "//packages/angular/ssr/tokens", "@npm//@angular/common", "@npm//@angular/core", "@npm//@angular/platform-server", @@ -39,7 +38,6 @@ ng_package( externals = [ "@angular/ssr", "@angular/ssr/node", - "@angular/ssr/tokens", "../../third_party/beasties", ], nested_packages = [ @@ -49,7 +47,6 @@ ng_package( deps = [ ":ssr", "//packages/angular/ssr/node", - "//packages/angular/ssr/tokens", ], ) diff --git a/packages/angular/ssr/src/app.ts b/packages/angular/ssr/src/app.ts index aa8b89b2bb99..e49a0b0e6c0e 100644 --- a/packages/angular/ssr/src/app.ts +++ b/packages/angular/ssr/src/app.ts @@ -6,8 +6,14 @@ * found in the LICENSE file at https://angular.dev/license */ -import { LOCALE_ID, StaticProvider, ɵresetCompiledComponents } from '@angular/core'; -import { REQUEST, REQUEST_CONTEXT, RESPONSE_INIT } from '@angular/ssr/tokens'; +import { + LOCALE_ID, + REQUEST, + REQUEST_CONTEXT, + RESPONSE_INIT, + StaticProvider, + ɵresetCompiledComponents, +} from '@angular/core'; import { ServerAssets } from './assets'; import { Hooks } from './hooks'; import { getAngularAppManifest } from './manifest'; diff --git a/packages/angular/ssr/tokens/BUILD.bazel b/packages/angular/ssr/tokens/BUILD.bazel deleted file mode 100644 index b0c63d234c55..000000000000 --- a/packages/angular/ssr/tokens/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("//tools:defaults.bzl", "ts_library") - -package(default_visibility = ["//visibility:public"]) - -ts_library( - name = "tokens", - srcs = glob( - [ - "*.ts", - "src/**/*.ts", - ], - ), - module_name = "@angular/ssr/tokens", - tsconfig = "//:tsconfig-build-ng", - deps = [ - "@npm//@angular/core", - "@npm//tslib", - ], -) diff --git a/packages/angular/ssr/tokens/index.ts b/packages/angular/ssr/tokens/index.ts deleted file mode 100644 index 36d8b2a62dff..000000000000 --- a/packages/angular/ssr/tokens/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * @license - * Copyright Google LLC All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.dev/license - */ - -export * from './public_api'; diff --git a/packages/angular/ssr/tokens/public_api.ts b/packages/angular/ssr/tokens/public_api.ts deleted file mode 100644 index 4a03e3fdbfe6..000000000000 --- a/packages/angular/ssr/tokens/public_api.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * @license - * Copyright Google LLC All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.dev/license - */ - -export { REQUEST, RESPONSE_INIT, REQUEST_CONTEXT } from './src/tokens'; diff --git a/packages/angular/ssr/tokens/src/tokens.ts b/packages/angular/ssr/tokens/src/tokens.ts deleted file mode 100644 index 90b664bef6d4..000000000000 --- a/packages/angular/ssr/tokens/src/tokens.ts +++ /dev/null @@ -1,70 +0,0 @@ -/** - * @license - * Copyright Google LLC All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.dev/license - */ - -import { InjectionToken } from '@angular/core'; - -/** - * Injection token representing the current HTTP request object. - * - * Use this token to access the current request when handling server-side - * rendering (SSR). - * - * @remarks - * This token may be `null` in the following scenarios: - * - * * During the build processes. - * * When the application is rendered in the browser (client-side rendering). - * * When performing static site generation (SSG). - * * During route extraction in development (at the time of the request). - * - * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Request | `Request` on MDN} - * - * @developerPreview - */ -export const REQUEST = new InjectionToken('REQUEST', { - providedIn: 'platform', - factory: () => null, -}); - -/** - * Injection token for response initialization options. - * - * Use this token to provide response options for configuring or initializing - * HTTP responses in server-side rendering or API endpoints. - * - * @remarks - * This token may be `null` in the following scenarios: - * - * * During the build processes. - * * When the application is rendered in the browser (client-side rendering). - * * When performing static site generation (SSG). - * * During route extraction in development (at the time of the request). - * - * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Response/Response | `ResponseInit` on MDN} - * - * @developerPreview - */ -export const RESPONSE_INIT = new InjectionToken('RESPONSE_INIT', { - providedIn: 'platform', - factory: () => null, -}); - -/** - * Injection token for additional request context. - * - * Use this token to pass custom metadata or context related to the current request in server-side rendering. - * - * @remarks - * This token is only available during server-side rendering and will be `null` in other contexts. - * - * @developerPreview - */ -export const REQUEST_CONTEXT = new InjectionToken('REQUEST_CONTEXT', { - providedIn: 'platform', - factory: () => null, -});