Skip to content

Commit 8c57b66

Browse files
authored
[typescript*] drop support typescript below 4.0 (#12123)
* [typescript-axios] drop support typescript below 4.0 & update samples * [typescript-axios] update package.json & package-lock.json * [typescript-node] drop support typescript below 4.0 & update samples * [typescript-nestjs] drop support typescript below 4.0 & update samples * [typescript-redux-query] drop support typescript below 4.0 & update samples * [typescript-aurelia] drop support typescript below 4.0 & update samples * [typescript-jquery] drop support typescript below 4.0 & update samples * [typescript] drop support typescript below 4.0 & update samples
1 parent 79de04e commit 8c57b66

File tree

30 files changed

+66
-67
lines changed

30 files changed

+66
-67
lines changed

modules/openapi-generator/src/main/resources/typescript-aurelia/package.json.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
},
1919
"devDependencies": {
2020
"tslint": "^3.15.1",
21-
"typescript": "^2.4 || ^3.0"
21+
"typescript": "^4.0"
2222
}
2323
}

modules/openapi-generator/src/main/resources/typescript-axios/package.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
"prepare": "npm run build"
1919
},
2020
"dependencies": {
21-
"axios": "^0.21.4"
21+
"axios": "^0.26.1"
2222
},
2323
"devDependencies": {
2424
"@types/node": "^12.11.5",
25-
"typescript": "^3.6.4"
25+
"typescript": "^4.0"
2626
}{{#npmRepository}},{{/npmRepository}}
2727
{{#npmRepository}}
2828
"publishConfig": {

modules/openapi-generator/src/main/resources/typescript-jquery/package.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"devDependencies": {
1717
"@types/jquery": "^3.1",
18-
"typescript": "^2.4"
18+
"typescript": "^4.0"
1919
}{{#npmRepository}},
2020
"publishConfig": {
2121
"registry": "{{npmRepository}}"

modules/openapi-generator/src/main/resources/typescript-nestjs/package.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"ts-node": "8.3.0",
4747
"tsconfig-paths": "3.8.0",
4848
"tslint": "5.18.0",
49-
"typescript": "3.5.3",
49+
"typescript": "^4.0",
5050
"wait-on": "^3.2.0"
5151
},
5252
"jest": {

modules/openapi-generator/src/main/resources/typescript-node/package.mustache

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
"dependencies": {
1616
"bluebird": "^3.5.0",
1717
"request": "^2.81.0",
18-
"@types/bluebird": "3.5.33",
19-
"@types/request": "*",
2018
"rewire": "^3.0.2"
2119
},
2220
"devDependencies": {
23-
"typescript": "^2.4.2",
24-
"@types/node": "8.10.34"
21+
"@types/bluebird": "^3.5.33",
22+
"@types/node": "^12",
23+
"@types/request": "^2.48.8",
24+
"typescript": "^4.0"
2525
}{{#npmRepository}},
2626
"publishConfig": {
2727
"registry": "{{npmRepository}}"

modules/openapi-generator/src/main/resources/typescript-redux-query/package.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"redux-query": "^3.2.0"
1414
},
1515
"devDependencies": {
16-
"typescript": "^3.0"
16+
"typescript": "^4.0"
1717
}{{#npmRepository}},{{/npmRepository}}
1818
{{#npmRepository}}
1919
"publishConfig": {

modules/openapi-generator/src/main/resources/typescript/package.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"url-parse": "^1.4.3"
6262
},
6363
"devDependencies": {
64-
"typescript": "^3.9.3",
64+
"typescript": "^4.0",
6565
"@types/url-parse": "1.4.4"
6666
}{{#npmRepository}},{{/npmRepository}}
6767
{{#npmRepository}}

modules/openapi-generator/src/test/resources/integrationtests/typescript/additional-properties-expected/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"reflect-metadata": "^0.1.3",
3333
"rxjs": "5.0.0-beta.12",
3434
"zone.js": "^0.6.17",
35-
"typescript": "^2.0.0",
35+
"typescript": "^4.0",
3636
"typings": "^1.3.2"
3737
}
3838
}

modules/openapi-generator/src/test/resources/integrationtests/typescript/array-and-object-expected/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"reflect-metadata": "^0.1.3",
3333
"rxjs": "5.0.0-beta.12",
3434
"zone.js": "^0.6.17",
35-
"typescript": "^2.0.0",
35+
"typescript": "^4.0",
3636
"typings": "^1.3.2"
3737
}
3838
}

modules/openapi-generator/src/test/resources/integrationtests/typescript/node-es5-expected/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"request": "^2.72.0"
1818
},
1919
"devDependencies": {
20-
"typescript": "^1.8.10",
20+
"typescript": "^4.0",
2121
"typings": "^0.8.1"
2222
}
2323
}

0 commit comments

Comments
 (0)