Skip to content

Commit 726161b

Browse files
authored
refactor: upgrade to typescript 5 (#4464)
1 parent fcabc16 commit 726161b

File tree

185 files changed

+1646
-1774
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+1646
-1774
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
diff --git a/index.d.ts b/index.d.ts
2+
index 4238da8770e14cabd912c10c8a3b6dee4692209c..beebec01b3e212df0aaf911ded6f1a629f7ac1ae 100644
3+
--- a/index.d.ts
4+
+++ b/index.d.ts
5+
@@ -1,11 +1,22 @@
6+
import { Connection, Transport } from '@elastic/elasticsearch';
7+
-import AWS from 'aws-sdk';
8+
+
9+
+
10+
+export interface ConnectorConfigCredentials {
11+
+ accessKeyId?: string;
12+
+ secretAccessKey?: string;
13+
+ sessionToken?: string;
14+
+}
15+
+
16+
+export interface ConnectorConfig {
17+
+ region: string;
18+
+ credentials: ConnectorConfigCredentials;
19+
+}
20+
21+
export type Connector = {
22+
Connection: typeof Connection;
23+
Transport: typeof Transport;
24+
};
25+
26+
-export const ConnectorFactory: (awsConfig: AWS.Config) => Connector;
27+
+export const ConnectorFactory: (awsConfig: ConnectorConfig) => Connector;
28+
29+
export default ConnectorFactory;

cypress-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"lodash": "^4.17.21",
2020
"nanoid": "^3.3.8",
2121
"node-fetch": "2.6.7",
22-
"typescript": "4.9.5",
22+
"typescript": "5.3.3",
2323
"uniqid": "^5.4.0"
2424
},
2525
"scripts": {

package.json

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
"devDependencies": {
3131
"@babel/cli": "^7.26.4",
3232
"@babel/code-frame": "^7.26.2",
33-
"@babel/compat-data": "^7.26.3",
33+
"@babel/compat-data": "7.26.5",
3434
"@babel/core": "^7.26.0",
3535
"@babel/helper-define-polyfill-provider": "^0.6.3",
3636
"@babel/helper-environment-visitor": "^7.24.7",
37-
"@babel/parser": "^7.26.3",
37+
"@babel/parser": "7.26.5",
3838
"@babel/plugin-proposal-class-properties": "^7.18.6",
3939
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
4040
"@babel/plugin-proposal-throw-expressions": "^7.25.9",
@@ -47,8 +47,8 @@
4747
"@babel/register": "^7.25.9",
4848
"@babel/runtime": "^7.26.0",
4949
"@babel/template": "^7.25.9",
50-
"@babel/traverse": "^7.26.4",
51-
"@babel/types": "^7.26.3",
50+
"@babel/traverse": "7.26.5",
51+
"@babel/types": "7.26.5",
5252
"@commitlint/cli": "^11.0.0",
5353
"@commitlint/config-conventional": "^11.0.0",
5454
"@grpc/grpc-js": "^1.11.1",
@@ -59,8 +59,8 @@
5959
"@types/prettier": "^2.7.3",
6060
"@types/react": "18.2.79",
6161
"@types/react-dom": "18.2.25",
62-
"@typescript-eslint/eslint-plugin": "^5.51.0",
63-
"@typescript-eslint/parser": "^5.51.0",
62+
"@typescript-eslint/eslint-plugin": "^6.21.0",
63+
"@typescript-eslint/parser": "^6.21.0",
6464
"adio": "^1.0.1",
6565
"axios": "^1.7.9",
6666
"babel-jest": "29.7.0",
@@ -117,8 +117,9 @@
117117
"ts-expect": "^1.3.0",
118118
"ts-jest": "29.1.5",
119119
"ts-node": "^10.9.2",
120-
"typescript": "4.9.5",
121-
"typescript-transform-paths": "^3.4.6",
120+
"type-fest": "4.14.0",
121+
"typescript": "5.3.3",
122+
"typescript-transform-paths": "^3.5.3",
122123
"verdaccio": "^6.0.5",
123124
"write-json-file": "^4.3.0",
124125
"yargs": "^17.7.2"
@@ -176,6 +177,8 @@
176177
"verdaccio:start": "yarn verdaccio -c ./.verdaccio.yaml",
177178
"verdaccio:start:detached": "yarn pm2 start \"yarn verdaccio:start\"",
178179
"webiny": "./node_modules/.bin/webiny",
180+
"system:verify": "yarn eslint && yarn prettier:check && yarn adio && yarn check-ts-configs && yarn webiny verify-dependencies",
181+
"system:build": "yarn && yarn ghawac build && yarn webiny sync-dependencies && yarn build",
179182
"wby": "./node_modules/.bin/wby",
180183
"webiny-ui-build-storybook": "cd packages/ui && cross-env OUT=../../netlify-static yarn build-storybook"
181184
},
@@ -229,29 +232,17 @@
229232
"systeminformation": "^5.23.18",
230233
"@emotion/react": "11.10.8",
231234
"@octokit/rest": "^20.0.2",
232-
"braces": "^3.0.3",
233-
"typescript": "4.9.5",
234235
"@types/jsdom": "link:./typings/void",
235236
"@types/webpack": "^5.28.0",
236-
"browserify-sign": "^4.2.2",
237237
"@types/react": "18.2.79",
238238
"@types/react-dom": "18.2.25",
239239
"react": "18.2.0",
240240
"react-dom": "18.2.0",
241-
"follow-redirects": "^1.15.6",
242-
"crypto-js": "^4.2.0",
243-
"ip": "^2.0.1",
244241
"tar": "^6.2.1",
245-
"ejs": "^3.1.10",
246242
"@grpc/grpc-js": "^1.11.1",
247243
"postcss": "^8.4.35",
248244
"semver": "^7.6.3",
249-
"@types/eslint": "8.2.1",
250-
"http-proxy-middleware": "^2.0.7",
251-
"xml2js": "0.6.2",
252245
"lerna@8.1.2": "patch:lerna@npm%3A8.1.2#./.yarn/patches/lerna-npm-8.1.2-be48ad2329.patch",
253-
"react-dnd": "^16.0.1",
254-
"react-dnd-html5-backend": "^16.0.1",
255246
"apollo-link@^1.2.14": "patch:apollo-link@npm%3A1.2.14#./.yarn/patches/apollo-link-npm-1.2.14-74f0ba01f9.patch",
256247
"apollo-link@^1.0.0": "patch:apollo-link@npm%3A1.2.14#./.yarn/patches/apollo-link-npm-1.2.14-74f0ba01f9.patch",
257248
"@material/base@^14.0.0": "patch:@material/base@npm%3A14.0.0#./.yarn/patches/@material-base-npm-14.0.0-36e0a55c42.patch"

packages/api-aco/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"graphql": "^15.9.0",
5252
"prettier": "^2.8.8",
5353
"rimraf": "^6.0.1",
54-
"ttypescript": "^1.5.15",
55-
"typescript": "4.9.5"
54+
"typescript": "5.3.3"
5655
}
5756
}

packages/api-admin-settings/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
"jest-dynalite": "^3.6.1",
3535
"prettier": "^2.8.8",
3636
"rimraf": "^6.0.1",
37-
"ttypescript": "^1.5.15",
38-
"typescript": "4.9.5"
37+
"typescript": "5.3.3"
3938
},
4039
"publishConfig": {
4140
"access": "public",

packages/api-admin-users-so-ddb/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
"jest": "^29.7.0",
2929
"jest-dynalite": "^3.6.1",
3030
"rimraf": "^6.0.1",
31-
"ttypescript": "^1.5.15",
32-
"typescript": "4.9.5"
31+
"typescript": "5.3.3"
3332
},
3433
"publishConfig": {
3534
"access": "public",

packages/api-admin-users/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@webiny/cli": "0.0.0",
3333
"@webiny/project-utils": "0.0.0",
3434
"rimraf": "^6.0.1",
35-
"typescript": "4.9.5"
35+
"typescript": "5.3.3"
3636
},
3737
"publishConfig": {
3838
"access": "public",

packages/api-apw-scheduler-so-ddb/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
"jest": "^29.7.0",
3636
"jest-dynalite": "^3.6.1",
3737
"rimraf": "^6.0.1",
38-
"ttypescript": "^1.5.15",
39-
"typescript": "4.9.5"
38+
"typescript": "5.3.3"
4039
},
4140
"publishConfig": {
4241
"access": "public",

packages/api-apw/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@
4747
"jest": "^29.7.0",
4848
"prettier": "^2.8.8",
4949
"rimraf": "^6.0.1",
50-
"ttypescript": "^1.5.15",
51-
"typescript": "4.9.5"
50+
"typescript": "5.3.3"
5251
},
5352
"publishConfig": {
5453
"access": "public",

packages/api-audit-logs/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
"@webiny/plugins": "0.0.0",
3333
"@webiny/project-utils": "0.0.0",
3434
"graphql": "^15.9.0",
35-
"ttypescript": "^1.5.15",
36-
"typescript": "4.9.5"
35+
"typescript": "5.3.3"
3736
},
3837
"dependencies": {
3938
"@webiny/api": "0.0.0",

0 commit comments

Comments
 (0)