@carbonhq/oxfmt-binding-linux-arm64-musl 0.74.0-sql.0 → 0.75.0-sql.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.
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# Sqruff dependency and compatibility patches
|
|
2
|
-
|
|
3
|
-
The formatter uses `sqruff-lib`, `sqruff-lib-core`, and `sqruff-lib-dialects`
|
|
4
|
-
0.41.0 from the [CarbonHQ fork](https://github.com/CarbonHQ/sqruff/tree/codex/oxfmt).
|
|
5
|
-
Cargo pins all three crates to commit
|
|
6
|
-
`cafbdc311f9ac963880a1f383e85d18f31670a6c` in `Cargo.toml` and `Cargo.lock`.
|
|
7
|
-
The fork contains seven modified source files on top of upstream commit
|
|
8
|
-
`aa4c5730d697794ffaf72a4c187d64522e5820c7`:
|
|
9
|
-
https://github.com/quarylabs/sqruff/tree/aa4c5730d697794ffaf72a4c187d64522e5820c7
|
|
10
|
-
|
|
11
|
-
Only the upstream Apache-2.0 license and these provenance notes are kept here.
|
|
12
|
-
Cargo fetches the source when building; npm users install prebuilt native
|
|
13
|
-
packages and do not need Git or Rust. Both the license and these notes are
|
|
14
|
-
included in the main npm package and every native package.
|
|
15
|
-
|
|
16
|
-
Review the [patch commit](https://github.com/CarbonHQ/sqruff/commit/cafbdc311f9ac963880a1f383e85d18f31670a6c).
|
|
17
|
-
|
|
18
|
-
Fork changes:
|
|
19
|
-
|
|
20
|
-
- `crates/lib-core/src/parser/context.rs` and `match_algorithms.rs`: include the
|
|
21
|
-
input-slice index in the parse-cache location. Cached match ranges are index
|
|
22
|
-
based; sharing a source position does not make ranges interchangeable. A unit
|
|
23
|
-
regression covers repeated positions at different indices.
|
|
24
|
-
- `crates/lib-dialects/src/postgres.rs`: parse `OVERLAY(string PLACING expression
|
|
25
|
-
FROM expression [FOR expression])`, including casts and arithmetic. Also allow
|
|
26
|
-
array expressions and array-returning function calls in `ANY`/`ALL`/`SOME`
|
|
27
|
-
comparisons, while retaining quantified subquery support. Keep `VARIADIC`
|
|
28
|
-
outside the array-literal node so layout rules preserve its keyword boundary.
|
|
29
|
-
- `crates/lib/src/rules/layout/lt09.rs`: keep a single SELECT target on its own
|
|
30
|
-
line when combining it with SELECT would exceed `max_line_length`. This keeps
|
|
31
|
-
LT09 from undoing LT05 and alternating layouts between formatter runs.
|
|
32
|
-
|
|
33
|
-
- `crates/lib/src/rules/layout/lt05.rs`: index tokens in comment clauses once
|
|
34
|
-
per rule pass, avoiding a full-tree path search for every token on long lines.
|
|
35
|
-
This preserves the comment-clause exemption while removing quadratic work.
|
|
36
|
-
|
|
37
|
-
- `crates/lib/src/utils/reflow/rebreak.rs` and `reindent.rs`: lazily index raw
|
|
38
|
-
token ancestor paths once per reflow pass, sharing them across long lines.
|
|
39
|
-
The cache is local to the pass and cannot create reference cycles in the tree.
|
|
40
|
-
|
|
41
|
-
The Oxfmt adapter separately raises the finite parse-node budget to 1,000,000;
|
|
42
|
-
Sqruff's depth limit remains enabled. Regressions live in
|
|
43
|
-
`crates/oxc_formatter_sql/src/lib.rs` and `apps/oxfmt/test/api/sql.test.ts`.
|
|
44
|
-
Remove these patches when a published Sqruff release includes equivalent fixes.
|