Skip to content

fix(deps): update dependency comment-json to v5 - #8471

Merged
serhalp merged 2 commits into
mainfrom
renovate/comment-json-5.x
Sep 4, 2026
Merged

fix(deps): update dependency comment-json to v5#8471
serhalp merged 2 commits into
mainfrom
renovate/comment-json-5.x

Conversation

@renovate

@renovate renovate Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
comment-json ^4.6.2^5.0.0 age confidence

Release Notes

kaelzhang/node-comment-json (comment-json)

v5.0.0

Compare Source

MAJOR: blank lines are now modeled explicitly instead of being inferred from loc and historical line-break logic.

  • Introduce explicit BlankLine comment tokens and use them during parse() / stringify().
  • Add parse(code, reviver, { no_comments, no_blank_lines }).
  • Add removeBlankLines() for removing blank lines globally or at a specific comment location.
  • Improve round-trip behavior for JSON files that rely on preserved blank lines, including a Bun-derived regression fixture.
  • Update TypeScript definitions and documentation for the new blank-line model.
Potential breaking changes

This release may introduce breaking changes for consumers who directly inspect or mutate comment tokens:

  • CommentToken is now a union type. A token may be { type: 'BlankLine', inline: false }, so value and loc are no longer guaranteed on every token.
  • stringify() no longer uses loc or the old internal blank-line history to infer empty lines. Blank lines are rendered only from explicit BlankLine tokens.
  • Custom logic that manually creates or rewrites comment token arrays may need to be updated to preserve blank lines correctly.
Behavior differences

If your existing usage includes business logic related to blank lines, you may notice behavior differences:

  • Code that previously relied on loc-based blank-line rendering may now produce different output unless it preserves BlankLine tokens explicitly.
  • Code that assumed every comment token was a line/block comment may need an extra type check for BlankLine.
  • Parsing with { no_blank_lines: true } now provides an explicit way to drop blank lines, while default parsing preserves them as first-class tokens.

An upgrade review is recommended for dependents that have custom comment-token processing or formatting logic around blank lines.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Between 12:00 AM and 03:59 AM, only on Monday (* 0-3 * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Sep 3, 2026
@renovate
renovate Bot requested a review from a team as a code owner September 3, 2026 21:57
@renovate renovate Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Sep 3, 2026
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

📊 Benchmark results

Comparing with 3282dab

  • Dependency count: 1,069 (no change)
  • Package size: 424 MB ⬆️ 0.00% increase vs. 3282dab
  • Number of ts-expect-error directives: 346 (no change)

@pkg-pr-new

pkg-pr-new Bot commented Sep 3, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/netlify-cli@8471

commit: 1c97876

@serhalp
serhalp enabled auto-merge (squash) September 4, 2026 13:44
@serhalp serhalp self-assigned this Sep 4, 2026
@renovate

renovate Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@serhalp
serhalp merged commit f458d83 into main Sep 4, 2026
37 checks passed
@serhalp
serhalp deleted the renovate/comment-json-5.x branch September 4, 2026 14:58
serhalp pushed a commit that referenced this pull request Sep 4, 2026
🤖 I have created a release *beep* *boop*
---


## [27.5.0](v27.4.3...v27.5.0)
(2026-09-04)


### Features

* **clone:** support Netlify managed git service
([#8437](#8437))
([4476e10](4476e10))
* **logs:** add --deploy-id flag to target a specific deploy
([28e44be](28e44be))


### Bug Fixes

* **deps:** update dependency chalk to v6
([#8470](#8470))
([9ebe398](9ebe398))
* **deps:** update dependency comment-json to v5
([#8471](#8471))
([f458d83](f458d83))
* **logs:** auto-select the latest finished deploy, including failures
([b312e2d](b312e2d))
* **logs:** close the deploy stream when replaying a finished deploy
([8b84c92](8b84c92))
* **logs:** fetch historical deploy logs over websocket
([783c3d9](783c3d9))
* **logs:** keep the deploy stream resilient to failed state checks
([d874293](d874293))
* **logs:** stream the targeted deploy in --follow
([d04b659](d04b659))
* stop publishing source maps
([#8468](#8468))
([3282dab](3282dab))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: token-generator-app[bot] <82042599+token-generator-app[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant