[NodeJS] Support 'typesVersions' in node/v6 through node/v9 (#34678)

* Split node/v8 and node/v9

* Split node/v7 and add typesVersions

* Split node/v6 and add typesVersions

* Revert major file split but preserve 'typesVersions' support for v6-v9
This commit is contained in:
Ron Buckton
2019-04-29 16:46:55 -07:00
committed by GitHub
parent 61876df898
commit b1d706c8f5
33 changed files with 37907 additions and 23989 deletions
+4430
View File
File diff suppressed because it is too large Load Diff
+13 -4430
View File
File diff suppressed because it is too large Load Diff
+11
View File
@@ -0,0 +1,11 @@
{
"private": true,
"types": "index",
"typesVersions": {
">=3.2.0-0": {
"*": [
"ts3.2/*"
]
}
}
}
+15
View File
@@ -0,0 +1,15 @@
// NOTE: These definitions support NodeJS and TypeScript 3.2.
// NOTE: TypeScript version-specific augmentations can be found in the following paths:
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
// - ~/index.d.ts - Definitions specific to TypeScript 2.1
// - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2
// Reference required types from the default lib:
/// <reference lib="es2015" />
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
// tslint:disable-next-line:no-bad-reference
/// <reference path="../base.d.ts" />
// TypeScript 3.2-specific augmentations:
File diff suppressed because it is too large Load Diff
+30
View File
@@ -0,0 +1,30 @@
{
"files": [
"index.d.ts",
"node-tests.ts"
],
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"lib": [
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"strictFunctionTypes": true,
"baseUrl": "../../../",
"typeRoots": [
"../../../"
],
"paths": {
"node": [
"node/v6"
]
},
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"extends": "dtslint/dt.json",
"rules": {
"ban-types": false,
"unified-signatures": false,
"no-empty-interface": false,
"no-single-declare-module": false,
"strict-export-declare-modifiers": false // http2 needs this
}
}
+1 -1
View File
@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"lib": [
"es5"
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
+1
View File
@@ -23,6 +23,7 @@
"no-irregular-whitespace": false,
"no-namespace": false,
"no-padding": false,
"no-single-declare-module": false,
"no-string-throw": false,
"no-redundant-jsdoc": false,
"no-redundant-jsdoc-2": false,
+4478
View File
File diff suppressed because it is too large Load Diff
+14 -4476
View File
File diff suppressed because it is too large Load Diff
+11
View File
@@ -0,0 +1,11 @@
{
"private": true,
"types": "index",
"typesVersions": {
">=3.2.0-0": {
"*": [
"ts3.2/*"
]
}
}
}
+15
View File
@@ -0,0 +1,15 @@
// NOTE: These definitions support NodeJS and TypeScript 3.2.
// NOTE: TypeScript version-specific augmentations can be found in the following paths:
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
// - ~/index.d.ts - Definitions specific to TypeScript 2.1
// - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2
// Reference required types from the default lib:
/// <reference lib="es2016" />
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
// tslint:disable-next-line:no-bad-reference
/// <reference path="../base.d.ts" />
// TypeScript 3.2-specific augmentations:
File diff suppressed because it is too large Load Diff
+30
View File
@@ -0,0 +1,30 @@
{
"files": [
"index.d.ts",
"node-tests.ts"
],
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"lib": [
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"strictFunctionTypes": true,
"baseUrl": "../../../",
"typeRoots": [
"../../../"
],
"paths": {
"node": [
"node/v7"
]
},
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"extends": "dtslint/dt.json",
"rules": {
"ban-types": false,
"unified-signatures": false,
"no-empty-interface": false,
"no-single-declare-module": false,
"strict-export-declare-modifiers": false // http2 needs this
}
}
+1
View File
@@ -22,6 +22,7 @@
"no-irregular-whitespace": false,
"no-namespace": false,
"no-padding": false,
"no-single-declare-module": false,
"no-string-throw": false,
"no-redundant-jsdoc": false,
"no-redundant-jsdoc-2": false,
+7328
View File
File diff suppressed because it is too large Load Diff
+17 -7330
View File
File diff suppressed because it is too large Load Diff
+8
View File
@@ -1,3 +1,11 @@
// NOTE: Disabled to preserve existing tests file:
// tslint:disable:no-namespace
// tslint:disable:no-duplicate-variable
// tslint:disable:no-duplicate-imports
// tslint:disable:no-var-keyword
// tslint:disable:no-inferrable-types
// tslint:disable:prefer-const
// tslint:disable:max-line-length
import assert = require("assert");
import * as fs from "fs";
import * as events from "events";
+11
View File
@@ -0,0 +1,11 @@
{
"private": true,
"types": "index",
"typesVersions": {
">=3.2.0-0": {
"*": [
"ts3.2/*"
]
}
}
}
+23
View File
@@ -0,0 +1,23 @@
// NOTE: These definitions support NodeJS and TypeScript 3.2.
// NOTE: TypeScript version-specific augmentations can be found in the following paths:
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
// - ~/index.d.ts - Definitions specific to TypeScript 2.1
// - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2
// Reference required types from the default lib:
/// <reference lib="es2017" />
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
// tslint:disable-next-line:no-bad-reference
/// <reference path="../base.d.ts" />
// TypeScript 3.2-specific augmentations:
declare module "util" {
namespace inspect {
const custom: unique symbol;
}
namespace promisify {
const custom: unique symbol;
}
}
File diff suppressed because it is too large Load Diff
+30
View File
@@ -0,0 +1,30 @@
{
"files": [
"index.d.ts",
"node-tests.ts"
],
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"lib": [
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"strictFunctionTypes": true,
"baseUrl": "../../../",
"typeRoots": [
"../../../"
],
"paths": {
"node": [
"node/v8"
]
},
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"extends": "dtslint/dt.json",
"rules": {
"ban-types": false,
"unified-signatures": false,
"no-empty-interface": false,
"no-single-declare-module": false,
"strict-export-declare-modifiers": false // http2 needs this
}
}
+7751
View File
File diff suppressed because it is too large Load Diff
+17 -7752
View File
File diff suppressed because it is too large Load Diff
+8
View File
@@ -1,3 +1,11 @@
// NOTE: Disabled to preserve existing tests file:
// tslint:disable:no-namespace
// tslint:disable:no-duplicate-variable
// tslint:disable:no-duplicate-imports
// tslint:disable:no-var-keyword
// tslint:disable:no-inferrable-types
// tslint:disable:prefer-const
// tslint:disable:max-line-length
import assert = require("assert");
import * as fs from "fs";
import * as events from "events";
+11
View File
@@ -0,0 +1,11 @@
{
"private": true,
"types": "index",
"typesVersions": {
">=3.2.0-0": {
"*": [
"ts3.2/*"
]
}
}
}
+23
View File
@@ -0,0 +1,23 @@
// NOTE: These definitions support NodeJS and TypeScript 3.2.
// NOTE: TypeScript version-specific augmentations can be found in the following paths:
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
// - ~/index.d.ts - Definitions specific to TypeScript 2.1
// - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2
// Reference required types from the default lib:
/// <reference lib="es2017" />
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
// tslint:disable-next-line:no-bad-reference
/// <reference path="../base.d.ts" />
// TypeScript 3.2-specific augmentations:
declare module "util" {
namespace inspect {
const custom: unique symbol;
}
namespace promisify {
const custom: unique symbol;
}
}
File diff suppressed because it is too large Load Diff
+30
View File
@@ -0,0 +1,30 @@
{
"files": [
"index.d.ts",
"node-tests.ts"
],
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"lib": [
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"strictFunctionTypes": true,
"baseUrl": "../../../",
"typeRoots": [
"../../../"
],
"paths": {
"node": [
"node/v9"
]
},
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"extends": "dtslint/dt.json",
"rules": {
"ban-types": false,
"unified-signatures": false,
"no-empty-interface": false,
"no-single-declare-module": false,
"strict-export-declare-modifiers": false // http2 needs this
}
}