Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency typescript to v5.7.2 #1257

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
94 changes: 68 additions & 26 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x, 22.x]
node-version: ['lts/-2', 'lts/-1', 'lts/*']

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x, 22.x]
node-version: ['lts/-2', 'lts/-1', 'lts/*']

steps:
- uses: actions/checkout@v4
Expand All @@ -71,15 +71,15 @@ jobs:
strategy:
fail-fast: false
matrix:
deno-version: [1.x.x, 2.0.x]
deno-version: ['1.x.x', '2.0.x', '2.1.x']

steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
node-version: lts/*
cache: 'npm'

- name: Use Deno ${{ matrix.deno-version }}
Expand All @@ -106,15 +106,15 @@ jobs:
strategy:
fail-fast: false
matrix:
bun-version: [1.1.26]
bun-version: ['1.1.26']

steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
node-version: lts/*
cache: 'npm'

- name: Install dependencies
Expand All @@ -141,7 +141,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
node-version: lts/*
cache: 'npm'

- name: Install dependencies
Expand All @@ -163,7 +163,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
node-version: lts/*
cache: 'npm'

- name: Install dependencies
Expand All @@ -182,24 +182,45 @@ jobs:
strategy:
fail-fast: false
matrix:
typescript-version: [
^4.6, # 28.2.2022 https://devblogs.microsoft.com/typescript/announcing-typescript-4-6/
^4.7, # 24.5.2022 https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/
^4.8, # 25.8.2022 https://devblogs.microsoft.com/typescript/announcing-typescript-4-8/
^4.9, # 15.11.2022 https://devblogs.microsoft.com/typescript/announcing-typescript-4-9/
^5.0, # 16.3.2023 https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/
^5.2, # 24.8.2023 https://devblogs.microsoft.com/typescript/announcing-typescript-5-1/ https://devblogs.microsoft.com/typescript/announcing-typescript-5-2/
^5.3, # 20.11.2023 https://devblogs.microsoft.com/typescript/announcing-typescript-5-3/
^5.4, # 6.3.2024 https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/
]
versions:
- typescript: '4.7' # 24.5.2022 https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/
node: '18.x'
tsd: '0.22.0'
- typescript: '4.8' # 25.8.2022 https://devblogs.microsoft.com/typescript/announcing-typescript-4-8/
node: '18.x'
tsd: '0.24.1'
- typescript: '4.9' # 15.11.2022 https://devblogs.microsoft.com/typescript/announcing-typescript-4-9/
node: '18.x'
tsd: '0.27.0'
- typescript: '5.0' # 16.3.2023 https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/
node: '18.x'
tsd: '0.28.1'
- typescript: '5.1' # 1.6.2023 https://devblogs.microsoft.com/typescript/announcing-typescript-5-1/
node: '20.x'
tsd: false
- typescript: '5.2' # 24.8.2023 https://devblogs.microsoft.com/typescript/announcing-typescript-5-2/
node: '20.x'
tsd: '0.29.0'
- typescript: '5.3' # 20.11.2023 https://devblogs.microsoft.com/typescript/announcing-typescript-5-3/
node: '20.x'
tsd: '0.30.7'
- typescript: '5.4' # 6.3.2024 https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/
node: '20.x'
tsd: '0.31.2'
- typescript: '5.5' # 20.6.2024 https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/
node: '22.x'
tsd: false
- typescript: '5.6' # 9.9.2024 https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/
node: '22.x'
tsd: false

steps:
- uses: actions/checkout@v4

- name: Use Node.js
- name: Use Node.js (${{ matrix.versions.node }})
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: ${{ matrix.versions.node }}
cache: 'npm'

- name: Install dependencies
Expand All @@ -208,11 +229,32 @@ jobs:
- name: Run build with newer TypeScript
run: npm run build

- name: Install older TypeScript
run: npm i -D typescript@${{ matrix.typescript-version }} tsd@${{ fromJson('{ "^4.6":"0.20.0", "^4.7":"0.22.0", "^4.8":"0.24.1", "^4.9":"0.27.0", "^5.0":"0.28.1", "^5.2":"0.29.0", "^5.3":"0.30.7", "^5.4":"0.31.2" }')[matrix.typescript-version] }}
- name: Run typings tests with older TypeScript
if: ${{ matrix.versions.tsd != false }}
run: |
npm i -D tsd@${{ matrix.versions.tsd }} && npm run test:typings

- name: Build unit tests with older TypeScript
run: npm i -D typescript@${{ matrix.versions.typescript }} && npm run test:node:build

next-typescript-version:
name: Next TypeScript version
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'

- name: Install dependencies
run: npm ci && npm i -D typescript@next @types/node@latest

- name: Run tests with older TypeScript
run: npm run test:typings && npm run test:node:build
- name: Build with next TypeScript
run: npm run build && npm run test:node:build

jsdocs:
name: JSDocs
Expand All @@ -224,13 +266,13 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
node-version: lts/*
cache: 'npm'

- name: Use Deno
uses: denoland/setup-deno@v2
with:
deno-version: 2.0.x
deno-version: 2.1.x

- name: Install dependencies
run: npm ci
Expand Down
29 changes: 16 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"@types/chai-as-promised": "^7.1.8",
"@types/chai-subset": "^1.3.5",
"@types/mocha": "^10.0.7",
"@types/node": "^22.5.0",
"@types/node": "^22.10.1",
"@types/pg": "^8.11.6",
"@types/pg-cursor": "^2.7.2",
"@types/sinon": "^17.0.2",
Expand All @@ -101,6 +101,6 @@
"tarn": "^3.0.2",
"tedious": "^19.0.0",
"tsd": "^0.31.1",
"typescript": "^5.6.3"
"typescript": "^5.7.2"
}
}
16 changes: 8 additions & 8 deletions site/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@docusaurus/tsconfig": "^3.5.2",
"@docusaurus/types": "^3.4.0",
"@types/react": "^18.3.4",
"typescript": "^5.5.4"
"typescript": "^5.7.2"
},
"browserslist": {
"production": [
Expand Down
2 changes: 1 addition & 1 deletion test/bun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
},
"devDependencies": {
"@types/bun": "^1.1.8",
"typescript": "^5.5.4"
"typescript": "^5.7.2"
}
}