Skip to content

chore(config): add @deprecated tags to plugin hook utilities - #23250

Open
syedsohailhussain1 wants to merge 2 commits into
vitejs:mainfrom
syedsohailhussain1:chore-deprecate-plugin-hooks
Open

chore(config): add @deprecated tags to plugin hook utilities#23250
syedsohailhussain1 wants to merge 2 commits into
vitejs:mainfrom
syedsohailhussain1:chore-deprecate-plugin-hooks

Conversation

@syedsohailhussain1

Copy link
Copy Markdown
  • What is this PR solving?
    This PR fulfills an outstanding TODO in config.ts by adding @deprecated JSDoc annotations to getSortedPlugins and getSortedPluginHooks on the PluginHookUtils interface (which is exposed via ResolvedConfig). This ensures that downstream plugin authors receive proper IDE warnings, pointing them toward the newer config.environments API.

  • Reference the issues it solves
    N/A (resolves an internal codebase TODO)

  • What other alternatives have you explored?
    N/A - this is a direct implementation of a planned deprecation comment left by the core team.

  • Are there any parts you think require more attention from reviewers?
    No, this is a straightforward types-only change that doesn't alter any runtime behavior.

  • Tests
    Tests are not included because this is strictly a TypeScript JSDoc annotation update and does not change any runtime logic.

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