diff --git a/CHANGELOG.md b/CHANGELOG.md index a5b5b1790..239076310 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Change Log +## v0.19.0 + +**Features:** + +* new rule: `no-useless-try-catch` +* `no-useless-predicate`: detect comparing a literal type with itself +* `no-useless-predicate`: detect redundant uses of `key in obj` where `key` is known to always be present in `obj` + +**Bugfixes:** + +* `no-useless-predicate`: treat property access on index signatures as potentially `undefined` +* `no-useless-predicate`: don't report expressions as "always truthy" without `strictNullChecks` +* `no-useless-predicate`: avoid nested finding by reporting only the innermost finding + ## v0.18.0 :warning: **Breaking Changes:** diff --git a/package.json b/package.json index cd0c1a8eb..59ff150b9 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.19.0", + "version": "0.20.0", "private": true, "scripts": { "clean": "rimraf \"{packages/*/{index,{src,language-service}/**/*,test/*.spec},scripts/!(last-travis-nightly)}.{js?(.map),d.ts}\"", @@ -25,8 +25,8 @@ ], "dependencies": { "@fimbul/disir": "^0.18.0", - "@fimbul/valtyr": "^0.18.0", - "@fimbul/wotan": "^0.18.0", + "@fimbul/valtyr": "^0.19.0", + "@fimbul/wotan": "^0.19.0", "@octokit/rest": "^16.0.1", "@types/cross-spawn": "^6.0.0", "@types/github-url-to-object": "^4.0.0", diff --git a/packages/heimdall/package.json b/packages/heimdall/package.json index a746ddb74..3e31f23ae 100644 --- a/packages/heimdall/package.json +++ b/packages/heimdall/package.json @@ -1,6 +1,6 @@ { "name": "@fimbul/heimdall", - "version": "0.18.0", + "version": "0.19.0", "description": "Wotan plugin to load and use TSLint rules and formatters", "main": "src/index", "types": "src/index", @@ -26,7 +26,7 @@ "formatters" ], "peerDependencies": { - "@fimbul/wotan": "^0.18.0" + "@fimbul/wotan": "^0.19.0" }, "dependencies": { "@fimbul/bifrost": "^0.18.0", diff --git a/packages/mimir/package.json b/packages/mimir/package.json index a0bc00f8f..49e803ba6 100644 --- a/packages/mimir/package.json +++ b/packages/mimir/package.json @@ -1,6 +1,6 @@ { "name": "@fimbul/mimir", - "version": "0.18.0", + "version": "0.19.0", "description": "Core rules of the Fimbullinter project", "main": "recommended.yaml", "publishConfig": { diff --git a/packages/valtyr/package.json b/packages/valtyr/package.json index 25f56c083..3c4527af1 100644 --- a/packages/valtyr/package.json +++ b/packages/valtyr/package.json @@ -1,6 +1,6 @@ { "name": "@fimbul/valtyr", - "version": "0.18.0", + "version": "0.19.0", "description": "Wotan plugin to behave almost like TSLint", "author": "Klaus Meinhardt", "license": "Apache-2.0", @@ -30,7 +30,7 @@ "resolve": "^1.5.0" }, "peerDependencies": { - "@fimbul/wotan": "^0.18.0", + "@fimbul/wotan": "^0.19.0", "typescript": ">= 3.0.1 || >= 3.3.0-dev || >= 3.4.0-dev" }, "dependencies": { diff --git a/packages/wotan/package.json b/packages/wotan/package.json index 83237acee..bb6796efc 100644 --- a/packages/wotan/package.json +++ b/packages/wotan/package.json @@ -1,6 +1,6 @@ { "name": "@fimbul/wotan", - "version": "0.18.0", + "version": "0.19.0", "description": "Pluggable TypeScript and JavaScript linter", "bin": "bin/main.js", "publishConfig": { @@ -44,7 +44,7 @@ "rimraf": "^2.6.2" }, "dependencies": { - "@fimbul/mimir": "^0.18.0", + "@fimbul/mimir": "^0.19.0", "@fimbul/ymir": "^0.18.0", "bind-decorator": "^1.0.11", "chalk": "^2.3.0",