prettier 1.3.0 → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 657db7d1eef6e33d72337eb6b666678675c9eced4cc19716466b4bd74c039cfc
4
- data.tar.gz: d69ffa4e3b2b48146c112a9ceb0d4ddab3351119c1bb2b9d92848f7beb3f40e4
3
+ metadata.gz: 1247c9f95d56f0bd5171d119a1376dc155670f372dcf2d09d8c082f35d89903a
4
+ data.tar.gz: f85697402fa353f3355312e70b267b4e53b9edf9540fa2ace6ea31dbe84ddacb
5
5
  SHA512:
6
- metadata.gz: d7c4d27daddee1e5d07393c5358e48a419c75a6e1aff62b36779d093f16f3da613c938b98c188752c93835e66ddd9578ebf6595fcde1a1f69f40f2613b492ddd
7
- data.tar.gz: c586e33dcd0057779689df71ab68d8858aac27c9e89cf2f500edd2b55779b26693cf6756815cc616054c364b6bc4e1adff05263036f74025425218c04676969c
6
+ metadata.gz: dd77c84b3f038ff3026814fd347602588d0bc5170c756873adb4dee7630aed45305f0e9353718e006b41eca8b10798a383e804a4f77993635e74a34b699a5522
7
+ data.tar.gz: 6836a386fccfbc80916b2abe99f23d4a44e1c52f859f7aaed7d8a3f8b27c104a3222c547860e09f198f4310988666e6f205751c1ae5f6afaed0950968338d459
data/CHANGELOG.md CHANGED
@@ -6,125 +6,175 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.5.3] - 2021-02-28
10
+
11
+ ### Changed
12
+
13
+ - [#812](https://github.com/prettier/plugin-ruby/issues/812) - valscion, kddeisz - Splats and blocks within args that have comments attached should place their respective operators in the right place.
14
+ - [#816](https://github.com/prettier/plugin-ruby/pull/816) - valscion - Document RuboCop's Style/Lambda should be disabled
15
+ - [#814](https://github.com/prettier/plugin-ruby/issues/814) - jscheid, kddeisz - Provide better errors when the source location of the error is known.
16
+
17
+ ## [1.5.2] - 2021-02-03
18
+
19
+ ### Changed
20
+
21
+ - kddeisz - Fix up `binary` node comparison operators so that it will handle either Symbol literals or the `@op` nodes which are incorrectly coming from JRuby (https://github.com/jruby/jruby/issues/6548).
22
+
23
+ ## [1.5.1] - 2021-01-27
24
+
25
+ ### Changed
26
+
27
+ - [#799](https://github.com/prettier/plugin-ruby/issues/799) - jscheid, kddeisz - Multi-byte characters shouldn't give invalid source string bounds.
28
+ - [#801](https://github.com/prettier/plugin-ruby/issues/801) - jscheid, kddeisz - When converting a conditional to the modifier form, make sure to add parentheses if there is a chained method call.
29
+ - [#803](https://github.com/prettier/plugin-ruby/issues/803) - jscheid, kddeisz - Fix `formatWithCursor` support to match new parser format.
30
+
31
+ ## [1.5.0] - 2021-01-21
32
+
33
+ ### Added
34
+
35
+ - kddeisz - Add `.rbi` as a file type that we support.
36
+
37
+ ### Changed
38
+
39
+ - [#795](https://github.com/prettier/plugin-ruby/issues/795) djrodgerspryor, kddeisz - Trailing comments attached to empty arrays should not multiply.
40
+ - [#794](https://github.com/prettier/plugin-ruby/issues/794) djrodgerspryor, kddeisz - Fix embedded parser parsing by stripping common leading whitespace before passing on the content.
41
+ - [#793](https://github.com/prettier/plugin-ruby/issues/793) djrodgerspryor, kddeisz - Do not include trailing commas on arguments within `arg_paren` nodes if they could not be parsed with them (`command` and `command_call`).
42
+ - [#788](https://github.com/prettier/plugin-ruby/issues/788) clarkdave, kddeisz - Break child hashes within a multi-line hash regardless of whether or not they can fit on one line.
43
+ - kddeisz - Stop using `;` to separate empty class definitions, module definitions, and loops.
44
+
45
+ ## [1.4.0] - 2021-01-15
46
+
47
+ ### Added
48
+
49
+ - ianks, kddeisz - Use `netcat` to communicate to a parser server for better performance when formatting multiple files.
50
+
51
+ ### Changed
52
+
53
+ - jeffcarbs, kddeisz - Long strings with interpolated expressions should only break if the contents in the original source is broken.
54
+ - johannesluedke, kddeisz - Fix for rescues with inline comments.
55
+ - johncsnyder, kddeisz - Comments should not attach to nodes beyond a double newline.
56
+ - blampe, kddeisz - Comments inside of a broken method chain get dropped.
57
+ - clarkdave, kddeisz - Don't ignore Sorbet `sig` transformations.
58
+
9
59
  ## [1.3.0] - 2021-01-05
10
60
 
11
61
  ### Added
12
62
 
13
- - [@kddeisz] - Handling of the RBS language.
14
- - [@kddeisz] - Incorporate the HAML plugin.
63
+ - kddeisz - Handling of the RBS language.
64
+ - kddeisz - Incorporate the HAML plugin.
15
65
 
16
66
  ## [1.2.5] - 2021-01-04
17
67
 
18
68
  ### Changed
19
69
 
20
- - [@nruth], [@kddeisz] - Ensure unary operators on method calls that are sending operators get the correct scanner events.
21
- - [@cvoege], [@kddeisz] - Do not add parentheses when they're not needed to non-breaking command_calls with ternary arguments.
22
- - [@valscion], [@kddeisz] - Print method chains more nicely off array and hash literals.
70
+ - nruth, kddeisz - Ensure unary operators on method calls that are sending operators get the correct scanner events.
71
+ - cvoege, kddeisz - Do not add parentheses when they're not needed to non-breaking command_calls with ternary arguments.
72
+ - valscion, kddeisz - Print method chains more nicely off array and hash literals.
23
73
 
24
74
  ## [1.2.4] - 2021-01-03
25
75
 
26
76
  ### Added
27
77
 
28
- - [@andyw8] - Explain usage with Rubocop, as well as shipping a rubocop.yml config.
78
+ - andyw8 - Explain usage with Rubocop, as well as shipping a rubocop.yml config.
29
79
 
30
80
  ### Changed
31
81
 
32
- - [@kddeisz] - Reduce JSON size passing from Ruby process to node process by changing `char_start` -> `sc`, `char_end` -> `ec`, `start` -> `sl`, `end` -> `el`.
33
- - [@kddeisz] - Up the max buffer size between the Ruby and node processes to 15K.
82
+ - kddeisz - Reduce JSON size passing from Ruby process to node process by changing `char_start` -> `sc`, `char_end` -> `ec`, `start` -> `sl`, `end` -> `el`.
83
+ - kddeisz - Up the max buffer size between the Ruby and node processes to 15K.
34
84
 
35
85
  ## [1.2.3] - 2021-01-02
36
86
 
37
87
  ### Changed
38
88
 
39
- - [@lukyth], [@kddeisz] - Ensure if a ternary breaks into an `if..else..end` within a `command_call` node that parentheses are added.
40
- - [@AlanFoster], [@kddeisz] - Ensure you consume the optional `do` keyword on `while` and `until` loops so that it doesn't confuse the parser.
41
- - [@AlanFoster], [@kddeisz] - Ensure key-value pairs split on line when the key has a comment attached within a hash.
42
- - [@AlanFoster], [@kddeisz] - Fix for `for` loops that have multiple index variables.
43
- - [@AlanFoster], [@kddeisz] - Fix parsing very large files by reducing the size of the JSON output from the parser.
44
- - [@AlanFoster], [@kddeisz] - Ensure you don't skip parentheses if you're returning a value with the `not` unary operator.
89
+ - lukyth, kddeisz - Ensure if a ternary breaks into an `if..else..end` within a `command_call` node that parentheses are added.
90
+ - AlanFoster, kddeisz - Ensure you consume the optional `do` keyword on `while` and `until` loops so that it doesn't confuse the parser.
91
+ - AlanFoster, kddeisz - Ensure key-value pairs split on line when the key has a comment attached within a hash.
92
+ - AlanFoster, kddeisz - Fix for `for` loops that have multiple index variables.
93
+ - AlanFoster, kddeisz - Fix parsing very large files by reducing the size of the JSON output from the parser.
94
+ - AlanFoster, kddeisz - Ensure you don't skip parentheses if you're returning a value with the `not` unary operator.
45
95
 
46
96
  ## [1.2.2] - 2021-01-01
47
97
 
48
98
  ### Changed
49
99
 
50
- - [@nathan-beam] - Gem does not work with CMD/Powershell.
51
- - [@blampe], [@kddeisz] - Comments inside keyword parameters in method declarations are not printed.
52
- - [@blampe], [@kddeisz] - `command_call` nodes with unary operators incorrectly parse their operator.
53
- - [@blampe], [@kddeisz] - Returning multiple values where the first has parentheses was incorrectly removing the remaining values.
54
- - [@johncsnyder], [@kddeisz] - Call chains whose left-most receiver is a no-indent expression should not indent their entire chain.
100
+ - nathan-beam - Gem does not work with CMD/Powershell.
101
+ - blampe, kddeisz - Comments inside keyword parameters in method declarations are not printed.
102
+ - blampe, kddeisz - `command_call` nodes with unary operators incorrectly parse their operator.
103
+ - blampe, kddeisz - Returning multiple values where the first has parentheses was incorrectly removing the remaining values.
104
+ - johncsnyder, kddeisz - Call chains whose left-most receiver is a no-indent expression should not indent their entire chain.
55
105
 
56
106
  ## [1.2.1] - 2020-12-27
57
107
 
58
108
  ### Changed
59
109
 
60
- - [@kddeisz] - Handle single-line method definitions with parameters.
61
- - [@kddeisz] - Handle hash and array patterns nested within find patterns.
62
- - [@kddeisz] - Handle rightward assignment.
63
- - [@kddeisz] - Handle find patterns with named boundaries.
64
- - [@kddeisz] - Handle rightward assignment in conditionals.
110
+ - kddeisz - Handle single-line method definitions with parameters.
111
+ - kddeisz - Handle hash and array patterns nested within find patterns.
112
+ - kddeisz - Handle rightward assignment.
113
+ - kddeisz - Handle find patterns with named boundaries.
114
+ - kddeisz - Handle rightward assignment in conditionals.
65
115
 
66
116
  ## [1.2.0] - 2020-12-26
67
117
 
68
118
  ### Added
69
119
 
70
- - [@kddeisz] - Support for the `fndptn` node for Ruby 3.0 pattern matching.
71
- - [@kddeisz] - Support for Ruby 3.0+ single-line method definitions.
120
+ - kddeisz - Support for the `fndptn` node for Ruby 3.0 pattern matching.
121
+ - kddeisz - Support for Ruby 3.0+ single-line method definitions.
72
122
 
73
123
  ## [1.1.0] - 2020-12-20
74
124
 
75
125
  ### Added
76
126
 
77
- - [@kddeisz] - Now that the comments are all fixed up, we can support `# prettier-ignore` comments.
127
+ - kddeisz - Now that the comments are all fixed up, we can support `# prettier-ignore` comments.
78
128
 
79
129
  ### Changed
80
130
 
81
- - [@rindek], [@kddeisz] - Do not remove parentheses when receiver looks like a constant.
82
- - [@rindek], [@kddeisz] - Do not remove parentheses when using the special `call` syntax with no arguments.
83
- - [@ykpythemind] - Do not change regexp bounds if the body has certain content.
84
- - [@karanmandal], [@kddeisz] - Correctly print for loops.
85
- - [@rafbm], [@kddeisz] - If there are method chains with arguments only at the end, we should group the method chain and the method args.
131
+ - rindek, kddeisz - Do not remove parentheses when receiver looks like a constant.
132
+ - rindek, kddeisz - Do not remove parentheses when using the special `call` syntax with no arguments.
133
+ - ykpythemind - Do not change regexp bounds if the body has certain content.
134
+ - karanmandal, kddeisz - Correctly print for loops.
135
+ - rafbm, kddeisz - If there are method chains with arguments only at the end, we should group the method chain and the method args.
86
136
 
87
137
  ## [1.0.1] - 2020-12-12
88
138
 
89
139
  ### Changed
90
140
 
91
- - [@steobrien], [@kddeisz] - Ensure leading comments in empty array and hash literals do not duplicate.
141
+ - steobrien, kddeisz - Ensure leading comments in empty array and hash literals do not duplicate.
92
142
 
93
143
  ## [1.0.0] - 2020-12-11
94
144
 
95
145
  ### Changed
96
146
 
97
- - [@kddeisz] - Do not unescape double quotes in a single quote string.
98
- - [@kddeisz] - Only force braces on regexp for spaces and equals if it's inside a command or command_call.
99
- - [@kddeisz] - Leave Sorbet type annotations in place.
100
- - [@kddeisz] - Don't group hash contents, just allow them to break with their parent node.
101
- - [@kddeisz] - Honor the UTF-8 lang passed in through ENV vars.
147
+ - kddeisz - Do not unescape double quotes in a single quote string.
148
+ - kddeisz - Only force braces on regexp for spaces and equals if it's inside a command or command_call.
149
+ - kddeisz - Leave Sorbet type annotations in place.
150
+ - kddeisz - Don't group hash contents, just allow them to break with their parent node.
151
+ - kddeisz - Honor the UTF-8 lang passed in through ENV vars.
102
152
 
103
153
  ## [1.0.0-rc2] - 2020-12-10
104
154
 
105
155
  ### Changed
106
156
 
107
- - [@kddeisz] - Print hashes with consistent keys (e.g., if one key cannot be a hash label, use all hash rockets).
108
- - [@kddeisz] - Respect using `o` or not using `o` for octal numbers.
109
- - [@kddeisz] - Ensure `when` clauses with multiple predicates that can be split into multiple lines are split correctly.
110
- - [@kddeisz] - Ensure hash literal is split correctly when only its contents would fit on one line.
111
- - [@kddeisz] - Simplify `toProc` checks by not calling if the option is disabled.
112
- - [@johncsnyder], [@kddeisz] - Add `method_add_block` to the potential like of method calls that can be chained.
113
- - [@kddeisz] - Add the `rubyArrayLiteral` option for disabling automatically turning into array literals.
157
+ - kddeisz - Print hashes with consistent keys (e.g., if one key cannot be a hash label, use all hash rockets).
158
+ - kddeisz - Respect using `o` or not using `o` for octal numbers.
159
+ - kddeisz - Ensure `when` clauses with multiple predicates that can be split into multiple lines are split correctly.
160
+ - kddeisz - Ensure hash literal is split correctly when only its contents would fit on one line.
161
+ - kddeisz - Simplify `toProc` checks by not calling if the option is disabled.
162
+ - johncsnyder, kddeisz - Add `method_add_block` to the potential like of method calls that can be chained.
163
+ - kddeisz - Add the `rubyArrayLiteral` option for disabling automatically turning into array literals.
114
164
 
115
165
  ## [1.0.0-rc1] - 2020-12-09
116
166
 
117
167
  ### Changed
118
168
 
119
- - [@kddeisz] - Rename options to prep for v1.0 release.
169
+ - kddeisz - Rename options to prep for v1.0 release.
120
170
  - `addTrailingCommas` -> `trailingComma`, `"es5"` means `true`
121
171
  - `inlineConditionals` and `inlineLoops` -> `rubyModifier`
122
172
  - `preferHashLabels` -> `rubyHashLabel`
123
173
  - `preferSingleQuotes` -> `rubySingleQuote`
124
174
  - `toProcTransform` -> `rubyToProc`
125
- - [@andyw8], [@kddeisz] - Fix for Ruby `2.5.1` dyna_symbols. Turns out they were previously incorrectly reported as `xstring` nodes.
126
- - [@andyw8], [@kddeisz] - Fix for plain `rescue` nodes with only comments in the body.
127
- - [@andyw8], [@kddeisz] - Move declaration-type comments up to the line in the original source, as in:
175
+ - andyw8, kddeisz - Fix for Ruby `2.5.1` dyna_symbols. Turns out they were previously incorrectly reported as `xstring` nodes.
176
+ - andyw8, kddeisz - Fix for plain `rescue` nodes with only comments in the body.
177
+ - andyw8, kddeisz - Move declaration-type comments up to the line in the original source, as in:
128
178
 
129
179
  ```ruby
130
180
  def foo # :nodoc:
@@ -134,12 +184,12 @@ end
134
184
 
135
185
  The comment in the above example should stay in place.
136
186
 
137
- - [@janklimo] - Respect special call syntax, e.g., `a.(1, 2, 3)` should remain the same.
138
- - [@kddeisz] - Fix up a bug with `ensure` being used in a `bodystmt` and not a `begin`.
139
- - [@kddeisz] - Fix up a bug with negative ranges, e.g., `-4..-3`.
140
- - [@kddeisz] - Fix up a bug with operator aliases, e.g., `alias << push`.
141
- - [@kddeisz] - Fix up a bug with calls and unary nodes, e.g., `!!foo&.bar`.
142
- - [@kddeisz] - Fix up a bug with multiple rescue clauses and comments, e.g.,
187
+ - janklimo - Respect special call syntax, e.g., `a.(1, 2, 3)` should remain the same.
188
+ - kddeisz - Fix up a bug with `ensure` being used in a `bodystmt` and not a `begin`.
189
+ - kddeisz - Fix up a bug with negative ranges, e.g., `-4..-3`.
190
+ - kddeisz - Fix up a bug with operator aliases, e.g., `alias << push`.
191
+ - kddeisz - Fix up a bug with calls and unary nodes, e.g., `!!foo&.bar`.
192
+ - kddeisz - Fix up a bug with multiple rescue clauses and comments, e.g.,
143
193
 
144
194
  ```ruby
145
195
  begin
@@ -149,64 +199,64 @@ rescue Foo, Bar
149
199
  end
150
200
  ```
151
201
 
152
- - [@kddeisz] - Handle string literals that start with `%Q`.
153
- - [@kddeisz] - Handle question method methods in the predicate of an if with a comment in the body.
154
- - [@kddeisz] - Fix bare `break` with comments immediately after.
155
- - [@kddeisz] - Fix for heredocs with comments immediately after the declaration.
156
- - [@kddeisz] - Fix for comments when you're defining a method whose name overlaps with a keyword.
157
- - [@kddeisz] - Don't automatically indent inside interpolated expressions from within a heredoc.
158
- - [@kddeisz] - Don't convert into string literal arrays if the elements have brackets.
159
- - [@kddeisz] - Ensure you break the parent when there is an assignment in the predicate of a loop.
160
- - [@kddeisz] - Fix up a bug with keyword aliases, e.g., `alias in within`.
161
- - [@kddeisz] - Force using braces for regex if a regex starts with a blank space.
162
- - [@kddeisz] - Force using braces for regex if a regex starts with an equals sign.
163
- - [@kddeisz] - Fix up a bug with constant aliases, e.g., `alias in IN`.
164
- - [@andyw8], [@kddeisz] - Ensure `rescue` comments stay on the same line as their declaration.
165
-
166
- # [0.22.0] - 2020-12-08
202
+ - kddeisz - Handle string literals that start with `%Q`.
203
+ - kddeisz - Handle question method methods in the predicate of an if with a comment in the body.
204
+ - kddeisz - Fix bare `break` with comments immediately after.
205
+ - kddeisz - Fix for heredocs with comments immediately after the declaration.
206
+ - kddeisz - Fix for comments when you're defining a method whose name overlaps with a keyword.
207
+ - kddeisz - Don't automatically indent inside interpolated expressions from within a heredoc.
208
+ - kddeisz - Don't convert into string literal arrays if the elements have brackets.
209
+ - kddeisz - Ensure you break the parent when there is an assignment in the predicate of a loop.
210
+ - kddeisz - Fix up a bug with keyword aliases, e.g., `alias in within`.
211
+ - kddeisz - Force using braces for regex if a regex starts with a blank space.
212
+ - kddeisz - Force using braces for regex if a regex starts with an equals sign.
213
+ - kddeisz - Fix up a bug with constant aliases, e.g., `alias in IN`.
214
+ - andyw8, kddeisz - Ensure `rescue` comments stay on the same line as their declaration.
215
+
216
+ ## [0.22.0] - 2020-12-08
167
217
 
168
218
  ### Changed
169
219
 
170
- - [@flyerhzm] - Print method chains by one indentation.
171
- - [@mmcnl], [@kddeisz] - Handle heredocs and blocks being passed to the same method.
172
- - [@johncsnyder], [@kddeisz] - Ensure correct formatting when breaking up conditionals with `inlineConditionals: false`.
173
- - [@Rsullivan00] - Ensure that when ternaries as command arguments get broken into multiple lines we add the necessary parentheses.
174
- - [@jbielick] - Maintain parse order during if/unless modifier expressions
175
- - [@flyerhzm] - Slight prettifying of wrapped args if doc length is under a certain value.
176
- - [@github0013], [@kddeisz] - Ensure `not` keeps parentheses if they are being used.
177
- - [@jbielick] - Print heredocs consistently.
178
- - [@kddeisz] - Completely revamp the way we handle comments.
179
- - [@kddeisz] - Support `hshptn` and the remaining missing pattern matching syntax.
220
+ - flyerhzm - Print method chains by one indentation.
221
+ - mmcnl, kddeisz - Handle heredocs and blocks being passed to the same method.
222
+ - johncsnyder, kddeisz - Ensure correct formatting when breaking up conditionals with `inlineConditionals: false`.
223
+ - Rsullivan00 - Ensure that when ternaries as command arguments get broken into multiple lines we add the necessary parentheses.
224
+ - jbielick - Maintain parse order during if/unless modifier expressions
225
+ - flyerhzm - Slight prettifying of wrapped args if doc length is under a certain value.
226
+ - github0013, kddeisz - Ensure `not` keeps parentheses if they are being used.
227
+ - jbielick - Print heredocs consistently.
228
+ - kddeisz - Completely revamp the way we handle comments.
229
+ - kddeisz - Support `hshptn` and the remaining missing pattern matching syntax.
180
230
 
181
231
  ## [0.21.0] - 2020-12-02
182
232
 
183
233
  ### Changed
184
234
 
185
- - [@kddeisz], [@ryan-hunter-pc] - Explicitly handle `break` and `next` keyword parentheses.
186
- - [@jbielick], [@kddeisz] - Don't convert between `lambda {}` and `-> {}`. Technically it's breaking the semantics of the program. Also because lambda method call arguments can't handle everything that stabby lambda can.
187
- - [@kddeisz] - Turn off the `Symbol#to_proc` transform by default.
188
- - [@janklimo], [@kddeisz] - Properly handle trailing commas on hash arguments.
189
- - [@coiti], [@kddeisz] - Properly handle parentheses when necessary on if/unless statements and while/until loops.
190
- - [@Rsullivan00] - Prevent `command` and `command_call` nodes from being turned into ternaries.
191
- - [@kddeisz] - Better handling of the `alias` node with and without comments.
192
- - [@kddeisz] - Better handling of the `BEGIN` and `END` nodes with and without comments.
193
- - [@kddeisz] - Much better handling of heredocs where now there is a consistent `heredoc` node instead of multiple.
235
+ - kddeisz, ryan-hunter-pc - Explicitly handle `break` and `next` keyword parentheses.
236
+ - jbielick, kddeisz - Don't convert between `lambda {}` and `-> {}`. Technically it's breaking the semantics of the program. Also because lambda method call arguments can't handle everything that stabby lambda can.
237
+ - kddeisz - Turn off the `Symbol#to_proc` transform by default.
238
+ - janklimo, kddeisz - Properly handle trailing commas on hash arguments.
239
+ - coiti, kddeisz - Properly handle parentheses when necessary on if/unless statements and while/until loops.
240
+ - Rsullivan00 - Prevent `command` and `command_call` nodes from being turned into ternaries.
241
+ - kddeisz - Better handling of the `alias` node with and without comments.
242
+ - kddeisz - Better handling of the `BEGIN` and `END` nodes with and without comments.
243
+ - kddeisz - Much better handling of heredocs where now there is a consistent `heredoc` node instead of multiple.
194
244
 
195
245
  ## [0.20.1] - 2020-09-04
196
246
 
197
247
  ### Changed
198
248
 
199
- - [@ftes], [@kddeisz] - Properly escape HAML plain text statements that start with special HAML characters.
249
+ - ftes, kddeisz - Properly escape HAML plain text statements that start with special HAML characters.
200
250
 
201
251
  ### Removed
202
252
 
203
- - [@kddeisz] - I'm stripping out the HAML plugin and putting it into its own package (`@prettier/plugin-haml`). It's become too difficult to maintain within this repo, and it's confusing for contributors because there are some things that work with Ruby and some things that don't. This is going to simplify maintenance. This should probably be a major version bump but since we're still pre `1.0` I'm going to leave it as a patch.
253
+ - kddeisz - I'm stripping out the HAML plugin and putting it into its own package (`@prettier/plugin-haml`). It's become too difficult to maintain within this repo, and it's confusing for contributors because there are some things that work with Ruby and some things that don't. This is going to simplify maintenance. This should probably be a major version bump but since we're still pre `1.0` I'm going to leave it as a patch.
204
254
 
205
255
  ## [0.20.0] - 2020-08-28
206
256
 
207
257
  ### Added
208
258
 
209
- - [@kddeisz] - Allow embedded formatting on heredocs by the name placed at the start. For example,
259
+ - kddeisz - Allow embedded formatting on heredocs by the name placed at the start. For example,
210
260
 
211
261
  <!-- prettier-ignore -->
212
262
  ```ruby
@@ -219,37 +269,37 @@ JAVASCRIPT
219
269
 
220
270
  ### Changed
221
271
 
222
- - [@mmainz] - Fix the encoding setting such that we're not overwriting the entire set of environment variables.
272
+ - mmainz - Fix the encoding setting such that we're not overwriting the entire set of environment variables.
223
273
 
224
274
  ## [0.19.1] - 2020-08-21
225
275
 
226
276
  ### Changed
227
277
 
228
- - [@Rsullivan00] - Do not tranform word-literal arrays when there is an escape sequence.
229
- - [@steobrien], [@kddeisz] - Do not indent heredocs with calls more than they should be.
230
- - [@jpickwell] - Include .simplecov in filenames
231
- - [@github0013], [@kddeisz] - Ensure we're parsing ruby files using UTF-8 regardless of the system encoding.
278
+ - Rsullivan00 - Do not tranform word-literal arrays when there is an escape sequence.
279
+ - steobrien, kddeisz - Do not indent heredocs with calls more than they should be.
280
+ - jpickwell - Include .simplecov in filenames
281
+ - github0013, kddeisz - Ensure we're parsing ruby files using UTF-8 regardless of the system encoding.
232
282
 
233
283
  ## [0.19.0] - 2020-07-03
234
284
 
235
285
  ### Added
236
286
 
237
- - [@ryan-hunter-pc] - Add the option to disable the `Symbol#to_proc` transform.
238
- - [@ryan-hunter-pc], [@SViccari], [@kddeisz] - Disable `Symbol#to_proc` transform when used as a key inside of a hash where the key is either `:if` or `:unless`.
287
+ - ryan-hunter-pc - Add the option to disable the `Symbol#to_proc` transform.
288
+ - ryan-hunter-pc], [@SViccari, kddeisz - Disable `Symbol#to_proc` transform when used as a key inside of a hash where the key is either `:if` or `:unless`.
239
289
 
240
290
  ## [0.18.2] - 2020-05-01
241
291
 
242
292
  ### Changed
243
293
 
244
- - [@alse] - Support `vscodeLanguageIds` for HAML.
245
- - [@ShayDavidson], [@kddeisz] - Don't allow replacing if/else with ternary if there's an assignment in the predicate.
246
- - [@janklimo] - Do not add an empty line after `rescue` when the block is empty.
294
+ - alse - Support `vscodeLanguageIds` for HAML.
295
+ - ShayDavidson, kddeisz - Don't allow replacing if/else with ternary if there's an assignment in the predicate.
296
+ - janklimo - Do not add an empty line after `rescue` when the block is empty.
247
297
 
248
298
  ## [0.18.1] - 2020-04-05
249
299
 
250
300
  ### Changed
251
301
 
252
- - [@petevk], [@kddeisz] - Use braces for block format iff it was originally a brace block, otherwise you could be changing precedence. For example:
302
+ - petevk, kddeisz - Use braces for block format iff it was originally a brace block, otherwise you could be changing precedence. For example:
253
303
 
254
304
  <!-- prettier-ignore -->
255
305
  ```ruby
@@ -262,7 +312,7 @@ end.to raise_error
262
312
 
263
313
  should maintain its `do...end` and not switch to inline braces otherwise the brace might get associated with the `1`.
264
314
 
265
- - [@flyerhzm] - Rewrite operators binary parser, as in:
315
+ - flyerhzm - Rewrite operators binary parser, as in:
266
316
 
267
317
  <!-- prettier-ignore -->
268
318
  ```ruby
@@ -273,10 +323,10 @@ should maintain its `do...end` and not switch to inline braces otherwise the bra
273
323
  [1]
274
324
  ```
275
325
 
276
- - [@ftes], [@kddeisz] - When old-form dynamic attributes are added to a `div` tag in HAML, it was previously skipping printing the `%div`, which led to it being incorrectly displayed.
277
- - [@ftes], [@kddeisz] - Previously if you had a long tag declaration with attributes that made it hit the line limit, then the content of the tag would be pushed to the next line but indented one character too many.
278
- - [@ftes], [@kddeisz] - Don't explicitly require JSON if it has already been loaded, as this can lead to rubygems activation errors.
279
- - [@mmainz], [@kddeisz] - Handle heredocs as the receivers of call nodes, as in:
326
+ - ftes, kddeisz - When old-form dynamic attributes are added to a `div` tag in HAML, it was previously skipping printing the `%div`, which led to it being incorrectly displayed.
327
+ - ftes, kddeisz - Previously if you had a long tag declaration with attributes that made it hit the line limit, then the content of the tag would be pushed to the next line but indented one character too many.
328
+ - ftes, kddeisz - Don't explicitly require JSON if it has already been loaded, as this can lead to rubygems activation errors.
329
+ - mmainz, kddeisz - Handle heredocs as the receivers of call nodes, as in:
280
330
 
281
331
  <!-- prettier-ignore -->
282
332
  ```ruby
@@ -285,7 +335,7 @@ foo = <<~TEXT.strip
285
335
  TEXT
286
336
  ```
287
337
 
288
- - [@github0013], [@kddeisz] - Leave parentheses in place if the value of a return node contains a binary with low operator precedence, as in:
338
+ - github0013, kddeisz - Leave parentheses in place if the value of a return node contains a binary with low operator precedence, as in:
289
339
 
290
340
  <!-- prettier-ignore -->
291
341
  ```ruby
@@ -296,13 +346,13 @@ return (a or b) if c?
296
346
 
297
347
  ### Added
298
348
 
299
- - [@kddeisz] - Support for the `nokw_param` node for specifying when methods should no accept keywords, as in:
349
+ - kddeisz - Support for the `nokw_param` node for specifying when methods should no accept keywords, as in:
300
350
 
301
351
  ```ruby
302
352
  def foo(**nil); end
303
353
  ```
304
354
 
305
- - [@kddeisz] - Support for the `args_forward` node for forwarding all types of arguments, as in:
355
+ - kddeisz - Support for the `args_forward` node for forwarding all types of arguments, as in:
306
356
 
307
357
  ```ruby
308
358
  def foo(...)
@@ -312,13 +362,13 @@ end
312
362
 
313
363
  ### Changed
314
364
 
315
- - [@ftes], [@kddeisz] - Handled 3 or more classes on a node in HAML, as in:
365
+ - ftes, kddeisz - Handled 3 or more classes on a node in HAML, as in:
316
366
 
317
367
  ```haml
318
368
  %table.table.is-striped.is-hoverable
319
369
  ```
320
370
 
321
- - [@ftes], [@kddeisz] - Better handling of indentation of `if/elsif/else`, `unless/elsif/else`, and `case/when` branches, as in:
371
+ - ftes, kddeisz - Better handling of indentation of `if/elsif/else`, `unless/elsif/else`, and `case/when` branches, as in:
322
372
 
323
373
  ```haml
324
374
  .column.is-12
@@ -328,9 +378,9 @@ end
328
378
  FALSE
329
379
  ```
330
380
 
331
- - [@tobyndockerill] - Format numbers with underscores after 4 digits, as opposed to 3.
332
- - [@ianks] - Improve performance by using `--disable-gems`.
333
- - [@flyerhzm] - Calls are grouped such that after an end parenthesis the following call will not be indented, as in:
381
+ - tobyndockerill - Format numbers with underscores after 4 digits, as opposed to 3.
382
+ - ianks - Improve performance by using `--disable-gems`.
383
+ - flyerhzm - Calls are grouped such that after an end parenthesis the following call will not be indented, as in:
334
384
 
335
385
  <!-- prettier-ignore -->
336
386
  ```ruby
@@ -351,7 +401,7 @@ Config::Download.new(
351
401
  ).perform
352
402
  ```
353
403
 
354
- - [@pje], [@kddeisz] - Method definition bodies (on `defs` nodes) should dedent if a helper method is called. As in:
404
+ - pje, kddeisz - Method definition bodies (on `defs` nodes) should dedent if a helper method is called. As in:
355
405
 
356
406
  <!-- prettier-ignore -->
357
407
  ```ruby
@@ -369,7 +419,7 @@ private def self.foo
369
419
  end
370
420
  ```
371
421
 
372
- - [@masqita], [@kddeisz] - Inline variable assignment within a predicate should force the conditional to break, as in:
422
+ - masqita, kddeisz - Inline variable assignment within a predicate should force the conditional to break, as in:
373
423
 
374
424
  ```ruby
375
425
  array.each do |element|
@@ -379,26 +429,26 @@ array.each do |element|
379
429
  end
380
430
  ```
381
431
 
382
- - [@hafley66], [@kddeisz] - Handle empty `while` and `until` blocks.
383
- - [@Fruetel], [@kddeisz] - Simplify string escape pattern by locking on any escape sequence.
384
- - [@flyerhzm], [@kddeisz] - Properly handle string quotes on symbols in hash keys.
432
+ - hafley66, kddeisz - Handle empty `while` and `until` blocks.
433
+ - Fruetel, kddeisz - Simplify string escape pattern by locking on any escape sequence.
434
+ - flyerhzm, kddeisz - Properly handle string quotes on symbols in hash keys.
385
435
 
386
436
  ## [0.17.0] - 2019-12-12
387
437
 
388
438
  ### Added
389
439
 
390
- - [@matt-wratt] - Better support for explicit `return` nodes with empty arrays or arrays with a single element.
391
- - [@jrdioko], [@kddeisz] - Alignment of `not_to` is explicitly allowed to not indent to better support rspec.
440
+ - matt-wratt - Better support for explicit `return` nodes with empty arrays or arrays with a single element.
441
+ - jrdioko, kddeisz - Alignment of `not_to` is explicitly allowed to not indent to better support rspec.
392
442
 
393
443
  ### Changed
394
444
 
395
- - [@gin0606] - The max buffer being passed into the Ruby process is now up to 10MB.
445
+ - gin0606 - The max buffer being passed into the Ruby process is now up to 10MB.
396
446
 
397
447
  ## [0.16.0] - 2019-11-14
398
448
 
399
449
  ### Added
400
450
 
401
- - [@mmainz], [@kddeisz] - Support for extra commas in multiple assignment, as it changes the meaning. For example,
451
+ - mmainz, kddeisz - Support for extra commas in multiple assignment, as it changes the meaning. For example,
402
452
 
403
453
  <!-- prettier-ignore -->
404
454
  ```ruby
@@ -407,12 +457,12 @@ a, = [1, 2, 3]
407
457
 
408
458
  would previously get printed as `a = [1, 2, 3]`, which changes the value of `a` from `1` to the value of the entire array.
409
459
 
410
- - [@kddeisz] - Experimental support for the HAMtemplate language.
460
+ - kddeisz - Experimental support for the HAMtemplate language.
411
461
 
412
462
  ### Changed
413
463
 
414
- - [@github0013], [@kddeisz] - Support proper string escaping when the original string in the source is wrapped in `%q|...|`. For example, `%q|\'|` should get printed as `"\'"`, where previously it was dropping the backslash.
415
- - [@jamescostian], [@kddeisz] - Force ternary breaking when using the lower-precendence operators `and` and `or`. For example,
464
+ - github0013, kddeisz - Support proper string escaping when the original string in the source is wrapped in `%q|...|`. For example, `%q|\'|` should get printed as `"\'"`, where previously it was dropping the backslash.
465
+ - jamescostian, kddeisz - Force ternary breaking when using the lower-precendence operators `and` and `or`. For example,
416
466
 
417
467
  <!-- prettier-ignore -->
418
468
  ```ruby
@@ -425,7 +475,7 @@ end
425
475
 
426
476
  the previous expression was being transformed into a ternary which was invalid ruby. Instead it now stays broken out into an if/else block.
427
477
 
428
- - [@localhostdotdev], [@joeyjoejoejr], [@eins78], [@kddeisz] - Better support for embedded expressions inside heredocs. For example,
478
+ - localhostdotdev], [@joeyjoejoejr], [@eins78, kddeisz - Better support for embedded expressions inside heredocs. For example,
429
479
 
430
480
  <!-- prettier-ignore -->
431
481
  ```ruby
@@ -438,14 +488,14 @@ HERE
438
488
 
439
489
  should remain formatted as it is. Whereas previously due to the way the lines were split, you would sometimes end up with it breaking after `#{`.
440
490
 
441
- - [@jamescostian], [@kddeisz] - Fix up `return` node printing. When returning multiple values, you need to return an array literal as opposed to using parentheses.
491
+ - jamescostian, kddeisz - Fix up `return` node printing. When returning multiple values, you need to return an array literal as opposed to using parentheses.
442
492
 
443
493
  ## [0.15.1] - 2019-11-05
444
494
 
445
495
  ### Changed
446
496
 
447
- - [@AlanFoster] - Add `bin/lex` for viewing the tokenized result of Ripper on Ruby code.
448
- - [@jakeprime], [@kddeisz] - When predicates from within an `if`, `unless`, `while`, or `until` loop break the line, they should be aligned together. For example,
497
+ - AlanFoster - Add `bin/lex` for viewing the tokenized result of Ripper on Ruby code.
498
+ - jakeprime, kddeisz - When predicates from within an `if`, `unless`, `while`, or `until` loop break the line, they should be aligned together. For example,
449
499
 
450
500
  <!-- prettier-ignore -->
451
501
  ```ruby
@@ -464,7 +514,7 @@ if foooooo ||
464
514
  end
465
515
  ```
466
516
 
467
- - [@jamescostian], [@AlanFoster] - Empty `if`, and `unless` conditionals are now handled gracefully:
517
+ - jamescostian], [@AlanFoster - Empty `if`, and `unless` conditionals are now handled gracefully:
468
518
 
469
519
  <!-- prettier-ignore -->
470
520
  ```ruby
@@ -472,7 +522,7 @@ if foo?
472
522
  end
473
523
  ```
474
524
 
475
- - [@mmainz], [@kddeisz] - Hash keys are not converted to keyword syntax if they would make invalid symbols. For example,
525
+ - mmainz, kddeisz - Hash keys are not converted to keyword syntax if they would make invalid symbols. For example,
476
526
 
477
527
  <!-- prettier-ignore -->
478
528
  ```ruby
@@ -481,9 +531,9 @@ end
481
531
 
482
532
  cannot be translated into `[]:` as that is an invalid symbol. Instead, it stays with the hash rocket syntax.
483
533
 
484
- - [@cldevs], [@kddeisz] - Do not attempt to format the insides of xstring literals (string that get sent to the command line surrounded by backticks or `%x`).
485
- - [@cldevs], [@kddeisz] - When predicates for `if`, `unless`, `while`, or `until` nodes contain an assignment, we can't know for sure that it doesn't modify the body. In this case we need to always break and form a multi-line block.
486
- - [@MarcManiez], [@kddeisz] - When the return value of `if`, `unless`, `while`, or `until` nodes are assigned to anything other than a local variable, we need to wrap them in parentheses if we're changing to the modifier form. This is because the following expressions have different semantic meaning:
534
+ - cldevs, kddeisz - Do not attempt to format the insides of xstring literals (string that get sent to the command line surrounded by backticks or `%x`).
535
+ - cldevs, kddeisz - When predicates for `if`, `unless`, `while`, or `until` nodes contain an assignment, we can't know for sure that it doesn't modify the body. In this case we need to always break and form a multi-line block.
536
+ - MarcManiez, kddeisz - When the return value of `if`, `unless`, `while`, or `until` nodes are assigned to anything other than a local variable, we need to wrap them in parentheses if we're changing to the modifier form. This is because the following expressions have different semantic meaning:
487
537
 
488
538
  <!-- prettier-ignore -->
489
539
  ```ruby
@@ -500,14 +550,14 @@ hash[:key] = (break :value while false)
500
550
 
501
551
  That will guarantee that the expressions are equivalent.
502
552
 
503
- - [@AlanFoster] - Fix crashes that were happening with `ignored_nl` nodes.
553
+ - AlanFoster - Fix crashes that were happening with `ignored_nl` nodes.
504
554
 
505
555
  ## [0.15.0] - 2019-08-06
506
556
 
507
557
  ### Changed
508
558
 
509
- - [@dudeofawesome], [@kddeisz] - If xstring literals (command line calls surrounded by backticks) break, then we indent and place the command on a new line. Previously, this was resulting in new lines getting added each time the code was formatted. Now this happens correctly.
510
- - [@krachtstefan], [@kddeisz] - When a `while` or `until` loop modifies a `begin...end` statement, it must remain in the modifier form or else it changes sematic meaning. For example,
559
+ - dudeofawesome, kddeisz - If xstring literals (command line calls surrounded by backticks) break, then we indent and place the command on a new line. Previously, this was resulting in new lines getting added each time the code was formatted. Now this happens correctly.
560
+ - krachtstefan, kddeisz - When a `while` or `until` loop modifies a `begin...end` statement, it must remain in the modifier form or else it changes sematic meaning. For example,
511
561
 
512
562
  <!-- prettier-ignore -->
513
563
  ```ruby
@@ -527,8 +577,8 @@ end
527
577
 
528
578
  because that would never execute `foo` if `bar` is falsy, whereas in the initial example it would have.
529
579
 
530
- - [@jviney], [@kddeisz] - When transforming a block into the `Symbol#to_proc` syntax from within a list of arguments inside of an `aref` node (i.e., `foo[:bar].each`), we can't put the block syntax inside the brackets.
531
- - [@jakeprime], [@kddeisz] - Values for the `return` keyword that broke the line were previously just printed as they were, which breaks if you have a block expression like an `if` or `while`. For example,
580
+ - jviney], kddeisz - When transforming a block into the `Symbol#to_proc` syntax from within a list of arguments inside of an `aref` node (i.e., `foo[:bar.each`), we can't put the block syntax inside the brackets.
581
+ - jakeprime, kddeisz - Values for the `return` keyword that broke the line were previously just printed as they were, which breaks if you have a block expression like an `if` or `while`. For example,
532
582
 
533
583
  <!-- prettier-ignore -->
534
584
  ```ruby
@@ -559,7 +609,7 @@ return(
559
609
  )
560
610
  ```
561
611
 
562
- - [@jakeprime], [@kddeisz] - When switching from a double-quoted string to a single-quoted string that contained escaped double quotes, the backslashes would stay in the string. As in:
612
+ - jakeprime, kddeisz - When switching from a double-quoted string to a single-quoted string that contained escaped double quotes, the backslashes would stay in the string. As in:
563
613
 
564
614
  <!-- prettier-ignore -->
565
615
  ```ruby
@@ -584,11 +634,11 @@ but now gets formatted as:
584
634
 
585
635
  ### Added
586
636
 
587
- - [@kddeisz] - Support for pattern matching for variables and array patterns. Currently waiting on Ripper support for hash patterns. For examples, check out the [test/js/patterns.test.js](test/js/patterns.test.js) file.
637
+ - kddeisz - Support for pattern matching for variables and array patterns. Currently waiting on Ripper support for hash patterns. For examples, check out the [test/js/patterns.test.js](test/js/patterns.test.js) file.
588
638
 
589
639
  ### Changed
590
640
 
591
- - [@jviney], [@kddeisz] - if/else blocks that had method calls on the end of them that were also transformed into ternaries need to have parens added to them. For example,
641
+ - jviney, kddeisz - if/else blocks that had method calls on the end of them that were also transformed into ternaries need to have parens added to them. For example,
592
642
 
593
643
  <!-- prettier-ignore -->
594
644
  ```ruby
@@ -606,8 +656,8 @@ now correctly gets transformed into:
606
656
  (foo ? 1 : 2).to_s
607
657
  ```
608
658
 
609
- - [@acrewdson], [@kddeisz] - Fixed a bug where multiple newlines at the end of the file would cause a crash.
610
- - [@jviney], [@kddeisz] - If a variable is assigned inside of the predicate of a conditional, then we can't change it into the single-line version as this breaks. For example,
659
+ - acrewdson, kddeisz - Fixed a bug where multiple newlines at the end of the file would cause a crash.
660
+ - jviney, kddeisz - If a variable is assigned inside of the predicate of a conditional, then we can't change it into the single-line version as this breaks. For example,
611
661
 
612
662
  <!-- prettier-ignore -->
613
663
  ```ruby
@@ -622,11 +672,11 @@ must stay the same.
622
672
 
623
673
  ### Added
624
674
 
625
- - [@kddeisz] - Added `locStart` and `locEnd` functions to support `--cursor-offset`.
675
+ - kddeisz - Added `locStart` and `locEnd` functions to support `--cursor-offset`.
626
676
 
627
677
  ### Changed
628
678
 
629
- - [@xipgroc], [@kddeisz] - Comments inside of `do...end` blocks that preceeded `call` nodes were associating the comment with the `var_ref` instead of the `call` itself. For example,
679
+ - xipgroc, kddeisz - Comments inside of `do...end` blocks that preceeded `call` nodes were associating the comment with the `var_ref` instead of the `call` itself. For example,
630
680
 
631
681
  <!-- prettier-ignore -->
632
682
  ```ruby
@@ -651,7 +701,7 @@ end
651
701
 
652
702
  but now gets printed correctly.
653
703
 
654
- - [@petevk], [@kddeisz] - Double splats inside a hash were previously failing to print. For example,
704
+ - petevk, kddeisz - Double splats inside a hash were previously failing to print. For example,
655
705
 
656
706
  <!-- prettier-ignore -->
657
707
  ```ruby
@@ -664,12 +714,12 @@ would fail to print, but now works.
664
714
 
665
715
  ### Changed
666
716
 
667
- - [@kddeisz] - Move arg, assign, constant, flow, massign, operator, scope, and statement nodes into their own files.
668
- - [@kddeisz] - Move `@int`, `access_ctrl`, `assocsplat`, `block_var`, `else`, `number_arg`, `super`, `undef`, `var_ref`, and `var_ref` as well as various call and symbol nodes into appropriate files.
669
- - [@kddeisz] - Better support for excessed commas in block args. Previously `proc { |x,| }` would add an extra space, but now it does not.
670
- - [@kddeisz] - Add a lot more documentation to the parser.
671
- - [@glejeune], [@kddeisz] - Previously, the unary `not` operator inside a ternary (e.g., `a ? not(b) : c`) would break because it wouldn't add parentheses, but now it adds them.
672
- - [@kddeisz] - `if` and `unless` nodes used to not be able to handle if a comment was the only statement in the body. For example,
717
+ - kddeisz - Move arg, assign, constant, flow, massign, operator, scope, and statement nodes into their own files.
718
+ - kddeisz - Move `@int`, `access_ctrl`, `assocsplat`, `block_var`, `else`, `number_arg`, `super`, `undef`, `var_ref`, and `var_ref` as well as various call and symbol nodes into appropriate files.
719
+ - kddeisz - Better support for excessed commas in block args. Previously `proc { |x,| }` would add an extra space, but now it does not.
720
+ - kddeisz - Add a lot more documentation to the parser.
721
+ - glejeune, kddeisz - Previously, the unary `not` operator inside a ternary (e.g., `a ? not(b) : c`) would break because it wouldn't add parentheses, but now it adds them.
722
+ - kddeisz - `if` and `unless` nodes used to not be able to handle if a comment was the only statement in the body. For example,
673
723
 
674
724
  <!-- prettier-ignore -->
675
725
  ```ruby
@@ -687,7 +737,7 @@ would get printed as
687
737
 
688
738
  Now the `if` and `unless` printers check for the presence of single comments.
689
739
 
690
- - [@JoshuaKGoldberg], [@kddeisz] - Fixes an error where `command` nodes within `def` nodes would fail to format if it was only a single block argument. For example,
740
+ - JoshuaKGoldberg, kddeisz - Fixes an error where `command` nodes within `def` nodes would fail to format if it was only a single block argument. For example,
691
741
 
692
742
  <!-- prettier-ignore -->
693
743
  ```ruby
@@ -698,7 +748,7 @@ end
698
748
 
699
749
  would fail, but now works.
700
750
 
701
- - [@xipgroc], [@kddeisz] - Comments on lines with array references were previously deleting the array references entirely. For example,
751
+ - xipgroc, kddeisz - Comments on lines with array references were previously deleting the array references entirely. For example,
702
752
 
703
753
  <!-- prettier-ignore -->
704
754
  ```ruby
@@ -711,323 +761,323 @@ would previously result in `array[]`, but now prints properly.
711
761
 
712
762
  ### Changed
713
763
 
714
- - [@kddeisz] - When symbol literal hash keys end with `=`, they cannot be transformed into hash labels.
715
- - [@xipgroc], [@kddeisz] - Fixed when blocks on methods with no arguments are transformed into `to_proc` syntax.
764
+ - kddeisz - When symbol literal hash keys end with `=`, they cannot be transformed into hash labels.
765
+ - xipgroc, kddeisz - Fixed when blocks on methods with no arguments are transformed into `to_proc` syntax.
716
766
 
717
767
  ## [0.12.1] - 2019-04-22
718
768
 
719
769
  ### Changed
720
770
 
721
- - [@kddeisz] - If a lambda literal is nested under a `command` or `command_call` node anywhere in the heirarchy, then it needs to use the higher-precedence `{ ... }` braces as opposed to the `do ... end` delimiters.
722
- - [@jpickwell], [@kddeisz] - Calling `super` with a block and no args was causing the parser to fail when attempting to inspect lambda nodes.
723
- - [@kddeisz] - Support better breaking within interpolation by grouping the interpolated content.
771
+ - kddeisz - If a lambda literal is nested under a `command` or `command_call` node anywhere in the heirarchy, then it needs to use the higher-precedence `{ ... }` braces as opposed to the `do ... end` delimiters.
772
+ - jpickwell, kddeisz - Calling `super` with a block and no args was causing the parser to fail when attempting to inspect lambda nodes.
773
+ - kddeisz - Support better breaking within interpolation by grouping the interpolated content.
724
774
 
725
775
  ## [0.12.0] - 2019-04-18
726
776
 
727
777
  ### Added
728
778
 
729
- - [@kddeisz] - Automatically convert `lambda { ... }` method calls into `-> { ... }` literals.
779
+ - kddeisz - Automatically convert `lambda { ... }` method calls into `-> { ... }` literals.
730
780
 
731
781
  ## [0.11.0] - 2019-04-18
732
782
 
733
783
  ### Added
734
784
 
735
- - [@kddeisz] - Support for parsing things with a ruby shebang (e.g., `#!/usr/bin/env ruby` or `#!/usr/bin/ruby`).
736
- - [@kddeisz] - Big tests refactor.
737
- - [@kddeisz] - Make multiple `when` predicates break at 80 chars and then wrap to be inline with the other predicates.
738
- - [@kddeisz] - Automatically add underscores in large numbers that aren't already formatted.
739
- - [@AlanFoster] - Better support for inline access control modifiers.
740
- - [@jpickwell], [@kddeisz] - Better support for heredocs in hash literals.
741
- - [@kddeisz] - Better support for heredocs in array literals.
742
- - [@kddeisz] - Support automatically transforming `def/begin/rescue/end/end` into `def/rescue/end`.
785
+ - kddeisz - Support for parsing things with a ruby shebang (e.g., `#!/usr/bin/env ruby` or `#!/usr/bin/ruby`).
786
+ - kddeisz - Big tests refactor.
787
+ - kddeisz - Make multiple `when` predicates break at 80 chars and then wrap to be inline with the other predicates.
788
+ - kddeisz - Automatically add underscores in large numbers that aren't already formatted.
789
+ - AlanFoster - Better support for inline access control modifiers.
790
+ - jpickwell, kddeisz - Better support for heredocs in hash literals.
791
+ - kddeisz - Better support for heredocs in array literals.
792
+ - kddeisz - Support automatically transforming `def/begin/rescue/end/end` into `def/rescue/end`.
743
793
 
744
794
  ### Changed
745
795
 
746
- - [@deecewan] - Fixed support for dynamic string hash keys.
747
- - [@kddeisz] - Moved `case/when` into its own file and added better documentation.
748
- - [@kddeisz] - Moved `begin/rescue` into its own file.
749
- - [@AlanFoster] - Automatically add newlines around access modifiers.
750
- - [@kddeisz] - Alignment of command calls with arguments is fixed.
751
- - [@aaronjensen], [@kddeisz] - Alignment of `to` is explicitly allowed to not indent to better support rspec.
752
- - [@kddeisz] - Fix up the `to_proc` transform so that it works with other argument handling appropriately.
753
- - [@kddeisz] - Fixed regression on regexp comments.
754
- - [@CodingItWrong], [@kddeisz] - Fix up block delimiters when nested inside a `command` or `command_call` node.
755
- - [@kddeisz] - Moved hashes into its own file.
796
+ - deecewan - Fixed support for dynamic string hash keys.
797
+ - kddeisz - Moved `case/when` into its own file and added better documentation.
798
+ - kddeisz - Moved `begin/rescue` into its own file.
799
+ - AlanFoster - Automatically add newlines around access modifiers.
800
+ - kddeisz - Alignment of command calls with arguments is fixed.
801
+ - aaronjensen, kddeisz - Alignment of `to` is explicitly allowed to not indent to better support rspec.
802
+ - kddeisz - Fix up the `to_proc` transform so that it works with other argument handling appropriately.
803
+ - kddeisz - Fixed regression on regexp comments.
804
+ - CodingItWrong, kddeisz - Fix up block delimiters when nested inside a `command` or `command_call` node.
805
+ - kddeisz - Moved hashes into its own file.
756
806
 
757
807
  ## [0.10.0] - 2019-03-25
758
808
 
759
809
  ### Added
760
810
 
761
- - [@kddeisz] - Support for block-local variables.
762
- - [@kddeisz] - Support for dyna-symbols that are using single quotes.
811
+ - kddeisz - Support for block-local variables.
812
+ - kddeisz - Support for dyna-symbols that are using single quotes.
763
813
 
764
814
  ### Changed
765
815
 
766
- - [@kddeisz] - Force method calls after arrays, blocks, hashes, and xstrings to hang onto the end of the previous nodes.
767
- - [@kddeisz] - Check before anything else for an invalid ruby version.
816
+ - kddeisz - Force method calls after arrays, blocks, hashes, and xstrings to hang onto the end of the previous nodes.
817
+ - kddeisz - Check before anything else for an invalid ruby version.
768
818
 
769
819
  ## [0.9.1] - 2019-03-24
770
820
 
771
821
  ### Changed
772
822
 
773
- - [@kddeisz] - Better support string quotes by favoring what the user chose if the string contains escape patterns.
774
- - [@kddeisz] - Better support heredocs within method calls.
823
+ - kddeisz - Better support string quotes by favoring what the user chose if the string contains escape patterns.
824
+ - kddeisz - Better support heredocs within method calls.
775
825
 
776
826
  ## [0.9.0] - 2019-03-18
777
827
 
778
828
  ### Added
779
829
 
780
- - [@kddeisz] - Support the `hasPragma` function.
781
- - [@kddeisz] - Support the new `number_arg` node type in Ruby 2.7.
830
+ - kddeisz - Support the `hasPragma` function.
831
+ - kddeisz - Support the new `number_arg` node type in Ruby 2.7.
782
832
 
783
833
  ### Changed
784
834
 
785
- - [@kddeisz] - Limit the number of nodes that are allowed to turn into ternary expressions.
835
+ - kddeisz - Limit the number of nodes that are allowed to turn into ternary expressions.
786
836
 
787
837
  ## [0.8.0] - 2019-03-08
788
838
 
789
839
  ### Added
790
840
 
791
- - [@kddeisz] - Add `eslint` and fix up existing violations.
792
- - [@AlanFoster] - Add the infra for the `prettier` ruby gem.
793
- - [@kddeisz] - Add a `rake` task for easier process integration for the ruby gem.
794
- - [@kddeisz] - Handle direct interpolation of strings with %w array literals (i.e., `["#{foo}"]` should not be transformed into a %w array).
841
+ - kddeisz - Add `eslint` and fix up existing violations.
842
+ - AlanFoster - Add the infra for the `prettier` ruby gem.
843
+ - kddeisz - Add a `rake` task for easier process integration for the ruby gem.
844
+ - kddeisz - Handle direct interpolation of strings with %w array literals (i.e., `["#{foo}"]` should not be transformed into a %w array).
795
845
 
796
846
  ### Changed
797
847
 
798
- - [@kddeisz] - Fix string escaping for hex digit bit patterns when there's only one character after the "x".
799
- - [@AlanFoster] - Don't allow line breaks between brace block params.
800
- - [@johnschoeman] - Switch over the array.rb test case to minitest.
801
- - [@AlanFoster] - Test improvements to allow running in parallel.
802
- - [@johnschoeman] - Switch over assign.rb test case to minitest.
803
- - [@AlanFoster] - Add a contributing guide.
804
- - [@AlanFoster] - Handle longer command nodes.
805
- - [@kddeisz] - Changed the ruby executable within the `prettier` gem to `rbprettier` for easier autocomplete.
848
+ - kddeisz - Fix string escaping for hex digit bit patterns when there's only one character after the "x".
849
+ - AlanFoster - Don't allow line breaks between brace block params.
850
+ - johnschoeman - Switch over the array.rb test case to minitest.
851
+ - AlanFoster - Test improvements to allow running in parallel.
852
+ - johnschoeman - Switch over assign.rb test case to minitest.
853
+ - AlanFoster - Add a contributing guide.
854
+ - AlanFoster - Handle longer command nodes.
855
+ - kddeisz - Changed the ruby executable within the `prettier` gem to `rbprettier` for easier autocomplete.
806
856
 
807
857
  ### Removed
808
858
 
809
- - [@kddeisz] - All instances of the spread (`...`) operator so that we can support older versions of node.
859
+ - kddeisz - All instances of the spread (`...`) operator so that we can support older versions of node.
810
860
 
811
861
  ## [0.7.0] - 2019-02-24
812
862
 
813
863
  ### Changed
814
864
 
815
- - [@kddeisz] - Support checking for escaping within strings to force double quotes (e.g., "\n").
816
- - [@RossKinsella], [@kddeisz] - Handle cases with empty class and module declarations that need to break.
817
- - [@AlanFoster] - Align the `bin/print` and `bin/sexp` APto support `bin/print` taking a filepath.
818
- - [@AndrewRayCode], [@kddeisz] - Support lambdas that don't break and are inline.
819
- - [@AlanFoster] - Switch over the numbers.rb test to minitest.
820
- - [@AlanFoster] - Switch over the kwargs.rb test to minitest.
821
- - [@AlanFoster] - Bail out early if the Ruby input is invalid.
822
- - [@kddeisz] - Support `__END__` content.
823
- - [@AlanFoster] - Fix up issue with whitespace being added within regexp that are multiline.
824
- - [@AlanFoster] - Better support for destructuring within multi assignment.
825
- - [@kddeisz] - Switch `next` test over to minitest.
826
- - [@kddeisz] - Handle multiple arguments to `next` with a space between.
827
- - [@AndrewRayCode], [@kddeisz] - Handle multi-line conditional predicate (should align with keyword).
828
- - [@aaronjensen], [@kddeisz] - Properly support adding trailing commas with and without blocks.
829
- - [@AlanFoster], [@kddeisz] - Fix regression of handling comments within arrays on array literals.
830
- - [@AlanFoster] - Support multiple arguments to `undef`.
865
+ - kddeisz - Support checking for escaping within strings to force double quotes (e.g., "\n").
866
+ - RossKinsella, kddeisz - Handle cases with empty class and module declarations that need to break.
867
+ - AlanFoster - Align the `bin/print` and `bin/sexp` APto support `bin/print` taking a filepath.
868
+ - AndrewRayCode, kddeisz - Support lambdas that don't break and are inline.
869
+ - AlanFoster - Switch over the numbers.rb test to minitest.
870
+ - AlanFoster - Switch over the kwargs.rb test to minitest.
871
+ - AlanFoster - Bail out early if the Ruby input is invalid.
872
+ - kddeisz - Support `__END__` content.
873
+ - AlanFoster - Fix up issue with whitespace being added within regexp that are multiline.
874
+ - AlanFoster - Better support for destructuring within multi assignment.
875
+ - kddeisz - Switch `next` test over to minitest.
876
+ - kddeisz - Handle multiple arguments to `next` with a space between.
877
+ - AndrewRayCode, kddeisz - Handle multi-line conditional predicate (should align with keyword).
878
+ - aaronjensen, kddeisz - Properly support adding trailing commas with and without blocks.
879
+ - AlanFoster, kddeisz - Fix regression of handling comments within arrays on array literals.
880
+ - AlanFoster - Support multiple arguments to `undef`.
831
881
 
832
882
  ## [0.6.3] - 2019-02-18
833
883
 
834
884
  ### Changed
835
885
 
836
- - [@kddeisz] - Switch over `binary` fixture to minitest.
837
- - [@kddeisz] - Reconfigure parser into multiple layer modules so that it's easier to understand and manage.
838
- - [@kddeisz] - Handle comments from within `begin`, `rescue`, `ensure`, `while`, and `until` nodes.
839
- - [@kddeisz] - Properly indent heredocs without taking into account current indentation level.
886
+ - kddeisz - Switch over `binary` fixture to minitest.
887
+ - kddeisz - Reconfigure parser into multiple layer modules so that it's easier to understand and manage.
888
+ - kddeisz - Handle comments from within `begin`, `rescue`, `ensure`, `while`, and `until` nodes.
889
+ - kddeisz - Properly indent heredocs without taking into account current indentation level.
840
890
 
841
891
  ## [0.6.2] - 2019-02-17
842
892
 
843
893
  ### Changed
844
894
 
845
- - [@AlanFoster] - Handle regexp suffixes.
846
- - [@kddeisz] - Add support for testing the test fixtures with minitest.
847
- - [@kddeisz] - Switch over `alias` and `regexp` tests to minitest.
848
- - [@aaronjensen], [@kddeisz] - Break up method args to split into multiple lines.
849
- - [@christoomey], [@kddeisz] - Handle blocks args when trailing commas are on.
895
+ - AlanFoster - Handle regexp suffixes.
896
+ - kddeisz - Add support for testing the test fixtures with minitest.
897
+ - kddeisz - Switch over `alias` and `regexp` tests to minitest.
898
+ - aaronjensen, kddeisz - Break up method args to split into multiple lines.
899
+ - christoomey, kddeisz - Handle blocks args when trailing commas are on.
850
900
 
851
901
  ## [0.6.1] - 2019-02-15
852
902
 
853
903
  ### Changed
854
904
 
855
- - [@meleyal], [@kddeisz] - Fix Ruby 2.5 inline comments on `args_add_block` nodes.
856
- - [@meleyal], [@kddeisz] - Support passing `super()` explicitly with no arguments.
905
+ - meleyal, kddeisz - Fix Ruby 2.5 inline comments on `args_add_block` nodes.
906
+ - meleyal, kddeisz - Support passing `super()` explicitly with no arguments.
857
907
 
858
908
  ## [0.6.0] - 2019-02-14
859
909
 
860
910
  ### Added
861
911
 
862
- - [@kddeisz] - Handle non UTF-8 comments.
863
- - [@kddeisz] - Handle non UTF-8 identifiers.
864
- - [@kddeisz] - Handle non UTF-8 strings.
865
- - [@kddeisz] - Handle empty parens.
866
- - [@kddeisz] - Handle rescue with splats preceeding the exception names.
912
+ - kddeisz - Handle non UTF-8 comments.
913
+ - kddeisz - Handle non UTF-8 identifiers.
914
+ - kddeisz - Handle non UTF-8 strings.
915
+ - kddeisz - Handle empty parens.
916
+ - kddeisz - Handle rescue with splats preceeding the exception names.
867
917
 
868
918
  ### Changed
869
919
 
870
- - [@kddeisz] - Use `JSON::fast_generate` to get the s-expressions back from the parser.
871
- - [@NoahTheDuke], [@kddeisz] - Handle broken lambdas from within `command` and `command_call` nodes.
920
+ - kddeisz - Use `JSON::fast_generate` to get the s-expressions back from the parser.
921
+ - NoahTheDuke, kddeisz - Handle broken lambdas from within `command` and `command_call` nodes.
872
922
 
873
923
  ## [0.5.2] - 2019-02-13
874
924
 
875
925
  ### Changed
876
926
 
877
- - [@kddeisz] - Support embedded expressions within strings that contain only keywords, as in `"#{super}"`.
927
+ - kddeisz - Support embedded expressions within strings that contain only keywords, as in `"#{super}"`.
878
928
 
879
929
  ## [0.5.1] - 2019-02-13
880
930
 
881
931
  ### Changed
882
932
 
883
- - [@yuki24], [@kddeisz] - Force `do` blocks that we know have to be `do` blocks to break.
884
- - [@kmcq], [@kddeisz] - Handle `command` and `command_call` nodes `do` blocks by forcing them to break.
885
- - [@ashfurrow], [@kddeisz] - Attach comments to full hash association nodes, not just the value.
933
+ - yuki24, kddeisz - Force `do` blocks that we know have to be `do` blocks to break.
934
+ - kmcq, kddeisz - Handle `command` and `command_call` nodes `do` blocks by forcing them to break.
935
+ - ashfurrow, kddeisz - Attach comments to full hash association nodes, not just the value.
886
936
 
887
937
  ## [0.5.0] - 2019-02-13
888
938
 
889
939
  ### Added
890
940
 
891
- - [@kddeisz] - Automatically convert arrays of all string literals to %w arrays.
892
- - [@kddeisz] - Automatically convert arrays of all symbol literals to %i arrays.
941
+ - kddeisz - Automatically convert arrays of all string literals to %w arrays.
942
+ - kddeisz - Automatically convert arrays of all symbol literals to %i arrays.
893
943
 
894
944
  ### Changed
895
945
 
896
- - [@kddeisz] - Move the `args_add` and `args_new` handling into the parser.
897
- - [@uri], [@kddeisz] - Change `command_call` nodes to properly indent when broken and to not add a trailing comma.
898
- - [@kddeisz] - Rename the `trailingComma` option to `addTrailingCommas` to not conflict with the JS option.
946
+ - kddeisz - Move the `args_add` and `args_new` handling into the parser.
947
+ - uri, kddeisz - Change `command_call` nodes to properly indent when broken and to not add a trailing comma.
948
+ - kddeisz - Rename the `trailingComma` option to `addTrailingCommas` to not conflict with the JS option.
899
949
 
900
950
  ## [0.4.1] - 2019-02-12
901
951
 
902
952
  ### Changed
903
953
 
904
- - [@kddeisz] - Provide the `makeList` utility for the nodes that are lists from within ripper.
905
- - [@awinograd], [@kddeisz] - Again, this time for real, properly escape strings.
906
- - [@kddeisz] - Fix up trailing commas on command calls.
954
+ - kddeisz - Provide the `makeList` utility for the nodes that are lists from within ripper.
955
+ - awinograd, kddeisz - Again, this time for real, properly escape strings.
956
+ - kddeisz - Fix up trailing commas on command calls.
907
957
 
908
958
  ## [0.4.0] - 2019-02-12
909
959
 
910
960
  ### Added
911
961
 
912
- - [@Overload119], [@kddeisz] - Support the `trailingComma` configuration option (defaults to `false`).
962
+ - Overload119, kddeisz - Support the `trailingComma` configuration option (defaults to `false`).
913
963
 
914
964
  ### Changed
915
965
 
916
- - [@NoahTheDuke], [@kddeisz] - Pass the code to be formatted over `stdin`.
966
+ - NoahTheDuke, kddeisz - Pass the code to be formatted over `stdin`.
917
967
 
918
968
  ## [0.3.7] - 2019-02-11
919
969
 
920
970
  ### Changed
921
971
 
922
- - [@kddeisz] - Split up statements even if they started on the same line with `;`s unless they are within an embedded expression.
923
- - [@kddeisz] - Properly handle escaped quotes within strings.
972
+ - kddeisz - Split up statements even if they started on the same line with `;`s unless they are within an embedded expression.
973
+ - kddeisz - Properly handle escaped quotes within strings.
924
974
 
925
975
  ## [0.3.6] - 2019-02-10
926
976
 
927
977
  ### Changed
928
978
 
929
- - [@AlanFoster], [@kddeisz] - Support the `not` operator properly.
930
- - [@AlanFoster], [@kddeisz] - Handle comments properly inside `if`, `unless`, and `when` nodes.
979
+ - AlanFoster, kddeisz - Support the `not` operator properly.
980
+ - AlanFoster, kddeisz - Handle comments properly inside `if`, `unless`, and `when` nodes.
931
981
 
932
982
  ## [0.3.5] - 2019-02-09
933
983
 
934
984
  ### Changed
935
985
 
936
- - [@kddeisz] - Handle lonely operators in Ruby `2.5`.
986
+ - kddeisz - Handle lonely operators in Ruby `2.5`.
937
987
 
938
988
  ## [0.3.4] - 2019-02-09
939
989
 
940
990
  ### Changed
941
991
 
942
- - [@kddeisz] - Comments are now properly attached inside `defs` nodes.
943
- - [@kddeisz] - Support multiple inline comments on nodes.
944
- - [@kddeisz] - Support inline comments from within the `EXPR_END|EXPR_LABEL` lexer state.
945
- - [@cbothner] - Stop transforming multistatement blocks with `to_proc`.
946
- - [@kddeisz] - `do` blocks necessarily need to break their parent nodes.
947
- - [@eins78], [@kddeisz] - Handle `next` node edge case with `args_add` as the body.
992
+ - kddeisz - Comments are now properly attached inside `defs` nodes.
993
+ - kddeisz - Support multiple inline comments on nodes.
994
+ - kddeisz - Support inline comments from within the `EXPR_END|EXPR_LABEL` lexer state.
995
+ - cbothner - Stop transforming multistatement blocks with `to_proc`.
996
+ - kddeisz - `do` blocks necessarily need to break their parent nodes.
997
+ - eins78, kddeisz - Handle `next` node edge case with `args_add` as the body.
948
998
 
949
999
  ## [0.3.3] - 2019-02-09
950
1000
 
951
1001
  ### Changed
952
1002
 
953
- - [@bugthing], [@kddeisz] - Command nodes within conditionals now break parents to disallow them from being turned into ternary expressions.
954
- - [@awinograd], [@kddeisz] - Properly escape double quotes when using `preferSingleQuotes: false`.
1003
+ - bugthing, kddeisz - Command nodes within conditionals now break parents to disallow them from being turned into ternary expressions.
1004
+ - awinograd, kddeisz - Properly escape double quotes when using `preferSingleQuotes: false`.
955
1005
 
956
1006
  ## [0.3.2] - 2019-02-09
957
1007
 
958
1008
  ### Changed
959
1009
 
960
- - [@kddeisz] - Don't define duplicated methods in the parser.
961
- - [@kddeisz] - Let prettier know about `.rb` and `.rake` files so you don't have to specify the parser when running.
962
- - [@kddeisz] - Renamed the package to @prettier/plugin-ruby.
1010
+ - kddeisz - Don't define duplicated methods in the parser.
1011
+ - kddeisz - Let prettier know about `.rb` and `.rake` files so you don't have to specify the parser when running.
1012
+ - kddeisz - Renamed the package to @prettier/plugin-ruby.
963
1013
 
964
1014
  ## [0.3.1] - 2019-02-07
965
1015
 
966
1016
  ### Changed
967
1017
 
968
- - [@kddeisz] - Automatically add parens to method declarations.
969
- - [@kddeisz] - Handle comments on bare hash assocs.
970
- - [@kddeisz] - Handle `method_add_block` nodes where the statements may be nested one more level.
971
- - [@kddeisz] - Handle heredocs nested no matter how many levels deep.
1018
+ - kddeisz - Automatically add parens to method declarations.
1019
+ - kddeisz - Handle comments on bare hash assocs.
1020
+ - kddeisz - Handle `method_add_block` nodes where the statements may be nested one more level.
1021
+ - kddeisz - Handle heredocs nested no matter how many levels deep.
972
1022
 
973
1023
  ## [0.3.0] - 2019-02-07
974
1024
 
975
1025
  ### Added
976
1026
 
977
- - [@kddeisz] - Support squiggly heredocs.
978
- - [@kddeisz] - Support straight heredocs.
1027
+ - kddeisz - Support squiggly heredocs.
1028
+ - kddeisz - Support straight heredocs.
979
1029
 
980
1030
  ### Changed
981
1031
 
982
- - [@kddeisz] - Ignore current indentation when creating embdocs so that `=begin` is always at the beginning of the line.
983
- - [@kddeisz] - Move `regexp_add` and `regexp_new` handling into the parser.
984
- - [@kddeisz] - Move `xstring_add` and `xstring_new` handling into the parser.
985
- - [@kddeisz] - Move `string_add` and `string_content` handling into the parser.
986
- - [@kddeisz] - Move `mrhs_add` and `mrhs_new` handling into the parser.
987
- - [@kddeisz] - Move `mlhs_add` and `mlhs_new` handling into the parser.
1032
+ - kddeisz - Ignore current indentation when creating embdocs so that `=begin` is always at the beginning of the line.
1033
+ - kddeisz - Move `regexp_add` and `regexp_new` handling into the parser.
1034
+ - kddeisz - Move `xstring_add` and `xstring_new` handling into the parser.
1035
+ - kddeisz - Move `string_add` and `string_content` handling into the parser.
1036
+ - kddeisz - Move `mrhs_add` and `mrhs_new` handling into the parser.
1037
+ - kddeisz - Move `mlhs_add` and `mlhs_new` handling into the parser.
988
1038
 
989
1039
  ## [0.2.1] - 2019-02-06
990
1040
 
991
1041
  ### Changed
992
1042
 
993
- - [@kddeisz] - Handle brace blocks on commands properly.
994
- - [@kddeisz] - Break parent and return `do` blocks when called from a `command` node.
995
- - [@kddeisz] - Handle edge cases with `if` statements where there is no body of the if (so it can't be converted to a ternary).
1043
+ - kddeisz - Handle brace blocks on commands properly.
1044
+ - kddeisz - Break parent and return `do` blocks when called from a `command` node.
1045
+ - kddeisz - Handle edge cases with `if` statements where there is no body of the if (so it can't be converted to a ternary).
996
1046
 
997
1047
  ## [0.2.0] - 2019-02-06
998
1048
 
999
1049
  ### Added
1000
1050
 
1001
- - [@kddeisz] - Handle `methref` nodes from Ruby `2.7`.
1002
- - [@kddeisz] - Allow `module` nodes to shorten using `;` when the block is empty.
1051
+ - kddeisz - Handle `methref` nodes from Ruby `2.7`.
1052
+ - kddeisz - Allow `module` nodes to shorten using `;` when the block is empty.
1003
1053
 
1004
1054
  ### Changed
1005
1055
 
1006
- - [@kddeisz] - Handle splat within an array, as in `[1, 2, *foo]`.
1007
- - [@kddeisz] - Disallow comments from being attached to intermediary regex nodes.
1008
- - [@kddeisz] - Fix `to_proc` transforms to reference the method called as opposed to the parameter name.
1009
- - [@kddeisz] - Change statement lists to be generated within the parser instead of the printer, thereby allowing finer control over comments.
1010
- - [@kddeisz] - Completely revamp comment parsing by switching off the internal lexer state from `ripper`. This should drastically increase accuracy of comment parsing in general, and set us up for success in the future.
1011
- - [@kddeisz] - Allow comments to be attached to `CHAR` nodes.
1012
- - [@kddeisz] - Disallow comments from being attached to `args_new` nodes.
1013
- - [@kddeisz] - Track start and end lines so we can better insert block comments.
1014
- - [@kddeisz] - Handle intermediary array nodes in the parse for better comment handling.
1056
+ - kddeisz - Handle splat within an array, as in `[1, 2, *foo]`.
1057
+ - kddeisz - Disallow comments from being attached to intermediary regex nodes.
1058
+ - kddeisz - Fix `to_proc` transforms to reference the method called as opposed to the parameter name.
1059
+ - kddeisz - Change statement lists to be generated within the parser instead of the printer, thereby allowing finer control over comments.
1060
+ - kddeisz - Completely revamp comment parsing by switching off the internal lexer state from `ripper`. This should drastically increase accuracy of comment parsing in general, and set us up for success in the future.
1061
+ - kddeisz - Allow comments to be attached to `CHAR` nodes.
1062
+ - kddeisz - Disallow comments from being attached to `args_new` nodes.
1063
+ - kddeisz - Track start and end lines so we can better insert block comments.
1064
+ - kddeisz - Handle intermediary array nodes in the parse for better comment handling.
1015
1065
 
1016
1066
  ## [0.1.2] - 2019-02-05
1017
1067
 
1018
1068
  ### Changed
1019
1069
 
1020
- - [@kddeisz] - Handle guard clauses that return with no parens.
1070
+ - kddeisz - Handle guard clauses that return with no parens.
1021
1071
 
1022
1072
  ## [0.1.1] - 2019-02-05
1023
1073
 
1024
1074
  ### Changed
1025
1075
 
1026
- - [@kddeisz] - Handle class method calls with the `::` operator.
1027
- - [@kddeisz] - Handle strings with apostrophes when using `preferSingleQuote`.
1028
- - [@kddeisz] - Have travis run multiple ruby versions.
1029
- - [@kddeisz] - Explicitly fail if ruby version is < `2.5`.
1030
- - [@kddeisz] - Disallow comments from being attached to intermediary string nodes.
1076
+ - kddeisz - Handle class method calls with the `::` operator.
1077
+ - kddeisz - Handle strings with apostrophes when using `preferSingleQuote`.
1078
+ - kddeisz - Have travis run multiple ruby versions.
1079
+ - kddeisz - Explicitly fail if ruby version is < `2.5`.
1080
+ - kddeisz - Disallow comments from being attached to intermediary string nodes.
1031
1081
 
1032
1082
  ## [0.1.0] - 2019-02-04
1033
1083
 
@@ -1035,7 +1085,11 @@ would previously result in `array[]`, but now prints properly.
1035
1085
 
1036
1086
  - Initial release 🎉
1037
1087
 
1038
- [unreleased]: https://github.com/prettier/plugin-ruby/compare/v1.3.0...HEAD
1088
+ [unreleased]: https://github.com/prettier/plugin-ruby/compare/v1.5.2...HEAD
1089
+ [1.5.2]: https://github.com/prettier/plugin-ruby/compare/v1.5.1...v1.5.2
1090
+ [1.5.1]: https://github.com/prettier/plugin-ruby/compare/v1.5.0...v1.5.1
1091
+ [1.5.0]: https://github.com/prettier/plugin-ruby/compare/v1.4.0...v1.5.0
1092
+ [1.4.0]: https://github.com/prettier/plugin-ruby/compare/v1.3.0...v1.4.0
1039
1093
  [1.3.0]: https://github.com/prettier/plugin-ruby/compare/v1.2.5...v1.3.0
1040
1094
  [1.2.5]: https://github.com/prettier/plugin-ruby/compare/v1.2.4...v1.2.5
1041
1095
  [1.2.4]: https://github.com/prettier/plugin-ruby/compare/v1.2.3...v1.2.4
@@ -1095,73 +1149,3 @@ would previously result in `array[]`, but now prints properly.
1095
1149
  [0.1.2]: https://github.com/prettier/plugin-ruby/compare/v0.1.1...v0.1.2
1096
1150
  [0.1.1]: https://github.com/prettier/plugin-ruby/compare/v0.1.0...v0.1.1
1097
1151
  [0.1.0]: https://github.com/prettier/plugin-ruby/compare/61f675...v0.1.0
1098
- [@aaronjensen]: https://github.com/aaronjensen
1099
- [@acrewdson]: https://github.com/acrewdson
1100
- [@alanfoster]: https://github.com/AlanFoster
1101
- [@alse]: https://github.com/alse
1102
- [@andrewraycode]: https://github.com/AndrewRayCode
1103
- [@andyw8]: https://github.com/andyw8
1104
- [@ashfurrow]: https://github.com/ashfurrow
1105
- [@awinograd]: https://github.com/awinograd
1106
- [@blampe]: https://github.com/blampe
1107
- [@bugthing]: https://github.com/bugthing
1108
- [@cbothner]: https://github.com/cbothner
1109
- [@christoomey]: https://github.com/christoomey
1110
- [@cldevs]: https://github.com/cldevs
1111
- [@codingitwrong]: https://github.com/CodingItWrong
1112
- [@coiti]: https://github.com/coiti
1113
- [@cvoege]: https://github.com/cvoege
1114
- [@deecewan]: https://github.com/deecewan
1115
- [@dudeofawesome]: https://github.com/dudeofawesome
1116
- [@eins78]: https://github.com/eins78
1117
- [@flyerhzm]: https://github.com/flyerhzm
1118
- [@fruetel]: https://github.com/Fruetel
1119
- [@ftes]: https://github.com/ftes
1120
- [@gin0606]: https://github.com/gin0606
1121
- [@github0013]: https://github.com/github0013
1122
- [@glejeune]: https://github.com/glejeune
1123
- [@hafley66]: https://github.com/hafley66
1124
- [@ianks]: https://github.com/ianks
1125
- [@jakeprime]: https://github.com/jakeprime
1126
- [@jamescostian]: https://github.com/jamescostian
1127
- [@janklimo]: https://github.com/janklimo
1128
- [@jbielick]: https://github.com/jbielick
1129
- [@joeyjoejoejr]: https://github.com/joeyjoejoejr
1130
- [@johncsnyder]: https://github.com/johncsnyder
1131
- [@johnschoeman]: https://github.com/johnschoeman
1132
- [@joshuakgoldberg]: https://github.com/JoshuaKGoldberg
1133
- [@jpickwell]: https://github.com/jpickwell
1134
- [@jrdioko]: https://github.com/jrdioko
1135
- [@jviney]: https://github.com/jviney
1136
- [@karanmandal]: https://github.com/karanmandal
1137
- [@kddeisz]: https://github.com/kddeisz
1138
- [@kmcq]: https://github.com/kmcq
1139
- [@krachtstefan]: https://github.com/krachtstefan
1140
- [@localhostdotdev]: https://github.com/localhostdotdev
1141
- [@lukyth]: https://github.com/lukyth
1142
- [@marcmaniez]: https://github.com/MarcManiez
1143
- [@masqita]: https://github.com/masqita
1144
- [@matt-wratt]: https://github.com/matt-wratt
1145
- [@meleyal]: https://github.com/meleyal
1146
- [@mmainz]: https://github.com/mmainz
1147
- [@mmcnl]: https://github.com/mmcnl
1148
- [@nathan-beam]: https://github.com/nathan-beam
1149
- [@noahtheduke]: https://github.com/NoahTheDuke
1150
- [@nruth]: https://github.com/nruth
1151
- [@overload119]: https://github.com/Overload119
1152
- [@petevk]: https://github.com/petevk
1153
- [@pje]: https://github.com/pje
1154
- [@rafbm]: https://github.com/rafbm
1155
- [@rindek]: https://github.com/rindek
1156
- [@rosskinsella]: https://github.com/RossKinsella
1157
- [@rsullivan00]: https://github.com/Rsullivan00
1158
- [@ryan-hunter-pc]: https://github.com/ryan-hunter-pc
1159
- [@shaydavidson]: https://github.com/ShayDavidson
1160
- [@steobrien]: https://github.com/steobrien
1161
- [@sviccari]: https://github.com/SViccari
1162
- [@tobyndockerill]: https://github.com/tobyndockerill
1163
- [@uri]: https://github.com/uri
1164
- [@valscion]: https://github.com/valscion
1165
- [@xipgroc]: https://github.com/xipgroc
1166
- [@ykpythemind]: https://github.com/ykpythemind
1167
- [@yuki24]: https://github.com/yuki24