feat(kit)!: remove deprecated APIs for v0.2.0#351
Merged
Conversation
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.
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:DevToolsNodeContexttype alias → useViteDevToolsNodeContext.DevToolsLog*type aliases → use theDevToolsMessage*counterparts.DockClientScriptContext.logsproperty → usemessages.WhenContext/WhenExpressionre-export from the main types barrel → import fromdevframe/utils/when.The
@vitejs/devtools-kit/utils/*subpath exports are kept as canonical re-exports ofdevframe/utils/*with their@deprecatedmarkers dropped. All internal consumers inpackages/core,packages/rolldown, the docs/examples/skills, and the tsnapi snapshots have been migrated. AddsMIGRATION.mdwith 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
DevToolsNodeContextfromdevframe/typesis unrelated to the removed kit-side alias and is unchanged.