Skip to content

refactor(devframe): rename Devtool* identifiers to Devframe*#328

Merged
antfu merged 1 commit into
mainfrom
antfu/baku
May 11, 2026
Merged

refactor(devframe): rename Devtool* identifiers to Devframe*#328
antfu merged 1 commit into
mainfrom
antfu/baku

Conversation

@antfu

@antfu antfu commented May 11, 2026

Copy link
Copy Markdown
Member

Description

Renames the singular devtool terminology throughout the devframe package to devframe, aligning identifiers with the package name. Canonical names are now defineDevframe, DevframeDefinition, DevframeRuntime, DevframeDeploymentKind, DevframeCliOptions, DevframeSpaOptions, DevframeBrowserContext, DevframeSetupInfo, and connectDevframe. Old names (defineDevtool, DevtoolDefinition, connectDevtool, …) keep working as deprecated aliases — types carry @deprecated JSDoc; defineDevtool / connectDevtool emit a one-time console.warn on first call and delegate to the new function. Includes updates to source, the kit bridge, the Nuxt package, all docs, examples, skill templates, READMEs, and CLAUDE.md/AGENTS.md; the Vite DevTools product name and DevTools* (PascalCase plural) identifiers are intentionally left unchanged.

Linked Issues

Additional context

Reviewers may want to focus on the deprecation strategy in devframe/packages/devframe/src/types/devframe.ts (type aliases + one-shot wrapper for defineDevtool) and src/client/index.ts (where the previous export-rename getDevToolsRpcClient as connectDevtool is promoted to a real wrapper so it can host the runtime warning). tsnapi snapshots now list both Devframe* (canonical) and Devtool* (deprecated) exports — expected. Verified with pnpm typecheck, pnpm test (450/450), pnpm lint, and pnpm build.

Renames the singular `devtool` terminology throughout the devframe
package to `devframe`, matching the package name and positioning.

Canonical names: `defineDevframe`, `DevframeDefinition`,
`DevframeRuntime`, `DevframeDeploymentKind`, `DevframeCliOptions`,
`DevframeSpaOptions`, `DevframeBrowserContext`, `DevframeSetupInfo`,
`connectDevframe`.

The old names (`defineDevtool`, `DevtoolDefinition`, `connectDevtool`,
etc.) continue to work as deprecated aliases — types carry
`@deprecated` JSDoc, and `defineDevtool` / `connectDevtool` emit a
one-time `console.warn` on first call before delegating to the new
name.

Updated source, kit bridge, Nuxt package, docs, examples, skill
templates, READMEs, and CLAUDE.md/AGENTS.md. The `Vite DevTools`
product name and `DevTools*` (PascalCase plural) identifiers stay
unchanged.
@netlify

netlify Bot commented May 11, 2026

Copy link
Copy Markdown

Deploy Preview for devfra ready!

Name Link
🔨 Latest commit e749c8f
🔍 Latest deploy log https://app.netlify.com/projects/devfra/deploys/6a013c0076586000083e09ba
😎 Deploy Preview https://deploy-preview-328--devfra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new

pkg-pr-new Bot commented May 11, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: e749c8f

@antfu antfu merged commit 1aed403 into main May 11, 2026
13 checks passed
@antfu antfu deleted the antfu/baku branch May 11, 2026 02: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.

1 participant