Releases: vuejs/test-utils
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
setData
by @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
VNodeChild
type fromvue
to 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.
v2.4.0-alpha.2
Note: It has no API related breaking changes, but some types might be impacted - the full extent of #2026 is still being investigated, but at this point it's unlikely you'll need to change any code. In general, type safety should be improved across the board.
What's Changed
- Update index.md by @DespertaWeb in #2052
- chore(deps): update dependency @rollup/plugin-commonjs to v25 by @renovate in #2053
- chore(tests): Remove unnecessary mock of console.warn by @freakzlike in #2056
- chore(deps): update all non-major dependencies by @renovate in #2055
- fix: add vue-component-type-helpers to the dependencies by @cexbrayat in #2063
- chore(deps): update vitest to v0.31.1 by @renovate in #2062
- docs: add FAQ for "Vue warn: Failed setting prop" by @freakzlike in #2068
- docs: translate faq in french by @cexbrayat in #2069
- fix(stub): re-render of recursive component using wrong cached stub by @freakzlike in #2057
- chore: use a stackblitz repro with create-vue for issue template by @cexbrayat in #2066
- chore: show links on create of github issue by @freakzlike in #2070
- chore(deps): update all non-major dependencies by @renovate in #2075
- fix: allow to use Teleport, Transition and TransitionGroup in PascalCase in stubs by @lbineau in #2073
- chore(deps): update dependency unplugin-vue-components to v0.25.0 by @renovate in #2077
- chore(deps): update vitest to v0.31.2 by @renovate in #2078
- chore(deps): update all non-major dependencies by @cexbrayat in #2080
- chore(deps): update vitest to v0.31.3 by @renovate in #2081
- chore(deps): update vitest to v0.31.4 by @renovate in #2082
- fix(stub): avoid stub cache for teleport for reactive update by @freakzlike in #2065
New Contributors
- @DespertaWeb made their first contribution in #2052
- @lbineau made their first contribution in #2073
Full Changelog: v2.4.0-alpha.1...v2.4.0-alpha.2
v2.4.0-alpha.1
What's Changed
- chore: remove unused code by @lmiller1990 in #2037
- Update async-suspense.md by @tobi-fis in #2034
- chore(deps): update all non-major dependencies by @cexbrayat in #2046
- fix: properly declare optional peer deps by @cexbrayat in #2048
- chore(deps): update dependency typescript to v5 by @cexbrayat in #2047
- fix: allow finding async component stubs by definition by @xanf in #2040
- chore(deps): update dependency vue-router to v4.2.0 by @renovate in #2044
- chore(deps): update dependency vue-component-type-helpers to v1.6.4 by @renovate in #2049
- chore(deps): update vitest to v0.31.0 by @renovate in #2050
- chore(deps): update dependency jsdom to v22 by @renovate in #2051
New Contributors
Full Changelog: v2.4.0-alpha.0...v2.4.0-alpha.1
v2.4.0-alpha.0
NOTE: this is published under v2.4.0-alpha.0. It may contain breaking changes, only relating to which type definitions are exposed. For this reason it isn't the main version on npm yet.
What's Changed
- fix(setValue): trigger input event for checkbox, radio and select by @freakzlike in #2019
- fix(renderToString): Remove document usage on SSR render by @freakzlike in #2023
- fix(renderToString): Remove attachTo from options and print warning on usage by @freakzlike in #2024
- feat: integrated
vue-component-type-helpers
by @johnsoncodehk in #2026 - repro: #1973 by @cexbrayat in #1974
- chore(deps): update dependency vue-component-type-helpers to v1.3.14-patch.2 by @renovate in #2031
New Contributors
- @johnsoncodehk made their first contribution in #2026
Full Changelog: v2.3.2...v2.4.0-alpha.0