Skip to content

v5.2.0 Release #151

Closed
Closed

Description

@nawforce

Track the v5.2.0 release.

Contents

Everything currently under ## Unreleased in the CHANGELOG:

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

  • :131 QualifiedName.construct(annotation.qualifiedName()) — AnnotationContext.qualifiedName()
    is now id()
  • :142, :157, :166–:171 — the ElementValueArrayInitializer CST class and its construct
    are built on ElementValueArrayInitializerContext, which is no longer generated. This models a
    construct that can no longer be parsed, so it should be deleted rather than ported.
  • :124 annotation.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

  1. Prep PR — modelled on chore: release 5.1.0 #131 (the 5.1.0 prep):
    • collapse ## Unreleased into a dated ## 5.2.0 - <date> section
    • bump 5.1.0 -> 5.2.0 in jvm/pom.xml, npm/package.json, npm/package-lock.json
    • validate as CI does: npm run init, npm run build, npm run systest against apex-samples
      at v1.4.0
  2. After merge — create GitHub Release v5.2.0, not a pre-release, which triggers
    PublishMaven.yml and PublishNPM.yml (Maven Central + npm latest).
  3. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions