diff --git a/index.ts b/index.ts index 0eb895c..47f77d5 100644 --- a/index.ts +++ b/index.ts @@ -19,12 +19,12 @@ export type UnsupportedTypeScriptVersion = */ export type TypeScriptVersion = | "2.8" | "2.9" - | "3.0" | "3.1" | "3.2" | "3.3" | "3.4" | "3.5" | "3.6" | "3.7" | "3.8"; + | "3.0" | "3.1" | "3.2" | "3.3" | "3.4" | "3.5" | "3.6" | "3.7" | "3.8" | "3.9"; export type AllTypeScriptVersion = UnsupportedTypeScriptVersion | TypeScriptVersion; export namespace TypeScriptVersion { export const supported: readonly TypeScriptVersion[] = ["2.8", "2.9", - "3.0", "3.1", "3.2", "3.3", "3.4", "3.5", "3.6", "3.7", "3.8"]; + "3.0", "3.1", "3.2", "3.3", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9"]; export const unsupported: readonly UnsupportedTypeScriptVersion[] = ["2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7"]; export const all: readonly AllTypeScriptVersion[] = [...unsupported, ...supported]; @@ -57,6 +57,7 @@ export namespace TypeScriptVersion { "ts3.6", "ts3.7", "ts3.8", + "ts3.9", "latest", ]; diff --git a/test/test.ts b/test/test.ts index c921358..0d0f334 100644 --- a/test/test.ts +++ b/test/test.ts @@ -116,7 +116,7 @@ describe("isSupported", () => { describe("range", () => { it("works", () => { - assert.deepEqual(TypeScriptVersion.range("3.5"), ["3.5", "3.6", "3.7", "3.8"]); + assert.deepEqual(TypeScriptVersion.range("3.5"), ["3.5", "3.6", "3.7", "3.8", "3.9"]); }); it("includes 2.8 onwards", () => { assert.deepEqual(TypeScriptVersion.range("2.8"), TypeScriptVersion.supported); @@ -127,7 +127,7 @@ describe("tagsToUpdate", () => { it("works", () => { assert.deepEqual( TypeScriptVersion.tagsToUpdate("3.0"), - ["ts3.0", "ts3.1", "ts3.2", "ts3.3", "ts3.4", "ts3.5", "ts3.6", "ts3.7", "ts3.8", "latest"]); + ["ts3.0", "ts3.1", "ts3.2", "ts3.3", "ts3.4", "ts3.5", "ts3.6", "ts3.7", "ts3.8", "ts3.9", "latest"]); }); it("allows 2.8 onwards", () => { assert.deepEqual(