@putout/printer 12.27.1 → 12.28.0

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,9 @@
1
+ 2025.02.08, v12.28.0
2
+
3
+ feature:
4
+ - 306e48c @putout/printer: @putout/operate v13.0.0
5
+ - 240f1e8 @putout/printer: TSParenthesizedType: add
6
+
1
7
  2025.02.08, v12.27.1
2
8
 
3
9
  feature:
@@ -38,6 +38,7 @@ const {TSTypeReference} = require('./ts-type-reference/ts-type-reference');
38
38
  const {TSInferType} = require('./ts-infer-type/ts-infer-type');
39
39
  const {TSParameterProperty} = require('./ts-parameter-property/ts-parameter-property');
40
40
  const {TSTypeQuery} = require('./ts-type-query/ts-type-query');
41
+ const {TSParenthesizedType} = require('./ts-parenthesized-type/ts-parenthesized-type');
41
42
 
42
43
  module.exports = {
43
44
  TSAsExpression,
@@ -171,6 +172,7 @@ module.exports = {
171
172
  print('__expression');
172
173
  print('__typeArguments');
173
174
  },
175
+ TSParenthesizedType,
174
176
  TSPropertySignature,
175
177
  TSFunctionType,
176
178
  TSTypePredicate(path, {print}) {
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ module.exports.TSParenthesizedType = (path, {print}) => {
4
+ print('(');
5
+ print('__typeAnnotation');
6
+ print(')');
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "12.27.1",
3
+ "version": "12.28.0",
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",
@@ -34,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "@putout/babel": "^3.0.0",
36
36
  "@putout/compare": "^16.0.1",
37
- "@putout/operate": "^12.0.0",
37
+ "@putout/operate": "^13.0.0",
38
38
  "@putout/operator-json": "^2.0.0",
39
39
  "fullstore": "^3.0.0",
40
40
  "just-snake-case": "^3.2.0",