Repository navigation
fix: store props in shallow reactive to avoid deep propagation - #2951
Merged
Merged
Conversation
✅ Deploy Preview for vue-test-utils-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
commit: |
cexbrayat
requested changes
Sep 24, 2026
cexbrayat
left a comment
Member
There was a problem hiding this comment.
Looks great, thanks for the PR!
I'll try to outline the potential breaking change in the next minor release.
Thanks
cexbrayat
approved these changes
Sep 24, 2026
Dashtid
added a commit
to Dashtid/portfolio-site
that referenced
this pull request
Nov 24, 2026
…verrides Applies Dependabot #248 (npm-minor group, 14 updates, opened 2026-11-23, head 56af38c) to frontend/, except @lhci/cli 0.15.1 -> 0.16.1 and @playwright/test 1.64.1 -> 1.65.1, which are not part of this commit. Each package takes the newest release of its major published before 2026-11-16T21:00Z, so marked and typescript-eslint land newer than the PR's versions: axios 1.21.0 -> 1.21.1 marked 18.1.3 -> 18.2.1 (#248: 18.2.0) vue 3.5.44 -> 3.5.45, with its nine @vue/* runtime and compiler packages vue-router 5.4.0 -> 5.5.1 @typescript-eslint/eslint-plugin and parser 8.72.1 -> 8.73.0 (#248: 8.72.2), with project-service, scope-manager, tsconfig-utils, type-utils, types, typescript-estree, utils and visitor-keys @vitejs/plugin-vue 6.0.10 -> 6.0.11 @vue/test-utils 2.5.1 -> 2.6.0 eslint 10.14.0 -> 10.15.0, with @eslint/config-array 0.23.5 -> 0.23.6 eslint-plugin-vue 10.12.0 -> 10.12.1 prettier 3.9.10 -> 3.10.1 vite 8.3.5 -> 8.3.8 and three lock-only moves inside the ranges that @lhci/cli 0.15.1's chain already declares (dev only): body-parser 1.20.6 -> 1.20.9 (GHSA-27r3-jxmh-p828), ip-address 10.7.2 -> 10.7.6 (GHSA-rxp7-6hxx-x8q5) and express 4.22.2 -> 4.22.3. Transitive moves. vite 8.3.8 asks for rolldown ~1.2.18 and postcss ^8.5.32, so rolldown and its platform bindings move 1.2.15 -> 1.2.19 together (os, cpu, libc and optional flags unchanged), with @oxc-project/types 0.155.0 -> 0.156.0 and postcss 8.5.30 -> 8.5.33. rolldown 1.2.19 lists @rolldown/binding-wasm32-wasi again, as 1.2.0 and 1.2.1 did, which adds top-level optional entries for @emnapi/core and @emnapi/runtime 2.0.0-beta.2 (pinned exactly by the binding), @emnapi/wasi-threads 2.2.0, @napi-rs/wasm-runtime 1.2.6 and @tybys/wasm-util 0.10.5. The binding declares cpu wasm32, so npm ci on x64 installs none of them; the @emnapi entries nested under @tailwindcss/oxide-wasm32-wasi are unchanged. vue-router 5.5.1 moves chokidar 5.0.0 -> 6.0.0, readdirp 5.0.0 -> 5.1.1, unplugin 3.4.0 -> 3.7.0 and its own nested confbox and magic-string, and adds local-pkg 2.0.0 and quansync 1.0.0 under itself; vue-router imports them only from its unplugin entry, which nothing in frontend/ imports. vue 3.5.45 moves @babel/parser, @babel/types and @babel/helper-string-parser to 7.29.14. eslint-plugin-vue 10.12.1 moves postcss-selector-parser 7.1.6 -> 7.2.1, which no longer depends on cssesc. minimatch: eslint 10.15.0 and @eslint/config-array 0.23.6 ask for ^11.0.5 and @typescript-eslint/typescript-estree 8.73.0 for ^11.0.1, so each gets a nested minimatch 11.0.8 (outside GHSA-cf2h-pxjq-68xw, which ends at 11.0.6), with @isaacs/nonrecursive-glob-match 1.1.0. The top-level 10.2.6 stays for editorconfig, glob 13.0.6 and workbox-build's glob 11.1.0, so workbox-build matches as before and build:ssg still precaches 25 entries. Overrides. sourcemap-codec and fflate are dropped: no package in the tree depends on sourcemap-codec, and @vitest/ui already asks for fflate ^0.8.3. On main's lock, npm 12.0.2's install --package-lock-only writes the same bytes with and without the two entries, and so does this commit's write. qs is dropped as well: express 4.22.3 and body-parser 1.20.9 both ask for qs ~6.16.0, so qs resolves to 6.16.2, which no advisory in GitHub's database covers (GHSA-6pq8-jhm2-2vcw ends at 6.16.0); main's override forced 6.17.1. The tmp and uuid overrides stay. package.json moves the ranges of the eleven packages above; @typescript-eslint/parser stays ^8.48.0 and moves in the lock only. Against main the lock adds 12 entries, removes 1 (cssesc) and changes 61 plus the root's ranges. Against #248 without the entries that only @lhci/cli 0.16.1 or @playwright/test 1.65.1 reach, 57 moved entries are identical; 13 differ by the newer marked and typescript-eslint versions (the root's ranges included) and by @tybys/wasm-util 0.10.5 (#248: 0.10.4); 5 are only here (body-parser, express, ip-address, qs and typescript-estree's nested minimatch); and #248's other five moves (@opentelemetry/api, default-browser, ws and both tldts-core entries) are forced by @lhci/cli 0.16.1's chain, so they are not here. Cooldown: the 70 (name, version) pairs new to the lock were published between 2025-12-04 and 2026-11-16T17:22Z (marked 18.2.1), all before the 2026-11-16T21:00Z cut, and every new or changed entry's resolved URL and integrity equal the registry's. GitHub's advisory database lists no advisory against any of them. Written in node:24 (node 24.21.0, node@sha256:3d27e5c11e5786e309ec3e03f93ae536eb36e6e5eb3714d5eb3300a36157add0) with npm 12.0.2, after removing the three overrides from package.json: install --package-lock-only --before=2026-11-16T21:00:00Z axios@^1.21.1 marked@^18.2.1 vue@^3.5.45 vue-router@^5.5.1 @typescript-eslint/eslint-plugin@^8.73.0 @vitejs/plugin-vue@^6.0.11 @vue/test-utils@^2.6.0 eslint@^10.15.0 eslint-plugin-vue@^10.12.1 prettier@^3.10.1 vite@^8.3.8 update @typescript-eslint/parser body-parser express ip-address --package-lock-only --before=2026-11-16T21:00:00Z A second install --package-lock-only changes no byte; npm 11.6.1, 10.9.11 and 12.0.2 ci --dry-run pass; after npm ci (npm 11.19.0), npm ls --all reports no invalid, missing or extraneous entry and no unmet dependency or peer. Its UNMET OPTIONAL lines are, as on main, optional platform packages and optional peers, plus one new optional peer, typescript-estree 8.73.0's @typescript/native. Every platform-specific entry outside the rolldown family is unchanged, and there is one top-level @sentry/core. Build output: main and main with these two files, built the same way in the pinned Playwright image (npm ci, then VITE_APP_VERSION=000000000000 npm run build:ssg), give 95 files each. 58 are byte-identical and 31 differ only in the names of 22 re-hashed assets, every prerendered page among them; no CSS file changes. Six change (sizes are rendered module bytes before minification): - the article route chunk, which carries marked (+3270) - the eager logger chunk, which carries the Vue runtime and axios: @vue/runtime-core, reactivity and shared 3.5.45 (+2314) and axios 1.21.1 (+200) - the entry chunk: vue-router 5.5.1 (+591), @vue/runtime-dom 3.5.45 (+164) and vite 8.3.8's preload helper (+218) - the lazy auth store chunk, whose two imports rolldown now emits in source order (rolldown/rolldown#11298) - .vite/ssr-manifest.json, for vue-router's renamed internal files - sw.js: the same 25 precache URLs, four HTML revisions changed, and otherwise only two minified identifiers swapped No picomatch module is in the bundle. Lint at this commit: 0 errors and the same two vue/no-v-html warnings as main. prettier 3.10.1 and 3.9.10 both pass --check over all 147 frontend files the prettier hook covers, so no file is reformatted. npm audit --package-lock-only: 21 entries, 8 advisories, all dev (main: 30 and 10; the body-parser and ip-address advisories are gone), and 0 with --omit=dev. Verified in the pinned Playwright v1.64.1 image (node 24.22.1, npm 11.19.1) with ci-cd.yml's frontend-quality and e2e steps, on this commit and on main the same day: npm 11.6.1's ci --dry-run, npm ci, lint, type-check, 698 unit tests in 55 files, build:ssg with its dist invariants (25 precache entries), the e2e suite (72 passed, 1 skipped; all 23 visual baselines pass) and verify:csp pass on both. Coverage is 70.99 / 64.69 / 65.85 / 73.71 (statements, branches, functions, lines) on both, with the same table row for row. @vue/test-utils 2.6.0 stops making plain object and array props deeply reactive (vuejs/test-utils#2951); every spec passes unchanged.
skerdudou
added a commit
to skerdudou/ritornello
that referenced
this pull request
Nov 25, 2026
@vue/test-utils 2.6.0 stopped making a plain object prop deeply reactive (vuejs/test-utils#2951). UpdateCard writes the update hour into the settings object it receives, the page's shared reactive one; the test passed a plain object, so the typed hour was stored but never rendered and "follows the hour being typed" failed on the bump.
github-actions Bot
pushed a commit
to skerdudou/ritornello
that referenced
this pull request
Nov 25, 2026
* chore(deps): bump the npm-minor-and-patch group with 6 updates Bumps the npm-minor-and-patch group with 6 updates: | Package | From | To | | --- | --- | --- | | [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) | `8.3.6` | `8.3.8` | | [@vitejs/plugin-vue](https://github.com/vitejs/vite-plugin-vue/tree/HEAD/packages/plugin-vue) | `6.0.10` | `6.0.11` | | [@vue/test-utils](https://github.com/vuejs/test-utils) | `2.5.1` | `2.6.0` | | [jsdom](https://github.com/jsdom/jsdom) | `31.0.0` | `31.0.1` | | [vue-router](https://github.com/vuejs/router) | `5.4.0` | `5.5.1` | | [@playwright/test](https://github.com/microsoft/playwright) | `1.65.0` | `1.65.1` | Updates `vite` from 8.3.6 to 8.3.8 - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v8.3.8/packages/vite) Updates `@vitejs/plugin-vue` from 6.0.10 to 6.0.11 - [Release notes](https://github.com/vitejs/vite-plugin-vue/releases) - [Changelog](https://github.com/vitejs/vite-plugin-vue/blob/main/packages/plugin-vue/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite-plugin-vue/commits/[email protected]/packages/plugin-vue) Updates `@vue/test-utils` from 2.5.1 to 2.6.0 - [Release notes](https://github.com/vuejs/test-utils/releases) - [Commits](vuejs/test-utils@v2.5.1...v2.6.0) Updates `jsdom` from 31.0.0 to 31.0.1 - [Release notes](https://github.com/jsdom/jsdom/releases) - [Commits](jsdom/jsdom@v31.0.0...v31.0.1) Updates `vue-router` from 5.4.0 to 5.5.1 - [Release notes](https://github.com/vuejs/router/releases) - [Commits](vuejs/router@v5.4.0...v5.5.1) Updates `@playwright/test` from 1.65.0 to 1.65.1 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](microsoft/playwright@v1.65.0...v1.65.1) --- updated-dependencies: - dependency-name: vite dependency-version: 8.3.8 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-minor-and-patch - dependency-name: "@vitejs/plugin-vue" dependency-version: 6.0.11 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-minor-and-patch - dependency-name: "@vue/test-utils" dependency-version: 2.6.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-minor-and-patch - dependency-name: jsdom dependency-version: 31.0.1 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-minor-and-patch - dependency-name: vue-router dependency-version: 5.5.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: npm-minor-and-patch - dependency-name: "@playwright/test" dependency-version: 1.65.1 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-minor-and-patch ... Signed-off-by: dependabot[bot] <[email protected]> * chore(release): v0.3.0-beta.4 — chime, covers, web-streaming tags, phone fixes (#173) * fix: reading screen, lock chime level, phone layouts, cover retries - Lock chime peak raised from 0.22 to 0.35 (about +4 dB) so it is heard over the music. The stutter is NOT addressed: it needs measurement on the Pi (aevalsrc cost, chain rewrites while playing). - Cover image: four retries over about twenty seconds instead of two over five, so a network share that goes quiet for a few seconds no longer leaves the square on the placeholder until the next track. - Enlarged cover: drop the 16 px padding so the image fills the screen. - Preset/track list: pages follow the finger during a swipe, commit at a quarter of the width, and the list scrollbar is inset from the edge. - web-streaming download dialog: flex children may shrink on narrow screens. - files plugin: browse tab buttons show an icon, label hidden on phones; source and search fields no longer force a 192 px minimum on phones. - generic-input: the icon columns no longer take 192 px on phones. * feat(web-streaming): tag downloaded tracks from the site's own info * feat(core): lock chimes pre-rendered in Rust and embedded in the binary * chore(release): prepare v0.3.0-beta.4 * fix(kit): a finger holds a reorder handle 0.4 s before it grabs the row (#170) On a phone, a thumb that landed on the ⠿ column to scroll the page dragged a row along: the handle refuses to scroll (`touch-none`) and Sortable grabbed after 3 px. A finger must now hold the handle still for 0.4 s (moving more than 5 px meanwhile cancels); a mouse grabs at once. The grabbed row is highlighted, with a short vibration where the device has one. Applies to every list built on `ReorderList`: plugins table, radio stations, files playlist, web-streaming presets. The e2e finger drags press first, and a new journey checks that a quick swipe from a handle moves no row. * chore(release): v0.3.0-beta.5 — chime volume, zoom margin, phone layouts (#174) * fix: reading screen, lock chime level, phone layouts, cover retries - Lock chime peak raised from 0.22 to 0.35 (about +4 dB) so it is heard over the music. The stutter is NOT addressed: it needs measurement on the Pi (aevalsrc cost, chain rewrites while playing). - Cover image: four retries over about twenty seconds instead of two over five, so a network share that goes quiet for a few seconds no longer leaves the square on the placeholder until the next track. - Enlarged cover: drop the 16 px padding so the image fills the screen. - Preset/track list: pages follow the finger during a swipe, commit at a quarter of the width, and the list scrollbar is inset from the edge. - web-streaming download dialog: flex children may shrink on narrow screens. - files plugin: browse tab buttons show an icon, label hidden on phones; source and search fields no longer force a 192 px minimum on phones. - generic-input: the icon columns no longer take 192 px on phones. * feat(web-streaming): tag downloaded tracks from the site's own info * feat(core): lock chimes pre-rendered in Rust and embedded in the binary * chore(release): prepare v0.3.0-beta.4 * fix(web): keep the cover's margin while zoomed, so a pan stops short of the edge * feat(core): a four-level volume for the lock chime, level 2 by default * chore(release): prepare v0.3.0-beta.5, stack the download page choices on a phone * fix(generic-input): the code column keeps its width on a phone, beside the action * chore(release): lock the generic-input 0.3.0-beta.5 version * docs(release): note the generic-input key column fix in v0.3.0-beta.5 * UI polish batch: presets swipe, disabled plugin kind/version, louder lock sound, M.A.L.P. fixes (#175) * fix(web): preset pages swipe apart, packed at the top; list scrollbar in the margin - While dragging, the pages are as far apart as the grid's two columns (0.5rem): the track is the frame's width, each panel too, and the gap is added to the translation. - Each panel packs its rows at the top (`content-start`): a short last page no longer spreads its tiles over the height of the full page beside it. - In list mode the frame reaches into the card's right padding and pads its content back, so the scrollbar sits clear of the tiles. - Equalizer: on a wide screen the bands are packed side by side instead of spread across the card. - Alarm volume moves by 5 %, like the player's slider; a volume saved off that grid is shown and saved on the nearest step. * feat: a switched-off plugin's row shows its kind and version The manifest block embedded by `declare_runtime!` gains an optional `kinds` key, read at compile time from the plugin's own `[package.metadata.ritornello] kinds` line (a compatible addition: older cores ignore it). The core builds a switched-off plugin's lines from that block at start (version, repository, one line per known kind), and keeps what the last announcement said when a plugin is switched off from the page, without reading any file on that request path. A binary built before this change still shows its version from the block, and its kind stays unknown until it is rebuilt. * feat(core): a louder lock sound at every level The envelope's peak goes from 0.35 to 0.525 (x1.5): level 2, the default, now sounds as level 4 did. Notes overlap, so a motif peaks above the envelope (B lock reaches 0.81 at level 2); levels 3 and 4 become x1.1 and x1.2 so that no motif clips on its own, which a new test holds for every sound and motif. The embedded WAV files are regenerated. * feat(web-streaming): clear the last playback failure from the page A "Clear" button beside the last failure sends `clear_failure`, which removes the record the wrapper wrote (already gone is not an error), under the same short deadline the page reads it with. * fix(mpd): 5 % volume steps, covers for M.A.L.P., speaker icon mutes and restores Read from M.A.L.P.'s source: - Its +/- and its slider send absolute `setvol` values one apart. `setvol` now lands on the 5 % grid: a value within one step of the published volume moves one step that way, a value on the grid is taken as is, a jump rounds to the nearest step, and a drag (remembered per connection) follows the finger without oscillating. Relative `volume` uses the same grid. - It asks for a cover only when the song's album changes, and remembers a refusal for the whole album. The core announces `cover_href` only once the image is cached, so the frame that wakes the client carries none yet: the cover commands now wait (bounded by COVER_TIMEOUT) for a cover that may still arrive, not only for one announced and not yet held. On the radio, a tag change on the same station moves the playlist version, as MPD does. - Its speaker icon sends `setvol 0` each time and has no unmute: `setvol 0` now toggles the core's mute (on a device already at 0 and not muted it stays a plain volume of 0). On a muted device its "-" also unmutes: the protocol cannot tell the two apart. * test(web): read the presets track's shift by its terms, not its spelling CI's jsdom reorders and folds the transform's calc (`calc(-100% - 50px - 0.5rem)`, `calc(-200% + 0px - 1rem)`) where the local one kept it as written: the test now sums the page and rem terms. * test(web): mount UpdateCard with reactive settings, as the page does @vue/test-utils 2.6.0 stopped making a plain object prop deeply reactive (vuejs/test-utils#2951). UpdateCard writes the update hour into the settings object it receives, the page's shared reactive one; the test passed a plain object, so the typed hour was stored but never rendered and "follows the hour being typed" failed on the bump. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: skerdudou <[email protected]>
virgilchiriac
added a commit
to hpi-schul-cloud/nuxt-client
that referenced
this pull request
Dec 1, 2026
@vue/test-utils 2.6.0 has two changes in behaviour that broke tests: - wrapper.unmount() clears the emitted history after unmounting (vuejs/test-utils#2985), so events emitted in onBeforeUnmount are lost. The tests of LinkContentElementCreate and VideoConferenceContentElementCreate check them with listener spies. - Props passed to mount() are no longer deeply reactive (vuejs/test-utils#2951). RoomForm changes its room prop in place, so the test wraps the room in reactive(), as the parent pages pass a ref. Co-authored-by: Copilot <[email protected]>
prigaux
added a commit
to UnivParis1/comptex
that referenced
this pull request
Dec 2, 2026
virgilchiriac
added a commit
to hpi-schul-cloud/nuxt-client
that referenced
this pull request
Dec 3, 2026
@vue/test-utils 2.6.0 has two changes in behaviour that broke tests: - wrapper.unmount() clears the emitted history after unmounting (vuejs/test-utils#2985), so events emitted in onBeforeUnmount are lost. The tests of LinkContentElementCreate and VideoConferenceContentElementCreate check them with listener spies. - Props passed to mount() are no longer deeply reactive (vuejs/test-utils#2951). RoomForm changes its room prop in place, so the test wraps the room in reactive(), as the parent pages pass a ref.
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.
fixes #2949
As outlined in the linked ticket, object values provided as props to
mountare made deeply reactive, which does not align with underlyingvuebehavior. This PR resolves this mismatch by storing the props in ashallowReactiverather than areactive, preventing the deep propagation.Notably, this fix breaks test case
tests/props.spec.ts > should keep props as same object, introduced in response to #1476. I attempted to reproduce that report's behavior on the indicated[email protected]runtime (not test), and found that it only behaved in that manner if the parent component was passing the prop as a reactive object itself. Given the test reproduction is using options API, I assume this was an oversight aided by the implicit reactivity ofdataand similar. To matchvueruntime semantics, the tests should have been updated to pass props withreactive(...)wrappers.I've updated the reproduction linked in #2949 with with an example of this broken behavior on current vue - rolling back to
3.2.33does not change the observed behavior.Unfortunately, this means that this change is breaking. Tests for components that implicitly rely on provided props being reactive may break without
reactive(...)wrappers being added. I'm not sure what the semver-breaking guidelines are for this project, given the breakage is semantically a correctness fix.