Skip to content

feat(kit)!: remove deprecated APIs for v0.2.0#351

Merged
antfu merged 1 commit into
mainfrom
antfu/cleanup-deprecated-apis
May 19, 2026
Merged

feat(kit)!: remove deprecated APIs for v0.2.0#351
antfu merged 1 commit into
mainfrom
antfu/cleanup-deprecated-apis

Conversation

@antfu
Copy link
Copy Markdown
Member

@antfu antfu commented May 19, 2026

Description

Cleans up the deprecated APIs accumulated through 0.1.x in preparation for the next major bump (0.2.0).

Removed from @vitejs/devtools-kit:

  • DevToolsNodeContext type alias → use ViteDevToolsNodeContext.
  • 9 DevToolsLog* type aliases → use the DevToolsMessage* counterparts.
  • DockClientScriptContext.logs property → use messages.
  • WhenContext / WhenExpression re-export from the main types barrel → import from devframe/utils/when.

The @vitejs/devtools-kit/utils/* subpath exports are kept as canonical re-exports of devframe/utils/* with their @deprecated markers dropped. All internal consumers in packages/core, packages/rolldown, the docs/examples/skills, and the tsnapi snapshots have been migrated. Adds MIGRATION.md with the 0.1 → 0.2 mapping table.

Linked Issues

Additional context

The deprecation cycle is documented in earlier breaking PRs (#350 for the logs → messages rename, #341 for the devframe extraction and utils shims). The framework-neutral DevToolsNodeContext from devframe/types is unrelated to the removed kit-side alias and is unchanged.

Removes the deprecated `DevToolsNodeContext` alias, the `DevToolsLog*` type
aliases, the `DockClientScriptContext.logs` property, and the
`WhenContext`/`WhenExpression` re-export from the kit's main types barrel.
The `utils/*` subpath exports remain as canonical re-exports of
`devframe/utils/*` with their `@deprecated` markers dropped. Adds
`MIGRATION.md` with the 0.1 → 0.2 mapping table.
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 19, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@vitejs/devtools@351
npm i https://pkg.pr.new/@vitejs/devtools-kit@351
npm i https://pkg.pr.new/@vitejs/devtools-rolldown@351
npm i https://pkg.pr.new/@vitejs/devtools-self-inspect@351

commit: 8e98730

@antfu antfu merged commit bb65e4b into main May 19, 2026
10 checks passed
@antfu antfu deleted the antfu/cleanup-deprecated-apis branch May 19, 2026 02:25
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.

1 participant