Skip to content

chore: deps and CI improvements#4660

Merged
escapedcat merged 9 commits intomasterfrom
chore/deps-260316
Mar 16, 2026
Merged

chore: deps and CI improvements#4660
escapedcat merged 9 commits intomasterfrom
chore/deps-260316

Conversation

@escapedcat
Copy link
Copy Markdown
Member

@escapedcat escapedcat commented Mar 16, 2026

Summary

  • Update dependencies
  • Downgrade vitest to v3 to maintain Node 18 compatibility Stick with latest possible v4
  • Switch from .nvmrc/.tool-versions to .mise.toml for version management
  • Expand CI test matrix to Node 18, 20, 22 , and 24
  • Use lts/* for codeQuality CI job
  • Fix duplicate CI runs by limiting push trigger to master branch
  • Update CONTRIBUTING.md to reference mise

escapedcat and others added 2 commits March 16, 2026 14:52
- Exclude JSON files from coverage to prevent Babel parse errors
- Update vitest/environments imports to vitest/runtime

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@qodo-code-review
Copy link
Copy Markdown

Review Summary by Qodo

Update vitest 4.1 compatibility and coverage configuration

✨ Enhancement 🐞 Bug fix

Grey Divider

Walkthroughs

Description
• Update vitest imports from vitest/environments to vitest/runtime
• Exclude JSON files from coverage to prevent Babel parse errors
• Ensure compatibility with vitest 4.1
Diagram
flowchart LR
  A["vitest 4.1 upgrade"] --> B["Update imports"]
  A --> C["Coverage configuration"]
  B --> D["vitest/runtime"]
  C --> E["Exclude JSON files"]
Loading

Grey Divider

File Changes

1. @packages/test-environment/src/test-environment.ts ✨ Enhancement +2/-2

Update vitest imports to runtime module

• Updated import source from vitest/environments to vitest/runtime
• Changed both type import and named import builtinEnvironments
• Maintains same functionality with new module path

@packages/test-environment/src/test-environment.ts


2. vitest.config.ts 🐞 Bug fix +1/-0

Exclude JSON files from coverage

• Added JSON file exclusion pattern to coverage configuration
• Prevents Babel parse errors when processing JSON files
• Improves coverage reporting accuracy

vitest.config.ts


Grey Divider

Qodo Logo

@qodo-code-review
Copy link
Copy Markdown

qodo-code-review Bot commented Mar 16, 2026

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci Bot commented Mar 16, 2026

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

escapedcat and others added 4 commits March 16, 2026 15:00
- Downgrade vitest and @vitest/coverage-istanbul from ^4.0.18 to ^3.2.4
- Revert vitest.config.ts v4-specific changes
- Revert test-environment imports to vitest v3 format
- Replace .tool-versions and .nvmrc with .mise.toml
- Update CONTRIBUTING.md to reference mise

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@escapedcat escapedcat changed the title chore: deps chore: deps and CI improvements Mar 16, 2026
Node versions match Ubuntu LTS defaults:
- 18 = Ubuntu 24.04
- 20 = Ubuntu 25.x
- 22 = Ubuntu 26.04

Co-Authored-By: Claude Opus 4.5 <[email protected]>
escapedcat and others added 2 commits March 16, 2026 15:33
Using tilde (~) pins to 4.0.x, avoiding 4.1.x which introduced
rolldown and dropped Node 18 support.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@escapedcat escapedcat merged commit ad31713 into master Mar 16, 2026
17 checks passed
@escapedcat escapedcat deleted the chore/deps-260316 branch March 16, 2026 14:43
Comment thread .github/workflows/CI.yml
push:
branches:
- "**"
- master
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@escapedcat I disagree with this

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please elaborate. I wanted to get rid of all the checks running two times.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about you check git blame so I don't need to elaborate two times :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gosh, wait

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#4665

This avoids duplication by cancelling, wdyt

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But then CI looks 50% broken, I guess because GitHub considers cancelled jobs as failure.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Researched how other popular OSS projects handle this. Adjusted it. Please check

This was referenced Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants