Skip to content

chore(deps): bump io.github.apex-dev-tools:apex-parser from 4.4.1 to 5.0.0#6612

Merged
adangel merged 1 commit into
mainfrom
dependabot/maven/io.github.apex-dev-tools-apex-parser-5.0.0
May 8, 2026
Merged

chore(deps): bump io.github.apex-dev-tools:apex-parser from 4.4.1 to 5.0.0#6612
adangel merged 1 commit into
mainfrom
dependabot/maven/io.github.apex-dev-tools-apex-parser-5.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Apr 22, 2026

Copy link
Copy Markdown
Contributor

Bumps io.github.apex-dev-tools:apex-parser from 4.4.1 to 5.0.0.

Release notes

Sourced from io.github.apex-dev-tools:apex-parser's releases.

v5.0.0

What's Changed

New Contributors

Full Changelog: apex-dev-tools/apex-parser@v4.4.0...v5.0.0

v5.0.0-beta.5

What's Changed

Full Changelog: apex-dev-tools/apex-parser@v5.0.0-beta.4...v5.0.0-beta.5

v5.0.0-beta.4

What's Changed

Full Changelog: apex-dev-tools/apex-parser@v5.0.0-beta.3...v5.0.0-beta.4

v5.0.0-beta.3

What's Changed

Full Changelog: apex-dev-tools/apex-parser@v5.0.0-beta.2...v5.0.0-beta.3

v5.0.0-beta.2

What's Changed

New Contributors

... (truncated)

Changelog

Sourced from io.github.apex-dev-tools:apex-parser's changelog.

5.0.0

General

  • (BREAKING) Updated to ANTLR runtime 4.13.2, using the ANTLR tool to generate both target languages.

  • Enabled caseInsensitive option for lexers (added in ANTLR 4.10).

    • As a result, CaseInsensitiveInputStream is deprecated and should no longer be required.
  • Added ApexParserFactory class to create parsers, token streams, and lexers.

    • Primarily for TS to avoid directly creating antlr4 class instances.
    • In Java, it still requires passing a CharStream or CommonTokenStream to create parsers.
  • Added abstract class ApexErrorListener:

    • Implement method apexSyntaxError(line, column, message) to avoid antlr specific types.
  • Added support for parsing Anonymous Apex via anonymousUnit (.apex files) and anonymousBlock parser rules.

  • Re-ordered memberDeclaration alternate rules to de-prioritise field declarations due to its typeDef rule.

Java

  • Added Check.run to programmatically run syntax check operation on a path.

TypeScript/NPM

  • (BREAKING) Migrated from antlr4ts to official antlr4 runtime package.

    • Some lesser used methods are missing in the type definitions, refer to the antlr4 Javascript code if you need to cast types.
    • Generated Listener/Visitor interfaces are now abstract classes.
      • Introduced Base classes to extend instead, following pattern of Java classes of the same name. Change:
        • implements ApexParserListener to extends ApexParserBaseListener
        • implements ApexParserVisitor<T> to extends ApexParserBaseVisitor<T>
    • Parser rule contexts now have _list() methods for multi rules.
      • A rule expr* generates expr_list() and expr(number).
      • By contrast Java would have overloads of expr()/expr(int) returning list or value.
  • (BREAKING) Updated to ES Module format. Node 20/22, TypeScript 5.9 support require(esm).

    • Increased min node version to 20.
    • antlr4 has to be patched to fix module resolution of the type declaration files.
      • The patch is applied to a bundled version of the package.
      • For reference it is also published under patches/*.
  • (BREAKING) Re-exported antlr classes CommonTokenStream and ParseTreeWalker removed.

    • Added type aliases like ApexTokenStream, ApexParseTree, and more to use with listener/visitor/walker.
    • For the walker, use ApexParseTreeWalker.DEFAULT. Same instance but typed for ApexParserListener and ApexParseTree.
    • It should no longer be required to depend on antlr4 package directly.
      • Can still add the package as a dependency, but remember to match the version apex-parser uses.
  • CaseInsensitiveInputStream (deprecated) type now extends CharStream and can be constructed from string.

    • Constructor passing in CharStream retained to match Java version.

... (truncated)

Commits
  • 872e214 chore: bump pom version to 5.0.0 for maven release
  • c2a20b1 chore: release 5.0.0
  • e99045e Merge pull request #81 from apex-dev-tools/bundle-antlr
  • 8f0e6d2 chore: bump beta version
  • 1962eba chore: update changelog about bundled antlr
  • cc3c18f chore: update package-lock.json
  • 02726f3 fix: switch to bundling a patched antlr4
  • aeda8c6 Merge pull request #80 from apex-dev-tools/fix-dep
  • 869e308 chore: update changelog to clarify patch use
  • dcb96b1 fix: move patch-package to dev deps
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [io.github.apex-dev-tools:apex-parser](https://github.com/apex-dev-tools/apex-parser) from 4.4.1 to 5.0.0.
- [Release notes](https://github.com/apex-dev-tools/apex-parser/releases)
- [Changelog](https://github.com/apex-dev-tools/apex-parser/blob/main/CHANGELOG.md)
- [Commits](apex-dev-tools/apex-parser@v4.4.1...v5.0.0)

---
updated-dependencies:
- dependency-name: io.github.apex-dev-tools:apex-parser
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Apr 22, 2026
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes. Give us feedback

@adangel adangel added this to the 7.25.0 milestone May 8, 2026
@adangel adangel merged commit 981d2e2 into main May 8, 2026
6 of 9 checks passed
@dependabot dependabot Bot deleted the dependabot/maven/io.github.apex-dev-tools-apex-parser-5.0.0 branch May 8, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant