Skip to content

feat(pinia-orm)!: require node >= 22 and support pinia 4#2046

Merged
CodeDredd merged 1 commit into
mainfrom
chore/node-22-pinia-4
Jul 20, 2026
Merged

feat(pinia-orm)!: require node >= 22 and support pinia 4#2046
CodeDredd merged 1 commit into
mainfrom
chore/node-22-pinia-4

Conversation

@CodeDredd

@CodeDredd CodeDredd commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Node >= 22 (breaking, for 2.0.0)

Decision: Node >= 22.12 instead of 24 —

  • Nuxt 4 already requires ^22.19 || ^24.11, Vite requires ^20.19 || >=22.12 → 22 is the ecosystem anchor
  • Node 22 is in LTS maintenance until April 2027; requiring 24 would cut off every current LTS user for no technical gain
  • pinia itself pins no engines, so Nuxt is the relevant sync point

Changes: engines.node >= 22.12 in all four packages, CI/changelog/release workflows bumped from Node 20 to 22 (.nvmrc already was 22).

pinia 4

pinia 4.0.2 is out. Full pinia-orm + axios suites run green against it without any code changes (426 + 25 tests). Dev dependencies now use pinia 4 + @pinia/testing 2, so CI permanently tests against pinia 4; the peer dependency stays >=3.0.0, so users on pinia 3 keep working.

No Node-22-specific refactors included on purpose — nothing in the codebase currently pays for them (no legacy Buffer/URL/crypto usage); can be done as a follow-up if something comes up.

BREAKING CHANGE: all packages now require Node.js >= 22.12, in sync
with Nuxt 4 (^22.19) and current Vite. CI runs on Node 22.

The test suites now run against pinia 4 (all green, no code changes
needed) - the peer dependency stays >=3.0.0 so both majors work.
@pinia/testing updated to v2.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.29%. Comparing base (b1fdd17) to head (a93c9cf).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2046   +/-   ##
=======================================
  Coverage   99.29%   99.29%           
=======================================
  Files          82       82           
  Lines        3100     3100           
  Branches      559      559           
=======================================
  Hits         3078     3078           
  Misses         16       16           
  Partials        6        6           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@CodeDredd
CodeDredd merged commit a389d1c into main Jul 20, 2026
13 checks passed
@CodeDredd
CodeDredd deleted the chore/node-22-pinia-4 branch July 20, 2026 16:28
@github-actions github-actions Bot mentioned this pull request Jul 20, 2026
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