Repository navigation
v1.2.1
@cldmv/prettier-plugin-jsonv v1.2.1 Changelog
Release Date: November 2026
Release Type: Patch
Branch: release/1.2.1
Overview
v1.2.0 raised engines.node from >=18.0.0 to >=22.22.0. That number is the floor of the build and test toolchain, not something the plugin needs to run. This release puts engines.node back to >=18.0.0 and records the toolchain floor separately in npm's devEngines, so projects on Node.js 18, 20 or early 22 releases can install v1.2.x again without an EBADENGINE warning.
The formatting code is unchanged, so a given .jsonv file formats exactly as it did in v1.2.0. The CommonJS entry's error message and the build target are the only other changes to what ships.
🐛 Bug Fixes
engines.node describes the runtime again (#88)
engines.nodeis>=18.0.0again, as it was up to v1.1.4. The plugin has no runtime dependencies, and its peers areprettier^3.0.0and@cldmv/jsonv^1.1.0.- The tsup build targets
node18instead ofnode20, so the bundleddist/index.mjsmatches that floor. - The CommonJS entry's
ERR_REQUIRE_ESMmessage now saysrequire()needs Node.js ^20.19.0 or >=22.13.0 (the versions withrequire(esm)), instead of >=22.22.0. On Node.js 18, or a 20/22 release withoutrequire(esm), load the plugin from an ES module config or withimport().
📦 Requirements
- Runtime: Node.js
>=18.0.0(engines.node) and Prettier 3. A CommonJS Prettier config needs Node.js ^20.19.0 or >=22.13.0 forrequire(). - Development: Node.js 22.22.0 or later, declared in the new
devEngines.runtimefield (onFail: "error"), so npm stops with an error when it is run in a checkout on an older Node.js.
🔧 CI & tooling
- The
min_node_versioninput descriptions and a comment inci.ymlandpublish.ymlnow say the 22.22.0 matrix floor is the dev toolchain floor and should matchdevEngines, notengines(#88). The matrix itself still starts at 22.22.0.
📚 Documentation
- NEW: docs/changelog/v1/v1.2.1.md — this changelog.
- README: the Usage section gives the runtime Node.js floor, the
require()range and the 22.22.0 development floor (#88); What's New now leads with v1.2.1. - The v1.2.0 notes describe its Node.js floor under Requirements rather than Breaking Changes (#87).
🔧 Dependencies
No dependency updates. The lockfile changes only in the package's own version and engines fields.
Upgrade notes
- No breaking changes. Anyone who stayed on v1.1.4 because of v1.2.0's Node.js 22.22.0 requirement can upgrade on Node.js 18 or later.
- Formatting output is the same as in v1.2.0.
| Metric | Coverage |
|---|---|
| Statements | 100.0% |
| Branches | 100.0% |
| Functions | 100.0% |
| Lines | 100.0% |
Avg: 100.0% · 91fe150 · Node lts/*