@putout/printer 15.19.0 → 15.20.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,16 @@
|
|
|
1
|
+
2025.09.09, v15.20.1
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- ea679da @putout/printer: JSXAttribute: StringLiteral: quote: single -> double
|
|
5
|
+
|
|
6
|
+
feature:
|
|
7
|
+
- 4e11751 @putout/printer: @putout/plugin-minify v11.2.1
|
|
8
|
+
|
|
9
|
+
2025.08.12, v15.20.0
|
|
10
|
+
|
|
11
|
+
feature:
|
|
12
|
+
- 0eb1ddd @putout/printer: JSXText: no extra
|
|
13
|
+
|
|
1
14
|
2025.08.05, v15.19.0
|
|
2
15
|
|
|
3
16
|
feature:
|
|
@@ -5,7 +5,7 @@ const {JSXAttribute} = require('./jsx-attribute');
|
|
|
5
5
|
const {isCoupleLines} = require('../is');
|
|
6
6
|
const {JSXOpeningElement} = require('./jsx-opening-element');
|
|
7
7
|
const fragments = require('./jsx-fragment');
|
|
8
|
-
const {JSXText} = require('./jsx-text');
|
|
8
|
+
const {JSXText} = require('./jsx-text/jsx-text');
|
|
9
9
|
const {parseComments} = require('../comment/comment');
|
|
10
10
|
|
|
11
11
|
module.exports = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const {isNext} = require('
|
|
3
|
+
const {isNext} = require('#is');
|
|
4
4
|
|
|
5
5
|
module.exports.JSXText = (path, {write, indent}) => {
|
|
6
6
|
const {node} = path;
|
|
@@ -8,7 +8,7 @@ module.exports.JSXText = (path, {write, indent}) => {
|
|
|
8
8
|
const isSpacesOnly = /^\s+$/.test(value);
|
|
9
9
|
const hasNext = isNext(path);
|
|
10
10
|
|
|
11
|
-
if (extra
|
|
11
|
+
if (extra?.raw.includes('&'))
|
|
12
12
|
return write(extra.raw);
|
|
13
13
|
|
|
14
14
|
if (isSpacesOnly && hasNext) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/printer",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.20.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",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@putout/eslint": "^4.1.0",
|
|
73
|
-
"@putout/plugin-minify": "^
|
|
73
|
+
"@putout/plugin-minify": "^11.2.1",
|
|
74
74
|
"@putout/plugin-printer": "^6.0.0",
|
|
75
75
|
"@putout/plugin-promises": "^18.0.0",
|
|
76
76
|
"@putout/plugin-react-hook-form": "^6.0.0",
|