Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: voidzero-dev/vite-plus
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.2.6
Choose a base ref
...
head repository: voidzero-dev/vite-plus
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.2.7
Choose a head ref
  • 16 commits
  • 76 files changed
  • 10 contributors

Commits on Jul 23, 2026

  1. docs: add instructions for removing commit hooks (#2218)

    This adds documentation on how to remove the git hooks set up via Vite+.
    
    [Context](https://x.com/TheAlexLichter/status/2079986649396601061)
    TheAlexLichter authored Jul 23, 2026
    Configuration menu
    Copy the full SHA
    a6f41ec View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2026

  1. docs: document disabling git hooks per environment (#2230)

    Documents how to disable the installed Vite+ commit hooks per
    environment
    
    ---------
    
    Signed-off-by: Alexander Lichter <github@lichter.io>
    TheAlexLichter authored Jul 24, 2026
    Configuration menu
    Copy the full SHA
    ac67e16 View commit details
    Browse the repository at this point in the history
  2. feat(deps): upgrade upstream dependencies (#2233)

    ## Summary
    
    - Automated upgrade of upstream dependencies.
    - Bumps `tsdown` (and `@tsdown/css` / `@tsdown/exe`) from `0.22.13` to
    `0.22.14` and `@vitejs/devtools` from `0.4.2` to `0.4.5`.
    - Syncs the new tsdown CLI surface by adding a `--concurrency <count>`
    option to `vp pack`, with updated help snapshots and a new PTY fixture.
    - `rolldown` (`v1.2.0`) and `vite` (`v8.1.5`) are unchanged this run.
    
    ## Dependency updates
    
    | Package | From | To |
    | --- | --- | --- |
    | `tsdown` | `0.22.13` | `0.22.14` |
    | `@tsdown/css` | `0.22.13` | `0.22.14` |
    | `@tsdown/exe` | `0.22.13` | `0.22.14` |
    | `@vitejs/devtools` | `0.4.2` | `0.4.5` |
    
    ## Code changes
    
    - Added `--concurrency <count>` ("Maximum number of Rolldown builds to
    run in parallel") to `vp pack` (`packages/cli/src/pack-bin.ts`).
    - Updated pack help snapshots to include the new option
    (`crates/vite_cli_snapshots/tests/cli_snapshots/fixtures/command_pack/snapshots/command_pack.md`,
    `crates/vite_cli_snapshots/tests/cli_snapshots/fixtures/command_helper/snapshots/command_helper.md`).
    - Added a PTY snapshot fixture exercising `vp pack --concurrency`
    (`crates/vite_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_concurrency/`).
    - Bumped bundled `tsdown` version to `0.22.14` and `@vitejs/devtools` to
    `^0.4.5` (`packages/core/package.json`).
    - Added `@devframes/*` and `verkit` to `minimumReleaseAgeExclude`
    (`pnpm-workspace.yaml`).
    - Lockfile updated (`pnpm-lock.yaml`).
    
    ## Build status
    
    - `sync-remote-and-build`: failure
    - `build-upstream`: success
    
    Co-authored-by: voidzero-guard[bot] <278573678+voidzero-guard[bot]@users.noreply.github.com>
    Co-authored-by: Charles Wang <3612422+wan9chi@users.noreply.github.com>
    voidzero-guard[bot] and wan9chi authored Jul 24, 2026
    Configuration menu
    Copy the full SHA
    a24eede View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2026

  1. docs: clarify vp dev vs vp run dev / vpr dev (#2255)

    ## Motivation
    
    Make the difference between `vp dev` and `vpr dev` clear for humans and
    AIs.
    
    ## Changes
    
    - The run guide has a new "Built-in Commands vs Scripts" section. The
    dev and test pages get the note the build page already had, and the
    troubleshooting entry now covers `vp dev`.
    - The generated agent instructions and the `vp migrate --help` prompt
    point at `vpr <name>` when the project defines that script or task.
    
    Refs #2243
    wan9chi authored Jul 27, 2026
    Configuration menu
    Copy the full SHA
    95f1401 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2026

  1. fix(vscode): stop the oxc language server from crashing on startup (#…

    …2245)
    
    ## Summary
    The oxc language server crashes on startup in this repo, so there is no
    linting or formatting for the session.
    
    <img width="1054" height="127" alt="Screenshot 2026-07-25 at 9 08 04 PM"
    src="https://github.com/user-attachments/assets/8c9caf17-ebaa-49e2-b4ee-c2c3c6d3c0f9"
    />
    
    Nested config search is on by default, so the server evaluates every
    `vite.config.ts` in the workspace inside its own Node process —
    including the PTY snapshot fixtures, one of which crashes Node on
    purpose (`fixtures/migration_config_process_crash_isolated`).
    
    Pin the root config and disable nested search in
    `.vscode/settings.json`, mirroring the
    `vitest.configSearchPatternExclude` entry already there for the same
    fixtures.
    
    ---------
    
    Co-authored-by: Charles Wang <3612422+wan9chi@users.noreply.github.com>
    jong-kyung and wan9chi authored Jul 28, 2026
    Configuration menu
    Copy the full SHA
    d0af21d View commit details
    Browse the repository at this point in the history
  2. ci: add Semgrep scan workflow (#2223)

    Co-authored-by: Cameron <cameron.clark@hey.com>
    Boshen and camc314 authored Jul 28, 2026
    Configuration menu
    Copy the full SHA
    1c6a54e View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2026

  1. test(snapshots): enable Vitest browser mode (#2275)

    ## Motivation
    
    The Vitest browser mode snapshot is skipped on every supported platform.
    Re-enable it so CI exercises the current Vite+ and Vite Task behavior
    reported in
    [voidzero-dev/vite-task#396](voidzero-dev/vite-task#396).
    
    ---------
    
    Co-authored-by: GPT-5.6 Codex <codex@openai.com>
    wan9chi and codex authored Jul 30, 2026
    Configuration menu
    Copy the full SHA
    0a3d168 View commit details
    Browse the repository at this point in the history
  2. chore(vscode): move TypeScript settings to their js/ts.* replacements (…

    …#2246)
    
    ## Summary
    
    VS Code deprecated the `typescript.*` keys for settings shared between
    JavaScript and TypeScript in favour of the `js/ts.*` namespace. The four
    such keys in `.vscode/settings.json` still show a deprecation notice in
    the settings editor.
    
      ```diff
      -  "typescript.preferences.importModuleSpecifierEnding": "js",
      -  "typescript.reportStyleChecksAsWarnings": false,
      -  "typescript.updateImportsOnFileMove.enabled": "always",
      -  "typescript.experimental.useTsgo": true,
      +  "js/ts.preferences.importModuleSpecifierEnding": "js",
      +  "js/ts.reportStyleChecksAsWarnings": false,
      +  "js/ts.updateImportsOnFileMove.enabled": "always",
      +  "js/ts.experimental.useTsgo": true,
      ```
    
    Same settings, current names — behaviour is unchanged. The
    `[typescript]` / `[typescriptreact]` formatter blocks are a different
    mechanism and are not affected.
    jong-kyung authored Jul 30, 2026
    Configuration menu
    Copy the full SHA
    da78c31 View commit details
    Browse the repository at this point in the history
  3. docs: add GitLab CI/CD setup guidance (#2258)

    resolves: #2239
    
    ---------
    
    Co-authored-by: MK (fengmk2) <fengmk2@gmail.com>
    naokihaba and fengmk2 authored Jul 30, 2026
    Configuration menu
    Copy the full SHA
    2c8ab7d View commit details
    Browse the repository at this point in the history
  4. fix(migration): add Svelte rune globals to Oxlint config (#2192)

    Resolves #1967
    
    I accidentally closed the previous PR due to a force-push, so I have
    opened a new one from a dedicated branch. #2174
    naokihaba authored Jul 30, 2026
    Configuration menu
    Copy the full SHA
    ce88216 View commit details
    Browse the repository at this point in the history
  5. fix(output): print notes to stderr (#2265)

    ## Motivation
    
    - #2259, at the top of this stack, adds a note that has to reach an AI agent capturing piped output while leaving machine-readable stdout alone (`oxlint -f json`, `vitest --reporter=json` and `oxfmt --stdin-filepath` all put
    their payload on stdout). Gating that note on a TTY would hide it from some ai agents; printing it to stdout would corrupt those payloads. Moving `note` to stderr resolves both.
    
    - This is also what `rfcs/cli-output-polish.md` specified for `note` in both Rust
    and TypeScript — the implementation incorrectly used `println!`.
    
    ## CI stability
    
    The delegation test now pins its temporary project to Node.js 22.13.1. The unofficial musl index can advertise a newer LTS before the matching archive exists, which made this otherwise unrelated test fail with `HashNotFound`. Runtime behavior is unchanged.
    wan9chi committed Jul 30, 2026
    Configuration menu
    Copy the full SHA
    813de11 View commit details
    Browse the repository at this point in the history
  6. feat(global-cli): pass the raw subcommand to the local CLI (#2262)

    ## Motivation
    
    The local CLI runs a command under its canonical name, so it sees `fmt`
    whether
    the user wrote `vp fmt` or `vp format`. The spelling is gone by the time
    it
    arrives, and nothing downstream can recover it from argv.
    
    #2259, above this in the stack, needs it: a note that says "use `vpr
    fmt`" when
    the user wrote `vp format` is pointing at the wrong script.
    
    ## What this does
    
    The subcommand is read from argv before `normalize_args` can rewrite it,
    and
    travels to the local CLI as `VP_RAW_SUBCOMMAND`.
    
    It is passed *alongside* the command rather than in place of it: the
    command
    name stays canonical, because that string becomes the local CLI's
    `argv[0]` and
    has to name the command this process resolved. `vp help fmt` is the case
    where
    the two differ — the user wrote `help`, but the local CLI must still run
    `fmt --help`, since being handed `help --help` would print vp's
    top-level help
    instead of the formatter's.
    
    Nothing reads `VP_RAW_SUBCOMMAND` in this PR.
    
    `vite_plugins_skip_on_format` now runs both flavors, so the global one
    covers
    forwarding the alias.
    wan9chi authored Jul 30, 2026
    Configuration menu
    Copy the full SHA
    5d0e4a5 View commit details
    Browse the repository at this point in the history
  7. feat(cli): note when a built-in shares a name with a package.json scr…

    …ipt (#2259)
    
    ## Motivation
    
    Built-in commands cannot be overridden, so `vp dev` runs the Vite+ dev
    server
    even in a project whose `dev` script does something else entirely (a
    framework
    wrapper, extra flags, a custom runner). Users regularly reach for the
    built-in
    when they meant the script — see #2243.
    
    Stacked on #2265 (notes go to stderr) and #2262 (the raw subcommand
    reaches
    this CLI).
    
    ## What this does
    
    When the user writes `vp <name>` and `<name>` is both a built-in and a
    `package.json` script:
    
    ```
    note: You are running `vp dev` as a Vite+ built-in command. If you meant to run the dev npm script, use `vpr dev` instead.
    ```
    
    The trigger is the name as written. It comes from `VP_RAW_SUBCOMMAND`
    when the
    global CLI provides it, since that is the only accurate source once a
    command
    has been resolved to its canonical name — `vp format` names the `format`
    script, not `fmt`. Otherwise it comes from the command line, where a
    rewrite is
    rejected: `vp help fmt` runs as `fmt --help`, and writing `help` is not
    writing
    the built-in.
    
    The only suppression is `VP_RUN`, set by the task runner
    (voidzero-dev/vite-task#570), since the user is then already on the
    `vpr` path.
    There is no TTY check: the note goes to stderr, so an agent capturing
    piped
    output still sees it while parsed stdout — `oxlint -f json`, `vitest
    --reporter=json`, `oxfmt --stdin-filepath` — stays intact.
    
    Script lookup walks up to the nearest `package.json`, the package `vp
    run`
    itself resolves a task from, so the note also applies from a
    subdirectory and
    deliberately stops there rather than climbing to a package `vpr` could
    not
    reach.
    
    Only the built-ins are covered. `run`/`cache` are the script path
    itself,
    `install` and friends legitimately trigger a project's `install`
    lifecycle
    scripts through the package manager, and `exec` names a binary rather
    than a
    task.
    
    `vp_build_cache` and `vp_build_cache_monorepo` are re-recorded: both
    define
    `"build": "vp build"` and run `vp build` directly, so they now show the
    note.
    
    Refs #2243
    wan9chi authored Jul 30, 2026
    Configuration menu
    Copy the full SHA
    fb1c82b View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2026

  1. fix(install): support nonstandard package tarball roots (#2264)

    This fixes installing Yarn 1.22.19 through Vite+. Its tarball uses
    `yarn-v1.22.19/` instead of the conventional `package/` directory.
    
    With this PR, Vite+ now locates the extracted package directory when the
    conventional path is absent.
    
    Resolves #2241
    
    Co-authored-by: MK (fengmk2) <fengmk2@gmail.com>
    TheAlexLichter and fengmk2 authored Jul 31, 2026
    Configuration menu
    Copy the full SHA
    58e5c90 View commit details
    Browse the repository at this point in the history
  2. test(snapshots): stabilize Windows fixtures (#2282)

    ## Summary
    
    - kill the entire Windows installer process tree in the
    interrupted-install fixture
    - suppress fixture-local Vite info logs so automatic browser-port
    fallback does not change snapshots
    
    ## Context
    
    This unblocks the v0.2.7 release PR after repeated Windows snapshot
    failures in `env_install_interrupt` and `vitest_browser_mode`.
    
    ## Testing
    
    - `node --check
    crates/vite_cli_snapshots/tests/cli_snapshots/fixtures/env_install_interrupt/test-reinstall-interrupt.js`
    - `git diff --check`
    - targeted behavior will be exercised by the Windows snapshot CI job
    wan9chi authored Jul 31, 2026
    Configuration menu
    Copy the full SHA
    ec38bd0 View commit details
    Browse the repository at this point in the history
  3. release: v0.2.7: Clearer commands and smoother setup (#2279)

    Release vite-plus v0.2.7: Clearer commands and smoother setup.
    
    This release makes built-in and package-script collisions easier to
    navigate, adds concurrency control to `vp pack`, and smooths migrations
    and package-manager setup.
    
    ### Highlights
    
    - Guide users to `vpr <name>` when a built-in shares a name with a
    `package.json` script, preserve the exact command alias they typed, and
    avoid duplicate notes from task-spawned tools
    ([#2262](#2262),
    [#2259](#2259),
    [vite-task#570](voidzero-dev/vite-task#570)), by
    @wan9chi
    - Add `--concurrency` to `vp pack` to limit parallel Rolldown builds,
    and update tsdown `0.22.13` -> `0.22.14` and Vite DevTools `0.4.2` ->
    `0.4.5` ([#2233](#2233)),
    by @voidzero-guard[bot]
    - Add read-only Svelte rune globals to migrated Oxlint overrides,
    preventing false `no-undef` errors
    ([#2192](#2192)), by
    @naokihaba
    - Install package managers from npm tarballs with nonstandard top-level
    directories, fixing Yarn 1.22.19 installation
    ([#2264](#2264)), by
    @TheAlexLichter
    
    ### Fixes & Enhancements
    
    - Preserve machine-readable command output by sending informational CLI
    notes to stderr
    ([#2265](#2265)), by
    @wan9chi
    - Prevent the Oxc language server from crashing when contributors open
    the Vite+ workspace in VS Code
    ([#2245](#2245)), by
    @jong-kyung
    
    ### Docs
    
    - Document the full procedure for removing Vite+ commit hooks
    ([#2218](#2218)), by
    @TheAlexLichter
    - Document per-process and per-machine ways to disable Vite+ commit
    hooks without uninstalling them
    ([#2230](#2230)), by
    @TheAlexLichter
    - Clarify when to use built-in `vp` commands versus package scripts
    through `vp run` or `vpr`, including migration and agent guidance
    ([#2255](#2255)), by
    @wan9chi
    - Document GitLab CI/CD setup with the reusable `setup-vp` template
    ([#2258](#2258)), by
    @naokihaba
    
    ### Chore
    
    - Run Semgrep security scans on pull requests and pushes to `main`
    ([#2223](#2223)), by
    @Boshen
    - Re-enable Vitest browser-mode CLI snapshot coverage on every supported
    platform ([#2275](#2275)),
    by @wan9chi
    - Stabilize Windows CLI snapshot tests for interrupted installs and
    browser port fallback
    ([#2282](#2282)), by
    @wan9chi
    - Replace deprecated shared JavaScript and TypeScript VS Code settings
    with their current `js/ts.*` names
    ([#2246](#2246)), by
    @jong-kyung
    
    ### Bundled Versions
    
    | Tool | Version | Source |
    | --------------- | ---------- |
    -----------------------------------------------------------------------
    |
    | vite | `8.1.5` |
    [`5e7fe12`](vitejs/vite@5e7fe12)
    |
    | rolldown | `1.2.0` |
    [`03e1e34`](rolldown/rolldown@03e1e34)
    |
    | tsdown | `0.22.14` | [npm](https://npmx.dev/package/tsdown/v/0.22.14)
    |
    | vitest | `4.1.10` | [npm](https://npmx.dev/package/vitest/v/4.1.10) |
    | oxlint | `1.75.0` | [npm](https://npmx.dev/package/oxlint/v/1.75.0) |
    | oxlint-tsgolint | `7.0.2001` |
    [npm](https://npmx.dev/package/oxlint-tsgolint/v/7.0.2001) |
    | oxfmt | `0.60.0` | [npm](https://npmx.dev/package/oxfmt/v/0.60.0) |
    
    ### Upgrade
    
    ```bash
    vp upgrade
    ```
    
    **Full Changelog**:
    v0.2.6...v0.2.7
    
    ---
    
    Merging this PR will trigger the release workflow.
    
    ---------
    
    Co-authored-by: voidzero-guard[bot] <278573678+voidzero-guard[bot]@users.noreply.github.com>
    Co-authored-by: wan9chi <dk4rest@gmail.com>
    voidzero-guard[bot] and wan9chi authored Jul 31, 2026
    Configuration menu
    Copy the full SHA
    c17e1c3 View commit details
    Browse the repository at this point in the history
Loading