Skip to content

Commit

Permalink
chore(deps): update dependency typescript to v5.7.2 (#2616)
Browse files Browse the repository at this point in the history
* 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 <ardatanrikulu@gmail.com>
  • Loading branch information
renovate[bot] and ardatan authored Nov 28, 2024
1 parent e5a3910 commit c6d6bed
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: the-guild-org/shared-config/.github/workflows/ci-node-matrix.yml@main
with:
script: yarn test
nodeVersions: '[16,18,21]'
nodeVersions: '[18,20,22]'
lint:
uses: the-guild-org/shared-config/.github/workflows/lint.yml@main
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
npmTag: alpha
buildScript: build
nodeVersion: 16
nodeVersion: 22
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NODE_AUTH_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
uses: the-guild-org/shared-config/.github/workflows/release-stable.yml@main
with:
releaseScript: release
nodeVersion: 18
nodeVersion: 22
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NODE_AUTH_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: the-guild-org/shared-config/setup@main
name: setup env
with:
nodeVersion: 18
nodeVersion: 22
packageManager: yarn
workingDirectory: website

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"prettier": "3.4.1",
"semver": "7.6.3",
"ts-jest": "29.2.5",
"typescript": "5.6.3"
"typescript": "5.7.2"
},
"publishConfig": {
"directory": "dist",
Expand Down
4 changes: 2 additions & 2 deletions src/scalars/Void.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export const GraphQLVoid = /*#__PURE__*/ new GraphQLScalarType({
return '';
},

parseValue() {
parseValue(): null {
return null;
},

parseLiteral() {
parseLiteral(): null {
return null;
},
extensions: {
Expand Down
2 changes: 2 additions & 0 deletions tests/iso-date/Date.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ describe('GraphQLDate', () => {
};

it(`parses literal ${stringify(literal)} into javascript Date ${stringify(expected)}`, () => {
// @ts-expect-error - intentional invalid input
expect(GraphQLDate.parseLiteral(literal, {})).toEqual(expected);
});
});
Expand All @@ -97,6 +98,7 @@ describe('GraphQLDate', () => {
value,
};
it(`errors when parsing invalid literal ${stringify(invalidLiteral)}`, () => {
// @ts-expect-error - intentional invalid input
expect(() => GraphQLDate.parseLiteral(invalidLiteral, {})).toThrowErrorMatchingSnapshot();
});
});
Expand Down
2 changes: 2 additions & 0 deletions tests/iso-date/DateTime.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ describe('GraphQLDateTime', () => {
};

it(`parses literal ${stringify(literal)} into javascript Date ${stringify(expected)}`, () => {
// @ts-expect-error - intentional invalid input
expect(GraphQLDateTime.parseLiteral(literal, {})).toEqual(expected);
});
});
Expand All @@ -139,6 +140,7 @@ describe('GraphQLDateTime', () => {
};
it(`errors when parsing invalid literal ${stringify(invalidLiteral)}`, () => {
expect(() =>
// @ts-expect-error - intentional invalid input
GraphQLDateTime.parseLiteral(invalidLiteral, {}),
).toThrowErrorMatchingSnapshot();
});
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@types/react": "18.3.12",
"cross-env": "7.0.3",
"next-sitemap": "4.2.3",
"typescript": "5.6.3"
"typescript": "5.7.2"
},
"browserslist": {
"production": [
Expand Down
8 changes: 4 additions & 4 deletions website/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5091,10 +5091,10 @@ twoslash@^0.2.12:
"@typescript/vfs" "^1.6.0"
twoslash-protocol "0.2.12"

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

ufo@^1.5.4:
version "1.5.4"
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5205,10 +5205,10 @@ typed-array-length@^1.0.6:
possible-typed-array-names "^1.0.0"
reflect.getprototypeof "^1.0.6"

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

unbox-primitive@^1.0.2:
version "1.0.2"
Expand Down

0 comments on commit c6d6bed

Please sign in to comment.