将 react-simple-animate 从 3.x 升级到 4.x
根据 TypeScript 类型自动比较 react-simple-animate 3.5.3 与 4.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。
概要
| 已删除的导入路径 | 0 |
|---|---|
| 已删除的导出 | 0 |
| 已修改的签名 | 4 |
| 已删除的类或接口成员 | 0 |
| 已修改的类或接口成员 | 0 |
| 新增弃用 | 0 |
| 要求变化(engines、peer 依赖) | 3 |
| 新增导出 | 0 |
已删除的导出
未发现。
已修改的签名
| export | 之前 | 之后 |
|---|---|---|
react-simple-animate · useAnimate | (props: UseAnimateProps): { isPlaying: boolean; style: React.CSSProperties; play: (isPlaying: boolean) => void; } | (props: UseAnimateProps): { isPlaying: boolean; style: React.CSSProperties; play: (isPlaying: boolean) => void; cancel: () => void; onTransitionStart: React.TransitionEventHandler<HTMLElement>; onTransitionEnd: React.TransitionEventHandler<HTMLElement>; onTransitionCancel: React.TransitionEventHandler<HTMLElement>; } |
react-simple-animate · AnimateGroup | ({ play, sequences, children, }: Props): React.ReactElement | ({ play, cancel, sequences, children, }: Props): React.ReactElement |
react-simple-animate · useAnimateGroup | (props: Props): { styles: any[]; play: (boolean: any) => void; isPlaying: boolean; } | (props: Props): { styles: any[]; handlers: { onTransitionStart?: any; onTransitionEnd?: any; onTransitionCancel?: any; onAnimationStart?: any; onAnimationEnd?: any; onAnimationCancel?: any; }[]; play: (isPlaying: boolean) => void; cancel: () => void; isPlaying: boolean; } |
react-simple-animate · useAnimateKeyframes | (props: UseAnimationKeyframesProps): { style: React.CSSProperties; play: (isPlaying: boolean) => void; pause: (isPaused: boolean) => void; isPlaying: boolean; } | (props: UseAnimationKeyframesProps): { style: React.CSSProperties; play: (isPlaying: boolean) => void; pause: (isPaused: boolean) => void; cancel: () => void; isPlaying: boolean; onAnimationStart: React.AnimationEventHandler<HTMLElement>; onAnimationEnd: React.AnimationEventHandler<HTMLElement>; onAnimationCancel: React.AnimationEventHandler<HTMLElement>; } |
已删除的类或接口成员
未发现。
已修改的类或接口成员
未发现。
新增弃用
未发现。
要求变化(engines、peer 依赖)
| 之前 | 之后 | |
|---|---|---|
engines.node | — | >=20.19 |
peerDependencies.react-dom | ^16.8.0 || ^17 || ^18 || ^19 | — |
peerDependencies.react | — | ^16.8.0 || ^17 || ^18 || ^19 |
把这些数据交给你的 AI 智能体
Vigia 是免费的 MCP 服务器:你的编程智能体在写代码之前就能检查版本、不兼容变更和安全漏洞。无需注册,无需 API 密钥。
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
添加到 Cursor添加到 VS Code★ 在 GitHub 上加星
任何其他 MCP 客户端
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }常见问题
将 react-simple-animate 从 3 升级到 4 有哪些不兼容变更?
在 react-simple-animate 3.5.3 与 4.0.0 之间,Vigia 发现 0 个已删除的导出、4 个已修改的签名,以及 0 个已删除或修改的类或接口成员。
react-simple-animate 4 中弃用了哪些内容?
react-simple-animate 4.0.0 中有 0 个导出或成员新被标记为弃用。
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/react-simple-animate/upgrade?from=3.5.3&to=4.0.0