Vigia

将 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

已删除的导出

importexportkind之前
flat-cacheloadfunction(cacheId: string, cacheDir?: string | undefined): Cache
flat-cacheCacheinterfaceinterface

已修改的签名

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)
importexportkind
flat-cachedefaultclass
flat-cacheFlatCacheclass
flat-cacheFlatCacheEventsenum
flat-cacheFlatCacheOptionstype

常见问题

将 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