inline-sql-toolkit 0.4.13 → 0.4.14
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.14 - 2026-09-25
|
|
4
|
+
|
|
5
|
+
- Changed: `inlineSql.format.commaPosition: "before"` emits the moved comma
|
|
6
|
+
with a space after it again (`id` / ` , name`). 0.4.13 removed the space
|
|
7
|
+
for a single release; the spaced form is the wanted style. The default
|
|
8
|
+
`after` output is unchanged, and `src/` and `test/` are byte-identical to
|
|
9
|
+
v0.4.12.
|
|
10
|
+
|
|
3
11
|
## 0.4.13 - 2026-09-25
|
|
4
12
|
|
|
5
13
|
- Changed: `inlineSql.format.commaPosition: "before"` now emits the moved
|
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 a space after it (`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
|
}
|