Skip to content

deps: bump the minor group across 1 directory with 2 updates - #53

Merged
Shinrai merged 1 commit into
nextfrom
dependabot/npm_and_yarn/next/minor-85b3f9dbd4
Oct 3, 2026
Merged

Shinrai merged 1 commit into
nextfrom
dependabot/npm_and_yarn/next/minor-85b3f9dbd4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 2, 2026 •

Copy link
Copy Markdown

Bumps the minor group with 2 updates in the / directory: @cldmv/prettier-plugin-jsonv and @cldmv/vitest-runner.

Updates @cldmv/prettier-plugin-jsonv from 1.0.1 to 1.1.0

Release notes

Sourced from @​cldmv/prettier-plugin-jsonv's releases.

v1.1.0

release: v1.1.0 - honour prettier's trailingComma option

@​cldmv/prettier-plugin-jsonv v1.1.0 Changelog

Release Date: September 2026 Release Type: Minor Branch: release/1.1.0


Overview

A critical correctness fix plus a new formatting option. Every published version through v1.0.6 — the printer's key- and literal-handling code was unchanged since the v1.0.0 initial release — could silently corrupt a .jsonv file on format: unquoted (identifier) keys were printed as the literal string "[object Object]", collapsing every key in an object to the same name; every comment, line and block, was dropped; and numbers were printed from their evaluated value rather than their source text, so numeric separators and non-decimal forms were rewritten (1_000_000 → 1000000, 0b1111_0000 → 240, 0xFF → 255). Because every repo on the canonical CLDMV lint/format config registers this plugin for *.jsonv, and the v4 post-merge lint-format job runs npm run format on next and commits the result, any repo with .jsonv files was one merge away from having them corrupted; a scan of CLDMV's own checkouts at the time the bug was reported found none yet corrupted.

The printer is rewritten around @cldmv/jsonv 1.1.0's parseToAst(), which returns a positioned AST carrying raw text on every literal and identifier key, plus the full comment and token list. Printing is now lossless: keys, strings, numbers and BigInts are printed from their source text rather than their evaluated value, and every comment is attached through Prettier's own comment API so it prints exactly once, in place. Only layout — indentation, line breaks, blank-line runs between entries, and spacing inside template interpolations — is normalized, along with unquoting a quoted key whose content is a plain identifier with no escapes.

The published types are also fixed: the plugin now ships a real, type-checked JsonvPlugin declaration instead of a loosely typed one. On top of the fixes, the plugin now honours Prettier's trailingComma option for object and array literals, matching Prettier's default behavior for JavaScript instead of silently ignoring the setting.


🐛 Bug Fixes

Print jsonv losslessly from the source AST (#26, fixes #25)

  • Keys: an unquoted (identifier) key is printed from its name, not stringified from the key node — fixing the "[object Object]" corruption. A quoted key is printed verbatim, including its quote character, unless its content is a plain identifier with no escapes, in which case it is unquoted ("host" → host); every other quoted key — one with a space, an escape, a leading digit, or content that reads as a reserved word — is kept exactly as written. This replaces the previous behavior of normalizing every quoted key's quote character to match the singleQuote option.
  • Numbers and BigInts: printed from their source text, not their evaluated value — numeric separators, binary/octal/hex literals and their casing, and BigInt's n suffix all survive formatting unchanged.
  • Comments: every line and block comment is attached to the AST and printed, including comments in previously-unsupported positions (between a key and its value, inside a member-expression, inside a template interpolation). A line comment's spacing after // is now taken from the source when the comment doesn't start with a letter or digit (a divider like //--- is kept as written); a comment that does start with a letter or digit is still normalized to a single space after //.
  • Blank lines: at most one blank line between object/array entries is now preserved when the source had one. Previously every blank line between entries was removed, corruption bug or not.
  • Templates: interpolated template literals are now sliced verbatim from the source text between their delimiters, rather than rebuilt from the parser's quasi nodes.

Round-trip tests were added covering every jsonv feature (identifier, numeric and quoted keys; every number form; comments in every position; templates; internal references; trailing commas) across the full @cldmv/jsonv fixture corpus, asserting that parsing the formatted output reproduces the original value, that comments survive, and that formatting is idempotent (format(format(x)) === format(x)).

Publish a typed plugin and type-check the JSDoc (#32, fixes #5)

The published declarations previously typed the plugin only as a generic Prettier Plugin, with no detail about its parser, printer or options. The JSDoc in src/index.mjs is now complete and type-checked, and the generated .d.mts exports a real JsonvPlugin type (parser, printer, language and option definitions) alongside JsonvOptions, JsonvParserOptions, JsonvNode, JsonvProgram, JsonvComment and JsonvYear. The plugin satisfies Prettier's own Plugin type directly, and it is exported both as the default export and by name. A new test:types check compiles a consumer file against the published types and now runs as part of build:ci.

✨ Features

Honour prettier's trailingComma option (#31, fixes #27)

The printer previously never added a trailing comma and ignored Prettier's trailingComma option entirely, even though Prettier 3 defaults to "all" and jsonv allows trailing commas in every year. It now follows Prettier's own JavaScript behavior for object and array literals:

  • "all" (Prettier's default) and "es5" add a comma after the last entry of every object or array that breaks across lines. A non-empty object or array is always printed one entry per line, so only an empty one ({ }, []) stays on a single line, and it never gets a comma.
  • "none" never adds one.

A trailing comma already in the source is not kept as written — the option normalizes it, adding or removing the comma after the last entry — and the change stays lossless: the parsed value never changes, and a comment next to the last entry stays in place (a: 1, // note keeps the comment after the comma; a: 1 /* note */, keeps it before). Round-trip and idempotency tests cover every trailingComma value across the jsonv fixture corpus, plus every comment placement around a document's last entry.

🔧 CI & tooling

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for @​cldmv/prettier-plugin-jsonv since your current version.

Install script changes

This version adds prepare script that runs during installation. Review the package contents before updating.


Updates @cldmv/vitest-runner from 1.2.0 to 1.5.1

Release notes

Sourced from @​cldmv/vitest-runner's releases.

v1.5.1

release: v1.5.1 - backfill the missing v1.5.0 changelog

vitest-runner v1.5.1 Changelog

Release Date: September 2026 Release Type: Patch Branch: release/1.5.1


Overview

A documentation-only release: v1.5.0 shipped through the automated release-merge gate before its changelog and README What's New update had landed on next, so it released with the raw auto-generated PR-title dump instead of curated notes. This backfills v1.5.0's changelog and promotes the README. No code changes.


📚 Documentation

Backfilled the missing v1.5.0 changelog

docs/changelog/v1/v1.5.0.md — the curated release notes for the exclude option (#57, #58) that v1.5.0 shipped without. The README ✨ What's New block is promoted to match.


Upgrade notes

No breaking changes — drop-in for v1.5.0. No runtime code changed.


coverage

Metric Coverage
Statements 99.6%
Branches 100.0%
Functions 100.0%
Lines 99.6%

Avg: 99.8% · d915e7d · Node lts/*

... (truncated)

Commits
  • 7aedb32 release: v1.5.1 - backfill the missing v1.5.0 changelog
  • 9e0f31c release: v1.5.0 - add an exclude option for test discovery
  • 1241f7f release: v1.4.4 - drop the tsup-availability guard in prepack (#41)
  • fade67f release: v1.4.3 - enable minification for the tsup build
  • 0685350 release: v1.4.2 - add missing repository/bugs/homepage fields to…
  • ee919b6 release: v1.4.1 - README npm badges reference the unscoped package name
  • 57542fe release: v1.4.0 - bundle a real dist/ build with tsup, generate the CJS… (#22)
  • cf7dcbd release: v1.3.3 - bump the npm_and_yarn group across 1 directory with 2… (#19)
  • bf402bd build(deps-dev): bump the npm_and_yarn group across 1 directory with 2 update...
  • c36611f Merge branch 'hotfixes' into hotfix-redirect/pr-8
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for @​cldmv/vitest-runner since your current version.


@cldmv-bot cldmv-bot Bot added the type: dependencies Relates to dependency updates, version bumps, or package management label Oct 2, 2026
Bumps the minor group with 2 updates in the / directory: [@cldmv/prettier-plugin-jsonv](https://github.com/CLDMV/jsonv-prettier-plugin-jsonv) and [@cldmv/vitest-runner](https://github.com/CLDMV/vitest-runner).


Updates `@cldmv/prettier-plugin-jsonv` from 1.0.1 to 1.1.0
- [Release notes](https://github.com/CLDMV/jsonv-prettier-plugin-jsonv/releases)
- [Commits](https://github.com/CLDMV/jsonv-prettier-plugin-jsonv/commits/v1.1)

Updates `@cldmv/vitest-runner` from 1.2.0 to 1.5.1
- [Release notes](https://github.com/CLDMV/vitest-runner/releases)
- [Commits](CLDMV/vitest-runner@v1.2.0...v1.5.1)

---
updated-dependencies:
- dependency-name: "@cldmv/prettier-plugin-jsonv"
  dependency-version: 1.1.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor
- dependency-name: "@cldmv/vitest-runner"
  dependency-version: 1.5.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot changed the title deps: bump the minor group with 2 updates deps: bump the minor group across 1 directory with 2 updates Oct 3, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/next/minor-85b3f9dbd4 branch from 8785db3 to 4257890 Compare October 3, 2026 03:12
@Shinrai
Shinrai merged commit bd9f9bc into next Oct 3, 2026
27 checks passed
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/next/minor-85b3f9dbd4 branch October 3, 2026 03:29
cldmv-bot Bot added a commit that referenced this pull request Oct 3, 2026
## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
_No bug fixes_

### 📦 Dependencies
- #53
  - deps: bump the minor group across 1 directory with 2 updates (4257890)

### 🔧 Other Changes
- #54
  - ci: run the in-repo PR mirror job instead of skipping it (036f09a)



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>

---

<!-- coverage-start -->

![coverage](https://img.shields.io/badge/coverage-83.2%25-green?style=for-the-badge&logo=vitest&logoColor=white)

| Metric | Coverage |
|--------|----------|
| Statements | 79.6% |
| Branches   | 73.3% |
| Functions  | 100.0% |
| Lines      | 80.1% |

*Avg: **83.2%** · `a96e0b3` · Node lts/**

<!-- coverage-end -->

<!-- co-authors -->

Co-authored-by: Shinrai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: dependencies Relates to dependency updates, version bumps, or package management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant