Skip to content

Commit 8ac98aa

Browse files
committed
Updated Angular version, need to fix E2E tests
1 parent 2bfeefa commit 8ac98aa

File tree

9 files changed

+3712
-2433
lines changed

9 files changed

+3712
-2433
lines changed

Diff for: docs/angular-support.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ If you want to generate the Angular based client then you can specify `--client
99
The Angular client has been tested with the following versions:
1010

1111
```
12-
"@angular/common": "16.0.x",
13-
"@angular/core": "16.0.x",
14-
"rxjs": "7.5.x",
12+
"@angular/common": "17.0.x",
13+
"@angular/core": "17.0.x",
14+
"rxjs": "7.8.x",
1515
```
1616

1717
## Example

Diff for: package-lock.json

+3,676-2,398
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+26-27
Original file line numberDiff line numberDiff line change
@@ -62,68 +62,67 @@
6262
"dependencies": {
6363
"@apidevtools/json-schema-ref-parser": "^11.1.0",
6464
"camelcase": "^6.3.0",
65-
"commander": "^11.0.0",
65+
"commander": "^11.1.0",
6666
"fs-extra": "^11.1.1",
67-
"handlebars": "^4.7.7"
67+
"handlebars": "^4.7.8"
6868
},
6969
"devDependencies": {
70-
"@angular-devkit/build-angular": "16.1.3",
71-
"@angular/animations": "16.1.3",
72-
"@angular/cli": "16.1.3",
73-
"@angular/common": "16.1.3",
74-
"@angular/compiler": "16.1.3",
75-
"@angular/compiler-cli": "16.1.3",
76-
"@angular/core": "16.1.3",
77-
"@angular/forms": "16.1.3",
78-
"@angular/platform-browser": "16.1.3",
79-
"@angular/platform-browser-dynamic": "16.1.3",
80-
"@angular/router": "16.1.3",
70+
"@angular-devkit/build-angular": "17.0.0",
71+
"@angular/animations": "17.0.2",
72+
"@angular/cli": "17.0.0",
73+
"@angular/common": "17.0.2",
74+
"@angular/compiler": "17.0.2",
75+
"@angular/compiler-cli": "17.0.2",
76+
"@angular/core": "17.0.2",
77+
"@angular/forms": "17.0.2",
78+
"@angular/platform-browser": "17.0.2",
79+
"@angular/platform-browser-dynamic": "17.0.2",
80+
"@angular/router": "17.0.2",
8181
"@babel/cli": "7.23.0",
8282
"@babel/core": "7.23.3",
8383
"@babel/preset-env": "7.23.3",
8484
"@babel/preset-typescript": "7.23.3",
8585
"@rollup/plugin-commonjs": "25.0.7",
8686
"@rollup/plugin-node-resolve": "15.2.3",
87+
"@rollup/plugin-terser": "^0.4.4",
8788
"@rollup/plugin-typescript": "11.1.5",
8889
"@types/cross-spawn": "6.0.5",
8990
"@types/express": "4.17.21",
90-
"@types/fs-extra": "^11.0.1",
91+
"@types/fs-extra": "^11.0.4",
9192
"@types/glob": "8.1.0",
9293
"@types/jest": "29.5.8",
9394
"@types/node": "20.9.0",
94-
"@types/node-fetch": "2.6.4",
95+
"@types/node-fetch": "2.6.9",
9596
"@types/qs": "6.9.10",
96-
"@typescript-eslint/eslint-plugin": "6.10.0",
97+
"@typescript-eslint/eslint-plugin": "6.11.0",
9798
"@typescript-eslint/parser": "6.11.0",
9899
"abort-controller": "3.0.0",
99100
"axios": "1.6.1",
100101
"codecov": "3.8.3",
101102
"cross-spawn": "7.0.3",
102103
"eslint": "8.53.0",
103-
"eslint-config-prettier": "8.10.0",
104+
"eslint-config-prettier": "9.0.0",
104105
"eslint-plugin-prettier": "5.0.1",
105106
"eslint-plugin-simple-import-sort": "10.0.0",
106107
"express": "4.18.2",
107108
"form-data": "4.0.0",
108109
"glob": "10.3.10",
109110
"jest": "29.7.0",
110111
"jest-cli": "29.7.0",
111-
"node-fetch": "2.6.9",
112+
"node-fetch": "2.7.0",
112113
"prettier": "3.1.0",
113-
"puppeteer": "20.9.0",
114+
"puppeteer": "21.5.1",
114115
"qs": "6.11.2",
115116
"rimraf": "5.0.5",
116-
"rollup": "3.26.1",
117-
"rollup-plugin-terser": "7.0.2",
117+
"rollup": "4.4.1",
118118
"rxjs": "7.8.1",
119119
"ts-node": "10.9.1",
120120
"tslib": "2.6.2",
121-
"typescript": "5.1.6",
122-
"zone.js": "0.13.3"
121+
"typescript": "5.2.2",
122+
"zone.js": "0.14.2"
123123
},
124-
"overrides" : {
125-
"node-fetch": "2.6.9",
126-
"rollup": "3.26.1",
127-
"typescript": "5.1.6"
124+
"overrides": {
125+
"node-fetch": "2.7.0",
126+
"rollup": "4.4.1"
128127
}
129128
}

Diff for: rollup.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import commonjs from '@rollup/plugin-commonjs';
22
import { nodeResolve } from '@rollup/plugin-node-resolve';
3+
import terser from '@rollup/plugin-terser';
34
import typescript from '@rollup/plugin-typescript';
45
import { readFileSync } from 'fs';
56
import handlebars from 'handlebars';
67
import { dirname, extname, resolve } from 'path';
7-
import { terser } from 'rollup-plugin-terser';
88

99
const { precompile } = handlebars;
1010

Diff for: src/templates/core/axios/getHeaders.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions, formData?: FormData): Promise<Record<string, string>> => {
2-
const [token, username, password, additionalHeaders] = Promise.all([
2+
const [token, username, password, additionalHeaders] = await Promise.all([
33
resolve(options, config.TOKEN),
44
resolve(options, config.USERNAME),
55
resolve(options, config.PASSWORD),

Diff for: src/templates/core/fetch/getHeaders.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Promise<Headers> => {
2-
const [token, username, password, additionalHeaders] = Promise.all([
2+
const [token, username, password, additionalHeaders] = await Promise.all([
33
resolve(options, config.TOKEN),
44
resolve(options, config.USERNAME),
55
resolve(options, config.PASSWORD),

Diff for: src/templates/core/node/getHeaders.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Promise<Headers> => {
2-
const [token, username, password, additionalHeaders] = Promise.all([
2+
const [token, username, password, additionalHeaders] = await Promise.all([
33
resolve(options, config.TOKEN),
44
resolve(options, config.USERNAME),
55
resolve(options, config.PASSWORD),

Diff for: src/templates/core/xhr/getHeaders.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Promise<Headers> => {
2-
const [token, username, password, additionalHeaders] = Promise.all([
2+
const [token, username, password, additionalHeaders] = await Promise.all([
33
resolve(options, config.TOKEN),
44
resolve(options, config.USERNAME),
55
resolve(options, config.PASSWORD),

Diff for: test/e2e/scripts/createAngularProject.ts

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ export const createAngularProject = (dir: string, name: string) => {
2222
'true',
2323
'--routing',
2424
'false',
25+
'--ssr',
26+
'false',
2527
'--skip-tests',
2628
'true',
2729
'--skip-install',

0 commit comments

Comments
 (0)