@putout/printer 18.40.3 → 18.41.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,8 @@
1
+ 2026.08.25, v18.41.0
2
+
3
+ feature:
4
+ - 7d4b662d @putout/printer: TSInstantiationExpression: parens
5
+
1
6
  2026.08.24, v18.40.3
2
7
 
3
8
  feature:
@@ -36,6 +36,7 @@ export {TSTypeQuery} from './ts-type-query/ts-type-query.js';
36
36
  export {TSParenthesizedType} from './ts-parenthesized-type/ts-parenthesized-type.js';
37
37
  export {TSTemplateLiteralType} from './ts-template-literal-type/ts-template-literal-type.js';
38
38
  export {TSOptionalType} from './ts-optional-type/ts-optional-type.js';
39
+ export {TSInstantiationExpression} from './ts-instantiation-expression/ts-instantiation-expression.js';
39
40
 
40
41
  export const TSBigIntKeyword = (path, {write}) => {
41
42
  write('bigint');
@@ -106,10 +107,6 @@ export const TSIndexedAccessType = (path, {print}) => {
106
107
  export const TSStringKeyword = (path, {write}) => {
107
108
  write('string');
108
109
  };
109
- export const TSInstantiationExpression = (path, {print}) => {
110
- print('__expression');
111
- print('__typeArguments');
112
- };
113
110
  export const TSAnyKeyword = (path, {write}) => {
114
111
  write('any');
115
112
  };
@@ -0,0 +1,6 @@
1
+ import {maybeParens} from '#maybe-parens';
2
+
3
+ export const TSInstantiationExpression = maybeParens((path, {print}) => {
4
+ print('__expression');
5
+ print('__typeArguments');
6
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "18.40.3",
3
+ "version": "18.41.0",
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",