Skip to content

Commit

Permalink
Add TypeScript 5.7 (#1048)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey authored Aug 22, 2024
1 parent 2b9c114 commit 7ca2577
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 24 deletions.
6 changes: 6 additions & 0 deletions .changeset/sharp-cobras-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@definitelytyped/typescript-packages": patch
"@definitelytyped/typescript-versions": patch
---

Add TypeScript 5.7
3 changes: 2 additions & 1 deletion packages/typescript-packages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"typescript-5.3": "npm:typescript@~5.3.0-0",
"typescript-5.4": "npm:typescript@~5.4.0-0",
"typescript-5.5": "npm:typescript@~5.5.0-0",
"typescript-5.6": "npm:typescript@~5.6.0-0"
"typescript-5.6": "npm:typescript@~5.6.0-0",
"typescript-5.7": "npm:typescript@~5.7.0-0"
}
}
2 changes: 1 addition & 1 deletion packages/typescript-versions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export namespace TypeScriptVersion {
/** Add to this list when a version actually ships. */
export const shipped = ["4.8", "4.9", "5.0", "5.1", "5.2", "5.3", "5.4", "5.5"] as const;
/** Add to this list when a version is available as typescript@next */
export const supported = [...shipped, "5.6"] as const;
export const supported = [...shipped, "5.6", "5.7"] as const;
/** Add to this list when it will no longer be supported on Definitely Typed */
export const unsupported = [
"2.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/typescript-versions/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe("isTypeScriptVersion", () => {

describe("range", () => {
it("works", () => {
expect(TypeScriptVersion.range("4.9")).toEqual(["4.9", "5.0", "5.1", "5.2", "5.3", "5.4", "5.5", "5.6"]);
expect(TypeScriptVersion.range("4.9")).toEqual(["4.9", "5.0", "5.1", "5.2", "5.3", "5.4", "5.5", "5.6", "5.7"]);
});
it("includes 4.8 onwards", () => {
expect(TypeScriptVersion.range("4.8")).toEqual(TypeScriptVersion.supported);
Expand All @@ -59,6 +59,7 @@ describe("tagsToUpdate", () => {
"ts5.4",
"ts5.5",
"ts5.6",
"ts5.7",
"latest",
]);
});
Expand Down
40 changes: 19 additions & 21 deletions pnpm-lock.yaml

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

0 comments on commit 7ca2577

Please sign in to comment.