@putout/printer 18.50.5 → 18.50.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2026.11.17, v18.50.6
2
+
3
+ fix:
4
+ - 2b3dae97 ArrayPattern: comma after RestElement
5
+
1
6
  2026.11.14, v18.50.5
2
7
 
3
8
  fix:
@@ -20,7 +20,7 @@ export const ArrayPattern = maybeTypeAnnotation((path, {indent, maybe, print}, s
20
20
  print(element);
21
21
 
22
22
  if (isNewLine) {
23
- print(',\n');
23
+ print(element.isRestElement() ? '\n' : ',\n');
24
24
  } else if (index < n) {
25
25
  print(',');
26
26
  print.space();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "18.50.5",
3
+ "version": "18.50.6",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Simplest possible opinionated Babel AST printer for 🐊Putout",