Skip to content

feat!: migrate to devframe 0.5.2 and @devframes/hub 0.5.2#366

Merged
antfu merged 2 commits into
mainfrom
antfu/migrate-devframe-hub-0.5.2
May 28, 2026
Merged

feat!: migrate to devframe 0.5.2 and @devframes/hub 0.5.2#366
antfu merged 2 commits into
mainfrom
antfu/migrate-devframe-hub-0.5.2

Conversation

@antfu
Copy link
Copy Markdown
Member

@antfu antfu commented May 28, 2026

Description

Coordinated follow-up to devframes/devframe#24, which split the framework-neutral hub primitives out of devframe into a new sibling package @devframes/hub and renamed devframe's internal DevTools* identifiers to Devframe*. This PR thins @vitejs/devtools-kit to re-export from @devframes/hub (the four host-*.ts files — ~900 lines — are deleted in favor of hub's implementations) while keeping the kit's public DevTools* surface intact via aliases, so @vitejs/devtools-rolldown, @vitejs/devtools-vite, @vitejs/devtools-self-inspect, and downstream plugin authors need no source changes. @vitejs/devtools (core) follows devframe's wire-format renames where they're load-bearing: devframe/node/internaldevframe/node/hub-internals, RPC auth scope vite:anonymous:devframe:anonymous:, WS auth-token query parameter devframe_auth_token, broadcast channel devframe-auth — the SPA mount path stays pinned at /__devtools/ so user-facing URLs don't move. The hub-domain DTK0050DTK0057 diagnostic codes retire (their conditions now live upstream as DF8100DF8403); auth tokens stored by older clients become invalid, prompting a one-time re-authorize.

Linked Issues

Additional context

This PR was created with the help of an agent.

antfu added 2 commits May 28, 2026 13:00
Thin @vitejs/devtools-kit to re-export hub primitives (docks, terminals,
messages, commands, mountDevframe, json-render) from @devframes/hub. Kit
keeps its DevTools* public surface via aliases, so downstream packages
need no source changes. Core follows devframe's wire-format renames
(hub-internals subpath, devframe:anonymous: RPC scope, devframe_auth_token
query param, devframe-auth broadcast channel). SPA mount path stays at
/__devtools/.
…e-hub-0.5.2

# Conflicts:
#	packages/core/src/client/webcomponents/.generated/css.ts
#	pnpm-lock.yaml
#	pnpm-workspace.yaml
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 28, 2026

Open in StackBlitz

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

commit: 9a44fec

@antfu antfu merged commit 1dd7b42 into main May 28, 2026
10 checks passed
@antfu antfu deleted the antfu/migrate-devframe-hub-0.5.2 branch May 28, 2026 04:51
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