Now that 5.1 RC is out and the Typescript main branch is on 5.2
This commit is contained in:
Nathan Shively-Sanders
2023-05-16 10:31:08 -07:00
committed by GitHub
parent 7b3a434277
commit 27c14146bd
2 changed files with 4 additions and 4 deletions

View File

@@ -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);
@@ -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(

View File

@@ -56,7 +56,7 @@ 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;
@@ -64,7 +64,7 @@ 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",