inline-sql-toolkit 0.4.12 → 0.4.13
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.md +8 -0
- package/README.md +1 -1
- package/dist/cli.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.13 - 2026-09-25
|
|
4
|
+
|
|
5
|
+
- Changed: `inlineSql.format.commaPosition: "before"` now emits the moved
|
|
6
|
+
comma with no following space — `id` / ` ,name` instead of `, name` —
|
|
7
|
+
per user feedback. The default `after` output is byte-for-byte unchanged,
|
|
8
|
+
and the mover's safety rules are identical: commas inside string literals,
|
|
9
|
+
`$$ … $$` bodies, and comments are still never touched.
|
|
10
|
+
|
|
3
11
|
## 0.4.12 - 2026-09-24
|
|
4
12
|
|
|
5
13
|
- Feature: added the `inlineSql.format.keepFunctionsInline` setting (default
|
package/README.md
CHANGED
|
@@ -112,7 +112,7 @@ later atomic precondition.
|
|
|
112
112
|
`mysql`, `postgresql`, or `sqlite`; default `postgresql`).
|
|
113
113
|
- `inlineSql.format.commaPosition`: `after` (default) keeps a wrapping comma at
|
|
114
114
|
the end of the previous line; `before` moves it to the start of the next
|
|
115
|
-
line.
|
|
115
|
+
line, with no space after the comma (`id` / ` ,name`).
|
|
116
116
|
- `inlineSql.format.keepFunctionsInline`: re-join the formatter's line breaks
|
|
117
117
|
inside `word(...)` groups so `SUM(...)`, `COUNT(CASE ... END)`, and nested
|
|
118
118
|
calls stay on one line (default `false`). Newlines inside string literals and
|
package/dist/cli.js
CHANGED
|
@@ -1616,7 +1616,7 @@ function moveCommasToLineStarts(text) {
|
|
|
1616
1616
|
const indent = nextParts?.[1] ?? "";
|
|
1617
1617
|
const content = nextParts?.[2] ?? "";
|
|
1618
1618
|
lines[index] = `${line.slice(0, comma)}${line.slice(comma + 1)}`.trimEnd();
|
|
1619
|
-
lines[index + 1] = `${indent}
|
|
1619
|
+
lines[index + 1] = `${indent},${content}`;
|
|
1620
1620
|
}
|
|
1621
1621
|
return lines.join("\n");
|
|
1622
1622
|
}
|