helper-plugin 已弃用
🌐 helper-plugin deprecated
在 Strapi 5 中,helper-plugin 已被移除。为插件开发者提供了完整的迁移参考,并且 codemod 将自动处理一些更改。
🌐 In Strapi 5, the helper-plugin is removed. A whole migration reference is available for plugin developers, and codemods will automatically handle some changes.
此页面是重大更改数据库的一部分,提供关于重大更改的信息以及从 Strapi v4 迁移到 Strapi 5 的附加说明。
🌐 This page is part of the breaking changes database and provides information about the breaking change and additional instructions to migrate from Strapi v4 to Strapi 5.
重大变更描述
🌐 Breaking change description
在 Strapi v4 中
helper-plugin 可用于 Strapi 插件开发。
🌐 The helper-plugin could be used for Strapi plugins development.
在 Strapi 5 中
helper-plugin 已被弃用。
🌐 The helper-plugin is deprecated.
迁移
🌐 Migration
Codemods 处理部分但不是全部的更改。以下更改会被处理:
🌐 Codemods handles some but not all of the changes. The following changes are handled:
| 操作 | 现在由 Strapi 5 处理,方式是… |
|---|---|
更改 AnErrorOccurred 导入 | @strapi/strapi/admin |
将 AnErrorOccurred 替换为 Page.Error | @strapi/strapi/admin |
更改 ConfirmDialog 导入 | @strapi/strapi/admin |
更改 getFetchClient 导入 | @strapi/strapi/admin |
更改 LoadingIndicatorPage 导入 | @strapi/strapi/admin |
将 LoadingIndicatorPage 替换为 Page.Loading | @strapi/strapi/admin |
更改 NoPermissions 导入 | @strapi/strapi/admin |
将 NoPermissions 替换为 Page.NoPermissions | @strapi/strapi/admin |
更改 translatedErrors 导入 | @strapi/strapi/admin |
更改 useFetchClient 导入 | @strapi/strapi/admin |
更改 useQueryParams 导入 | @strapi/strapi/admin |
更改 SearchURLQuery 导入 | @strapi/strapi/admin |
更改 DateTimePicker 导入 | @strapi/design-system |
更改 Status 导入 | @strapi/design-system |
更改 useCallbackRef 导入 | @strapi/design-system |
更改 useCollator 导入 | @strapi/design-system |
更改 useFilter 导入 | @strapi/design-system |
用户应参考详尽的迁移指南中提供的额外信息,以确保迁移顺利进行。
🌐 Users should refer to additional information found in the extensive migration guide to ensure a smooth migration.