Skip to content

Commit 7ca2577

Browse files
authored
Add TypeScript 5.7 (#1048)
1 parent 2b9c114 commit 7ca2577

File tree

5 files changed

+30
-24
lines changed

5 files changed

+30
-24
lines changed

.changeset/sharp-cobras-approve.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@definitelytyped/typescript-packages": patch
3+
"@definitelytyped/typescript-versions": patch
4+
---
5+
6+
Add TypeScript 5.7

packages/typescript-packages/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"typescript-5.3": "npm:typescript@~5.3.0-0",
3131
"typescript-5.4": "npm:typescript@~5.4.0-0",
3232
"typescript-5.5": "npm:typescript@~5.5.0-0",
33-
"typescript-5.6": "npm:typescript@~5.6.0-0"
33+
"typescript-5.6": "npm:typescript@~5.6.0-0",
34+
"typescript-5.7": "npm:typescript@~5.7.0-0"
3435
}
3536
}

packages/typescript-versions/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export namespace TypeScriptVersion {
4343
/** Add to this list when a version actually ships. */
4444
export const shipped = ["4.8", "4.9", "5.0", "5.1", "5.2", "5.3", "5.4", "5.5"] as const;
4545
/** Add to this list when a version is available as typescript@next */
46-
export const supported = [...shipped, "5.6"] as const;
46+
export const supported = [...shipped, "5.6", "5.7"] as const;
4747
/** Add to this list when it will no longer be supported on Definitely Typed */
4848
export const unsupported = [
4949
"2.0",

packages/typescript-versions/test/index.test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe("isTypeScriptVersion", () => {
4242

4343
describe("range", () => {
4444
it("works", () => {
45-
expect(TypeScriptVersion.range("4.9")).toEqual(["4.9", "5.0", "5.1", "5.2", "5.3", "5.4", "5.5", "5.6"]);
45+
expect(TypeScriptVersion.range("4.9")).toEqual(["4.9", "5.0", "5.1", "5.2", "5.3", "5.4", "5.5", "5.6", "5.7"]);
4646
});
4747
it("includes 4.8 onwards", () => {
4848
expect(TypeScriptVersion.range("4.8")).toEqual(TypeScriptVersion.supported);
@@ -59,6 +59,7 @@ describe("tagsToUpdate", () => {
5959
"ts5.4",
6060
"ts5.5",
6161
"ts5.6",
62+
"ts5.7",
6263
"latest",
6364
]);
6465
});

pnpm-lock.yaml

+19-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)