将 flat-cache 从 5.x 升级到 6.x
根据 TypeScript 类型自动比较 flat-cache 5.0.0 与 6.1.23 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。
概要
| 已删除的导入路径 | 0 |
|---|---|
| 已删除的导出 | 2 |
| 已修改的签名 | 4 |
| 已删除的类或接口成员 | 0 |
| 已修改的类或接口成员 | 0 |
| 新增弃用 | 0 |
| 要求变化(engines、peer 依赖) | 1 |
| 新增导出 | 4 |
已删除的导出
| import | export | kind | 之前 |
|---|---|---|---|
flat-cache | load | function | (cacheId: string, cacheDir?: string | undefined): Cache |
flat-cache | Cache | interface | interface |
已修改的签名
| export | 之前 | 之后 |
|---|---|---|
flat-cache · create | (cacheId: string, cacheDir?: string | undefined): Cache | (options?: FlatCacheOptions | undefined): FlatCache |
flat-cache · clearAll | (cacheDir?: string | undefined): boolean | (cacheDirectory?: string | undefined): void |
flat-cache · clearCacheById | (cacheId: string, cacheDir?: string | undefined): boolean | (cacheId: string, cacheDirectory?: string | undefined): void |
flat-cache · createFromFile | (filePath: string): Cache | (filePath: string, options?: FlatCacheOptions | undefined): FlatCache |
已删除的类或接口成员
未发现。
已修改的类或接口成员
未发现。
新增弃用
未发现。
要求变化(engines、peer 依赖)
| 之前 | 之后 | |
|---|---|---|
engines.node | >=18 | — |
新增导出 (4)
| import | export | kind |
|---|---|---|
flat-cache | default | class |
flat-cache | FlatCache | class |
flat-cache | FlatCacheEvents | enum |
flat-cache | FlatCacheOptions | type |
常见问题
将 flat-cache 从 5 升级到 6 有哪些不兼容变更?
在 flat-cache 5.0.0 与 6.1.23 之间,Vigia 发现 2 个已删除的导出、4 个已修改的签名,以及 0 个已删除或修改的类或接口成员。
flat-cache 6 中弃用了哪些内容?
flat-cache 6.1.23 中有 0 个导出或成员新被标记为弃用。
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/flat-cache/upgrade?from=5.0.0&to=6.1.23