Skip to content

Upgrade all dependencies to latest versions #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Jul 30, 2025

This PR upgrades all dependencies in the repository to their latest versions, including major version updates that required breaking change handling.

Major Updates

UnoCSS Ecosystem (0.63.4 → 66.3.3)

  • @unocss/core, @unocss/rule-utils, @unocss/preset-uno, @unocss/reset, unocss
  • Updated peer dependency requirement from >= 0.52.0 to >= 66.0.0

Development Tools

  • ESLint: 9.13.0 → 9.32.0
  • TypeScript: 5.6.3 → 5.8.3
  • @antfu/eslint-config: 3.8.0 → 5.0.0 (major)
  • Vitest: 2.1.3 → 3.2.4 (major)
  • Unbuild: 2.0.0 → 3.6.0 (major)
  • Bumpp: 9.7.1 → 10.2.1 (major)

Frontend Dependencies (Playground)

  • Vue: 3.5.12 → 3.5.18
  • Vite: 5.4.9 → 7.0.6 (major)
  • @vitejs/plugin-vue: 5.1.4 → 6.0.1 (major)
  • vue-tsc: 2.1.6 → 3.0.4 (major)

Breaking Changes Handled

UnoCSS v66 API Changes

The most significant change was in UnoCSS v66 where createGenerator now returns a Promise instead of a direct instance:

// Before (v0.63.4)
const uno = createGenerator(config)
const { css } = await uno.generate(code)

// After (v66.3.3)
const uno = await createGenerator(config)  // Now requires await
const { css } = await uno.generate(code)

Updated all test files to properly handle the new async API by making the createUno helper function async and adding await to all generator creation calls.

Test Snapshot Updates

Updated playground build test snapshots to reflect changes in CSS output format from the new UnoCSS version.

ESLint Configuration

Applied auto-fixes for new linting rules from @antfu/eslint-config v5, including import sorting and indentation adjustments.

Validation

All functionality has been verified to work correctly:

  • Build: Package builds successfully with unbuild v3.6.0
  • Tests: All 12 tests pass with vitest v3.2.4
  • Linting: Code passes ESLint v9.32.0 with new config
  • Type Checking: TypeScript v5.8.3 compilation succeeds
  • Playground: Vue 3.5.18 + Vite 7.0.6 builds successfully

The preset functionality remains unchanged - this is purely a dependency maintenance update with necessary compatibility fixes.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@Copilot Copilot AI changed the title [WIP] Please upgrade all dependencies to the latest Upgrade all dependencies to latest versions Jul 30, 2025
@Copilot Copilot AI requested a review from Dunqing July 30, 2025 03:51
Copilot finished work on behalf of Dunqing July 30, 2025 03:51
@Dunqing Dunqing marked this pull request as ready for review July 30, 2025 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants