@jetstreamapp/soql-parser-js 6.3.1 โ 7.1.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.
- package/CHANGELOG.md +40 -0
- package/dist/cjs/index.js +20 -140
- package/dist/cli/index.js +51 -143
- package/dist/esm/index.mjs +20 -140
- package/dist/lwc/index.js +2079 -11741
- package/dist/types/api/api-models.d.ts +23 -23
- package/dist/types/api/public-utils.d.ts +1 -1
- package/dist/types/index.d.ts +1 -2
- package/dist/types/parser/lexer.d.ts +183 -186
- package/dist/types/parser/parser.d.ts +3 -83
- package/dist/types/utils.d.ts +0 -2
- package/package.json +8 -17
- package/dist/types/models.d.ts +0 -266
- package/dist/types/parser/visitor.d.ts +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 7.1.0
|
|
4
|
+
|
|
5
|
+
Mar 21, 2026
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **Fixed error recovery dropping subsequent clauses** - When using `ignoreParseErrors: true`, if a clause failed to parse, all subsequent clauses (ORDER BY, LIMIT, OFFSET, etc.) were silently dropped. The parser now correctly synchronizes forward and continues parsing remaining clauses.
|
|
10
|
+
- **Standardized `NULL` value casing in array expressions** - `NULL` values inside `IN` / `NOT IN` / `INCLUDES` / `EXCLUDES` arrays now use uppercase `'NULL'` in the parsed `value` field, consistent with scalar `NULL` comparisons. The composer still outputs lowercase `null` in SOQL strings. If you were comparing `condition.value` items with a case-sensitive `=== 'null'` check, update to `=== 'NULL'`.
|
|
11
|
+
- **Removed incorrect `DOT` token name alias** - `tokenTypeName(TokenKind.DOT)` now returns `'DOT'` instead of the incorrect `'DECIMAL'`. This only affects consumers using the low-level `tokenTypeName` API.
|
|
12
|
+
|
|
13
|
+
### Internal
|
|
14
|
+
|
|
15
|
+
- Removed singleton parser pattern โ `parseQuery` now creates a fresh parser instance per call, eliminating shared mutable state and making the parser safe for concurrent use in worker threads.
|
|
16
|
+
|
|
17
|
+
## 7.0.0
|
|
18
|
+
|
|
19
|
+
Mar 14, 2026
|
|
20
|
+
|
|
21
|
+
๐๐๐๐๐ Performed a complete re-write using a hand-rolled parser, complements of Claude Code which did 100% of the work.
|
|
22
|
+
|
|
23
|
+
The new parser is **~4,600x faster** and has a **75% smaller bundle size** since there are no longer any external dependencies.
|
|
24
|
+
|
|
25
|
+
| | Old Parser (Chevrotain) | New Parser (Hand-rolled) |
|
|
26
|
+
| ------------------------------- | ----------------------- | ------------------------ |
|
|
27
|
+
| **Parse time per iteration** | 3,224 ms | 0.7 ms |
|
|
28
|
+
| **Bundle size (ESM, minified)** | 194 KB | 48 KB |
|
|
29
|
+
| **External dependencies** | 2 (chevrotain, lodash) | 0 |
|
|
30
|
+
|
|
31
|
+
In addition, we re-wrote the CLI to drop all 3rd party dependencies since the CLI is very simple and doesn't need a library to manage it.
|
|
32
|
+
|
|
33
|
+
### ๐ฅBreaking changes๐ฅ
|
|
34
|
+
|
|
35
|
+
This library no longer exports some of the types used by the previous parser, shown below. These types were only exported as they were used in some public APIs.
|
|
36
|
+
|
|
37
|
+
This is very unlikely to impact most users, and if it does, the required changes should be very minimal.
|
|
38
|
+
|
|
39
|
+
```typescript
|
|
40
|
+
export type { CstNode, CstParser, ILexingError, IRecognitionException } from 'chevrotain';
|
|
41
|
+
```
|
|
42
|
+
|
|
3
43
|
## 6.3.1
|
|
4
44
|
|
|
5
45
|
Dec 15, 2025
|