@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/fesm2022/node.mjs +1 -1
- package/fesm2022/node.mjs.map +1 -1
- package/fesm2022/ssr.mjs +9 -5
- package/fesm2022/ssr.mjs.map +1 -1
- package/package.json +7 -7
- package/schematics/ng-add/index.js +1 -0
- package/schematics/ng-add/index.js.map +1 -0
- package/schematics/ng-add/schema.js +1 -0
- package/schematics/ng-add/schema.js.map +1 -0
- package/types/ssr.d.ts +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/ssr",
|
|
3
|
-
"version": "21.0.0-next.
|
|
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.
|
|
33
|
-
"@angular/compiler": "21.0.0-next.
|
|
34
|
-
"@angular/core": "21.0.0-next.
|
|
35
|
-
"@angular/platform-browser": "21.0.0-next.
|
|
36
|
-
"@angular/platform-server": "21.0.0-next.
|
|
37
|
-
"@angular/router": "21.0.0-next.
|
|
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"}
|
|
@@ -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 '
|
|
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
|
-
*
|
|
173
|
+
* path: '', // This renders the "/" route on the client (CSR)
|
|
174
174
|
* renderMode: RenderMode.Client,
|
|
175
175
|
* },
|
|
176
176
|
* {
|
|
177
|
-
*
|
|
177
|
+
* path: 'about', // This page is static, so we prerender it (SSG)
|
|
178
178
|
* renderMode: RenderMode.Prerender,
|
|
179
179
|
* },
|
|
180
180
|
* {
|
|
181
|
-
*
|
|
181
|
+
* path: 'profile', // This page requires user-specific data, so we use SSR
|
|
182
182
|
* renderMode: RenderMode.Server,
|
|
183
183
|
* },
|
|
184
184
|
* {
|
|
185
|
-
*
|
|
185
|
+
* path: '**', // All other routes will be rendered on the server (SSR)
|
|
186
186
|
* renderMode: RenderMode.Server,
|
|
187
187
|
* },
|
|
188
188
|
* ];
|