Commit e1ea118
committed
fix: revert pnpm patch, use inline JSON fix for scanSync upstream bug
Instead of patching @libpg-query/parser via pnpm patch (which caused
CI issues with pnpm v9/v10 lockfile incompatibility), handle the
upstream JSON serialization bug inline in scanner.ts.
The approach: try scanSync normally, and if it throws due to unescaped
control characters in the JSON output, retry with a temporarily
monkey-patched JSON.parse that escapes control chars before parsing.
This is synchronous so there are no concurrency concerns.
All 28 tests pass. No changes to lockfile format or workspace config.1 parent 7f34e49 commit e1ea118
4 files changed
Lines changed: 45 additions & 52 deletions
File tree
- packages/parse/src
- patches
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 26 | | |
32 | 27 | | |
33 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
17 | 56 | | |
18 | 57 | | |
19 | 58 | | |
| |||
66 | 105 | | |
67 | 106 | | |
68 | 107 | | |
69 | | - | |
| 108 | + | |
70 | 109 | | |
71 | 110 | | |
72 | 111 | | |
| |||
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments