diff --git a/.changeset/calm-oneline-guards.md b/.changeset/calm-oneline-guards.md deleted file mode 100644 index e56baf491..000000000 --- a/.changeset/calm-oneline-guards.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"rawsql-ts": patch ---- - -Add the `oneLineMaxLength` formatter option. When enabled, opt-in one-line constructs such as parentheses, CASE expressions, JOIN conditions, subqueries, and `cte-oneline` CTE entries stay compact only while their rendered candidate fits within the configured width; longer candidates fall back to the normal multiline formatter. - -Also add JOIN condition layout controls: `joinOnBreak: "before"` can place `ON` on its own indented line, and `joinConditionContinuationIndent` can indent wrapped `AND` / `OR` predicates inside `JOIN ... ON` conditions. diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 4fa9f117f..5a0be68df 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,13 @@ # rawsql-ts +## 0.24.2 + +### Patch Changes + +- [#875](https://github.com/mk3008/rawsql-ts/pull/875) [`a11cd0b`](https://github.com/mk3008/rawsql-ts/commit/a11cd0bc15e80c46ee789354e720da39c0c7dc2e) Thanks [@mk3008](https://github.com/mk3008)! - Add the `oneLineMaxLength` formatter option. When enabled, opt-in one-line constructs such as parentheses, CASE expressions, JOIN conditions, subqueries, and `cte-oneline` CTE entries stay compact only while their rendered candidate fits within the configured width; longer candidates fall back to the normal multiline formatter. + + Also add JOIN condition layout controls: `joinOnBreak: "before"` can place `ON` on its own indented line, and `joinConditionContinuationIndent` can indent wrapped `AND` / `OR` predicates inside `JOIN ... ON` conditions. + ## 0.24.1 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 9949657e2..4397f2354 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "rawsql-ts", - "version": "0.24.1", + "version": "0.24.2", "description": "High-performance SQL parser and AST analyzer written in TypeScript. Provides fast parsing and advanced transformation capabilities.", "main": "dist/index.js", "module": "dist/esm/index.js",