From 2ca791e437256452f63b95cf5ef19c91c7ac0b9a Mon Sep 17 00:00:00 2001 From: "C. T. Lin" Date: Fri, 1 Sep 2023 17:49:44 +0800 Subject: [PATCH] feat: support TypeScript 5.2 (#1711) Co-authored-by: Artem Zakharchenko --- .github/workflows/ci.yml | 2 +- package.json | 4 ++-- pnpm-lock.yaml | 12 ++++++------ test/typings/tsconfig.5.2.json | 7 +++++++ 4 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 test/typings/tsconfig.5.2.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3fc86f098..46c36d33e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - ts: ['4.4', '4.5', '4.6', '4.7', '4.8', '4.9', '5.0', '5.1'] + ts: ['4.4', '4.5', '4.6', '4.7', '4.8', '4.9', '5.0', '5.1', '5.2'] steps: - name: Checkout uses: actions/checkout@v3 diff --git a/package.json b/package.json index 5dcee9dea..0d9554db4 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "chokidar": "^3.4.2", "cookie": "^0.4.2", "graphql": "^15.0.0 || ^16.0.0", - "headers-polyfill": "^3.1.2", + "headers-polyfill": "^3.2.0", "inquirer": "^8.2.0", "is-node-process": "^1.2.0", "js-levenshtein": "^1.1.6", @@ -159,7 +159,7 @@ "webpack-http-server": "^0.5.0" }, "peerDependencies": { - "typescript": ">= 4.4.x <= 5.1.x" + "typescript": ">= 4.4.x <= 5.2.x" }, "peerDependenciesMeta": { "typescript": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 055d0eae8..5d45ab892 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,7 +44,7 @@ specifiers: fs-extra: ^10.0.0 fs-teardown: ^0.3.0 graphql: ^15.0.0 || ^16.0.0 - headers-polyfill: ^3.1.2 + headers-polyfill: ^3.2.0 inquirer: ^8.2.0 is-node-process: ^1.2.0 jest: ^29.4.3 @@ -82,7 +82,7 @@ dependencies: chokidar: 3.4.1 cookie: 0.4.2 graphql: 16.6.0 - headers-polyfill: 3.1.2 + headers-polyfill: 3.2.0 inquirer: 8.2.5 is-node-process: 1.2.0 js-levenshtein: 1.1.6 @@ -2127,7 +2127,7 @@ packages: '@types/debug': 4.1.7 '@xmldom/xmldom': 0.8.6 debug: 4.3.4 - headers-polyfill: 3.1.2 + headers-polyfill: 3.2.0 outvariant: 1.4.0 strict-event-emitter: 0.2.8 web-encoding: 1.1.5 @@ -5990,8 +5990,8 @@ packages: dependencies: function-bind: 1.1.1 - /headers-polyfill/3.1.2: - resolution: {integrity: sha512-tWCK4biJ6hcLqTviLXVR9DTRfYGQMXEIUj3gwJ2rZ5wO/at3XtkI4g8mCvFdUF9l1KMBNCfmNAdnahm1cgavQA==} + /headers-polyfill/3.2.0: + resolution: {integrity: sha512-NsYkbrWFQyoPBrbX5riycJ3D4aaB/3fpx1nYgDi3JTTnoeFET3BN0rq2nOB3VUmvpQrYpbKL8zRJo1Jsmmt7nA==} /homedir-polyfill/1.0.3: resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==} @@ -8099,7 +8099,7 @@ packages: '@types/uuid': 8.3.4 debug: 4.3.4 express: 4.18.2 - headers-polyfill: 3.1.2 + headers-polyfill: 3.2.0 memfs: 3.4.13 mustache: 4.2.0 playwright: 1.30.0 diff --git a/test/typings/tsconfig.5.2.json b/test/typings/tsconfig.5.2.json new file mode 100644 index 000000000..3b50d245f --- /dev/null +++ b/test/typings/tsconfig.5.2.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.4.7.json", + "compilerOptions": { + "module": "NodeNext", + "moduleResolution": "NodeNext" + } +}