GeezerVison is showing github.com — chore(deps): bump io.github.apex-dev-tools:apex-parser from 4.4.1 to 5.0.0 by dependabot[bot] · Pull Request #6612 · pmd/pmd
Conversation
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 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)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
dependencies
Pull requests that update a dependency file
java
Pull requests that update Java code
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.