将 @appium/support 从 7.x 升级到 8.x
根据 TypeScript 类型自动比较 @appium/support 7.2.9 与 8.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。
概要
| 已删除的导入路径 | 0 |
|---|---|
| 已删除的导出 | 13 |
| 已修改的签名 | 2 |
| 已删除的类或接口成员 | 5 |
| 已修改的类或接口成员 | 0 |
| 新增弃用 | 0 |
| 要求变化(engines、peer 依赖) | 1 |
| 新增导出 | 5 |
已删除的导出
| import | export | kind | 之前 |
|---|---|---|---|
@appium/support | env | namespace | namespace |
@appium/support | npm | variable | NPM |
@appium/support | mjpeg | namespace | namespace |
@appium/support | ReadFn | type | (fd: number, buffer: any, offset?: number | undefined, length?: number | undefined, position?: number | null | undefined) => B<{ bytesRead: number; buffer: TBuffer; }> |
@appium/support | mkdirp | variable | (dir: any): Promise<string | undefined> |
@appium/support | process | namespace | namespace |
@appium/support | ExecOpts | interface | interface |
@appium/support | imageUtil | namespace | namespace |
@appium/support | FtpUploadOptions | interface | interface |
@appium/support | cancellableDelay | variable | (ms: number): any |
@appium/support | NpmInstallReceipt | interface | interface |
@appium/support | InstallPackageOpts | interface | interface |
@appium/support | NotHttpUploadOptions | type | FtpUploadOptions |
已修改的签名
| export | 之前 | 之后 |
|---|---|---|
@appium/support · fs | { hasAccess(filePath: PathLike): Promise<boolean>; isExecutable(filePath: PathLike): Promise<boolean>; exists(filePath: PathLike): Promise<boolean>; rimraf(filepath: PathLike): Promise<void>; rimrafSync(filepath: PathLike): void; mkdir(filepath: any, opts?: any): Promise<string | undefined>; copyFile(source: string, destination: string, opts?: CopyFileOptions | undefined): Promise<void>; md5(filePath: PathLike): Promise<string>; mv(from: string, to: string, opts?: MvOptions | undefined): Promise<void>; which: any; glob(pattern: string, options?: any): Promise<string[]>; sanitizeName: any; hash… | { hasAccess(filePath: PathLike): Promise<boolean>; isExecutable(filePath: PathLike): Promise<boolean>; exists(filePath: PathLike): Promise<boolean>; rimraf(filepath: PathLike, opts?: RimrafOptions | undefined): Promise<void>; rimrafSync(filepath: PathLike, opts?: RimrafOptions | undefined): void; mkdir(filepath: any, opts?: any): Promise<string | undefined>; copyFile(source: string, destination: string, opts?: CopyFileOptions | undefined): Promise<void>; md5(filePath: PathLike): Promise<string>; mv(from: string, to: string, opts?: MvOptions | undefined): Promise<void>; which: any; glob: GlobFn… |
@appium/support · default | { tempDir: typeof import("/pkg/build/lib/tempdir"); system: typeof import("/pkg/build/lib/system"); util: typeof import("/pkg/build/lib/util"); fs: { hasAccess(filePath: any): Promise<boolean>; isExecutable(filePath: any): Promise<boolean>; exists(filePath: any): Promise<boolean>; rimraf(filepath: any): Promise<void>; rimrafSync(filepath: any): void; mkdir(filepath: any, opts?: any): Promise<string | undefined>; copyFile(source: string, destination: string, opts?: CopyFileOptions | undefined): Promise<void>; md5(filePath: any): Promise<string>; mv(from: string, to: string, opts?: MvOptions | u… | { tempDir: typeof import("/pkg/build/lib/tempdir"); system: typeof import("/pkg/build/lib/system"); util: typeof import("/pkg/build/lib/util"); fs: { hasAccess(filePath: any): Promise<boolean>; isExecutable(filePath: any): Promise<boolean>; exists(filePath: any): Promise<boolean>; rimraf(filepath: any, opts?: RimrafOptions | undefined): Promise<void>; rimrafSync(filepath: any, opts?: RimrafOptions | undefined): void; mkdir(filepath: any, opts?: any): Promise<string | undefined>; copyFile(source: string, destination: string, opts?: CopyFileOptions | undefined): Promise<void>; md5(filePath: any)… |
已删除的类或接口成员
| member | import | 之前 |
|---|---|---|
CopyFileOptions.errs | @appium/support | any |
CopyFileOptions.limit | @appium/support | number | undefined |
CopyFileOptions.stopOnErr | @appium/support | boolean | undefined |
CopyFileOptions.transform | @appium/support | ((read: NodeJS.ReadableStream, write: NodeJS.WritableStream, file: CopyFileDescriptor) => void) | undefined |
ExtractAllOptions.useSystemUnzip | @appium/support | boolean | undefined |
已修改的类或接口成员
未发现。
新增弃用
未发现。
要求变化(engines、peer 依赖)
| 之前 | 之后 | |
|---|---|---|
engines.node | ^20.19.0 || ^22.12.0 || >=24.0.0 | ^22.22.2 || ^24.15.0 || >=26.0.0 |
新增导出 (5)
| import | export | kind |
|---|---|---|
@appium/support | PortStatus | type |
@appium/support | RimrafOptions | type |
@appium/support | FreePortOptions | interface |
@appium/support | PortCheckOptions | interface |
@appium/support | ExtractStreamOptions | interface |
把这些数据交给你的 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" } } }常见问题
将 @appium/support 从 7 升级到 8 有哪些不兼容变更?
在 @appium/support 7.2.9 与 8.0.0 之间,Vigia 发现 13 个已删除的导出、2 个已修改的签名,以及 5 个已删除或修改的类或接口成员。
@appium/support 8 中弃用了哪些内容?
@appium/support 8.0.0 中有 0 个导出或成员新被标记为弃用。
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/@appium/support/upgrade?from=7.2.9&to=8.0.0