@putout/printer 9.19.0 → 10.0.1

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,14 @@
1
+ 2024.10.27, v10.0.1
2
+
3
+ feature:
4
+ - 453d7a2 @putout/printer: @putout/compare v15.0.2
5
+ - ac170c0 @putout/printer: estree-to-babel v10.0.0
6
+
7
+ 2024.10.26, v10.0.0
8
+
9
+ feature:
10
+ - 24d872a @putout/printer: align with Babel v8
11
+
1
12
  2024.10.23, v9.19.0
2
13
 
3
14
  feature:
@@ -193,7 +193,11 @@ module.exports = {
193
193
  print(';');
194
194
  print.newline();
195
195
  },
196
- TSExpressionWithTypeArguments(path, {print}) {
196
+ TSClassImplements(path, {print}) {
197
+ print('__expression');
198
+ print('__typeParameters');
199
+ },
200
+ TSInterfaceHeritage(path, {print}) {
197
201
  print('__expression');
198
202
  print('__typeParameters');
199
203
  },
@@ -22,7 +22,11 @@ module.exports.TSMappedType = (path, {print, indent, maybe}) => {
22
22
  }
23
23
 
24
24
  print('[');
25
- print('__typeParameter');
25
+ print('__key');
26
+ print(' ');
27
+ print('in');
28
+ print(' ');
29
+ print('__constraint');
26
30
 
27
31
  if (nameType) {
28
32
  print(' as');
@@ -17,10 +17,7 @@ module.exports.TSTypeParameter = (path, {write, traverse}) => {
17
17
  if (!exists(constraint))
18
18
  return;
19
19
 
20
- if (constraint.isTSTypeOperator() || path.parentPath.isTSMappedType())
21
- write(' in ');
22
- else
23
- write(' extends ');
20
+ write(' extends ');
24
21
 
25
22
  traverse(constraint);
26
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "9.19.0",
3
+ "version": "10.0.1",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Simplest possible opinionated Babel AST printer for 🐊Putout",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@putout/babel": "^2.0.0",
36
- "@putout/compare": "^14.0.0",
36
+ "@putout/compare": "^15.0.2",
37
37
  "@putout/operate": "^12.0.0",
38
38
  "@putout/operator-json": "^2.0.0",
39
39
  "fullstore": "^3.0.0",
@@ -63,7 +63,7 @@
63
63
  "escover": "^4.0.1",
64
64
  "eslint": "^9.0.0",
65
65
  "eslint-plugin-putout": "^23.0.0",
66
- "estree-to-babel": "^9.0.0",
66
+ "estree-to-babel": "^10.0.0",
67
67
  "goldstein": "^5.14.0",
68
68
  "just-kebab-case": "^4.2.0",
69
69
  "madrun": "^10.0.0",