Updated Angular version, need to fix E2E tests

This commit is contained in:
Ferdi Koomen 2023-11-14 10:43:50 +01:00
parent 2bfeefa61c
commit 8ac98aaf78
9 changed files with 3454 additions and 2175 deletions

View File

@ -9,9 +9,9 @@ If you want to generate the Angular based client then you can specify `--client
The Angular client has been tested with the following versions:
```
"@angular/common": "16.0.x",
"@angular/core": "16.0.x",
"rxjs": "7.5.x",
"@angular/common": "17.0.x",
"@angular/core": "17.0.x",
"rxjs": "7.8.x",
```
## Example

5558
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -62,45 +62,46 @@
"dependencies": {
"@apidevtools/json-schema-ref-parser": "^11.1.0",
"camelcase": "^6.3.0",
"commander": "^11.0.0",
"commander": "^11.1.0",
"fs-extra": "^11.1.1",
"handlebars": "^4.7.7"
"handlebars": "^4.7.8"
},
"devDependencies": {
"@angular-devkit/build-angular": "16.1.3",
"@angular/animations": "16.1.3",
"@angular/cli": "16.1.3",
"@angular/common": "16.1.3",
"@angular/compiler": "16.1.3",
"@angular/compiler-cli": "16.1.3",
"@angular/core": "16.1.3",
"@angular/forms": "16.1.3",
"@angular/platform-browser": "16.1.3",
"@angular/platform-browser-dynamic": "16.1.3",
"@angular/router": "16.1.3",
"@angular-devkit/build-angular": "17.0.0",
"@angular/animations": "17.0.2",
"@angular/cli": "17.0.0",
"@angular/common": "17.0.2",
"@angular/compiler": "17.0.2",
"@angular/compiler-cli": "17.0.2",
"@angular/core": "17.0.2",
"@angular/forms": "17.0.2",
"@angular/platform-browser": "17.0.2",
"@angular/platform-browser-dynamic": "17.0.2",
"@angular/router": "17.0.2",
"@babel/cli": "7.23.0",
"@babel/core": "7.23.3",
"@babel/preset-env": "7.23.3",
"@babel/preset-typescript": "7.23.3",
"@rollup/plugin-commonjs": "25.0.7",
"@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "11.1.5",
"@types/cross-spawn": "6.0.5",
"@types/express": "4.17.21",
"@types/fs-extra": "^11.0.1",
"@types/fs-extra": "^11.0.4",
"@types/glob": "8.1.0",
"@types/jest": "29.5.8",
"@types/node": "20.9.0",
"@types/node-fetch": "2.6.4",
"@types/node-fetch": "2.6.9",
"@types/qs": "6.9.10",
"@typescript-eslint/eslint-plugin": "6.10.0",
"@typescript-eslint/eslint-plugin": "6.11.0",
"@typescript-eslint/parser": "6.11.0",
"abort-controller": "3.0.0",
"axios": "1.6.1",
"codecov": "3.8.3",
"cross-spawn": "7.0.3",
"eslint": "8.53.0",
"eslint-config-prettier": "8.10.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-prettier": "5.0.1",
"eslint-plugin-simple-import-sort": "10.0.0",
"express": "4.18.2",
@ -108,22 +109,20 @@
"glob": "10.3.10",
"jest": "29.7.0",
"jest-cli": "29.7.0",
"node-fetch": "2.6.9",
"node-fetch": "2.7.0",
"prettier": "3.1.0",
"puppeteer": "20.9.0",
"puppeteer": "21.5.1",
"qs": "6.11.2",
"rimraf": "5.0.5",
"rollup": "3.26.1",
"rollup-plugin-terser": "7.0.2",
"rollup": "4.4.1",
"rxjs": "7.8.1",
"ts-node": "10.9.1",
"tslib": "2.6.2",
"typescript": "5.1.6",
"zone.js": "0.13.3"
"typescript": "5.2.2",
"zone.js": "0.14.2"
},
"overrides" : {
"node-fetch": "2.6.9",
"rollup": "3.26.1",
"typescript": "5.1.6"
"overrides": {
"node-fetch": "2.7.0",
"rollup": "4.4.1"
}
}

View File

@ -1,10 +1,10 @@
import commonjs from '@rollup/plugin-commonjs';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import terser from '@rollup/plugin-terser';
import typescript from '@rollup/plugin-typescript';
import { readFileSync } from 'fs';
import handlebars from 'handlebars';
import { dirname, extname, resolve } from 'path';
import { terser } from 'rollup-plugin-terser';
const { precompile } = handlebars;

View File

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

View File

@ -1,5 +1,5 @@
export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Promise<Headers> => {
const [token, username, password, additionalHeaders] = Promise.all([
const [token, username, password, additionalHeaders] = await Promise.all([
resolve(options, config.TOKEN),
resolve(options, config.USERNAME),
resolve(options, config.PASSWORD),

View File

@ -1,5 +1,5 @@
export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Promise<Headers> => {
const [token, username, password, additionalHeaders] = Promise.all([
const [token, username, password, additionalHeaders] = await Promise.all([
resolve(options, config.TOKEN),
resolve(options, config.USERNAME),
resolve(options, config.PASSWORD),

View File

@ -1,5 +1,5 @@
export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Promise<Headers> => {
const [token, username, password, additionalHeaders] = Promise.all([
const [token, username, password, additionalHeaders] = await Promise.all([
resolve(options, config.TOKEN),
resolve(options, config.USERNAME),
resolve(options, config.PASSWORD),

View File

@ -22,6 +22,8 @@ export const createAngularProject = (dir: string, name: string) => {
'true',
'--routing',
'false',
'--ssr',
'false',
'--skip-tests',
'true',
'--skip-install',