Vigia

将 jest-util 从 29.x 升级到 30.x

根据 TypeScript 类型自动比较 jest-util 29.7.0 与 30.5.1 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。

概要

已删除的导入路径0
已删除的导出1
已修改的签名4
已删除的类或接口成员0
已修改的类或接口成员0
新增弃用0
要求变化(engines、peer 依赖)1
新增导出6

已删除的导出

importexportkind之前
jest-utiltestPathPatternToRegExpfunction(testPathPattern: Config.GlobalConfig): RegExp

已修改的签名

export之前之后
jest-util · clearLine(stream: NodeJS.WriteStream): void(stream: WriteStream): void
jest-util · setGlobal(globalToMutate: any, key: string, value: unknown): void(globalToMutate: any, key: string | symbol, value: unknown, afterTeardown?: "clean" | "retain" | undefined): void
jest-util · globsToMatcher(globs: string[]): Matcher(globs: string[], picomatchOptions?: any): Matcher
jest-util · installCommonGlobals(globalObject: typeof globalThis, globals: Config.ConfigGlobals): any(globalObject: typeof globalThis, globals: Config.ConfigGlobals, garbageCollectionDeletionMode?: DeletionMode | undefined): any

已删除的类或接口成员

未发现。

已修改的类或接口成员

未发现。

新增弃用

未发现。

要求变化(engines、peer 依赖)

之前之后
engines.node^14.15.0 || ^16.10.0 || >=18.0.0^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0
新增导出 (6)
importexportkind
jest-utilisErrorvariable
jest-utilDeletionModetype
jest-utildeletePropertiesfunction
jest-utilprotectPropertiesfunction
jest-utilcanDeletePropertiesfunction
jest-utilinitializeGarbageCollectionUtilsfunction

常见问题

将 jest-util 从 29 升级到 30 有哪些不兼容变更?

在 jest-util 29.7.0 与 30.5.1 之间,Vigia 发现 1 个已删除的导出、4 个已修改的签名,以及 0 个已删除或修改的类或接口成员。

jest-util 30 中弃用了哪些内容?

jest-util 30.5.1 中有 0 个导出或成员新被标记为弃用。

供智能体使用

GET https://vigia.coredls.cloud/v1/packages/npm/jest-util/upgrade?from=29.7.0&to=30.5.1