From f32bb12cf208c895fec979a0979a18f0529c8086 Mon Sep 17 00:00:00 2001 From: Kevin Jones Date: Fri, 3 Jul 2026 21:00:44 +0100 Subject: [PATCH] chore: release 5.1.0 --- CHANGELOG.md | 7 ++----- jvm/pom.xml | 2 +- npm/package-lock.json | 4 ++-- npm/package.json | 2 +- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 04994cd..31b1e43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,6 @@ # apex-parser - Changelog -## Unreleased - -- Restrict SOQL `FORMULA()` expressions to `WHERE` clauses; `HAVING FORMULA(...)` now reports a syntax error. - -## 5.1.0-beta.1 +## 5.1.0 - 2026-07-03 - Allow functions in `GROUP BY` clause of SOQL queries - Support Apex bind variables (`:expr`) in SOSL `WITH DIVISION` clause @@ -13,6 +9,7 @@ - Support multi-line string literals (Salesforce Summer '26), e.g. `String json = '''{...}''';` - New `MultilineStringLiteral` token, accepted alongside `StringLiteral` in literal/SOQL/SOSL contexts. - Body must start on a new line after the opening `'''`, matching platform behaviour. Malformed forms like `'''abc'''` continue to lex as legacy `StringLiteral` tokens (`''`, `'abc'`, `''`); apex-ls consumes this pattern to surface a targeted diagnostic (apex-ls#443). +- Support the SOQL `FORMULA()` function in `WHERE` clauses, e.g. `WHERE FORMULA('...') = true`; use in any other clause (e.g. `HAVING FORMULA(...)`) reports a syntax error. - Fix `npm run check` failing with `ERR_REQUIRE_ESM` on Node 20+ by switching the script from `require()` to dynamic `import()` (the package is `"type": "module"`). - Update npm package build output to publish separate ESM, CommonJS, browser, and TypeScript declaration artifacts through the package `exports` map. diff --git a/jvm/pom.xml b/jvm/pom.xml index e622c01..dce7a4c 100644 --- a/jvm/pom.xml +++ b/jvm/pom.xml @@ -6,7 +6,7 @@ io.github.apex-dev-tools apex-parser - 5.1.0-beta.1 + 5.1.0 jar apex-parser diff --git a/npm/package-lock.json b/npm/package-lock.json index 0358ca5..6e1cb83 100644 --- a/npm/package-lock.json +++ b/npm/package-lock.json @@ -1,12 +1,12 @@ { "name": "@apexdevtools/apex-parser", - "version": "5.1.0-beta.1", + "version": "5.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@apexdevtools/apex-parser", - "version": "5.1.0-beta.1", + "version": "5.1.0", "bundleDependencies": [ "antlr4" ], diff --git a/npm/package.json b/npm/package.json index c4b17e1..485051e 100644 --- a/npm/package.json +++ b/npm/package.json @@ -1,6 +1,6 @@ { "name": "@apexdevtools/apex-parser", - "version": "5.1.0-beta.1", + "version": "5.1.0", "description": "Javascript parser for Salesforce Apex Language", "author": "Apex Dev Tools Team (https://github.com/apex-dev-tools)", "bugs": "https://github.com/apex-dev-tools/apex-parser/issues",