refactor!: remove deprecated APIs for 0.10 - #393
Conversation
BREAKING CHANGE: drops every symbol deprecated across the 0.9 line ahead of the 0.10 release, each with a drop-in replacement documented in the 0.10 migration guide: - `cli.mcp` / `cli.distDir` on a definition — pass `mcp` to the host, and set top-level `clientAssets` instead. Removing `cli.mcp` also retires the hub DF8005 warning, since the aggregate route already covers every mounted devframe. - `resolveClientAssets` (read `definition.clientAssets` directly). - hub `createDevframeClientHost` / `DevframeClientHost[Options]` (use the `*ClientRuntime` names). - `coerceAgentPositionalArgs` / `AgentArgsFallback`. - the `devframe/recipes/common-rpc-functions` recipe (`openInEditor`, `openInFinder`) — use `@devframes/service-open`. Its non-deprecated `KnownEditor` / `KNOWN_EDITORS` move to `devframe/utils/launch-editor`. - the in-page-channel `callEvent()` alias (use `emit()`). - a11y `a11yPageScriptBundlePath` / `a11yAgentBundlePath`. - data-inspector `AGENT_DISCOVERY_FILE` / `AgentDiscovery` / `DataInspectorAgent`. Created with the help of an agent.
◈ PR Lens
Architecture 20 components touched across 7 lanes. Inside the changed components — 2 viewsComponent view — Devframe Core & Adapters Core devframe instance shell, build and dev adapters, in-page channels, and wire services. Component view — Hub & Framework Kits Hub mounting, static build pipeline, framework adapters, and client runtimes. Data flow
View
Tip Run 🪧 More tips
Thanks for using PR Lens! It's built by Coldtea, free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Prepares for the 0.10 release by dropping every symbol deprecated across the 0.9 line. Each removal has a drop-in replacement, all documented in a new Removed deprecated APIs section of the 0.10 migration guide.
What's removed
cli.mcpon a definitionmcpto the host (createCac/--mcp,createDevServer,initDevframe,initHub)cli.distDiron a definitionclientAssetsresolveClientAssets(fromdevframe)definition.clientAssetsdirectlycreateDevframeClientHost/DevframeClientHost/DevframeClientHostOptionscreateDevframeClientRuntime/DevframeClientRuntime/DevframeClientRuntimeOptionscoerceAgentPositionalArgs/AgentArgsFallbacktoolInputToRpcArgs/toolInputToCommandArgsdevframe/recipes/common-rpc-functions(openInEditor,openInFinder,commonRpcFunctions)@devframes/service-opencallEvent()aliasemit()a11yPageScriptBundlePath/a11yAgentBundlePatha11yClientScriptBundlePathAGENT_DISCOVERY_FILE/AgentDiscovery/DataInspectorAgentDISCOVERY_FILE/InjectDiscovery/DataInspectorEndpointNotable consequences
cli.mcpretires the hubDF8005warning and its diagnostic: the hub's aggregate MCP route already covers every mounted devframe, so a per-devframe MCP request no longer exists to conflict with the hub setting.KnownEditor/KNOWN_EDITORS(consumed by@devframes/service-open) move todevframe/utils/launch-editor, their natural home.cli.distDirnow set top-levelclientAssets.resolveClientAssets/resolveMcpConnectionMeta's now-dead fallback indirection is inlined or dropped.All gates pass locally:
pnpm lint && pnpm knip && pnpm test && pnpm typecheck && pnpm build. tsnapi API snapshots were regenerated (breaking changes are intentional for this major).This PR was created with the help of an agent.