Repository navigation
feat!: migrate Java grammar to runtime ABI 6 - #23
Merged
Merged
Conversation
Regenerate the native and Wasm parser with runtime 7.0.5 and align the native and Web runtime dependencies and usage instructions. Co-authored-by: WillBooster (Codex CLI) <Codex CLI@willbooster.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.
Why
The published Java grammar uses ABI 1 and cannot load in the current native or Web runtime. Regenerate it with runtime 7.0.5 so Java parsing works with the shared ABI 6 runtime.
Requirements
Customer Summary
The Java grammar loads in runtime 7.0.5 in Rust, Node.js, Bun, browsers, and Cloudflare Workers. Consumers must upgrade their native or Web runtime to version 7.0.5 or a compatible later version in major version 7.
Technical Summary
Align the Rust and Web runtime dependencies and lockfiles, regenerate the compact parser tables and headers with the released 7.0.5 CLI, and update the ABI and runtime requirements in the README and Rust API documentation. Grammar rules and query definitions remain unchanged.
Testing
bun run build-wasm: canonical generation profile from all 151 corpus inputs and Wasm compilation passed.bun run verify: passed, including type checking, linting, and code-gauge without violations.bun wb test test/unit/corpus.test.ts test/unit/wasm.test.ts test/unit/runtimeVersion.test.ts test/unit/arrayTypes.test.ts test/unit/java25Declarations.test.ts test/unit/receiverParameters.test.ts test/unit/reservedKeywords.test.ts test/unit/unicodeLiterals.test.ts test/unit/performance.test.ts test/unit/incremental.test.ts: all 67 checks passed, including native/Wasm corpora, recovery scaling, and 1,000 random edit iterations per corpus case.cargo test --locked: native binding and executable documentation passed.bun wb test test/e2e: Chromium and both Cloudflare Worker modes passed (3 tests).