Skip to content

build(deps): bump @apexdevtools/apex-parser to 5.1.0#840

Merged
lcottercertinia merged 1 commit into
certinia:mainfrom
lukecotter:build-deps-apex-parser
Jul 9, 2026
Merged

build(deps): bump @apexdevtools/apex-parser to 5.1.0#840
lcottercertinia merged 1 commit into
certinia:mainfrom
lukecotter:build-deps-apex-parser

Conversation

@lukecotter

Copy link
Copy Markdown
Collaborator

Move @apexdevtools/apex-parser from 5.1.0-beta.1 to the 5.1.0 stable release in both lana/ and log-viewer/.

Breaking change handled

5.1.0 adds SOQL FORMULA() support, which restructured the WHERE-clause grammar: the conditional tree now nests under where-prefixed rules. whereClause.logicalExpression() no longer exists (broke 12 SOQL-linter tests).

Migrated SOQLLinter.ts (4 call sites):

  • logicalExpression()whereLogicalExpression()
  • conditionalExpression_list()whereConditionalExpression_list()
  • exp.fieldExpression()exp.whereFieldExpression()?.fieldExpression()

FieldExpressionContext is unchanged, so .fieldName()/.comparisonOperator()/.value() calls are untouched.

New capability (not yet adopted)

SOQL FORMULA() in WHERE clauses now parses — available if we want a linter/formatter rule later.

Verification

typecheck ✓ · lint ✓ · 962 tests ✓ (12 previously-failing SOQL-linter tests pass) · rollup build ✓ · rolldown build ✓.

5.1.0 adds SOQL FORMULA() support, which nests the WHERE-clause grammar
under new where-prefixed rules — the beta API no longer exists.

- move apex-parser 5.1.0-beta.1 → 5.1.0 in lana and log-viewer
- migrate SOQLLinter WHERE traversal: logicalExpression →
whereLogicalExpression, conditionalExpression_list →
whereConditionalExpression_list, fieldExpression →
whereFieldExpression().fieldExpression()
@lcottercertinia lcottercertinia merged commit a27a43a into certinia:main Jul 9, 2026
7 checks passed
@lukecotter lukecotter deleted the build-deps-apex-parser branch July 9, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants