vue-sanity
vue-sanity copied to clipboard
chore(deps): update test packages
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| @vitest/coverage-c8 (source) | 0.31.4 -> 0.33.0 |
||||
| vitest (source) | 0.31.4 -> 0.34.6 |
Release Notes
vitest-dev/vitest (@vitest/coverage-c8)
v0.33.0
🚨 Breaking Changes
- Revert default include patterns - by @so1ve #3729
0.32.0changed the defaultincludeglobs to be compatible with Jest. After a discussion with the community, we are reverting this change because it turned out to be non-intuitive.
🐞 Bug Fixes
- Add missing JSDom living keys - by @DerZade in https://github.com/vitest-dev/vitest/issues/3702 (83a86)
- vite-node:
- Don't fail when importing Promise module - by @sheremet-va (08192)
- Allow importing node:test - by @sheremet-va (db22c)
View changes on GitHub
v0.32.4
🐞 Bug Fixes
- browser: Correctly optimize CJS dependencies - by @sheremet-va (3d090)
View changes on GitHub
v0.32.3
🚀 Features
- Add
concurrentoption tosequenceconfig - by @fenghan34 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3604 (f427f) - Introduce global configuration for retry setting - by @imentu and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3598 and https://github.com/vitest-dev/vitest/issues/3603 (9a117)
- Don't rely on util package in @vitest/utils - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3685 (f91da)
- Support accessing other fixtures in fixture function - by @fenghan34 in https://github.com/vitest-dev/vitest/issues/3651 (1621c)
- Support use function/class as
benchname - by @fenghan34 in https://github.com/vitest-dev/vitest/issues/3711 (a749a) - reporters: Show full test suite when testing 1 spec file at a time - by @Dunqing in https://github.com/vitest-dev/vitest/issues/3543 (7531c)
- runner: Support
test.extend- by @fenghan34 in https://github.com/vitest-dev/vitest/issues/3554 (2db1a)
🐞 Bug Fixes
- Remove "concordance" from dependencies list - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3597 (969dc)
- Show diff correctly - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3620 (73dd4)
- Util import - by @fubhy in https://github.com/vitest-dev/vitest/issues/3621 (2fb4c)
- Compat with frozen Math - by @turadg in https://github.com/vitest-dev/vitest/issues/3527 (0db67)
CTRL+Cto terminate run - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3642 (fa663)- Run mode stuck in TTY terminals - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3690 (141a8)
- Use first stack frame in json reporter - by @tim-smart in https://github.com/vitest-dev/vitest/issues/3645 (80ea7)
- Print actual number for
toBeCalledTimes- by @antfu in https://github.com/vitest-dev/vitest/issues/3696 (d3640) - benchmark:
- Don't fail when running correct benchmarks - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3629 (edad9)
- browser:
- Correctly print diff - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3627 (d756e)
- Esm injector doesn't replace class expressions - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3641 (5c0ac)
- Transform superclass identifier - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3681 (a1e04)
- coverage:
v8to prevent crash on dynamic CJS files - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3657 (40f18)
- runner:
- Make the default value of
retryandrepeats0 - by @Dunqing in https://github.com/vitest-dev/vitest/issues/3638 (6d146)
- Make the default value of
- utils:
- Respect all flags in format function - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3695 (91e16)
- watch:
- Cancel using
hkey - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3618 (60c36)
- Cancel using
View changes on GitHub
v0.32.2
🐞 Bug Fixes
- browser: Don't fail on importing diff-sequences - by @sheremet-va (00b0e)
View changes on GitHub
v0.32.1
🚀 Features
- Export
registerConsoleShortcutsfromvitest/node- by @deot in https://github.com/vitest-dev/vitest/issues/3563 (bc49b) - expect: Support
expect.unreachable- by @fenghan34 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3556 (8e385) - runner:
describe/testname support anonymous function - by @btea in https://github.com/vitest-dev/vitest/issues/3562 (3d436)
🐞 Bug Fixes
- Avoid call stack recursion with large error (fix: #3060) - by @nathanmmiller and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3078 and https://github.com/vitest-dev/vitest/issues/3060 (02196)
- Automatically remove define related configuration - by @btea in https://github.com/vitest-dev/vitest/issues/3552 (368b8)
- Import
performancefromperf_hooks- by @Max10240 and wangbaolong.wbl in https://github.com/vitest-dev/vitest/issues/3578 and https://github.com/vitest-dev/vitest/issues/3579 (24ec8) - Revert concordance diff, use jest's diff output - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3582 (9c7ea)
- Typo in config suggestion - by @Krisell in https://github.com/vitest-dev/vitest/issues/3583 (68985)
- browser:
- Change optimized deps to use
vitest- by @userquin in https://github.com/vitest-dev/vitest/issues/3580 (b4ac8) - Access vi_inject only if it was injected - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3587 (d9e14)
- Change optimized deps to use
- mocker:
- Respect namespace import when hoisting vi.mock - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3547 (158c4)
- ui:
- Navigate to dashboard when re-running tests from coverage page - by @userquin in https://github.com/vitest-dev/vitest/issues/3529 (bc283)
- vite-node:
- Correctly resolve virtual modules - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3544 (0cbb0)
- Fix errors caused by commonjs export circular references - by @rxliuli in https://github.com/vitest-dev/vitest/issues/3570 (b097c)
View changes on GitHub
v0.32.0
🚨 Breaking Changes
- Throw an error, if the module cannot be resolved - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3307 (1ad63)
- Vitest used to fall back to the original import when it could not resolve it to the file path or the virtual module. This leads to hard-to-find module graph mismatches if you had incorrect alias or relied on relative imports to be resolved to the project root (which is usual behavior in TypeScript) because the code accidentally "worked". With this release, Vitest will now throw an error if it cannot resolve the module - there are possible edge cases that are not covered yet, so if you have any problems with this, please open a separate issue with reproduction.
- Improve globs - by @nickmccurdy in https://github.com/vitest-dev/vitest/issues/3392 (19ecc)
- Vitest now has glob patterns similar to Jest for better compatibility. It's possible that some files will be considered test files when previously they were not. For example, Vitest now considers
test.jsto be a test file. Also any file in__tests__is now considered to be a test, not just files withtestorspecsuffix.
- Vitest now has glob patterns similar to Jest for better compatibility. It's possible that some files will be considered test files when previously they were not. For example, Vitest now considers
- Add
@vitest/coverage-v8package - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3339 (82112)- Vitest now uses v8 code coverage directly for better performance.
@vitest/coverage-c8is deprecated as Vitest no longer uses c8 package for coverage output. It will not be updated anymore, and Vitest will fail in the next version if the user hasc8as their coverage provider. Please, install the new@vitest/coverage-v8package if you previously used@vitest/coverage-c8.
- Vitest now uses v8 code coverage directly for better performance.
- mocker: Don't restore mock to the original if the module is automocked - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3518 (c1004)
spy.mockRestoreon auto-mocked named exports will no longer restore their implementation to the actual function. This behavior better matches what Jest does.
🚀 Features
- Support ssr optimizer - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3490 (89842)
- Image type add apng - by @btea in https://github.com/vitest-dev/vitest/issues/3498 (a53c2)
- expect: Support
expect.soft- by @Dunqing in https://github.com/vitest-dev/vitest/issues/3507 (7c687) - runner: Support using function/class as
describe/testname - by @fenghan34 in https://github.com/vitest-dev/vitest/issues/3497 (15253)
🐞 Bug Fixes
- The cli option is passed to coverage.exclude - by @btea in https://github.com/vitest-dev/vitest/issues/3506 (c37cd)
- optimizer: Always respect optimizeDeps even if include/exclude is overridden - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3488 (eb285)
- runner: Ensure Vitest is deduped - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3489 (2deb7)
- ui: Don't cache coverage assets - by @userquin in https://github.com/vitest-dev/vitest/issues/3508 (952b5)
- vite-node: Circular import stuck - by @Dunqing in https://github.com/vitest-dev/vitest/issues/3480 (50f07)
- watch: Junit reporter fails to re-generate report - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3496 (5b73c)
View changes on GitHub
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - "before 4am on Monday" (UTC).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
Branch automerge failure
This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.
- Branch has one or more failed status checks
[!IMPORTANT]
Review skipped
Bot user detected.
To trigger a single review, invoke the
@coderabbitai reviewcommand.You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.
Walkthrough
The update involves modifying the version of the happy-dom package in the package.json file multiple times, culminating in the final version being updated from 15.5.0 to 15.7.3. These changes reflect a series of upgrades to the library, which may include various enhancements, bug fixes, or performance improvements introduced in the newer versions.
Changes
| File | Change Summary |
|---|---|
| package.json | Updated happy-dom version from 15.4.2 to 15.5.0, then from 15.5.0 to 15.6.0, from 15.6.0 to 15.6.1, from 15.6.1 to 15.7.0, from 15.7.0 to 15.7.2, and finally from 15.7.2 to 15.7.3 |
Sequence Diagram(s)
sequenceDiagram
participant User
participant App
participant HappyDom
User->>App: Request to use HappyDom
App->>HappyDom: Initialize with version 15.7.3
HappyDom-->>App: Return initialized instance
App-->>User: Response with HappyDom functionality
Poem
🐇
In the garden where I hop and play,
A new version of joy has come our way!
Happy-dom, oh what a delight,
With upgrades that shine so bright.
Let’s dance and twirl, oh what fun,
For every change, a new day begun!
🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Tips
Chat
There are 3 ways to chat with CodeRabbit:
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
I pushed a fix in commit <commit_id>.Generate unit testing code for this file.Open a follow-up GitHub issue for this discussion.
- Files and specific lines of code (under the "Files changed" tab): Tag
@coderabbitaiin a new review comment at the desired location with your query. Examples:@coderabbitai generate unit testing code for this file.@coderabbitai modularize this function.
- PR comments: Tag
@coderabbitaiin a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:@coderabbitai generate interesting stats about this repository and render them as a table.@coderabbitai show all the console.log statements in this repository.@coderabbitai read src/utils.ts and generate unit testing code.@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.@coderabbitai help me debug CodeRabbit configuration file.
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
CodeRabbit Commands (Invoked using PR comments)
@coderabbitai pauseto pause the reviews on a PR.@coderabbitai resumeto resume the paused reviews.@coderabbitai reviewto trigger an incremental review. This is useful when automatic reviews are disabled for the repository.@coderabbitai full reviewto do a full review from scratch and review all the files again.@coderabbitai summaryto regenerate the summary of the PR.@coderabbitai resolveresolve all the CodeRabbit review comments.@coderabbitai configurationto show the current CodeRabbit configuration for the repository.@coderabbitai helpto get help.
Other keywords and placeholders
- Add
@coderabbitai ignoreanywhere in the PR description to prevent this PR from being reviewed. - Add
@coderabbitai summaryto generate the high-level summary at a specific location in the PR description. - Add
@coderabbitaianywhere in the PR title to generate the title automatically.
CodeRabbit Configuration File (.coderabbit.yaml)
- You can programmatically configure CodeRabbit by adding a
.coderabbit.yamlfile to the root of your repository. - Please see the configuration documentation for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation:
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
Documentation and Community
- Visit our Documentation for detailed information on how to use CodeRabbit.
- Join our Discord Community to get help, request features, and share feedback.
- Follow us on X/Twitter for updates and announcements.
Early access features: disabled
We are currently testing the following features in early access:
- Anthropic
claude-3-5-sonnetfor code reviews: Anthropic claims that the new Claude model has stronger code understanding and code generation capabilities than their previous models. Note: Our default code review model was also updated late last week. Please compare the quality of the reviews between the two models by toggling the early access feature.
Note:
- You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file.
- Please join our Discord Community to provide feedback and report issues on the discussion post.
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
| Package | New capabilities | Transitives | Size | Publisher |
|---|---|---|---|---|
| npm/[email protected] | network, shell, unsafe | +3 |
9.8 MB | davidortner |
🚮 Removed packages: npm/[email protected])