From 49977b1362518200387457360819201c5f6702cd Mon Sep 17 00:00:00 2001 From: Adi Dahiya Date: Wed, 5 Jul 2017 14:43:17 -0400 Subject: [PATCH] Prepare release v5.5.0 (#2995) --- CHANGELOG.md | 38 ++++++++++++++++++++++++++++++++++++++ package.json | 6 +++--- src/linter.ts | 2 +- yarn.lock | 6 +++--- 4 files changed, 45 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 70606b27269..edc6297a54a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,44 @@ Change Log === +v5.5.0 +--- + +__Editor's note__: This release features an important bugfix for overlapping fixes when using `--project` and `--fix` (#2864). + +## :tada: New rules and options + +- [new-rule-option] [`completed-docs`](https://palantir.github.io/tslint/rules/completed-docs/): Add `enum-members` option (#2911) +- [new-rule] `no-this-reassignment` (#2931) + +## :hammer_and_wrench: Bugfixes & enhancements + +- [bugfix] [`encoding`](https://palantir.github.io/tslint/rules/encoding/) closes files correctly (#2958) +- [bugfix] [`whitespace`](https://palantir.github.io/tslint/rules/whitespace/) fix whitespace `"check-module"` to properly lint and fix errors (#2401) (#2825) +- [bugfix]: [`whitespace`](https://palantir.github.io/tslint/rules/whitespace/): now correctly handles dynamic imports introduced in typescript@2.4.0 (#2924) +- [bugfix] [`switch-final-break`](https://palantir.github.io/tslint/rules/switch-final-break/): don't fail if break jumps to a label outside of the switch (#2914) +- [bugfix] [`no-shadowed-variable`](https://palantir.github.io/tslint/rules/no-shadowed-variable/): exempt `this` parameter (#2598) +- [bugfix] [`prefer-for-of`](https://palantir.github.io/tslint/rules/prefer-for-of/) correctly handles variable scopes and other unrelated identifiers (#2984) +- [bugfix] Don't leave blank lines when [`no-unused-variable`](https://palantir.github.io/tslint/rules/no-unused-variable/) autofix removes whole import (#2901) +- [cli] restore `-v` option (#2926) +- [enhancement] Print stack trace of exceptions (#2890) +- [enhancement] Added allow-empty-catch option to [`no-empty`](https://palantir.github.io/tslint/rules/no-empty/) (#2886) +- [enhancement] [`prefer-const`](https://palantir.github.io/tslint/rules/prefer-const/): handle destructuring in for-of loop initializer as if `{"destructuring": "all"}` was specified (#2904) +- [enhancement] [`no-shadowed-variable`](https://palantir.github.io/tslint/rules/no-shadowed-variable/): added checks for other shadowing declarations, e.g. interfaces, classes, type parameters, imports, etc. (#2598) +- [rule-change] [`no-shadowed-variable`](https://palantir.github.io/tslint/rules/no-shadowed-variable/) no longer fails for declarations in the same scope, e.g. `var foo; var foo;`. Use the rule [`no-duplicate-variable`](https://palantir.github.io/tslint/rules/no-duplicate-variable/) to find such errors. (#2598) + +Thanks to our contributors! + +- Klaus Meinhardt +- Josh Goldberg +- Petr Kosikhin +- Pablo Núñez +- Benny Neugebauer +- Radon Rosborough +- reduckted +- Chris Barr +- Julian Verdurmen + v5.4.3 --- diff --git a/package.json b/package.json index c71479a7cac..6600a6ee350 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tslint", - "version": "5.4.3", + "version": "5.5.0", "description": "An extensible static analysis linter for the TypeScript language", "bin": { "tslint": "./bin/tslint" @@ -48,7 +48,7 @@ "tsutils": "^2.5.1" }, "peerDependencies": { - "typescript": ">=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev" + "typescript": ">=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev" }, "devDependencies": { "@types/babel-code-frame": "^6.20.0", @@ -73,7 +73,7 @@ "rimraf": "^2.5.4", "tslint": "^5.4.2", "tslint-test-config-non-relative": "file:test/external/tslint-test-config-non-relative", - "typescript": "2.4.0" + "typescript": "2.4.1" }, "license": "Apache-2.0", "engines": { diff --git a/src/linter.ts b/src/linter.ts index 54894d7c3db..9be0775eeb2 100644 --- a/src/linter.ts +++ b/src/linter.ts @@ -43,7 +43,7 @@ import { arrayify, dedent, flatMap } from "./utils"; * Linter that can lint multiple files in consecutive runs. */ class Linter { - public static VERSION = "5.4.3"; + public static VERSION = "5.5.0"; public static findConfiguration = findConfiguration; public static findConfigurationPath = findConfigurationPath; diff --git a/yarn.lock b/yarn.lock index 19d45ef988a..db7a8b15827 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1506,9 +1506,9 @@ type-detect@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-1.0.0.tgz#762217cc06db258ec48908a1298e8b95121e8ea2" -typescript@2.4.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.4.0.tgz#aef5a8d404beba36ad339abf079ddddfffba86dd" +typescript@2.4.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.4.1.tgz#c3ccb16ddaa0b2314de031e7e6fee89e5ba346bc" uglify-js@^2.6: version "2.8.28"