Skip to content

chore(deps): migrate to Vite 8 and roll dependencies - #218

Merged
fu050409 merged 2 commits into
mainfrom
agent/vite-8-dependency-rollup
Aug 18, 2026
Merged

chore(deps): migrate to Vite 8 and roll dependencies#218
fu050409 merged 2 commits into
mainfrom
agent/vite-8-dependency-rollup

Conversation

@fu050409

@fu050409 fu050409 commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary by Sourcery

Migrate the workspace to Vite 8 and roll the frontend, documentation, tooling, and CI dependencies to current releases.

Enhancements:

  • Migrate the frontend and documentation toolchains from the temporary Rolldown Vite setup to Vite 8 and update related configuration and APIs.
  • Refresh workspace dependencies across the UI, docs, and release tooling while removing obsolete package overrides.
  • Update the instance creation stepper integration and related compatibility adjustments for upgraded libraries.

Build:

  • Update TypeScript, React, Tailwind, React Router, Tauri, and supporting build dependencies to current major and minor releases.
  • Simplify Vite and TypeScript path configuration for the upgraded toolchain.

CI:

  • Upgrade pnpm and Node.js setup actions across the GitHub Actions workflows.

Documentation:

  • Update development and compatibility guidance to describe Vite 8 and its built-in Rolldown bundler.

Tests:

  • Update release workflow YAML parsing to match the upgraded js-yaml API.

Chores:

  • Apply formatting and generated-file updates associated with the dependency rollup.

Copilot AI lite review requested due to automatic review settings August 18, 2026 07:32
@sourcery-ai

sourcery-ai Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Migrates the project from a Rolldown-based Vite 7 fork to upstream Vite 8, refreshes frontend/docs dependencies and tooling, and updates stepper and docs APIs to match new library versions while cleaning up legacy configuration.

Sequence diagram for updated CreateInstancePage stepper flow

sequenceDiagram
  actor User
  participant CreateInstancePage
  participant Stepper

  User->>CreateInstancePage: handleSubmit(versionForm)
  CreateInstancePage->>Stepper: id
  alt stepper.id == "version"
    CreateInstancePage->>Stepper: next()
  end

  User->>CreateInstancePage: handleSubmit(instanceForm)
  CreateInstancePage->>Stepper: id
  alt stepper.id == "instance"
    CreateInstancePage->>Stepper: isLast
    CreateInstancePage-->>User: submitCreateInstance()
  end
Loading

File-Level Changes

Change Details Files
Refactor UI client and instance creation stepper to match updated library APIs and linting rules.
  • Reformatted Tauri invoke client wrapper functions to modern TypeScript style with semicolons and multiline parameter objects.
  • Updated @stepperize/react usage to new defineStepper API, replacing state/navigation access with top-level stepper properties and match helpers.
  • Adjusted guided tour configuration to drop deprecated popover positioning options now handled by defaults.
packages/ui-new/src/client.ts
packages/ui/src/pages/instances/create.tsx
packages/ui/src/components/guided-tour.tsx
Upgrade UI and docs packages to Vite 8 and roll major frontend dependencies and TypeScript versions.
  • Replaced rolldown-vite alias with direct Vite 8 dependency in UI and docs packages.
  • Bumped React, React Router, Tauri plugins, Tailwind, and other runtime libraries to current versions compatible with Vite 8.
  • Upgraded TypeScript to ~7.0.2 and aligned type packages and tooling dependencies accordingly.
  • Updated root package dependencies (toml, js-yaml, smol-toml, wrangler, @j178/prek) to newer versions.
packages/ui/package.json
packages/docs/package.json
package.json
pnpm-lock.yaml
Simplify workspace and build tooling configuration for Vite 8 and updated docs tooling.
  • Removed pnpm workspace overrides that forced the Rolldown-based Vite fork and various transitive dependency pins.
  • Switched Vite UI config aliases from __dirname to import.meta.dirname for compatibility with Vite 8/ESM.
  • Reworked docs Vite config to enable tsconfig-based path resolution via resolve.tsconfigPaths and removed vite-tsconfig-paths plugin.
  • Adjusted docs tsconfig to allow TS extension imports and corrected fumadocs collection paths to .source.
  • Simplified UI and app tsconfig path configuration, removing baseUrl in favor of explicit paths.
pnpm-workspace.yaml
packages/ui/vite.config.ts
packages/docs/vite.config.ts
packages/docs/tsconfig.json
packages/ui/tsconfig.json
packages/ui/tsconfig.app.json
Refresh CI workflows and documentation to align with the new Vite and Node toolchain.
  • Updated GitHub Actions to use pnpm/action-setup@v6 and actions/setup-node@v7 consistently across workflows.
  • Adjusted release workflow tests to use named js-yaml loader import instead of default import to match updated js-yaml API.
  • Revised Copilot instructions to describe Vite 8 with built-in Rolldown instead of the custom Rolldown Vite fork.
.github/workflows/semifold-ci.yaml
.github/workflows/check.yml
.github/workflows/docs-build.yml
.github/workflows/lint.yml
.github/workflows/prek.yml
.github/workflows/test.yml
.github/copilot-instructions.md
scripts/release-workflow.test.mjs
Update docs i18n and various project metadata/config fixtures for new library versions.
  • Adjusted fumadocs i18n setup to the new defineI18nUI signature where language configs are top-level options.
  • Refreshed various config and fixture files (Biome configs, release metadata, icons, migration fixtures) to stay in sync with tooling and dependency updates.
packages/docs/app/root.tsx
biome.json
packages/docs/biome.json
docs/release/rc1-parity.json
packages/ui/public/icon.svg
src-tauri/tests/fixtures/migration/v1/archive-manifest.json
src-tauri/tests/fixtures/migration/v1/minecraft-hmcl/versions/1.20.1-fabric/1.20.1-fabric.json
src-tauri/tests/fixtures/migration/v1/minecraft-pcl/versions/1.20.1-forge/1.20.1-forge.json
src-tauri/tests/fixtures/migration/v1/prism/conflicting/mmc-pack.json
src-tauri/tests/fixtures/migration/v1/prism/fabric/mmc-pack.json
src-tauri/tests/fixtures/migration/v1/prism/forge/mmc-pack.json
src-tauri/tests/fixtures/migration/v1/prism/modded/mmc-pack.json
src-tauri/tests/fixtures/migration/v1/prism/vanilla/mmc-pack.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

📦 Semifold release plan

Plan calculated through commit 333d532.

Changesets introduced by this pull request: vite-8-dependency-rollup

2 changesets · 4 packages

Package Current Next Bump Reason
@dropout/docs 0.1.0-rc.1 0.1.0-rc.2 patch changeset
@dropout/ui 0.1.0-rc.1 0.1.0-rc.2 patch changeset
@dropout/workspace 0.1.0 0.1.1 patch changeset
dropout 0.2.0-rc.1 0.2.0-rc.2 patch changeset

This comment updates automatically as the pull request changes.

@sourcery-ai sourcery-ai Bot left a comment

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.

Hey - I've left some high level feedback:

Fixed security issues:

  • image-size (link)

  • js-yaml (link)

  • react-router (link)

  • In CreateInstancePage, the migration to the new defineStepper API changes how schema, id, navigation, and matching are accessed; consider double-checking all step transitions (including cancel/back flows) to ensure they still respect the new stepper state and indices as expected.

  • The Vite 8 migration swaps __dirname for import.meta.dirname and adds resolve.tsconfigPaths: true in the docs config; it may be worth verifying that these resolve settings work correctly in both dev and build CI environments, especially with the updated TS allowImportingTsExtensions and path mappings.

Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- In `CreateInstancePage`, the migration to the new `defineStepper` API changes how `schema`, `id`, navigation, and matching are accessed; consider double-checking all step transitions (including cancel/back flows) to ensure they still respect the new stepper state and indices as expected.
- The Vite 8 migration swaps `__dirname` for `import.meta.dirname` and adds `resolve.tsconfigPaths: true` in the docs config; it may be worth verifying that these resolve settings work correctly in both dev and build CI environments, especially with the updated TS `allowImportingTsExtensions` and path mappings.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copilot AI left a comment

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.

Pull request overview

This pull request migrates the workspace’s frontend and docs toolchains to Vite 8 and updates a broad set of JavaScript/TypeScript, documentation, formatting, and CI dependencies to match the new ecosystem versions.

Changes:

  • Upgrade UI and docs packages to Vite 8 and refresh major frontend dependencies (React Router, Stepperize, Biome, TypeScript, etc.).
  • Update UI flow code to the new @stepperize/react API and adjust YAML parsing for js-yaml’s newer API surface.
  • Modernize tooling/config (tsconfig path handling, Biome schema/rules, CI actions versions) and reformat several JSON fixtures/docs data files.

Reviewed changes

Copilot reviewed 30 out of 34 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src-tauri/tests/fixtures/migration/v1/prism/vanilla/mmc-pack.json Reformat Prism fixture JSON.
src-tauri/tests/fixtures/migration/v1/prism/modded/mmc-pack.json Reformat Prism fixture JSON (pretty-printed).
src-tauri/tests/fixtures/migration/v1/prism/forge/mmc-pack.json Reformat Prism fixture JSON (pretty-printed).
src-tauri/tests/fixtures/migration/v1/prism/fabric/mmc-pack.json Reformat Prism fixture JSON (pretty-printed).
src-tauri/tests/fixtures/migration/v1/prism/conflicting/mmc-pack.json Reformat Prism fixture JSON.
src-tauri/tests/fixtures/migration/v1/minecraft-pcl/versions/1.20.1-forge/1.20.1-forge.json Reformat migration fixture JSON.
src-tauri/tests/fixtures/migration/v1/minecraft-hmcl/versions/1.20.1-fabric/1.20.1-fabric.json Reformat migration fixture JSON.
src-tauri/tests/fixtures/migration/v1/archive-manifest.json Reformat archive manifest fixture JSON.
scripts/release-workflow.test.mjs Update js-yaml usage to named load import.
pnpm-workspace.yaml Remove dependency overrides now that Vite 8 is used directly.
packages/ui/vite.config.ts Switch alias resolution to use import.meta.dirname (ESM-friendly).
packages/ui/tsconfig.json Update path-resolution config (remove baseUrl).
packages/ui/tsconfig.app.json Update path-resolution config (remove baseUrl).
packages/ui/src/pages/instances/create.tsx Migrate stepper usage to @stepperize/react v7 API.
packages/ui/src/components/guided-tour.tsx Adjust driver.js popover config (removes explicit side/align on first step).
packages/ui/public/icon.svg Add <title> element for the icon.
packages/ui/package.json Upgrade UI dependencies and move to Vite 8 + newer TypeScript.
packages/ui-new/src/client.ts Reformat/normalize generated client wrapper formatting.
packages/docs/vite.config.ts Remove vite-tsconfig-paths plugin and enable Vite 8 native tsconfig-paths resolution.
packages/docs/tsconfig.json Update TS config for TS-extension imports and path mapping normalization.
packages/docs/package.json Upgrade docs dependencies to Vite 8 + React Router 8 + newer TypeScript.
packages/docs/biome.json Update Biome schema and linter preset configuration.
packages/docs/app/root.tsx Update defineI18nUI usage to match updated API shape.
package.json Upgrade workspace tooling dependencies (toml, js-yaml, Biome, prek, etc.).
docs/release/rc1-parity.json Reformat parity documentation JSON.
biome.json Update Biome schema and linter preset configuration; mark config as repo root.
.github/workflows/test.yml Update actions/setup-node and pnpm/action-setup versions.
.github/workflows/semifold-ci.yaml Update actions/setup-node and pnpm/action-setup versions.
.github/workflows/prek.yml Update pnpm + node setup actions.
.github/workflows/lint.yml Update pnpm + node setup actions.
.github/workflows/docs-build.yml Update pnpm + node setup actions.
.github/workflows/check.yml Update pnpm + node setup actions.
.github/copilot-instructions.md Update dev docs to reflect Vite 8 (Rolldown integrated).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@fu050409
fu050409 merged commit cd0eb94 into main Aug 18, 2026
20 of 22 checks passed
@fu050409
fu050409 deleted the agent/vite-8-dependency-rollup branch August 18, 2026 07:49
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.

3 participants