Skip to content

Commit

Permalink
Support TS 5.9 (#1143)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey authored Feb 20, 2025
1 parent 1f6e243 commit 70111bc
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/little-pugs-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@definitelytyped/typescript-packages": patch
"@definitelytyped/typescript-versions": patch
---

Support TS 5.9
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.5": "npm:typescript@~5.5.0-0",
"typescript-5.6": "npm:typescript@~5.6.0-0",
"typescript-5.7": "npm:typescript@~5.7.0-0",
"typescript-5.8": "npm:typescript@~5.8.0-0"
"typescript-5.8": "npm:typescript@~5.8.0-0",
"typescript-5.9": "npm:typescript@~5.9.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 = ["5.0", "5.1", "5.2", "5.3", "5.4", "5.5", "5.6", "5.7"] as const;
/** Add to this list when a version is available as typescript@next */
export const supported = [...shipped, "5.8"] as const;
export const supported = [...shipped, "5.8", "5.9"] 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("5.1")).toEqual(["5.1", "5.2", "5.3", "5.4", "5.5", "5.6", "5.7", "5.8"]);
expect(TypeScriptVersion.range("5.1")).toEqual(["5.1", "5.2", "5.3", "5.4", "5.5", "5.6", "5.7", "5.8", "5.9"]);
});
it("includes 5.0 onwards", () => {
expect(TypeScriptVersion.range("5.0")).toEqual(TypeScriptVersion.supported);
Expand All @@ -60,6 +60,7 @@ describe("tagsToUpdate", () => {
"ts5.6",
"ts5.7",
"ts5.8",
"ts5.9",
"latest",
]);
});
Expand Down
10 changes: 10 additions & 0 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 70111bc

Please sign in to comment.