@angular/ssr 21.0.0-next.7 → 21.0.0-next.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/ssr",
3
- "version": "21.0.0-next.7",
3
+ "version": "21.0.0-next.8",
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": "21.0.0-next.6",
33
- "@angular/compiler": "21.0.0-next.6",
34
- "@angular/core": "21.0.0-next.6",
35
- "@angular/platform-browser": "21.0.0-next.6",
36
- "@angular/platform-server": "21.0.0-next.6",
37
- "@angular/router": "21.0.0-next.6",
32
+ "@angular/common": "21.0.0-next.7",
33
+ "@angular/compiler": "21.0.0-next.7",
34
+ "@angular/core": "21.0.0-next.7",
35
+ "@angular/platform-browser": "21.0.0-next.7",
36
+ "@angular/platform-server": "21.0.0-next.7",
37
+ "@angular/router": "21.0.0-next.7",
38
38
  "@schematics/angular": "workspace:*",
39
39
  "beasties": "0.3.5"
40
40
  },
@@ -9,3 +9,4 @@
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  const schematics_1 = require("@angular-devkit/schematics");
11
11
  exports.default = (options) => (0, schematics_1.externalSchematic)('@schematics/angular', 'ssr', options);
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAEH,2DAA+D;AAG/D,kBAAe,CAAC,OAAmB,EAAE,EAAE,CAAC,IAAA,8BAAiB,EAAC,qBAAqB,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC"}
@@ -2,3 +2,4 @@
2
2
  // THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
3
3
  // CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["schema.ts"],"names":[],"mappings":";AACA,mFAAmF;AACnF,oFAAoF"}
package/types/ssr.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Type, EnvironmentProviders, Provider, ApplicationRef } from '@angular/core';
2
2
  import { DefaultExport } from '@angular/router';
3
3
  import { BootstrapContext } from '@angular/platform-browser';
4
- import Beasties from './third_party/beasties';
4
+ import Beasties from '../third_party/beasties';
5
5
 
6
6
  /**
7
7
  * Identifies a particular kind of `ServerRenderingFeatureKind`.
@@ -170,19 +170,19 @@ type ServerRoute = ServerRouteClient | ServerRoutePrerender | ServerRoutePrerend
170
170
  *
171
171
  * const serverRoutes: ServerRoute[] = [
172
172
  * {
173
- * route: '', // This renders the "/" route on the client (CSR)
173
+ * path: '', // This renders the "/" route on the client (CSR)
174
174
  * renderMode: RenderMode.Client,
175
175
  * },
176
176
  * {
177
- * route: 'about', // This page is static, so we prerender it (SSG)
177
+ * path: 'about', // This page is static, so we prerender it (SSG)
178
178
  * renderMode: RenderMode.Prerender,
179
179
  * },
180
180
  * {
181
- * route: 'profile', // This page requires user-specific data, so we use SSR
181
+ * path: 'profile', // This page requires user-specific data, so we use SSR
182
182
  * renderMode: RenderMode.Server,
183
183
  * },
184
184
  * {
185
- * route: '**', // All other routes will be rendered on the server (SSR)
185
+ * path: '**', // All other routes will be rendered on the server (SSR)
186
186
  * renderMode: RenderMode.Server,
187
187
  * },
188
188
  * ];