1 | # Change Log
|
2 |
|
3 | All notable changes to this project will be documented in this file.
|
4 |
|
5 | The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
6 | and this project adheres to [Semantic Versioning](http://semver.org/).
|
7 |
|
8 | ## [Unreleased]
|
9 |
|
10 | ## [v4.8.0] - 2018-10-07
|
11 |
|
12 | ### Added
|
13 |
|
14 | * New option `ignore-rest-parameters` for the `readonly-array` rule. See [#73](https://github.com/jonaskello/tslint-immutable/issues/73). Thanks to [@aboyton](https://github.com/aboyton) for adding this option! (See PR [#93](https://github.com/jonaskello/tslint-immutable/pull/93))
|
15 |
|
16 | ### Added
|
17 |
|
18 | ## [v4.7.0] - 2018-08-23
|
19 |
|
20 | ### Added
|
21 |
|
22 | * New option `ignore-mutation-following-accessor` for the `no-array-mutation` rule. See [#88](https://github.com/jonaskello/tslint-immutable/issues/88). Thanks to [@RebeccaStevens](https://github.com/RebeccaStevens) for adding this option! (See PR [#89](https://github.com/jonaskello/tslint-immutable/pull/89))
|
23 |
|
24 | * New rules `no-throw` and `no-try`. See [#86](https://github.com/jonaskello/tslint-immutable/issues/86). Thanks to [@RebeccaStevens](https://github.com/RebeccaStevens) for adding these rules! (See PR [#91](https://github.com/jonaskello/tslint-immutable/pull/91))
|
25 |
|
26 | * Option for enabling all the rules with `tslint-immutable/all`. See [#66](https://github.com/jonaskello/tslint-immutable/issues/66). Thanks to [@bakerface](https://github.com/bakerface) for adding this! (See PR [#85](https://github.com/jonaskello/tslint-immutable/pull/85))
|
27 |
|
28 | ## [v4.6.0] - 2018-06-12
|
29 |
|
30 | ### Added
|
31 |
|
32 | * New rule `no-array-mutation`. See [#74](https://github.com/jonaskello/tslint-immutable/issues/74). Thanks to [@RebeccaStevens](https://github.com/RebeccaStevens) for adding this rule! (See PR [#84](https://github.com/jonaskello/tslint-immutable/pull/84))
|
33 |
|
34 | ## [v4.5.4] - 2018-04-17
|
35 |
|
36 | * `no-object-mutation` rule, allow class member mutation in constructor [#79](https://github.com/jonaskello/tslint-immutable/pull/79).
|
37 |
|
38 | * `readonly-keyword` rule, check function params and return type [#80](https://github.com/jonaskello/tslint-immutable/pull/80)
|
39 |
|
40 | ## [v4.5.3] - 2018-03-31
|
41 |
|
42 | ### Fixed
|
43 |
|
44 | * `readonly-array` fixer does not work for arrays with nested template type. See [#24](https://github.com/jonaskello/tslint-immutable/issues/24). Thanks to [@geon](https://github.com/geon) for fixing this longstanding bug! (See PR [#78](https://github.com/jonaskello/tslint-immutable/pull/78))
|
45 |
|
46 | ## [v4.5.2] - 2018-02-27
|
47 |
|
48 | ### Fixed
|
49 |
|
50 | * Ignore await when checking `ignore-prefix` in `no-expression-statement`. See [#76](https://github.com/jonaskello/tslint-immutable/issues/76).
|
51 |
|
52 | * `no-class` does not catch class expressions. See [#65](https://github.com/jonaskello/tslint-immutable/issues/65). Thanks to [@ianbollinger](https://github.com/ianbollinger) for this fix! (See PR [#70](https://github.com/jonaskello/tslint-immutable/pull/70))
|
53 |
|
54 | ## [v4.5.1] - 2018-01-16
|
55 |
|
56 | ### Fixed
|
57 |
|
58 | * `no-mixed-interface` does not understand arrow function notation. See [#62](https://github.com/jonaskello/tslint-immutable/issues/62). Thanks to [@geon](https://github.com/geon) for this fix! (See PR [#63](https://github.com/jonaskello/tslint-immutable/pull/63))
|
59 |
|
60 | ## [v4.5.0] - 2017-12-29
|
61 |
|
62 | ### Added
|
63 |
|
64 | * New options `ignore-interface`, and `ignore-class` for the `readonly-keyword` rule. See [#44](https://github.com/jonaskello/tslint-immutable/issues/44) for background. Thanks to [@aboyton](https://github.com/aboyton) for these options! (See PR [#57](https://github.com/jonaskello/tslint-immutable/pull/57))
|
65 |
|
66 | * The `ignore-prefix` option can be an array for all rules (previously just for `no-expression-statement` and `no-object-mutation`).
|
67 |
|
68 | * New rule `no-delete`. See [readme](https://github.com/jonaskello/tslint-immutable#no-delete) for more info.
|
69 |
|
70 | * New rule `no-if-statement`. See [readme](https://github.com/jonaskello/tslint-immutable#no-if-statement) for more info and [#54](https://github.com/jonaskello/tslint-immutable/issues/54) for discussion.
|
71 |
|
72 | * New rule `no-loop-statement`. See [readme](https://github.com/jonaskello/tslint-immutable#no-loop-statement) for more info and [#54](https://github.com/jonaskello/tslint-immutable/issues/54) for discussion.
|
73 |
|
74 | ### Fixed
|
75 |
|
76 | * `no-mixed-interface` does not understand arrow function notation. See [#60](https://github.com/jonaskello/tslint-immutable/issues/60).
|
77 |
|
78 | ## [v4.4.0] - 2017-09-27
|
79 |
|
80 | ### Added
|
81 |
|
82 | * New option `ignore-prefix` for the `no-object-mutation` rule. See [#43](https://github.com/jonaskello/tslint-immutable/issues/43) for background. Thanks to [@miangraham](https://github.com/miangraham) for this option! (See PR [#53](https://github.com/jonaskello/tslint-immutable/pull/53))
|
83 |
|
84 | ## [v4.3.0] - 2017-09-23
|
85 |
|
86 | ### Fixed
|
87 |
|
88 | * The readonly-keyword rule now properly checks for `readonly` modifier of `class` property declarations. See [#49](https://github.com/jonaskello/tslint-immutable/issues/49) and PR [#50](https://github.com/jonaskello/tslint-immutable/pull/50).
|
89 |
|
90 | ### Added
|
91 |
|
92 | * New rule [no-method-signature](https://github.com/jonaskello/tslint-immutable#no-method-signature). See [#30](https://github.com/jonaskello/tslint-immutable/issues/30) and PR in [#51](https://github.com/jonaskello/tslint-immutable/pull/51).
|
93 | * New options `ignore-local`, and `ignore-prefix` for the `no-let` rule. See [#32](https://github.com/jonaskello/tslint-immutable/issues/32), also requested in [#43](https://github.com/jonaskello/tslint-immutable/issues/43). See PR [#48](https://github.com/jonaskello/tslint-immutable/pull/48).
|
94 | * Added tslint core rule [no-parameter-reassignment](https://palantir.github.io/tslint/rules/no-parameter-reassignment/) as [recommended](https://github.com/jonaskello/tslint-immutable#no-parameter-reassignment) in the README.
|
95 |
|
96 | ## [v4.2.1] - 2017-09-21
|
97 |
|
98 | ### Fixed
|
99 |
|
100 | * The readonly-array rule with ignore-local option does not work within `class`. See [45](https://github.com/jonaskello/tslint-immutable/issues/45).
|
101 |
|
102 | ## [v4.2.0] - 2017-09-14
|
103 |
|
104 | ### Added
|
105 |
|
106 | * New option `ignore-prefix` for the `no-expression-statement` rule. See [#39](https://github.com/jonaskello/tslint-immutable/issues/39) for background. Thanks to [@algesten](https://github.com/algesten) for this option! (See PR [#42](https://github.com/jonaskello/tslint-immutable/pull/42))
|
107 |
|
108 | ## [v4.1.0] - 2017-08-21
|
109 |
|
110 | ### Added
|
111 |
|
112 | * New rule `no-object-mutation`. See [#36](https://github.com/jonaskello/tslint-immutable/issues/36) for background. Thanks to [@miangraham](https://github.com/miangraham) for this rule! (See PR [#37](https://github.com/jonaskello/tslint-immutable/pull/37))
|
113 |
|
114 | ## [v4.0.2] - 2017-07-16
|
115 |
|
116 | ### Added
|
117 |
|
118 | * Added an index.js file to the rules directory in order for rulesDirectory to work. See [#35](https://github.com/jonaskello/tslint-immutable/issues/35).
|
119 |
|
120 | ## [v4.0.1] - 2017-06-06
|
121 |
|
122 | ### Fixed
|
123 |
|
124 | * Invalid default tslint config (it included the removed rules).
|
125 |
|
126 | ## [v4.0.0] - 2017-06-06
|
127 |
|
128 | ### Removed
|
129 |
|
130 | * `readonly-interface` rule. This rule is replaced by the `readonly-keyword` rule.
|
131 | * `readonly-indexer` rule. This rule is replaced by the `readonly-keyword` rule.
|
132 | * `no-new` rule. Please see background in [#2](https://github.com/jonaskello/tslint-immutable/issues/2).
|
133 | * `no-arguments` rule. This rule has been moved to the [tslint-divid](https://www.npmjs.com/package/tslint-divid) package.
|
134 | * `no-label` rule. This rule has been moved to the [tslint-divid](https://www.npmjs.com/package/tslint-divid) package.
|
135 | * `no-semicolon-interface` rule. This rule has been moved to the [tslint-divid](https://www.npmjs.com/package/tslint-divid) package.
|
136 | * `import-containment` rule. This rule has been moved to the [tslint-divid](https://www.npmjs.com/package/tslint-divid) package.
|
137 |
|
138 | ## [v3.4.2] - 2017-05-14
|
139 |
|
140 | ### Added
|
141 |
|
142 | * Notice in readme about deprecrating the `no-new` rule.
|
143 |
|
144 | ### Deprecated
|
145 |
|
146 | * The `no-new` rule. See [#2](https://github.com/jonaskello/tslint-immutable/issues/2) for background.
|
147 |
|
148 | ## [v3.4.1] - 2017-05-14
|
149 |
|
150 | ### Added
|
151 |
|
152 | * Note in readme about moving the "other" rules. The `no-argument`, `no-label`, `no-semicolon-interface`, and `import containtment` rules are moving to [tslint-divid](https://github.com/jonaskello/tslint-divid). See [#19](https://github.com/jonaskello/tslint-immutable/issues/19) for more information.
|
153 |
|
154 | ### Deprecated
|
155 |
|
156 | * The `no-argument`, `no-label`, `no-semicolon-interface`, and `import containtment` rules as noted above.
|
157 |
|
158 | ## [v3.4.0] - 2017-05-14
|
159 |
|
160 | ### Added
|
161 |
|
162 | * New rule `readonly-keyword`, to replace `readonly-interface` and `readonly-indexer` [#31](https://github.com/jonaskello/tslint-immutable/issues/31)
|
163 |
|
164 | ### Deprecated
|
165 |
|
166 | * The `readonly-interface`, and `readonly-indexer` rules are deprecated and will be removed in the next major release. Please use the `readonly-keyword` rule instead.
|
167 |
|
168 | ## [v3.3.2] - 2017-05-13
|
169 |
|
170 | ### Fixed
|
171 |
|
172 | * Functions in interfaces cannot have readonly specified but are still checked [#28](https://github.com/jonaskello/tslint-immutable/issues/28)
|
173 |
|
174 | ## [v3.3.1] - 2017-05-09
|
175 |
|
176 | ### Fixed
|
177 |
|
178 | * patch: fix main file in package.json. Thanks to [@yonbeastie](https://github.com/yonbeastie). (see [#29](https://github.com/jonaskello/tslint-immutable/pull/29))
|
179 |
|
180 | ## [v3.3.0] - 2017-05-09
|
181 |
|
182 | ### Fixed
|
183 |
|
184 | * ignore-local does not work for function assigned to const [#23](https://github.com/jonaskello/tslint-immutable/issues/23)
|
185 |
|
186 | ### Added
|
187 |
|
188 | * Add default tslint json. Thanks to [@yonbeastie](https://github.com/yonbeastie). (see [#26](https://github.com/jonaskello/tslint-immutable/pull/26))
|
189 |
|
190 | ## [v3.2.0] - 2017-04-10
|
191 |
|
192 | ### Fixed
|
193 |
|
194 | * readonly-array does not check shorthand syntax in return types with ignore-local option [#21](https://github.com/jonaskello/tslint-immutable/issues/21)
|
195 |
|
196 | ### Added
|
197 |
|
198 | * Fixer for the `readonly-array` rule.
|
199 |
|
200 | ## [v3.1.2] - 2017-04-09
|
201 |
|
202 | ### Fixed
|
203 |
|
204 | * readonly-array does not check return type when ignore-local is enabled [#16](https://github.com/jonaskello/tslint-immutable/issues/16)
|
205 | * readonly-array does not check shorthand syntax [#20](https://github.com/jonaskello/tslint-immutable/issues/20).
|
206 |
|
207 | ## Changed
|
208 |
|
209 | * Impicit return type is not checked in readonly-array [#18](https://github.com/jonaskello/tslint-immutable/issues/18).
|
210 |
|
211 | ## [v3.1.1] - 2017-04-05
|
212 |
|
213 | ### Fixed
|
214 |
|
215 | * Function parameters are not checked when using ignore-local option, [#13](https://github.com/jonaskello/tslint-immutable/issues/13).
|
216 | * Implicit Array type by default value for function parameter is not checked, [#14](https://github.com/jonaskello/tslint-immutable/issues/14).
|
217 |
|
218 | ## [v3.1.0] - 2017-04-05
|
219 |
|
220 | ### Added
|
221 |
|
222 | * [`ignore-local`](https://github.com/jonaskello/tslint-immutable#using-the-ignore-local-option) option added to `readonly-array`.
|
223 | * [`ignore-prefix`](https://github.com/jonaskello/tslint-immutable#using-the-ignore-local-option) option added to `readonly-array`.
|
224 |
|
225 | ## [v3.0.0] - 2017-04-02
|
226 |
|
227 | ### Changed
|
228 |
|
229 | * Upgraded to tslint 5.0.0
|
230 |
|
231 | ### Added
|
232 |
|
233 | * `readonly-array` now also checks for implicity declared mutable arrays.
|
234 |
|
235 | ## [v2.1.1] - 2017-03-29
|
236 |
|
237 | ### Fixed
|
238 |
|
239 | * Remove vestigial `noMutationRule.js` and `no-mutation` example from README, thanks to [@pmlamotte](https://github.com/pmlamotte). (see [#6](https://github.com/jonaskello/tslint-immutable/pull/6))
|
240 |
|
241 | ## [v2.1.0] - 2016-12-12
|
242 |
|
243 | ### Added
|
244 |
|
245 | * `readonly-indexer` rule.
|
246 |
|
247 | ### Fixed
|
248 |
|
249 | * Fixed a bug in `readonly-interface` rule that made it fail on indexer declarations.
|
250 |
|
251 | ## [v2.0.0] - 2016-12-12
|
252 |
|
253 | ### Added
|
254 |
|
255 | * `readonly-interface` rule.
|
256 | * `readonly-indexer` rule.
|
257 | * `readonly-array` rule.
|
258 | * `no-class` rule.
|
259 | * `no-new` rule.
|
260 | * `no-mixed-interface` rule.
|
261 | * `import-containment` rule.
|
262 | * `no-arguments` rule.
|
263 | * `no-label` rule.
|
264 | * `no-semicolon-interface` rule.
|
265 |
|
266 | ### Removed
|
267 |
|
268 | * `no-mutation` rule (replaced by the `readonly-interface` rule).
|
269 |
|
270 | ## v1.0.0 - 2016-12-10
|
271 |
|
272 | ### Added
|
273 |
|
274 | * `no-expression-statement` rule.
|
275 | * `no-let` rule.
|
276 | * `no-mutation` rule.
|
277 | * `no-this` rule.
|
278 |
|
279 | [unreleased]: https://github.com/jonaskello/tslint-immutable/compare/v4.8.0...master
|
280 | [v4.8.0]: https://github.com/jonaskello/tslint-immutable/compare/v4.7.0...v4.8.0
|
281 | [v4.7.0]: https://github.com/jonaskello/tslint-immutable/compare/v4.6.0...v4.7.0
|
282 | [v4.6.0]: https://github.com/jonaskello/tslint-immutable/compare/v4.5.4...v4.6.0
|
283 | [v4.5.4]: https://github.com/jonaskello/tslint-immutable/compare/v4.5.3...v4.5.4
|
284 | [v4.5.3]: https://github.com/jonaskello/tslint-immutable/compare/v4.5.2...v4.5.3
|
285 | [v4.5.2]: https://github.com/jonaskello/tslint-immutable/compare/v4.5.1...v4.5.2
|
286 | [v4.5.1]: https://github.com/jonaskello/tslint-immutable/compare/v4.5.0...v4.5.1
|
287 | [v4.5.0]: https://github.com/jonaskello/tslint-immutable/compare/v4.4.0...v4.5.0
|
288 | [v4.4.0]: https://github.com/jonaskello/tslint-immutable/compare/v4.3.0...v4.4.0
|
289 | [v4.3.0]: https://github.com/jonaskello/tslint-immutable/compare/v4.2.1...v4.3.0
|
290 | [v4.2.1]: https://github.com/jonaskello/tslint-immutable/compare/v4.2.0...v4.2.1
|
291 | [v4.2.0]: https://github.com/jonaskello/tslint-immutable/compare/v4.1.0...v4.2.0
|
292 | [v4.1.0]: https://github.com/jonaskello/tslint-immutable/compare/v4.0.2...v4.1.0
|
293 | [v4.0.2]: https://github.com/jonaskello/tslint-immutable/compare/v4.0.1...v4.0.2
|
294 | [v4.0.1]: https://github.com/jonaskello/tslint-immutable/compare/v4.0.0...v4.0.1
|
295 | [v4.0.0]: https://github.com/jonaskello/tslint-immutable/compare/v3.4.2...v4.0.0
|
296 | [v3.4.2]: https://github.com/jonaskello/tslint-immutable/compare/v3.4.1...v3.4.2
|
297 | [v3.4.1]: https://github.com/jonaskello/tslint-immutable/compare/v3.4.0...v3.4.1
|
298 | [v3.4.0]: https://github.com/jonaskello/tslint-immutable/compare/v3.3.2...v3.4.0
|
299 | [v3.3.2]: https://github.com/jonaskello/tslint-immutable/compare/v3.3.1...v3.3.2
|
300 | [v3.3.1]: https://github.com/jonaskello/tslint-immutable/compare/v3.3.0...v3.3.1
|
301 | [v3.3.0]: https://github.com/jonaskello/tslint-immutable/compare/v3.2.0...v3.3.0
|
302 | [v3.2.0]: https://github.com/jonaskello/tslint-immutable/compare/v3.1.2...v3.2.0
|
303 | [v3.1.2]: https://github.com/jonaskello/tslint-immutable/compare/v3.1.1...v3.1.2
|
304 | [v3.1.1]: https://github.com/jonaskello/tslint-immutable/compare/v3.1.0...v3.1.1
|
305 | [v3.1.0]: https://github.com/jonaskello/tslint-immutable/compare/v3.0.0...v3.1.0
|
306 | [v3.0.0]: https://github.com/jonaskello/tslint-immutable/compare/v2.1.1...v3.0.0
|
307 | [v2.1.2]: https://github.com/jonaskello/tslint-immutable/compare/v2.1.1...v2.1.2
|
308 | [v2.1.1]: https://github.com/jonaskello/tslint-immutable/compare/v2.1.0...v2.1.1
|
309 | [v2.1.0]: https://github.com/jonaskello/tslint-immutable/compare/v2.0.0...v2.1.0
|
310 | [v2.0.0]: https://github.com/jonaskello/tslint-immutable/compare/v1.0.0...v2.0.0
|