typescript-eslint-parser
Advanced tools
Comparing version 7.0.0 to 8.0.0
@@ -0,1 +1,6 @@ | ||
v8.0.0 - September 5, 2017 | ||
* 9877e98 Breaking: Support TypeScript 2.5 (fixes #368) (#369) (#370) (James Henry) | ||
* 5b49870 Fix: Location data for typeAnnotations (#378) (James Henry) | ||
v7.0.0 - August 22, 2017 | ||
@@ -2,0 +7,0 @@ |
@@ -127,2 +127,3 @@ /** | ||
TSNonNullExpression: "TSNonNullExpression", | ||
TSNeverKeyword: "TSNeverKeyword", | ||
TSNullKeyword: "TSNullKeyword", | ||
@@ -129,0 +130,0 @@ TSNumberKeyword: "TSNumberKeyword", |
@@ -173,2 +173,3 @@ /** | ||
findNextToken, | ||
findFirstMatchingToken, | ||
findChildOfKind, | ||
@@ -418,2 +419,19 @@ findFirstMatchingAncestor, | ||
/** | ||
* Find the first matching token based on the given predicate function. | ||
* @param {TSToken} previousToken The previous TSToken | ||
* @param {TSNode} parent The parent TSNode | ||
* @param {Function} predicate The predicate function to apply to each checked token | ||
* @returns {TSToken|undefined} a matching TSToken | ||
*/ | ||
function findFirstMatchingToken(previousToken, parent, predicate) { | ||
while (previousToken) { | ||
if (predicate(previousToken)) { | ||
return previousToken; | ||
} | ||
previousToken = findNextToken(previousToken, parent); | ||
} | ||
return undefined; | ||
} | ||
/** | ||
* Finds the first child TSNode which matches the given kind | ||
@@ -420,0 +438,0 @@ * @param {TSNode} node The parent TSNode |
@@ -7,3 +7,3 @@ { | ||
"main": "parser.js", | ||
"version": "7.0.0", | ||
"version": "8.0.0", | ||
"files": [ | ||
@@ -22,15 +22,15 @@ "lib", | ||
"devDependencies": { | ||
"babel-code-frame": "^6.22.0", | ||
"babylon": "^7.0.0-beta.20", | ||
"eslint": "3.19.0", | ||
"babel-code-frame": "^6.26.0", | ||
"babylon": "^7.0.0-beta.22", | ||
"eslint": "4.6.1", | ||
"eslint-config-eslint": "4.0.0", | ||
"eslint-plugin-node": "4.2.2", | ||
"eslint-plugin-node": "5.1.1", | ||
"eslint-release": "0.10.3", | ||
"glob": "^7.1.2", | ||
"jest": "20.0.4", | ||
"jest": "21.0.1", | ||
"lodash.isplainobject": "^4.0.6", | ||
"npm-license": "0.3.3", | ||
"shelljs": "0.7.7", | ||
"shelljs": "0.7.8", | ||
"shelljs-nodecli": "0.1.1", | ||
"typescript": "~2.4.0" | ||
"typescript": "~2.5.1" | ||
}, | ||
@@ -59,3 +59,3 @@ "keywords": [ | ||
"lodash.unescape": "4.0.1", | ||
"semver": "5.3.0" | ||
"semver": "5.4.1" | ||
}, | ||
@@ -62,0 +62,0 @@ "peerDependencies": { |
@@ -11,3 +11,3 @@ # TypeScript ESLint Parser (Experimental) | ||
The version of TypeScript currently supported by this parser is `~2.4.0`. This is reflected in the `devDependency` requirement within the package.json file, and it is what the tests will be run against. We have an open `peerDependency` requirement in order to allow for experimentation on newer/beta versions of TypeScript. | ||
The version of TypeScript currently supported by this parser is `~2.5.1`. This is reflected in the `devDependency` requirement within the package.json file, and it is what the tests will be run against. We have an open `peerDependency` requirement in order to allow for experimentation on newer/beta versions of TypeScript. | ||
@@ -14,0 +14,0 @@ If you use a non-supported version of TypeScript, the parser will log a warning to the console. |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
144023
3001
+ Addedsemver@5.4.1(transitive)
- Removedsemver@5.3.0(transitive)
Updatedsemver@5.4.1