Skip to content

chore(deps): bump io.github.apex-dev-tools:apex-parser from 5.1.0 to 5.2.0 - #7000

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/maven/io.github.apex-dev-tools-apex-parser-5.2.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/maven/io.github.apex-dev-tools-apex-parser-5.2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 26, 2026

Copy link
Copy Markdown
Contributor

Bumps io.github.apex-dev-tools:apex-parser from 5.1.0 to 5.2.0.

Release notes

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

v5.2.0

What's Changed

New Contributors

Full Changelog: apex-dev-tools/apex-parser@v5.1.0...v5.2.0

Changelog

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

5.2.0 - 2026-08-21

  • Tighten the annotation grammar to reject constructs that are inherited from Java but are not legal Apex
    • (SOURCE BREAKING) ElementValueArrayInitializerContext is no longer generated, AnnotationContext.qualifiedName() becomes id(), and ElementValueContext exposes only literal(). Tree-walking consumers referencing these need updating. This ships as a minor version, not a major one; grammar changes of this kind are routine here and major bumps are reserved for build-environment or large-scale changes
    • annotation matches id in place of qualifiedName; @Schema.AuraEnabled is now a syntax error, matching the platform (Unexpected token '.'). Apex has no user-defined annotations, so a namespace-qualified form has never been legal
    • elementValue matches literal in place of expression, so a bare identifier value such as @AuraEnabled(cacheable=foo) is now a syntax error, as it is on the platform
    • Nested annotations and array initialiser values (label={'a','b'}) are no longer accepted, and the elementValueArrayInitializer rule is removed. elementValue is now non-recursive
    • The optional COMMA separator between annotation parameters is deliberately kept, and is now documented in the grammar as the one exception. The platform separates parameters by whitespace alone, but rejecting the comma form at parse time reproduces the platform compiler's own failure mode, where a member-level annotation is recovered as a constructor declaration and the rest of the file is lost to cascading errors
    • Values the platform rejects for type reasons, such as @AuraEnabled(cacheable=0) and cacheable=null, still parse. That is intended, so a consumer can diagnose the value precisely instead of losing the file to a syntax error
    • Add annotation parameter test coverage to both the maven and npm targets
  • Add https://github.com/apex-dev-tools/apex-parser/blob/main/doc/SalesforceDifferences.md, recording deliberate differences between what this grammar accepts and what the Salesforce platform compiler accepts, so they are not mistakenly "corrected" later. The first entry is the annotation parameter comma separator above
  • Support the SOSL WITH SPELL_CORRECTION = { true | false } clause, e.g. [FIND :term IN ALL FIELDS RETURNING Account WITH SPELL_CORRECTION = false]; an Apex bind variable (:expr) is also accepted in place of the literal
  • Support the SOSL WITH HIGHLIGHT clause, e.g. [FIND 'salesforce' IN ALL FIELDS RETURNING Account(Name, Description) WITH HIGHLIGHT]
  • New HIGHLIGHT and SPELL_CORRECTION lexer tokens; both are also accepted as identifiers (id/anyId), so existing code using them as names is unaffected
  • Fix the dataCategoryName grammar rule so parenthesized SOQL data category lists close with RPAREN; previously, valid multi-category WITH DATA CATEGORY filters failed to parse
  • Fix WITH DATA CATEGORY filters with more than one selection. filteringExpression joined selections with the AND token, which is the Java && operator, not the SOQL and keyword. In SOSL this was a parse error; in SOQL the trailing selections were silently left unconsumed
Commits
  • 3c9d2a9 Merge pull request #152 from apex-dev-tools/ao/adt-45
  • 1d1bcd3 chore: release 5.2.0
  • 30374e7 Merge pull request #149 from apex-dev-tools/ao/adt-44
  • 710f181 docs: record deliberate differences from platform behaviour
  • a6cfe93 fix: reject annotation forms that are not legal Apex
  • 6f7ff78 Merge pull request #147 from apex-dev-tools/ao/adt-43
  • 584c80c Merge pull request #148 from apex-dev-tools/dependabot/npm_and_yarn/npm/npm-m...
  • eec9864 chore(deps-dev): bump the npm-minor-patch group in /npm with 3 updates
  • 7cd3451 feat: support SOSL WITH SPELL_CORRECTION and WITH HIGHLIGHT
  • 3b02a35 Merge pull request #142 from rickroesler/fix/data-category-name-rparen
  • 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 5.1.0 to 5.2.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@v5.1.0...v5.2.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Aug 26, 2026
@dependabot @github

dependabot Bot commented on behalf of github Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/maven/io.github.apex-dev-tools-apex-parser-5.2.0 branch August 27, 2026 18:32
pzygielo pushed a commit to pzygielo/pmd that referenced this pull request Aug 28, 2026
…5.2.0 (pmd#7001)

Note that this updates the grammar to be more strict and it
doesn't allow some invalid syntax around Annotations anymore.
It also fixes some bugs in the grammar.

For details see https://github.com/apex-dev-tools/apex-parser/releases/tag/v5.2.0

Due to the grammar change, and updated summit-ast 3.1.0
is required.

Closes pmd#7000
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.

0 participants