Skip to content

Commit c6d6bed

Browse files
chore(deps): update dependency typescript to v5.7.2 (#2616)
* chore(deps): update dependency typescript to v5.7.2 * Fix TS * Fix --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Arda TANRIKULU <[email protected]>
1 parent e5a3910 commit c6d6bed

File tree

11 files changed

+20
-16
lines changed

11 files changed

+20
-16
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
uses: the-guild-org/shared-config/.github/workflows/ci-node-matrix.yml@main
1515
with:
1616
script: yarn test
17-
nodeVersions: '[16,18,21]'
17+
nodeVersions: '[18,20,22]'
1818
lint:
1919
uses: the-guild-org/shared-config/.github/workflows/lint.yml@main
2020
with:

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
with:
1717
npmTag: alpha
1818
buildScript: build
19-
nodeVersion: 16
19+
nodeVersion: 22
2020
secrets:
2121
githubToken: ${{ secrets.GITHUB_TOKEN }}
2222
npmToken: ${{ secrets.NODE_AUTH_TOKEN }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
uses: the-guild-org/shared-config/.github/workflows/release-stable.yml@main
1111
with:
1212
releaseScript: release
13-
nodeVersion: 18
13+
nodeVersion: 22
1414
secrets:
1515
githubToken: ${{ secrets.GITHUB_TOKEN }}
1616
npmToken: ${{ secrets.NODE_AUTH_TOKEN }}

.github/workflows/website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: the-guild-org/shared-config/setup@main
2424
name: setup env
2525
with:
26-
nodeVersion: 18
26+
nodeVersion: 22
2727
packageManager: yarn
2828
workingDirectory: website
2929

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"prettier": "3.4.1",
8686
"semver": "7.6.3",
8787
"ts-jest": "29.2.5",
88-
"typescript": "5.6.3"
88+
"typescript": "5.7.2"
8989
},
9090
"publishConfig": {
9191
"directory": "dist",

src/scalars/Void.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ export const GraphQLVoid = /*#__PURE__*/ new GraphQLScalarType({
99
return '';
1010
},
1111

12-
parseValue() {
12+
parseValue(): null {
1313
return null;
1414
},
1515

16-
parseLiteral() {
16+
parseLiteral(): null {
1717
return null;
1818
},
1919
extensions: {

tests/iso-date/Date.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ describe('GraphQLDate', () => {
8787
};
8888

8989
it(`parses literal ${stringify(literal)} into javascript Date ${stringify(expected)}`, () => {
90+
// @ts-expect-error - intentional invalid input
9091
expect(GraphQLDate.parseLiteral(literal, {})).toEqual(expected);
9192
});
9293
});
@@ -97,6 +98,7 @@ describe('GraphQLDate', () => {
9798
value,
9899
};
99100
it(`errors when parsing invalid literal ${stringify(invalidLiteral)}`, () => {
101+
// @ts-expect-error - intentional invalid input
100102
expect(() => GraphQLDate.parseLiteral(invalidLiteral, {})).toThrowErrorMatchingSnapshot();
101103
});
102104
});

tests/iso-date/DateTime.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ describe('GraphQLDateTime', () => {
128128
};
129129

130130
it(`parses literal ${stringify(literal)} into javascript Date ${stringify(expected)}`, () => {
131+
// @ts-expect-error - intentional invalid input
131132
expect(GraphQLDateTime.parseLiteral(literal, {})).toEqual(expected);
132133
});
133134
});
@@ -139,6 +140,7 @@ describe('GraphQLDateTime', () => {
139140
};
140141
it(`errors when parsing invalid literal ${stringify(invalidLiteral)}`, () => {
141142
expect(() =>
143+
// @ts-expect-error - intentional invalid input
142144
GraphQLDateTime.parseLiteral(invalidLiteral, {}),
143145
).toThrowErrorMatchingSnapshot();
144146
});

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@types/react": "18.3.12",
2222
"cross-env": "7.0.3",
2323
"next-sitemap": "4.2.3",
24-
"typescript": "5.6.3"
24+
"typescript": "5.7.2"
2525
},
2626
"browserslist": {
2727
"production": [

website/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5091,10 +5091,10 @@ twoslash@^0.2.12:
50915091
"@typescript/vfs" "^1.6.0"
50925092
twoslash-protocol "0.2.12"
50935093

5094-
typescript@5.6.3:
5095-
version "5.6.3"
5096-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b"
5097-
integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==
5094+
typescript@5.7.2:
5095+
version "5.7.2"
5096+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6"
5097+
integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==
50985098

50995099
ufo@^1.5.4:
51005100
version "1.5.4"

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5205,10 +5205,10 @@ typed-array-length@^1.0.6:
52055205
possible-typed-array-names "^1.0.0"
52065206
reflect.getprototypeof "^1.0.6"
52075207

5208-
typescript@5.6.3:
5209-
version "5.6.3"
5210-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b"
5211-
integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==
5208+
typescript@5.7.2:
5209+
version "5.7.2"
5210+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6"
5211+
integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==
52125212

52135213
unbox-primitive@^1.0.2:
52145214
version "1.0.2"

0 commit comments

Comments
 (0)