Setup @elastic/esql-parser package with ES|QL and PromQL parsers - #232
Merged
Conversation
@elastic/esql-parser package with ES|QL and PromQL parsers
Merged
vadimkibana
added a commit
that referenced
this pull request
Aug 28, 2026
Resolves conflicts between the AST unboxing work and origin/main's independent landing of the esql-parser package (#232) and DENSE_VECTOR command support (#234). Unboxing wins everywhere both sides touched the same lines; main's DENSE_VECTOR additions come in unchanged (already boxing-free). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
stratoula
pushed a commit
that referenced
this pull request
Aug 31, 2026
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @elastic/esql-parser@4.22.0 ### Minor Changes - [#232](#232) [`bbf69c0`](bbf69c0) Thanks [@vadimkibana](https://github.com/vadimkibana)! - Extract the parser and the AST visitor out of `@elastic/esql` into the packages that own them. `@elastic/esql-parser` now holds the ES|QL parser (`parse`, `Parser`, `ParseOptions`, `ParseResult`, `ESQLErrorListener`), the PromQL parser (`PromQLParser`, `PromQLErrorListener`, `PromQLCstToAstConverter`), the ANTLR token helpers (`getPosition`, `findTokens`, `findFirstToken`, `findVisibleToken`, `findPunctuationToken`, `isLikelyPunctuation`), and the parser constants (`DEFAULT_CHANNEL`, `HIDDEN_CHANNEL`, `HEADER_COMMANDS`, `SOURCE_COMMANDS`). It also declares the runtime dependencies it needs (`antlr4`, `@elastic/esql-ast`, `@elastic/esql-definitions`, `@elastic/esql-promql-grammar`, `@elastic/esql-traversal`, `@elastic/esql-types`); previously it declared none, so its CommonJS build inlined the ANTLR runtime and failed to load under `require`. `@elastic/esql-traversal` now holds the AST `Visitor` together with its visitor contexts, and `printAst`. `@elastic/esql` re-exports all of the above, so its public API is unchanged. - [#234](#234) [`2e9ed09`](2e9ed09) Thanks [@vadimkibana](https://github.com/vadimkibana)! - Add `DENSE_VECTOR` command parsing and traversal support ### Patch Changes - Updated dependencies [[`bbf69c0`](bbf69c0), [`2e9ed09`](2e9ed09)]: - @elastic/esql-traversal@4.22.0 - @elastic/esql-types@4.22.0 - @elastic/esql-definitions@4.22.0 - @elastic/esql-promql-grammar@4.22.0 - @elastic/esql-ast@4.22.0 ## @elastic/esql-traversal@4.22.0 ### Minor Changes - [#232](#232) [`bbf69c0`](bbf69c0) Thanks [@vadimkibana](https://github.com/vadimkibana)! - Extract the parser and the AST visitor out of `@elastic/esql` into the packages that own them. `@elastic/esql-parser` now holds the ES|QL parser (`parse`, `Parser`, `ParseOptions`, `ParseResult`, `ESQLErrorListener`), the PromQL parser (`PromQLParser`, `PromQLErrorListener`, `PromQLCstToAstConverter`), the ANTLR token helpers (`getPosition`, `findTokens`, `findFirstToken`, `findVisibleToken`, `findPunctuationToken`, `isLikelyPunctuation`), and the parser constants (`DEFAULT_CHANNEL`, `HIDDEN_CHANNEL`, `HEADER_COMMANDS`, `SOURCE_COMMANDS`). It also declares the runtime dependencies it needs (`antlr4`, `@elastic/esql-ast`, `@elastic/esql-definitions`, `@elastic/esql-promql-grammar`, `@elastic/esql-traversal`, `@elastic/esql-types`); previously it declared none, so its CommonJS build inlined the ANTLR runtime and failed to load under `require`. `@elastic/esql-traversal` now holds the AST `Visitor` together with its visitor contexts, and `printAst`. `@elastic/esql` re-exports all of the above, so its public API is unchanged. - [#234](#234) [`2e9ed09`](2e9ed09) Thanks [@vadimkibana](https://github.com/vadimkibana)! - Add `DENSE_VECTOR` command parsing and traversal support ### Patch Changes - Updated dependencies [[`2e9ed09`](2e9ed09)]: - @elastic/esql-types@4.22.0 - @elastic/esql-ast@4.22.0 ## @elastic/esql-types@4.22.0 ### Minor Changes - [#234](#234) [`2e9ed09`](2e9ed09) Thanks [@vadimkibana](https://github.com/vadimkibana)! - Add `DENSE_VECTOR` command parsing and traversal support ## @elastic/esql@4.22.0 ### Patch Changes - [#232](#232) [`bbf69c0`](bbf69c0) Thanks [@vadimkibana](https://github.com/vadimkibana)! - Extract the parser and the AST visitor out of `@elastic/esql` into the packages that own them. `@elastic/esql-parser` now holds the ES|QL parser (`parse`, `Parser`, `ParseOptions`, `ParseResult`, `ESQLErrorListener`), the PromQL parser (`PromQLParser`, `PromQLErrorListener`, `PromQLCstToAstConverter`), the ANTLR token helpers (`getPosition`, `findTokens`, `findFirstToken`, `findVisibleToken`, `findPunctuationToken`, `isLikelyPunctuation`), and the parser constants (`DEFAULT_CHANNEL`, `HIDDEN_CHANNEL`, `HEADER_COMMANDS`, `SOURCE_COMMANDS`). It also declares the runtime dependencies it needs (`antlr4`, `@elastic/esql-ast`, `@elastic/esql-definitions`, `@elastic/esql-promql-grammar`, `@elastic/esql-traversal`, `@elastic/esql-types`); previously it declared none, so its CommonJS build inlined the ANTLR runtime and failed to load under `require`. `@elastic/esql-traversal` now holds the AST `Visitor` together with its visitor contexts, and `printAst`. `@elastic/esql` re-exports all of the above, so its public API is unchanged. - Updated dependencies [[`bbf69c0`](bbf69c0), [`2e9ed09`](2e9ed09)]: - @elastic/esql-parser@4.22.0 - @elastic/esql-traversal@4.22.0 - @elastic/esql-types@4.22.0 - @elastic/esql-definitions@4.22.0 - @elastic/esql-grammar@4.22.0 - @elastic/esql-promql-grammar@4.22.0 - @elastic/pretty-printer@4.22.0 - @elastic/esql-ast@4.22.0 ## @elastic/esql-ast@4.22.0 ### Patch Changes - Updated dependencies [[`2e9ed09`](2e9ed09)]: - @elastic/esql-types@4.22.0 - @elastic/esql-definitions@4.22.0 - @elastic/esql-grammar@4.22.0 - @elastic/esql-promql-grammar@4.22.0 ## @elastic/elasticsearch-esql-dsl@4.22.0 ### Patch Changes - Updated dependencies []: - @elastic/elasticsearch-query-builder@4.22.0 ## @elastic/highlightjs-esql@4.22.0 ### Patch Changes - Updated dependencies []: - @elastic/esql-definitions@4.22.0 ## @elastic/monaco-esql@4.22.0 ### Patch Changes - Updated dependencies []: - @elastic/esql-definitions@4.22.0 ## @elastic/prismjs-esql@4.22.0 ### Patch Changes - Updated dependencies []: - @elastic/esql-definitions@4.22.0 ## @elastic/textmate-esql@4.22.0 ### Patch Changes - Updated dependencies []: - @elastic/esql-definitions@4.22.0 ## @elastic/esql-definitions@4.22.0 ## @elastic/esql-grammar@4.22.0 ## @elastic/esql-promql-grammar@4.22.0 ## @elastic/pretty-printer@4.22.0 ## @elastic/elasticsearch-query-builder@4.22.0 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@elastic/esql-parser.@elastic/esql— so there is no breaking change.Details
Technical details, breaking changes or considerations you have made while working in this PR.
Checklist
yarn changeset) if this change should be released. See docs/RELEASE.md.BREAKING CHANGE: changesyntax and selected amajorbump in the changeset.