Skip to content

chore: drop Node 20 (Node 22 minimum) and repin v18 libpg_query - #223

Merged
devin-ai-integration[bot] merged 1 commit into
mainfrom
chore/drop-node-20
Nov 26, 2026
Merged

devin-ai-integration[bot] merged 1 commit into
mainfrom
chore/drop-node-20

Conversation

@pyramation

@pyramation pyramation commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Drops end-of-life Node 20 (sets Node 22 as the minimum) and repins versions/18 to constructive-io/libpg_query 18-constructive commit 4fcb78670865e86f01ddd8c045572c287882022a (constructive-io/libpg_query#25, which reverts the Node 20-only _fingerprintCall pg_noinline workaround from constructive-io/libpg_query#23).

  • Sets "engines": { "node": ">=22" } in root package.json, versions/18/package.json, and parser/package.json, and updates README prerequisites.
  • Bumps CI workflows (ci.yml, build-wasm.yml, build-wasm-no-docker.yaml) from Node 20.x to 22.x, with an explicit Node 24.x leg for v18 alongside the Firefox and macOS WebKit browser depth jobs.
  • Repins versions/18/package.json (x-publish.libpgQueryCommit) and regenerates versions/18/Makefile via pnpm copy:templates.
  • No WASM memory or stack setting changes.

Verified locally: all 259 versions/18 tests (including limits.test.js, wasm-recovery.test.js with --no-liftoff, and snapshots.test.js) pass on both Node v22.23.5 and Node v24.22.3.


libpg-query and parser opened this PR for Dan
Implemented in session Drop Node 20 and revert fingerprint noinline helper
Review with Devin · Open in Devin Desktop


Summary by CodeRabbit

  • Compatibility
    • Node.js 22 or later is now required to install and build the project, including its parser package. Update your Node.js version before upgrading.
  • Builds and Testing
    • Automated builds and tests now run on Node.js 22, with an additional test configuration on Node.js 24.

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@luxor-code-review

luxor-code-review Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Review complete. No blocking issues — approved ✅; 1 nitpick below.

🧹 Nitpicks (1) — 🟢 1 low
  • 🟢 Declare engines node>=22 on all version packages (package.json:8) — This change sets the Node minimum to >=22 in the root package.json, parser/package.json, and versions/18/package.json, but the sibling published packages versions/13 through versions/17 have no engines field even though CI now tests every version package on Node 22 only (versions/18/package.json:8).

The change aligns the repo on Node 22: GitHub Actions matrices and workflows are updated, engines fields are added to the root, parser, and versions/18 package manifests, and the versions/18 WASM build is rebuilt against a newer pinned libpg_query commit with README and package metadata refreshed accordingly. The build pipeline (Makefile pin, cache, publish metadata) stays internally consistent.

Files Change
.github/workflows/*.yml Update CI and WASM build workflows to the new Node 22 matrix/runtime.
package.json, parser/package.json, versions/18/package.json Raise engines.node to >=22 and bump publish metadata for versions/18.
versions/18/Makefile Point the pinned libpg_query source at the new commit under tag 18-constructive.
README.md, versions/18/README.md Refresh prerequisites and documentation to reflect Node 22 and the new build.

Reviewed commit: 3e2784d

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request updates Node.js requirements and CI runtimes to version 22, with the Ubuntu version 18 test matrix entry using version 24. It also updates the libpg_query commit pinned for version 18.

Changes: Runtime and version 18 updates

Layer / File(s) Summary
Node.js requirements and documentation
package.json, parser/package.json, versions/18/package.json, README.md, versions/18/README.md
The package engine requirements and documented prerequisites specify Node.js 22 or later.
CI runtime selections
.github/workflows/build-wasm-no-docker.yaml, .github/workflows/build-wasm.yml, .github/workflows/ci.yml
The build and test workflows use Node.js 22. The Ubuntu version 18 test matrix entry uses Node.js 24.
Version 18 libpg_query pin
versions/18/Makefile, versions/18/package.json
The version 18 Makefile and package metadata use the updated libpg_query commit.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: luxor-code-review

Merge Risk: Minimal · up to 3e278

This PR raises the minimum Node.js version to 22 and repins the version 18 libpg_query commit. No concrete merge-blocking risk was identified. Users on Node 20 or earlier will need to upgrade.

Architecture risk: Low · up to 3e278

The change affects 4 systems.

Changed systems: versions, package.json, parser, README.md

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — versions (service) was modified; 3 changed files map to changed impact.
  • observed — package.json (service) was modified; 1 changed file maps to changed impact.
  • observed — parser (service) was modified; 1 changed file maps to changed impact.
  • observed — README.md (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in README.md: The documented Node.js prerequisite changes from version 16 or higher recommended to version 22 or higher.
  • observed — Modified behavior in package.json: Adds an engines declaration requiring Node.js version 22 or later.
  • observed — Modified behavior in parser/package.json: Added an engines declaration requiring Node.js version 22 or later.
  • observed — Modified behavior in versions/18/Makefile: The LIBPG_QUERY_COMMIT pin changes from 91d254f764b270a02f8445d3b49030eb4fda0302 to 4fcb78670865e86f01ddd8c045572c287882022a.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "chore: drop Node 20 (Node 22 minimum) and repin v18 libpg_query" matches the main changes. The PR drops Node 20 and sets Node 22 as the minimum in the root, versions/18, and parser engines,…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "chore: drop Node 20 (Node 22 minimum) and repin v18 libpg_query" matches the main changes. The PR drops Node 20 and sets Node 22 as the minimum in the root, versions/18, and parser engines, updates the README and CI workflows, and repins the v18 libpg_query commit. The title names both primary changes and stays specific, so a reviewer scanning history can see what changed.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b7e70e9 and 3e2784d.

Files selected for processing: 9

  • .github/workflows/build-wasm-no-docker.yaml
  • .github/workflows/build-wasm.yml
  • .github/workflows/ci.yml
  • README.md
  • package.json
  • parser/package.json
  • versions/18/Makefile
  • versions/18/README.md
  • versions/18/package.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@devin-ai-integration
devin-ai-integration Bot merged commit d0f580e into main Nov 26, 2026
68 checks passed
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.

1 participant