@typescript-eslint/typescript-estree 8.15.1-alpha.7 → 8.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,7 @@
|
|
1
1
|
import type { ParseSettings } from './index';
|
2
|
+
/**
|
3
|
+
* This needs to be kept in sync with package.json in the typescript-eslint monorepo
|
4
|
+
*/
|
5
|
+
export declare const SUPPORTED_TYPESCRIPT_VERSIONS = ">=4.8.4 <5.8.0";
|
2
6
|
export declare function warnAboutTSVersion(parseSettings: ParseSettings, passedLoggerFn: boolean): void;
|
3
7
|
//# sourceMappingURL=warnAboutTSVersion.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"warnAboutTSVersion.d.ts","sourceRoot":"","sources":["../../src/parseSettings/warnAboutTSVersion.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"warnAboutTSVersion.d.ts","sourceRoot":"","sources":["../../src/parseSettings/warnAboutTSVersion.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,6BAA6B,mBAAmB,CAAC;AAe9D,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,OAAO,GACtB,IAAI,CA0BN"}
|
@@ -36,20 +36,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
37
37
|
};
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
39
|
+
exports.SUPPORTED_TYPESCRIPT_VERSIONS = void 0;
|
39
40
|
exports.warnAboutTSVersion = warnAboutTSVersion;
|
40
41
|
const semver_1 = __importDefault(require("semver"));
|
41
42
|
const ts = __importStar(require("typescript"));
|
42
43
|
/**
|
43
44
|
* This needs to be kept in sync with package.json in the typescript-eslint monorepo
|
44
45
|
*/
|
45
|
-
|
46
|
+
exports.SUPPORTED_TYPESCRIPT_VERSIONS = '>=4.8.4 <5.8.0';
|
46
47
|
/*
|
47
48
|
* The semver package will ignore prerelease ranges, and we don't want to explicitly document every one
|
48
49
|
* List them all separately here, so we can automatically create the full string
|
49
50
|
*/
|
50
51
|
const SUPPORTED_PRERELEASE_RANGES = [];
|
51
52
|
const ACTIVE_TYPESCRIPT_VERSION = ts.version;
|
52
|
-
const isRunningSupportedTypeScriptVersion = semver_1.default.satisfies(ACTIVE_TYPESCRIPT_VERSION, [SUPPORTED_TYPESCRIPT_VERSIONS, ...SUPPORTED_PRERELEASE_RANGES].join(' || '));
|
53
|
+
const isRunningSupportedTypeScriptVersion = semver_1.default.satisfies(ACTIVE_TYPESCRIPT_VERSION, [exports.SUPPORTED_TYPESCRIPT_VERSIONS, ...SUPPORTED_PRERELEASE_RANGES].join(' || '));
|
53
54
|
let warnedAboutTSVersion = false;
|
54
55
|
function warnAboutTSVersion(parseSettings, passedLoggerFn) {
|
55
56
|
if (isRunningSupportedTypeScriptVersion || warnedAboutTSVersion) {
|
@@ -64,7 +65,7 @@ function warnAboutTSVersion(parseSettings, passedLoggerFn) {
|
|
64
65
|
border,
|
65
66
|
'WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.',
|
66
67
|
'You may find that it works just fine, or you may not.',
|
67
|
-
`SUPPORTED TYPESCRIPT VERSIONS: ${SUPPORTED_TYPESCRIPT_VERSIONS}`,
|
68
|
+
`SUPPORTED TYPESCRIPT VERSIONS: ${exports.SUPPORTED_TYPESCRIPT_VERSIONS}`,
|
68
69
|
`YOUR TYPESCRIPT VERSION: ${ACTIVE_TYPESCRIPT_VERSION}`,
|
69
70
|
'Please only submit bug reports when using the officially supported version.',
|
70
71
|
border,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"warnAboutTSVersion.js","sourceRoot":"","sources":["../../src/parseSettings/warnAboutTSVersion.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"warnAboutTSVersion.js","sourceRoot":"","sources":["../../src/parseSettings/warnAboutTSVersion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,gDA6BC;AApDD,oDAA4B;AAC5B,+CAAiC;AAIjC;;GAEG;AACU,QAAA,6BAA6B,GAAG,gBAAgB,CAAC;AAE9D;;;GAGG;AACH,MAAM,2BAA2B,GAAa,EAAE,CAAC;AACjD,MAAM,yBAAyB,GAAG,EAAE,CAAC,OAAO,CAAC;AAC7C,MAAM,mCAAmC,GAAG,gBAAM,CAAC,SAAS,CAC1D,yBAAyB,EACzB,CAAC,qCAA6B,EAAE,GAAG,2BAA2B,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAC7E,CAAC;AAEF,IAAI,oBAAoB,GAAG,KAAK,CAAC;AAEjC,SAAgB,kBAAkB,CAChC,aAA4B,EAC5B,cAAuB;IAEvB,IAAI,mCAAmC,IAAI,oBAAoB,EAAE,CAAC;QAChE,OAAO;IACT,CAAC;IAED,IACE,cAAc;QACd,yEAAyE;QACzE,uEAAuE;QACvE,CAAC,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,EAChE,CAAC;QACD,MAAM,MAAM,GAAG,eAAe,CAAC;QAC/B,MAAM,cAAc,GAAG;YACrB,MAAM;YACN,uIAAuI;YACvI,uDAAuD;YACvD,kCAAkC,qCAA6B,EAAE;YACjE,4BAA4B,yBAAyB,EAAE;YACvD,6EAA6E;YAC7E,MAAM;SACP,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAEf,aAAa,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACpC,CAAC;IAED,oBAAoB,GAAG,IAAI,CAAC;AAC9B,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@typescript-eslint/typescript-estree",
|
3
|
-
"version": "8.
|
3
|
+
"version": "8.16.0",
|
4
4
|
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
5
5
|
"files": [
|
6
6
|
"dist",
|
@@ -54,8 +54,8 @@
|
|
54
54
|
"typecheck": "tsc --noEmit"
|
55
55
|
},
|
56
56
|
"dependencies": {
|
57
|
-
"@typescript-eslint/types": "8.
|
58
|
-
"@typescript-eslint/visitor-keys": "8.
|
57
|
+
"@typescript-eslint/types": "8.16.0",
|
58
|
+
"@typescript-eslint/visitor-keys": "8.16.0",
|
59
59
|
"debug": "^4.3.4",
|
60
60
|
"fast-glob": "^3.3.2",
|
61
61
|
"is-glob": "^4.0.3",
|