Skip to content

Prepare 2.0.0-beta.1: bump apex-parser to 5, drop apex-ls test dep#29

Merged
nawforce merged 1 commit into
mainfrom
bump-apex-parser-5
May 16, 2026
Merged

Prepare 2.0.0-beta.1: bump apex-parser to 5, drop apex-ls test dep#29
nawforce merged 1 commit into
mainfrom
bump-apex-parser-5

Conversation

@kjonescertinia

Copy link
Copy Markdown
Contributor

Summary

  • Breaks the outline-parser ↔ apex-ls test-time dependency cycle so apex-ls can adopt this release upstream.
  • JVM comparison test suite now uses apex-parser 5.x (ApexParserFactory) directly instead of the apex-ls CodeParser/PathLike shims.
  • JS-side sample comparison is dropped; the JS test suite is reduced to SmokeTest. The npm peer dep @apexdevtools/apex-parser is bumped to ^5.0.0.

Changes

  • build.sbt: drop apex-ls 6.0.2 test dep, add apex-parser 5.0.0 + scala-parallel-collections 1.0.4 (JVM Test scope).
  • Move SampleTest, testutil/AntlrParser, testutil/ClassScanner from shared/src/test/jvm/src/test/.
  • Rewrite AntlrParser to use ApexParserFactory.createLexer/createParser with an inline CollectingErrorListener.
  • Replace PathLike with java.nio.file.Path throughout test infrastructure.
  • Delete js/src/test/.../AntlrOps.scala.
  • Drop the apex-parser npm peer to devDependency; engines bumped to match apex-parser 5.x.
  • Draft CHANGELOG.md for 2.0.0-beta.1 (covers all 2.0 breaking changes).

Test plan

  • sbt scalafmtCheckAll
  • sbt build
  • SAMPLES=~/adt/apex-samples sbt parserJVM/test — 6314 tests pass
  • sbt parserJS/test — 52 tests pass
  • Verify CI is green
  • Manual smoke: publish 2.0.0-beta.1 and bump in apex-ls to confirm upstream adoption works

Breaks the outline-parser <-> apex-ls test-time cycle so apex-ls can adopt
upstream. The JVM comparison test suite (SampleTest, AntlrParser,
ClassScanner) now uses apex-parser 5's ApexParserFactory directly instead
of the apex-ls CodeParser/PathLike shims. JS-side sample comparison is
dropped; the JS test suite is reduced to SmokeTest.

- Drop apex-ls 6.0.2 test dependency from build.sbt
- Add apex-parser 5.0.0 + scala-parallel-collections as JVM Test deps
- Move SampleTest, AntlrParser, ClassScanner from shared/ to jvm/
- Rewrite AntlrParser to call ApexParserFactory.createLexer/createParser
  with an inline CollectingErrorListener
- Replace PathLike with java.nio.file.Path throughout test infrastructure
- Delete js AntlrOps (no JS tests need it after refactor)
- Bump npm @apexdevtools/apex-parser peer to ^5.0.0
- Draft CHANGELOG for 2.0.0-beta.1

scalafmtCheckAll clean; 6314 JVM tests + 52 JS tests pass.
@nawforce nawforce self-requested a review May 13, 2026 22:14
@apex-dev-tools apex-dev-tools deleted a comment from nawforce May 14, 2026
@kjonescertinia

Copy link
Copy Markdown
Contributor Author

@claude review

@nawforce nawforce merged commit 6858a1b into main May 16, 2026
1 check passed
@nawforce nawforce deleted the bump-apex-parser-5 branch May 16, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants