Skip to content

Commit

Permalink
test: disable typeScript-compatibility for older than 3.4.x
Browse files Browse the repository at this point in the history
It is not the responsibility of Zeromq to be buildable on old TypeScript or fullfil technical debts that TypeScript doesn't comply to.
  • Loading branch information
aminya committed Apr 15, 2021
1 parent c858506 commit be3eff2
Showing 1 changed file with 5 additions and 33 deletions.
38 changes: 5 additions & 33 deletions test/unit/typings-compatibility-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,42 +23,14 @@ type TestDef = {version: string; minTarget: string; requiredLibs?: string[]}

// NOTE tsc version 2.9.x (and lower) will not work with current typings!
const tsVersions: TestDef[] = [
// typescript 3.0.x - 3.4.x:
// typescript 3.0.x - 3.3.x:
// must either have a target that supports AsyncIterators,
// or include a typings library that supports AsyncIterator
{
version: "3.0.x",
minTarget: "es3",
requiredLibs: ["es2015", "ESNext.AsyncIterable"],
},
{
version: "3.1.x",
minTarget: "es3",
requiredLibs: ["es2015", "ESNext.AsyncIterable"],
},
{
version: "3.2.x",
minTarget: "es3",
requiredLibs: ["es2015", "ESNext.AsyncIterable"],
},
{
version: "3.3.x",
minTarget: "es3",
requiredLibs: ["es2015", "ESNext.AsyncIterable"],
},
{
version: "3.4.x",
minTarget: "es3",
requiredLibs: ["es2015", "ESNext.AsyncIterable"],
},
{version: "3.0.x", minTarget: "esnext"},
{version: "3.1.x", minTarget: "esnext"},
{version: "3.2.x", minTarget: "esnext"},
{version: "3.3.x", minTarget: "esnext"},
{version: "3.4.x", minTarget: "esnext"},

// typescript 3.5.x - 3.7.x:
// TODO might support older TypeScript

// typescript 3.4.x - 3.7.x:
// these include typings for AsyncIterator by default
{version: "3.4.x", minTarget: "es3"},
{version: "3.5.x", minTarget: "es3"},
{version: "3.6.x", minTarget: "es3"},
{version: "3.7.x", minTarget: "es3"},
Expand Down

0 comments on commit be3eff2

Please sign in to comment.