Releases: vuejs/test-utils
v2.4.9
🩹 Fixes
- Tolerate duplicate attachTo cleanup (#2830)
📖 Documentation
- Document release process (#2834)
🏡 Chore
- Migrate renovate config (5d37934)
🤖 CI
- Pin github actions to commit hashes (75dcef3)
❤️ Contributors
- Cédric Exbrayat (@cexbrayat)
- Daniel Roe (@danielroe)
v2.4.8
🩹 Fixes
- Correct declaration entrypoint (#2826)
🤖 CI
- Enable pkg.pr.new (#2827)
❤️ Contributors
- Cédric Exbrayat (@cexbrayat)
- Daniel Roe (@danielroe)
v2.4.7
🚀 Enhancements
- Add Chinese docs translation (#2552)
- SetData()/shallowMount with initialData for components using the Composition API / <script setup> (#2655)
🩹 Fixes
- Preserve code from keyboard events (#2434)
- Switch browser and require exports definitions (#2501)
- Re-add peer dependencies but with wider range (#2511)
- Resolve warnings in docs:dev (30b7491)
- Resolve TypeScript type errors in .vitepress/config (#2549)
- Accept FunctionalComponent as selector (0bb947f)
- Text() misses content for array functional component (#2579)
- Use await in test (c5482b4)
- deps: Update dependency vue-component-type-helpers to v3 (#2683)
- Remove wrapper div when unmount (#2700)
- Make mount options slots compatible with noUncheckedIndexedAccess true (#2713)
- Add missing peerDependency @vue/compiler-dom (75801ba)
- docs: Declare css module for vitepress typecheck (ddaca97)
💅 Refactors
- Enforce consistent usage of type imports (#2734)
📖 Documentation
- Clarify findComponent vs getComponent (#2435)
- Update fr docs (67064ef)
- Add note about partial transition stub support (#2431)
- Fix missing data at passing data section essentials guide (dda205e)
- Fix missing data at passing data section essentials guide fr (ae2c72c)
- Fix plugin TS declaration example (#2466)
- Fixed incorrect checkbox value check (#2495)
- Capital letter in sentence fix (#2499)
- Import missing DOMWrapper on Implementation of the plugin section (#2519)
- Add migration step for deprecated ref syntax in findAllComponents (#2498)
- Correct anchor hash links and fix typo (#2551)
- Center logo on home (#2559)
- zh-cn: Review a-crash-course (#2563)
- Use code-group for install commands (#2571)
- zh-cn: Review event-handing.md (#2572)
- zh-cn: Enhance conditional-rendering.md (#2562)
- zh-cn: Review easy-to-test (#2567)
- zh-cn: Review passing-data.md (#2575)
- zh-cn: Review async-suspense.md (#2576)
- zh: 优化 API 文档格式和内容 (#2569)
- zh: 更新 Vitest 模拟日期和计时器的说明 (#2578)
- zh-cn: Review http-requests.md (#2580)
- zh-cn: Review forms (#2582)
- zh-cn: Guide/advanced/slots.md (#2565)
- zh: Review extending-vtu (#2583)
- zh: Review index (#2584)
- Fix modelValue test example (85bfdf4)
- Removes broken link from plugins.md (69bc1ce)
- zh: Review transitions, component-instance, and reusability-composition (#2616)
- zh: Review v-model and vuex (#2617)
- zh: Review all the rest advanced guide (#2619)
- zh: Review migration (#2623)
- Fix a typo in transitions.md (#2635)
- Update crash-course to script setup (c81aa79)
- Update Essentials section to setup (composition api) (#2647)
- Typos in examples (#2678)
- Typo in easy-to-test.md (#2710)
- Add note about mocking requestAnimationFrame for transitions (2324c65)
- Updated example TodoApp to script setup (#2727)
- Remove "Using data" section from "Conditional Rendering" guide and fix passing data test example (#2743)
- Follow-up fixes for the conditional rendering guide (#2744)
- Mention shallowMount stub name changes in migration guide (80e051a)
- Update conditional rendering documentation to clarify isVisible() usage with attachTo (#2799)
- Restore Options API component for data() mounting example (#2804)
- Promote Vitest as recommended test runner (#2805)
- api: Note that setValue does not accept objects on
<select>(#2819)
🏡 Chore
- Add api/index.md to docs:translation:compare (6b8681c)
- Remove unnecessary generic arguments (cfd70c6)
- Ignore TS error in config object (9d0a618)
- Simplify eslint packages (c1d0ffd)
- Use eslint v9 with flat config (2f19fdf)
- Expose Stubs type publicly (#2492)
- Update documentation file path (9c96594)
- Use pnpm v10 (e4c2cb3)
- Pnpm approve build (81c54e9)
- Use github issue forms (#2673)
- Exclude class components from test type-checking (0899008)
- Add explicit coverage include for vitest v4 (51672b9)
- Update to prettier v3.7 (fed9e7c)
- Migrate to oxfmt (81c1de9)
- Migrate to oxlint (a361908)
- Prepare TypeScript 6 migration settings (55e1262)
- Adjust tsd config for TypeScript 6 (7d23eb5)
- Avoid TypeScript 6 target deprecation warning (81d063c)
🤖 CI
- Remove node v22 build (7ebf58d)
- Add node v22 build (57540ee)
- Use "pool: threads" instead of vmThreads (d0cbb54)
- Remove node v18 and add v24 (fd9cf95)
- Add trusted publishing release workflow (#2825)
❤️ Contributors
- Lachlan Miller (@lmiller1990)
- cexbrayat (@cexbrayat)
- Nicolas Bonamy (@nbonamy)
- KatWorkGit (@KatWorkGit)
- Wouter Kroes (@wouterkroes)
- Rama Muhammad Murshal (@ramammurshal)
- Evan You (@yyx990803)
- Vlad Starkovsky (@starkovsky)
- Joe (@joaoprp)
- Priyadarshi Kumar (@Psingh132)
- Sébastien Ronveaux (@sronveaux)
- Gilliam (@Gi11i4m)
- Baranov Dmytro (@dimas7001)
- BrendonHenrique (@BrendonHenrique)
- Lorenz van Herwaarden (@lorenzvanherwaarden)
- wuzhiqing (@DDDDD12138)
- 阿菜 Cai (@RSS1102)
- Jinjiang (@Jinjiang)
- Kylin (@lxKylin)
- Qianhe Chen (@chenqianhe)
- 时瑶 (@KiritaniAyaka)
- h7ml (@h7ml)
- Nicander (@Nicander93)
- Take-John (@takejohn)
- ilyasherstoboev (@ilyasherstoboev)
- aimerie (@aimerie)
- Miguel Rincon (@miguelrincon)
- bcastlel (@bcastlel)
- Claudiu (@sofuxro)
- Artem Dragunov (@dragunovartem99)
- Robin (@OrbisK)
- Koen Mertens (@KCMertens)
- meomking (@CaptainWang98)
- Pepijn Olivier (@pepijnolivier)
- Tomina (@Thomaash)
- Gareth Jones (@G-Rath)
- Jerry Hogan (@hdJerry)
- Marco Pasqualetti (...
v2.4.6
What's Changed
- fix: circular references in props cause maximum call stack size exceeded by @Evobaso-J in #2371
- fix: update attachTo type in MountingOptions interface by @taku-y-9308 in #2375
- fix: change vm to always provide global property by @taku-y-9308 in #2386
- fix: renderStubDefaultSlot with scoped slots by @cexbrayat in #2397
- feat: Added dynamic return for element getter by @nandi95 in #2406
- fix(stubs): avoid warning on normalized props with Vue v3.4.22 by @cexbrayat in #2413
- fix: set global provides before running vue plugins by @danielroe in #2423
- fix: issue 2319 throw first error thrown during mount by @taku-y-9308 in #2428
New Contributors
- @Jinjiang made their first contribution in #2373
- @taku-y-9308 made their first contribution in #2375
- @matusekma made their first contribution in #2351
- @w2xi made their first contribution in #2398
- @brc-dd made their first contribution in #2403
- @KatWorkGit made their first contribution in #2422
Full Changelog: v2.4.5...v2.4.6
v2.4.5
What's Changed
- feat: add teleport stub possibility, https://github.com/vuejs/test-ut… by @blizzardKv in #2336
- fix(findComponent): Use correct vm for stubbed component with selector by @freakzlike in #2327
- fix(teleport.md): fix missed "global" key, https://github.com/vuejs/t… by @blizzardKv in #2337
- fix(vue-router.md): update highlights when mocking real router by @dmoyadev in #2340
- fix(deps): update dependency vue-component-type-helpers to v2 by @renovate in #2358
- fix: Allow access to nested computed values (fix #2196) by @Evobaso-J in #2356
- docs: add mention of enableAutoDestroy replacement by @strokirk in #2344
New Contributors
- @blizzardKv made their first contribution in #2336
- @dmoyadev made their first contribution in #2340
- @strokirk made their first contribution in #2344
- @Evobaso-J made their first contribution in #2356
- @qmonmert made their first contribution in #2364
Full Changelog: v2.4.4...v2.4.5
v2.4.4
What's Changed
- fix: ignore prototype methods when using setData on objects by @Haberkamp in #2265
- fix: always load cjs bundle in node environment by @danielroe in #2269
- fix: experimentalVmThreads is now pool=vmThreads by @cexbrayat in #2275
- feat: respect devtools definition by @webfansplz in #2311
New Contributors
- @ArtemTropanets made their first contribution in #2267
- @Haberkamp made their first contribution in #2265
- @danielroe made their first contribution in #2269
- @webfansplz made their first contribution in #2311
Full Changelog: v2.4.3...v2.4.4
v2.4.3
What's Changed
Full Changelog: v2.4.2...v2.4.3
v2.4.2
What's Changed
Note: A fix for the text() method (#2231) may force developers to update tests that were checking the text of several elements at once, as the spaces of each element are now trimmed (as they are when using text() on a single element). So if you were checking the text of <span>Trimmed </span><span>Example</span>, it is now TrimmedExample instead of Trimmed Example (and the text() of the first span is still Trimmed as it was before).
Fix
- fix: (could be considered a feature?) allow custom
<transition>stubs by @alecgibson in #2185 - fix: Fixing prototype methods being discarded when using
setDataby @rory-instil in #2166 - fix(deps): update all non-major dependencies to v1.8.8 by @renovate in #2143
- fix(deps): update all non-major dependencies to v1.8.13 by @renovate in #2193
- fix(deps): update all non-major dependencies to v1.8.19 by @renovate in #2211
- fix: stricter props types by @alecgibson in #2137
- fix(deps): update all non-major dependencies to v1.8.21 by @renovate in #2224
- fix: wrapper.text method by @harunari0928 in #2231
- fix(types): use
VNodeChildtype fromvueto avoid breakage by @sodatea in #2237 - Fixed typo in accessibility word by @ramsesmoreno in #2160
Docs
- docs: Fix omission of async keywords. by @yasuaki640 in #2163
- docs: fix spell Exemple to Example by @yasuaki640 in #2161
- docs: Add removal of createWrapper by @AntonioDell in #2235
- docs: comparison of functions with v1 by @freakzlike in #2175
- docs: fix typo in code example by @dennybiasiolli in #2212
- feat: update the website application by @nazarepiedady in #2171
Chore
- Add WebdriverIO to list of supporting frameworks by @christian-bromann in #2189
- ci: add node v20 and drop node v16 by @cexbrayat in #2190
- chore(deps): update all non-major dependencies by @renovate in #2233
- preparing for Vue 3.3.9 by @pikax in #2240
New Contributors
- @yasuaki640 made their first contribution in #2161
- @ramsesmoreno made their first contribution in #2160
- @rory-instil made their first contribution in #2166
- @nazarepiedady made their first contribution in #2171
- @richex-cn made their first contribution in #2178
- @christian-bromann made their first contribution in #2189
- @dennybiasiolli made their first contribution in #2212
- @harunari0928 made their first contribution in #2231
- @AntonioDell made their first contribution in #2235
Full Changelog: v2.4.1...v2.4.2
v2.4.1
What's Changed
Fixes
- fix: modify createVMProxy to fix issue 2116 by @jason-chang in #2125
Docs
- docs: add warning about
isVisible()by @alecgibson in #2122 - docs: Update missed rename of import to test-utils as the new default by @Hilbrand in #2102
(Dev) Dependencies
- chore: specify pnpm v8 as package manager by @cexbrayat in #2104
- chore(deps): update vitest to v0.32.2 by @renovate in #2099
- chore(deps): update all non-major dependencies by @renovate in #2110
- chore(deps): update all non-major dependencies by @renovate in #2111
- chore: compiler-dom as required dependency by @cexbrayat in #2114
- chore(deps): update vitest to v0.32.4 by @renovate in #2117
- chore(deps): update all non-major dependencies by @renovate in #2121
- chore(deps): update dependency prettier to v3 and eslint-plugin-prett… by @cexbrayat in #2127
- chore(deps): update vitest to v0.33.0 by @renovate in #2128
- chore(deps): update dependency js-beautify to v1.14.9 by @cexbrayat in #2131
- chore: exception for no-extra-semi lint rule by @cexbrayat in #2133
- chore(deps): update typescript-eslint monorepo to v6 (major) by @renovate in #2129
New Contributors
- @Hilbrand made their first contribution in #2102
- @alecgibson made their first contribution in #2122
Full Changelog: v2.4.0...v2.4.1
v2.4.0
Note: there might be some minor breaking changes around types. We tried hard to avoid this and tested a few different projects, but there was some major under the hood changes relating to types (which should improve the TypeScript experience). See the note at the top of the previous release, 2.4.0-alpha.2: https://github.com/vuejs/test-utils/releases/tag/v2.4.0-alpha.2
Between the last main release, v2.3.2, and v2.4.0, there were three alphas:
- https://github.com/vuejs/test-utils/releases/tag/v2.4.0-alpha.0
- https://github.com/vuejs/test-utils/releases/tag/v2.4.0-alpha.1
- https://github.com/vuejs/test-utils/releases/tag/v2.4.0-alpha.2
Please see those release notes for changes if you are updating from v2.3.2. Again, there should not be any major changes, and you code and tests should continue to work as before without any changes.
If you do encounter breaking changes transitioning from 2.3.x -> 2.4.x, please file an issue.