Skip to content

Commit

Permalink
Add 5.2 (#676)
Browse files Browse the repository at this point in the history
Now that 5.1 RC is out and the Typescript main branch is on 5.2
  • Loading branch information
sandersn committed May 16, 2023
1 parent 7b3a434 commit 27c1414
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/header-parser/test/index.test.ts
Expand Up @@ -169,7 +169,7 @@ describe("isTypeScriptVersion", () => {

describe("range", () => {
it("works", () => {
expect(TypeScriptVersion.range("4.7")).toEqual(["4.7", "4.8", "4.9", "5.0", "5.1"]);
expect(TypeScriptVersion.range("4.7")).toEqual(["4.7", "4.8", "4.9", "5.0", "5.1", "5.2"]);
});
it("includes 4.3 onwards", () => {
expect(TypeScriptVersion.range("4.3")).toEqual(TypeScriptVersion.supported);
Expand All @@ -178,7 +178,7 @@ describe("range", () => {

describe("tagsToUpdate", () => {
it("works", () => {
expect(TypeScriptVersion.tagsToUpdate("5.0")).toEqual(["ts5.0", "ts5.1", "latest"]);
expect(TypeScriptVersion.tagsToUpdate("5.0")).toEqual(["ts5.0", "ts5.1", "ts5.2", "latest"]);
});
it("allows 4.2 onwards", () => {
expect(TypeScriptVersion.tagsToUpdate("4.3")).toEqual(
Expand Down
4 changes: 2 additions & 2 deletions packages/typescript-versions/src/index.ts
Expand Up @@ -56,15 +56,15 @@ export type UnsupportedTypeScriptVersion =
* Parseable and supported TypeScript versions.
* Only add to this list if we will support this version on Definitely Typed.
*/
export type TypeScriptVersion = "4.3" | "4.4" | "4.5" | "4.6" | "4.7" | "4.8" | "4.9" | "5.0" | "5.1";
export type TypeScriptVersion = "4.3" | "4.4" | "4.5" | "4.6" | "4.7" | "4.8" | "4.9" | "5.0" | "5.1" | "5.2";

export type AllTypeScriptVersion = UnsupportedTypeScriptVersion | TypeScriptVersion;

export namespace TypeScriptVersion {
/** Add to this list when a version actually ships. */
export const shipped: readonly TypeScriptVersion[] = ["4.3", "4.4", "4.5", "4.6", "4.7", "4.8", "4.9", "5.0"];
/** Add to this list when a version is available as typescript@next */
export const supported: readonly TypeScriptVersion[] = [...shipped, "5.1"];
export const supported: readonly TypeScriptVersion[] = [...shipped, "5.1", "5.2"];
/** Add to this list when it will no longer be supported on Definitely Typed */
export const unsupported: readonly UnsupportedTypeScriptVersion[] = [
"2.0",
Expand Down

0 comments on commit 27c1414

Please sign in to comment.