@schematics/angular 19.0.0-rc.0 → 19.0.0-rc.1
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import <% if(!exportDefault) { %>{ <% }%><%= classify(name) %><%= classify(type) %> <% if(!exportDefault) {%>} <% }%>from './<%= dasherize(name) %><%= type ? '.' + dasherize(type): '' %>';
|
|
4
4
|
|
|
5
5
|
describe('<%= classify(name) %><%= classify(type) %>', () => {
|
|
6
6
|
let component: <%= classify(name) %><%= classify(type) %>;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"factory": "./use-application-builder/migration",
|
|
6
6
|
"description": "Migrate application projects to the new build system. Application projects that are using the '@angular-devkit/build-angular' package's 'browser' and/or 'browser-esbuild' builders will be migrated to use the new 'application' builder. You can read more about this, including known issues and limitations, here: https://angular.dev/tools/cli/build-system-migration",
|
|
7
7
|
"optional": true,
|
|
8
|
+
"recommended": true,
|
|
8
9
|
"documentation": "tools/cli/build-system-migration"
|
|
9
10
|
},
|
|
10
11
|
"update-workspace-config": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematics/angular",
|
|
3
|
-
"version": "19.0.0-rc.
|
|
3
|
+
"version": "19.0.0-rc.1",
|
|
4
4
|
"description": "Schematics specific to Angular",
|
|
5
5
|
"homepage": "https://github.com/angular/angular-cli",
|
|
6
6
|
"keywords": [
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"schematics": "./collection.json",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@angular-devkit/core": "19.0.0-rc.
|
|
26
|
-
"@angular-devkit/schematics": "19.0.0-rc.
|
|
25
|
+
"@angular-devkit/core": "19.0.0-rc.1",
|
|
26
|
+
"@angular-devkit/schematics": "19.0.0-rc.1",
|
|
27
27
|
"jsonc-parser": "3.3.1"
|
|
28
28
|
},
|
|
29
29
|
"packageManager": "yarn@4.5.0",
|
|
@@ -29,26 +29,20 @@ const angularApp = new AngularNodeAppEngine();
|
|
|
29
29
|
/**
|
|
30
30
|
* Serve static files from /<%= browserDistDirectory %>
|
|
31
31
|
*/
|
|
32
|
-
app.
|
|
33
|
-
'**',
|
|
32
|
+
app.use(
|
|
34
33
|
express.static(browserDistFolder, {
|
|
35
34
|
maxAge: '1y',
|
|
36
|
-
index:
|
|
37
|
-
|
|
38
|
-
const headers = angularApp.getPrerenderHeaders(res.req);
|
|
39
|
-
for (const [key, value] of headers) {
|
|
40
|
-
res.setHeader(key, value);
|
|
41
|
-
}
|
|
42
|
-
},
|
|
35
|
+
index: false,
|
|
36
|
+
redirect: false,
|
|
43
37
|
}),
|
|
44
38
|
);
|
|
45
39
|
|
|
46
40
|
/**
|
|
47
41
|
* Handle all other requests by rendering the Angular application.
|
|
48
42
|
*/
|
|
49
|
-
app.
|
|
43
|
+
app.use('/**', (req, res, next) => {
|
|
50
44
|
angularApp
|
|
51
|
-
.
|
|
45
|
+
.handle(req)
|
|
52
46
|
.then((response) =>
|
|
53
47
|
response ? writeResponseToNodeResponse(response, res) : next(),
|
|
54
48
|
)
|
|
@@ -15,6 +15,6 @@ exports.latestVersions = {
|
|
|
15
15
|
...dependencies,
|
|
16
16
|
// As Angular CLI works with same minor versions of Angular Framework, a tilde match for the current
|
|
17
17
|
Angular: dependencies['@angular/core'],
|
|
18
|
-
DevkitBuildAngular: '^19.0.0-rc.
|
|
19
|
-
AngularSSR: '^19.0.0-rc.
|
|
18
|
+
DevkitBuildAngular: '^19.0.0-rc.1',
|
|
19
|
+
AngularSSR: '^19.0.0-rc.1',
|
|
20
20
|
};
|