Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@

### Build & dependencies

- Removed the `apex-ls` test dependency. The JVM comparison test suite now uses `apex-parser` (5.x) directly via `ApexParserFactory`, eliminating the outline-parser ↔ apex-ls cycle. JS-side sample comparison is dropped; the JS test suite is reduced to `SmokeTest`.
- Removed the `apex-ls` test dependency. The JVM comparison test suite now uses `apex-parser 5.1.0-beta.1` directly via `ApexParserFactory`, eliminating the outline-parser ↔ apex-ls cycle. JS-side sample comparison is dropped; the JS test suite is reduced to `SmokeTest`.
- Upgraded Scala.js to `1.18.2`.
- Updated sbt and plugin dependencies to latest stable versions.

### JS / NPM

- Bumped peer `@apexdevtools/apex-parser` to `^5.0.0` (was `^4.3.1`).
- Bumped dev dep `@apexdevtools/apex-parser` to `^5.1.0-beta.1` (was `^4.3.1`).
- Raised minimum Node version to `^20.19.0 || ^22.13.0 || >=24` (was `>=14.0.0`), matching the requirements of `apex-parser 5.x`.
- Moved `@apexdevtools/apex-parser` to `devDependencies`.

Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ lazy val parser = crossProject(JSPlatform, JVMPlatform)
build := buildJVM.value,
Test / fork := true,
libraryDependencies ++= Seq(
"io.github.apex-dev-tools" % "apex-parser" % "5.0.0" % Test,
"io.github.apex-dev-tools" % "apex-parser" % "5.1.0-beta.1" % Test,
"org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.4" % Test
),
packageOptions += Package.ManifestAttributes(
Expand Down
16 changes: 8 additions & 8 deletions js/npm/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/npm/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@apexdevtools/outline-parser",
"devDependencies": {
"@apexdevtools/apex-parser": "^5.0.0"
"@apexdevtools/apex-parser": "^5.1.0-beta.1"
},
"engines": {
"node": "^20.19.0 || ^22.13.0 || >=24"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import io.github.apexdevtools.oparser._
import io.github.apexdevtools.oparser.testutil.AntlrOps._
import io.github.apexdevtools.types.base._
import io.github.apexdevtools.types.{ITypeDeclaration, base}
import org.antlr.v4.runtime.{CharStreams, CommonTokenStream}
import org.antlr.v4.runtime.CharStreams
import org.antlr.v4.runtime.tree.TerminalNode

import scala.collection.immutable.ArraySeq
Expand All @@ -27,12 +27,9 @@ object AntlrParser {
def parse(path: String, contents: Array[Byte]): Option[ITypeDeclaration] = {
val stream = CharStreams.fromString(new String(contents, "UTF-8"))
val errorListener = new CollectingErrorListener
val lexer = ApexParserFactory.createLexer(stream)
lexer.addErrorListener(errorListener)
val parser = ApexParserFactory.createParser(new CommonTokenStream(lexer))
parser.addErrorListener(errorListener)
val parserPair = ApexParserFactory.createLexerAndParser(stream, errorListener)

val cu = parser.compilationUnit()
val cu = parserPair.getParser.compilationUnit()
errorListener.firstError.foreach(msg => throw new Exception(msg))

val td = cu.typeDeclaration()
Expand Down
Loading