Repository navigation
Description
Track the v5.2.0 release.
Contents
Everything currently under ## Unreleased in the CHANGELOG:
- Annotation grammar tightened to reject Java-inherited forms that are not legal Apex (Annotation grammar accepts constructs that are not legal Apex #146)
- New
doc/SalesforceDifferences.md, recording deliberate divergences from platform behaviour (Annotation grammar accepts constructs that are not legal Apex #146) dataCategoryNamefixed to close parenthesized SOQL data category lists withRPAREN(dataCategoryName closes parenthesized data category list with LPAREN instead of RPAREN #141, external contribution)- SOSL
WITH SPELL_CORRECTIONandWITH HIGHLIGHTsupport, newHIGHLIGHT/SPELL_CORRECTION
lexer tokens, and afilteringExpressionfix for multi-selectionWITH DATA CATEGORY(SOSL: WITH SPELL_CORRECTION clause missing from soslClauses — parse failure on valid Apex #145) - npm dev-dependency bumps
Minor version, not major. The annotation change is source-breaking for tree-walking consumers, but
grammar changes of this kind are routine here and major bumps are reserved for build-environment or
large-scale changes.
Downstream impact — this one needs a code change, not just a version bump
The annotation tightening removes generated API. Both in-house consumers will fail to compile
against 5.2.0 until updated:
apex-ls — jvm/src/main/scala/com/nawforce/apexlink/cst/CST.scala
:131QualifiedName.construct(annotation.qualifiedName())—AnnotationContext.qualifiedName()
is nowid():142,:157,:166–:171— theElementValueArrayInitializerCST class and itsconstruct
are built onElementValueArrayInitializerContext, which is no longer generated. This models a
construct that can no longer be parsed, so it should be deleted rather than ported.:124annotation.elementValue()is unaffected; the rule is kept.
outline-parser — jvm/src/test/scala/io/github/apexdevtools/oparser/testutil/AntlrParser.scala:87
ctx.qualifiedName().id()on the annotation context, in the ANTLR reference parser used for the
sample comparison. Test scope only, but it blocks that build.
Neither can be fixed before the release, since both consume published artifacts. The order is:
release 5.2.0, then bump and fix downstream.
Steps
- Prep PR — modelled on chore: release 5.1.0 #131 (the 5.1.0 prep):
- collapse
## Unreleasedinto a dated## 5.2.0 - <date>section - bump
5.1.0->5.2.0injvm/pom.xml,npm/package.json,npm/package-lock.json - validate as CI does:
npm run init,npm run build,npm run systestagainstapex-samples
atv1.4.0
- collapse
- After merge — create GitHub Release
v5.2.0, not a pre-release, which triggers
PublishMaven.ymlandPublishNPM.yml(Maven Central + npmlatest). - Then downstream — outline-parser bump and reference-parser fix; apex-ls bump and
CST.scala
cleanup.
Note if publishing fails: the org's Maven signing key expires annually and the failure presents as a
missing secret rather than an expired key. Check that before the workflow.
Activity