Skip to content

chore(deps-dev): bump @vitejs/plugin-react from 4.7.0 to 5.2.0 - #1048

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/vitejs/plugin-react-5.2.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/vitejs/plugin-react-5.2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 16, 2026

Copy link
Copy Markdown
Contributor

Bumps @vitejs/plugin-react from 4.7.0 to 5.2.0.

Release notes

Sourced from @​vitejs/plugin-react's releases.

plugin-react@5.2.0

Add Vite 8 to peerDependencies range #1143

This plugin is compatible with Vite 8.

plugin-react@5.1.4

Fix canSkipBabel not accounting for babel.overrides (#1098)

When configuring babel.overrides without top-level plugins or presets, Babel was incorrectly skipped. The canSkipBabel function now checks for overrides.length to ensure override configurations are processed.

plugin-react@5.1.3

No release notes provided.

plugin-react@5.1.2

No release notes provided.

plugin-react@5.1.1

Update code to support newer rolldown-vite (#976)

rolldown-vite will remove optimizeDeps.rollupOptions in favor of optimizeDeps.rolldownOptions soon. This plugin now uses optimizeDeps.rolldownOptions to support newer rolldown-vite. Please update rolldown-vite to the latest version if you are using an older version.

plugin-react@5.1.0

Add @vitejs/plugin-react/preamble virtual module for SSR HMR (#890)

SSR applications can now initialize HMR runtime by importing @vitejs/plugin-react/preamble at the top of their client entry instead of manually calling transformIndexHtml. This simplifies SSR setup for applications that don't use the transformIndexHtml API.

Fix raw Rolldown support for Rolldown 1.0.0-beta.44+ (#930)

Rolldown 1.0.0-beta.44+ removed the top-level jsx option in favor of transform.jsx. This plugin now uses the transform.jsx option to support Rolldown 1.0.0-beta.44+.

plugin-react@5.0.4

Perf: use native refresh wrapper plugin in rolldown-vite (#881)

plugin-react@5.0.3

HMR did not work for components imported with queries with rolldown-vite (#872)

Perf: simplify refresh wrapper generation (#835)

plugin-react@5.0.2

Skip transform hook completely in rolldown-vite in dev if possible (#783)

plugin-react@5.0.1

Set optimizeDeps.rollupOptions.transform.jsx instead of optimizeDeps.rollupOptions.jsx for rolldown-vite (#735)

optimizeDeps.rollupOptions.jsx is going to be deprecated in favor of optimizeDeps.rollupOptions.transform.jsx.

Perf: skip babel-plugin-react-compiler if code has no "use memo" when { compilationMode: "annotation" } (#734)

Respect tsconfig jsxImportSource (#726)

... (truncated)

Changelog

Sourced from @​vitejs/plugin-react's changelog.

5.2.0 (2026-03-12)

Add Vite 8 to peerDependencies range #1143

This plugin is compatible with Vite 8.

5.1.4 (2026-02-10)

Fix canSkipBabel not accounting for babel.overrides (#1098)

When configuring babel.overrides without top-level plugins or presets, Babel was incorrectly skipped. The canSkipBabel function now checks for overrides.length to ensure override configurations are processed.

5.1.3 (2026-02-02)

5.1.2 (2025-12-08)

5.1.1 (2025-11-12)

Update code to support newer rolldown-vite (#976)

rolldown-vite will remove optimizeDeps.rollupOptions in favor of optimizeDeps.rolldownOptions soon. This plugin now uses optimizeDeps.rolldownOptions to support newer rolldown-vite. Please update rolldown-vite to the latest version if you are using an older version.

5.1.0 (2025-10-24)

Add @vitejs/plugin-react/preamble virtual module for SSR HMR (#890)

SSR applications can now initialize HMR runtime by importing @vitejs/plugin-react/preamble at the top of their client entry instead of manually calling transformIndexHtml. This simplifies SSR setup for applications that don't use the transformIndexHtml API.

Fix raw Rolldown support for Rolldown 1.0.0-beta.44+ (#930)

Rolldown 1.0.0-beta.44+ removed the top-level jsx option in favor of transform.jsx. This plugin now uses the transform.jsx option to support Rolldown 1.0.0-beta.44+.

5.0.4 (2025-09-27)

Perf: use native refresh wrapper plugin in rolldown-vite (#881)

5.0.3 (2025-09-17)

HMR did not work for components imported with queries with rolldown-vite (#872)

Perf: simplify refresh wrapper generation (#835)

5.0.2 (2025-08-28)

Skip transform hook completely in rolldown-vite in dev if possible (#783)

5.0.1 (2025-08-19)

Set optimizeDeps.rollupOptions.transform.jsx instead of optimizeDeps.rollupOptions.jsx for rolldown-vite (#735)

... (truncated)

Commits
Maintainer changes

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


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react) from 4.7.0 to 5.2.0.
- [Release notes](https://github.com/vitejs/vite-plugin-react/releases)
- [Changelog](https://github.com/vitejs/vite-plugin-react/blob/plugin-react@5.2.0/packages/plugin-react/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite-plugin-react/commits/plugin-react@5.2.0/packages/plugin-react)

---
updated-dependencies:
- dependency-name: "@vitejs/plugin-react"
  dependency-version: 5.2.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jun 16, 2026
@dependabot @github

dependabot Bot commented on behalf of github Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

Dependabot can't resolve your JavaScript dependency files. Because of this, Dependabot cannot update this pull request.

2 similar comments
@dependabot @github

dependabot Bot commented on behalf of github Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

Dependabot can't resolve your JavaScript dependency files. Because of this, Dependabot cannot update this pull request.

@dependabot @github

dependabot Bot commented on behalf of github Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

Dependabot can't resolve your JavaScript dependency files. Because of this, Dependabot cannot update this pull request.

@xiaolai
xiaolai enabled auto-merge (squash) June 27, 2026 01:17
@xiaolai

xiaolai commented Jun 27, 2026

Copy link
Copy Markdown
Owner

@dependabot recreate

@dependabot @github

dependabot Bot commented on behalf of github Jun 27, 2026

Copy link
Copy Markdown
Contributor Author

Dependabot can't resolve your JavaScript dependency files. Because of this, Dependabot cannot update this pull request.

xiaolai added a commit that referenced this pull request Jun 27, 2026
…globals 17) + cargo minor/patch group

Verified with full `pnpm check:all` (lint, build, coverage, sidecar,
content-server, size) + `cargo check` + 728 Rust tests.

- @vitejs/plugin-react 4 → 5, globals 16 → 17: drop-in (dev/build only, no
  bundle impact). Replaces #1048, #1054.
- eslint-plugin-react-hooks 5 → 7: v7 folded the React Compiler rule set into
  `recommended`, flagging 67 pre-existing sites (set-state-in-effect, refs,
  manual-memoization, immutability). Adopting those is a deliberate codebase
  refactor, not a version bump — so they're deferred in eslint.config.js
  (documented) to preserve the prior enforcement level, and exhaustive-deps is
  pinned to its historical `warn`. Replaces #1050.
- cargo minor/patch updates within semver (`cargo update`): reproduces the
  cargo-minor-patch group (#1040), which failed as a blind bump against a
  stale base. Compiles clean + all Rust tests pass.

Note: the root npm minor/patch group (#1045) is intentionally NOT swept in
here — it carries a mermaid 11.12→11.16 (+~800 kB lazy chunk) and tiptap
3.18→3.27 growth that trips the size gate and warrants a separate, conscious
decision rather than an automatic limit bump. Left to dependabot.
@xiaolai

xiaolai commented Jun 27, 2026

Copy link
Copy Markdown
Owner

Superseded by #1062, which performs this upgrade correctly (verified: full check:all + cargo tests) and folds it into the consolidated dependency-majors PR.

@xiaolai xiaolai closed this Jun 27, 2026
auto-merge was automatically disabled June 27, 2026 02:32

Pull request was closed

@dependabot @github

dependabot Bot commented on behalf of github Jun 27, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/vitejs/plugin-react-5.2.0 branch June 27, 2026 02:32
xiaolai added a commit that referenced this pull request Jun 27, 2026
…h, done correctly) (#1062)

* chore(deps): upgrade rust-i18n 3→4, dirs 5→6, toml 0.8→0.9

All three are drop-in for VMark's usage — verified locally with
`cargo check` + 728 passing tests:

- rust-i18n 4: the 3→4 breaking changes are all trait-level (custom Backend
  impls + the dropped once_cell re-export). We use only the i18n!/t! macros
  and set_locale, which are unchanged. MSRV 1.80 is satisfied.
- dirs 6: home_dir() is unchanged (our only call); we never use config_dir,
  so its macOS churn is irrelevant.
- toml 0.9: we parse into toml::Table (not Value, sidestepping the
  FromStr-now-parses-values break) and use to_string_pretty (signature
  unchanged). Resolves to 0.9.10 — the +spec-1.1.0 suffix is build metadata
  on the published 0.9.10, not a separate preview track.

Completes the intent of dependabot #1044 / #1042 / #1043, which failed as
blind bumps, done correctly with verification.

* chore(deps): upgrade JS majors — i18next 26, lucide-react 1, zod 4 (mcp), react-i18next 16.6

Done correctly with the code migrations dependabot's blind bumps couldn't do.
Verified with the full `pnpm check:all` (tsc, lint, sidecar + content-server
tests, build, coverage, size).

- i18next 25 → 26: `initImmediate` was removed; renamed back to `initAsync`
  (same semantics). src/i18n.ts updated. react-i18next bumped 16.5 → 16.6
  (peer `>= 25.10.9` admits i18next 26).
- lucide-react 0.562 → 1.x: v1 removed all brand icons. AboutSettings imported
  the now-removed `Github`, so it ships the GitHub mark as a local inline SVG
  (GithubMark.tsx) matching the lucide render contract. All other 74 icons
  resolve unchanged. Settings-page size limit nudged 94 → 95 kB for the SVG.
- zod 3 → 4 (vmark-mcp-server): single-arg `z.record()` was removed; cli.ts now
  passes an explicit key schema (`z.record(z.string(), z.unknown())`). The MCP
  SDK 1.27.1 peers `^3.25 || ^4.0`, so zod 4 is accepted.

Completes the intent of dependabot #1052 / #1046 / #1037 / #1047.

* chore(deps): dev-tooling majors (vite-plugin-react 5, react-hooks 7, globals 17) + cargo minor/patch group

Verified with full `pnpm check:all` (lint, build, coverage, sidecar,
content-server, size) + `cargo check` + 728 Rust tests.

- @vitejs/plugin-react 4 → 5, globals 16 → 17: drop-in (dev/build only, no
  bundle impact). Replaces #1048, #1054.
- eslint-plugin-react-hooks 5 → 7: v7 folded the React Compiler rule set into
  `recommended`, flagging 67 pre-existing sites (set-state-in-effect, refs,
  manual-memoization, immutability). Adopting those is a deliberate codebase
  refactor, not a version bump — so they're deferred in eslint.config.js
  (documented) to preserve the prior enforcement level, and exhaustive-deps is
  pinned to its historical `warn`. Replaces #1050.
- cargo minor/patch updates within semver (`cargo update`): reproduces the
  cargo-minor-patch group (#1040), which failed as a blind bump against a
  stale base. Compiles clean + all Rust tests pass.

Note: the root npm minor/patch group (#1045) is intentionally NOT swept in
here — it carries a mermaid 11.12→11.16 (+~800 kB lazy chunk) and tiptap
3.18→3.27 growth that trips the size gate and warrants a separate, conscious
decision rather than an automatic limit bump. Left to dependabot.

* chore(deps): npm minor/patch sweep (root + mcp + content-server)

`pnpm update -r` within semver — reproduces the dependabot minor/patch groups
#1045 (root), #1036 (mcp), and #1051 (@eslint/js) as one verified change.
Full `pnpm check:all` green.

- Size growth accepted (approved): mermaid 11.12 → 11.16 (+~800 kB, lazy
  chunk — never in cold start) and tiptap 3.18 → 3.27 (+18 kB eager). Both
  size-limit ceilings bumped with documented reasons in .size-limit.cjs.
- schema.ts: vscode-languageserver-types reached LSP 3.18, which widened
  Diagnostic.message to `string | MarkupContent`; flatten MarkupContent to
  its text via a messageText() helper.

Completes #1045 / #1036 / #1051.

* docs(eslint): link react-hooks-7 rule deferral to tracking issue #1063

* fix(deps): reconcile pnpm-lock with dompurify override so --frozen-lockfile passes

The minor/patch sweep left pnpm-lock.yaml frozen-inconsistent: the direct
dompurify dep (^3.4.11) and the pnpm.overrides entry (>=3.3.2) disagreed in a
way non-frozen install tolerates but CI's --frozen-lockfile rejects
(ERR_PNPM_OUTDATED_LOCKFILE). Plain pnpm install reconciles it. check:all green.

* fix(knip): re-add mermaid + vitepress to website ignore lists

The minor/patch sweep shifted node_modules hoisting enough that knip (on a
clean --frozen-lockfile install, as CI runs) can no longer statically trace
the website's mermaid usage (rendered via vitepress's component system) or
resolve the `vitepress` binary — flagging both as error-level (Unused
devDependencies / Unlisted binaries). Both are genuinely used; the earlier
gate-fix removed these ignore entries as "stale," but they're load-bearing
across hoisting states. Verified with a clean install + full check:all.
xiaolai added a commit that referenced this pull request Aug 12, 2026
…h, done correctly) (#1062)

* chore(deps): upgrade rust-i18n 3→4, dirs 5→6, toml 0.8→0.9

All three are drop-in for VMark's usage — verified locally with
`cargo check` + 728 passing tests:

- rust-i18n 4: the 3→4 breaking changes are all trait-level (custom Backend
  impls + the dropped once_cell re-export). We use only the i18n!/t! macros
  and set_locale, which are unchanged. MSRV 1.80 is satisfied.
- dirs 6: home_dir() is unchanged (our only call); we never use config_dir,
  so its macOS churn is irrelevant.
- toml 0.9: we parse into toml::Table (not Value, sidestepping the
  FromStr-now-parses-values break) and use to_string_pretty (signature
  unchanged). Resolves to 0.9.10 — the +spec-1.1.0 suffix is build metadata
  on the published 0.9.10, not a separate preview track.

Completes the intent of dependabot #1044 / #1042 / #1043, which failed as
blind bumps, done correctly with verification.

* chore(deps): upgrade JS majors — i18next 26, lucide-react 1, zod 4 (mcp), react-i18next 16.6

Done correctly with the code migrations dependabot's blind bumps couldn't do.
Verified with the full `pnpm check:all` (tsc, lint, sidecar + content-server
tests, build, coverage, size).

- i18next 25 → 26: `initImmediate` was removed; renamed back to `initAsync`
  (same semantics). src/i18n.ts updated. react-i18next bumped 16.5 → 16.6
  (peer `>= 25.10.9` admits i18next 26).
- lucide-react 0.562 → 1.x: v1 removed all brand icons. AboutSettings imported
  the now-removed `Github`, so it ships the GitHub mark as a local inline SVG
  (GithubMark.tsx) matching the lucide render contract. All other 74 icons
  resolve unchanged. Settings-page size limit nudged 94 → 95 kB for the SVG.
- zod 3 → 4 (vmark-mcp-server): single-arg `z.record()` was removed; cli.ts now
  passes an explicit key schema (`z.record(z.string(), z.unknown())`). The MCP
  SDK 1.27.1 peers `^3.25 || ^4.0`, so zod 4 is accepted.

Completes the intent of dependabot #1052 / #1046 / #1037 / #1047.

* chore(deps): dev-tooling majors (vite-plugin-react 5, react-hooks 7, globals 17) + cargo minor/patch group

Verified with full `pnpm check:all` (lint, build, coverage, sidecar,
content-server, size) + `cargo check` + 728 Rust tests.

- @vitejs/plugin-react 4 → 5, globals 16 → 17: drop-in (dev/build only, no
  bundle impact). Replaces #1048, #1054.
- eslint-plugin-react-hooks 5 → 7: v7 folded the React Compiler rule set into
  `recommended`, flagging 67 pre-existing sites (set-state-in-effect, refs,
  manual-memoization, immutability). Adopting those is a deliberate codebase
  refactor, not a version bump — so they're deferred in eslint.config.js
  (documented) to preserve the prior enforcement level, and exhaustive-deps is
  pinned to its historical `warn`. Replaces #1050.
- cargo minor/patch updates within semver (`cargo update`): reproduces the
  cargo-minor-patch group (#1040), which failed as a blind bump against a
  stale base. Compiles clean + all Rust tests pass.

Note: the root npm minor/patch group (#1045) is intentionally NOT swept in
here — it carries a mermaid 11.12→11.16 (+~800 kB lazy chunk) and tiptap
3.18→3.27 growth that trips the size gate and warrants a separate, conscious
decision rather than an automatic limit bump. Left to dependabot.

* chore(deps): npm minor/patch sweep (root + mcp + content-server)

`pnpm update -r` within semver — reproduces the dependabot minor/patch groups
#1045 (root), #1036 (mcp), and #1051 (@eslint/js) as one verified change.
Full `pnpm check:all` green.

- Size growth accepted (approved): mermaid 11.12 → 11.16 (+~800 kB, lazy
  chunk — never in cold start) and tiptap 3.18 → 3.27 (+18 kB eager). Both
  size-limit ceilings bumped with documented reasons in .size-limit.cjs.
- schema.ts: vscode-languageserver-types reached LSP 3.18, which widened
  Diagnostic.message to `string | MarkupContent`; flatten MarkupContent to
  its text via a messageText() helper.

Completes #1045 / #1036 / #1051.

* docs(eslint): link react-hooks-7 rule deferral to tracking issue #1063

* fix(deps): reconcile pnpm-lock with dompurify override so --frozen-lockfile passes

The minor/patch sweep left pnpm-lock.yaml frozen-inconsistent: the direct
dompurify dep (^3.4.11) and the pnpm.overrides entry (>=3.3.2) disagreed in a
way non-frozen install tolerates but CI's --frozen-lockfile rejects
(ERR_PNPM_OUTDATED_LOCKFILE). Plain pnpm install reconciles it. check:all green.

* fix(knip): re-add mermaid + vitepress to website ignore lists

The minor/patch sweep shifted node_modules hoisting enough that knip (on a
clean --frozen-lockfile install, as CI runs) can no longer statically trace
the website's mermaid usage (rendered via vitepress's component system) or
resolve the `vitepress` binary — flagging both as error-level (Unused
devDependencies / Unlisted binaries). Both are genuinely used; the earlier
gate-fix removed these ignore entries as "stale," but they're load-bearing
across hoisting states. Verified with a clean install + full check:all.
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