Add 3.9 (#31)
This commit is contained in:
Родитель
808e8a32f4
Коммит
2408ef6cb2
5
index.ts
5
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",
|
||||
];
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
Загрузка…
Ссылка в новой задаче