将 yallist 从 4.x 升级到 5.x
根据 TypeScript 类型自动比较 yallist 4.0.0 与 5.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。
概要
| 已删除的导入路径 | 0 |
|---|
| 已删除的导出 | 4 |
|---|
| 已修改的签名 | 1 |
|---|
| 已删除的类或接口成员 | 0 |
|---|
| 已修改的类或接口成员 | 2 |
|---|
| 新增弃用 | 0 |
|---|
| 要求变化(engines、peer 依赖) | 1 |
|---|
| 新增导出 | 1 |
|---|
已删除的导出
| import | export | kind | 之前 |
|---|
yallist | create | other | |
yallist | prototype | variable | any |
yallist | ForEachIterable | interface | interface |
yallist | NodeConstructor | interface | interface |
已修改的签名
| export | 之前 | 之后 |
|---|
yallist · Node | interface | class |
已删除的类或接口成员
未发现。
已修改的类或接口成员
| member | 之前 | 之后 |
|---|
Node.next | Node<T> | null | Node<T> | undefined |
Node.prev | Node<T> | null | Node<T> | undefined |
新增弃用
未发现。
要求变化(engines、peer 依赖)
新增导出 (1)
| import | export | kind |
|---|
yallist | Yallist | class |
常见问题
将 yallist 从 4 升级到 5 有哪些不兼容变更?
在 yallist 4.0.0 与 5.0.0 之间,Vigia 发现 4 个已删除的导出、1 个已修改的签名,以及 2 个已删除或修改的类或接口成员。
yallist 5 中弃用了哪些内容?
yallist 5.0.0 中有 0 个导出或成员新被标记为弃用。
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/yallist/upgrade?from=4.0.0&to=5.0.0