Bump vite-plugin-ruby from 5.2.2 to 5.2.3 - #9301
Merged
Merged
Conversation
Version 5.2.3 adds native Vite 8 WebSocket configuration support through ElMassimo/vite_ruby#620, allowing `vite.config.mjs` to call `RubyPlugin()` directly and remove the `RubyPluginWithWebSocketConfig` transformation. Set `skipProxy` to load development entrypoints directly from Vite. The Vite client can then derive its WebSocket address from its own script URL, making the explicit `server.ws.clientPort` workaround and its config regression spec unnecessary. Permit only the local Vite HTTP and WebSocket paths in the domain-restricted Cuprite driver so feature specs can use the live server. Delay `vite-plugin-full-reload` notifications by 100 ms so the Rails evented view reloader can invalidate changed server-rendered templates before the browser requests them. This uses the Rails-specific `delay` option documented at https://github.com/ElMassimo/vite-plugin-full-reload#configuration-%EF%B8%8F and prevents the first automatic reload from rendering stale compiled Haml. Keep the existing Ruby dependencies unchanged. `vite_ruby` 3.10.2 already supports `vite-plugin-ruby` 5.2.x, while updating it would also pull in `rack-proxy` 1.0 and break the Rails development proxy because of that dependency major version change in backend policy. Refresh and deduplicate the `pnpm` lockfile. The initial `pnpm dedupe` was blocked by the minimum-release-age policy, so temporarily exempt `picomatch@4.0.7` and `vite-plugin-ruby@5.2.3` through the workspace configuration; `pnpm-update-js-packages` refreshes those exemptions on later updates. codex resume 01a04431-06e8-7763-89bc-f735429ac1f7
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9301 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 294 294
Lines 4323 4323
=========================================
Hits 4323 4323 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
davidrunger
added a commit
that referenced
this pull request
Aug 27, 2026
Upgrade `vite_ruby` from 3.10.2 to 3.10.4. Version 3.10.3 relaxed its `rack-proxy` dependency for ElMassimo/vite_ruby#619, and 3.10.4 makes the Vite Ruby dependency updater respect conservative version constraints. This bumps `rack-proxy` from 0.8.3 to 1.0.1, which would have caused a problem if we didn't have `"skipProxy": true` in `config/vite.json` because version 1.0 changed Host-derived backend requests to return HTTP 502 unless dynamic backends are explicitly allowed (https://github.com/ncr/rack-proxy/blob/master/CHANGELOG.md#100---2026-07-18). `ViteRuby::DevServerProxy` still rewrites `HTTP_HOST` without configuring an explicit backend, so accepting the newly allowed major release would break proxied `/vite/...` requests. However, since we just added `"skipProxy": true` in #9301 / 99cdeff , we skirt around this issue. codex resume 01a04431-06e8-7763-89bc-f735429ac1f7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Version 5.2.3 adds native Vite 8 WebSocket configuration support through ElMassimo/vite_ruby#620, allowing
vite.config.mjsto callRubyPlugin()directly and remove theRubyPluginWithWebSocketConfigtransformation.Set
skipProxyto load development entrypoints directly from Vite. The Vite client can then derive its WebSocket address from its own script URL, making the explicitserver.ws.clientPortworkaround and its config regression spec unnecessary. Permit only the local Vite HTTP and WebSocket paths in the domain-restricted Cuprite driver so feature specs can use the live server.Delay
vite-plugin-full-reloadnotifications by 100 ms so the Rails evented view reloader can invalidate changed server-rendered templates before the browser requests them. This uses the Rails-specificdelayoption documented at https://github.com/ElMassimo/vite-plugin-full-reload#configuration-%EF%B8%8F and prevents the first automatic reload from rendering stale compiled Haml.Keep the existing Ruby dependencies unchanged.
vite_ruby3.10.2 already supportsvite-plugin-ruby5.2.x, while updating it would also pull inrack-proxy1.0 and break the Rails development proxy because of that dependency major version change in backend policy.Refresh and deduplicate the
pnpmlockfile. The initialpnpm dedupewas blocked by the minimum-release-age policy, so temporarily exemptpicomatch@4.0.7andvite-plugin-ruby@5.2.3through the workspace configuration;pnpm-update-js-packagesrefreshes those exemptions on later updates.codex resume 01a04431-06e8-7763-89bc-f735429ac1f7