将 appium-chromium-driver 从 3.x 升级到 4.x
根据 TypeScript 类型自动比较 appium-chromium-driver 3.2.0 与 4.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。
概要
| 已删除的导入路径 | 0 |
|---|---|
| 已删除的导出 | 1 |
| 已修改的签名 | 0 |
| 已删除的类或接口成员 | 0 |
| 已修改的类或接口成员 | 2 |
| 新增弃用 | 0 |
| 要求变化(engines、peer 依赖) | 2 |
| 新增导出 | 0 |
已删除的导出
| import | export | kind | 之前 |
|---|---|---|---|
appium-chromium-driver | default | class | class |
已修改的签名
未发现。
已删除的类或接口成员
未发现。
已修改的类或接口成员
| member | 之前 | 之后 |
|---|---|---|
ChromiumDriver.findElOrEls | (this: ChromiumDriver, strategy: string, selector: string, mult: boolean, context?: string | undefined): Promise<any> | (strategy: string, selector: string, mult: boolean, context?: string | undefined): Promise<any> |
ChromiumDriver.createSession | (jsonwpDesiredCapabilities: W3CDriverCaps<{ readonly chromedriverPort: { readonly isNumber: true; }; readonly useSystemExecutable: { readonly isBoolean: true; }; readonly executable: { readonly isString: true; }; readonly executableDir: { readonly isString: true; }; readonly verbose: { readonly isBo… | (w3cCapabilities: W3CDriverCaps<{ readonly chromedriverPort: { readonly isNumber: true; }; readonly useSystemExecutable: { readonly isBoolean: true; }; readonly executable: { readonly isString: true; }; readonly executableDir: { readonly isString: true; }; readonly verbose: { readonly isBoolean: tru… |
新增弃用
未发现。
要求变化(engines、peer 依赖)
| 之前 | 之后 | |
|---|---|---|
engines.node | ^20.19.0 || ^22.12.0 || >=24.0.0 | ^22.22.2 || ^24.15.0 || >=26.0.0 |
peerDependencies.appium | ^3.0.0-rc.2 | ^4.0.0-beta.6 |
这些版本之间的 changelog
软件包作者发布的文本,按原样显示。
4.0.0
### ⚠ BREAKING CHANGES
* Requires Appium ^4.0.0-beta.6 (peer dependency). No longer compatible with Appium 3.
* Drops Node 20. The minimum is now ^22.22.2 || ^24.15.0 || >=26.0.0, matching Appium 4's engine range.
* Driver API: createSession takes a single w3cCapabilities argument, following the Appium 4 base driver. This only matters to anyone subclassing the driver.
* Default exports removed: the package no longer has a default export. Use the named export instead: import {ChromiumDriver} from 'appium-chromium-driver'.
* Command methods live on the prototype: findElOrEls is attached to ChromiumDriver.prototype (with declare module typings) rather than being an instance field, so subclasses can call super for it.
### Features
* add Appium 4 support ([#481](https://github.com/appium/appium-chromium-driver/issues/481)) ([6dad41b](https://github.com/appium/appium-chromium-driver/commit/6dad41b85ff61db22579157c3357653a2adba810))把这些数据交给你的 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-chromium-driver 从 3 升级到 4 有哪些不兼容变更?
在 appium-chromium-driver 3.2.0 与 4.0.0 之间,Vigia 发现 1 个已删除的导出、0 个已修改的签名,以及 2 个已删除或修改的类或接口成员。
appium-chromium-driver 4 中弃用了哪些内容?
appium-chromium-driver 4.0.0 中有 0 个导出或成员新被标记为弃用。
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/appium-chromium-driver/upgrade?from=3.2.0&to=4.0.0