Vigia

将 @appium/base-driver 从 10.x 升级到 11.x

根据 TypeScript 类型自动比较 @appium/base-driver 10.8.3 与 11.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。

概要

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

已删除的导出

importexportkind之前
@appium/base-driverserverfunction(opts: ServerOpts): Promise<AppiumServer>
@appium/base-driverJWProxyclassclass
@appium/base-driverdefaultclassclass
@appium/base-driverSTATIC_DIRvariablestring
@appium/base-driverServerOptsinterfaceinterface
@appium/base-driverstatusCodesvariable{ readonly Success: { readonly code: 0; readonly summary: "The command executed successfully."; }; readonly NoSuchDriver: { readonly code: 6; readonly summary: "A session is either terminated or not started"; }; readonly NoSuchElement: { readonly code: 7; readonly summary: "An element could not be located on the page using the given search parameters."; }; readonly NoSuchFrame: { readonly code: 8; readonly summary: "A request to switch to a frame could not be satisfied because the frame could not be found."; }; readonly UnknownCommand: { readonly code: 9; readonly summary: "The requested resou…
@appium/base-drivererrorFromCodefunction(code: number, value?: string | { message: string; } | undefined): ProtocolError
@appium/base-drivergetSummaryByCodefunction(code: string | number): string
@appium/base-driverdetermineProtocolfunction(createSessionArgs: any[]): "W3C" | "MJSONWP"
@appium/base-drivernormalizeBasePathfunction(basePath: string): string
@appium/base-drivererrorFromMJSONWPStatusCodefunction(code: number, value?: string | { message: string; } | undefined): ProtocolError

已修改的签名

export之前之后
@appium/base-driver · checkParams(paramSpec: PayloadParams, args: Record<string, any>, protocol?: "W3C" | "MJSONWP" | undefined): Record<string, any>(paramSpec: PayloadParams, args: Record<string, any>, options?: CheckParamsOptions | undefined): Record<string, any>
@appium/base-driver · BIDI_COMMANDS{ readonly session: { readonly subscribe: { readonly command: "bidiSubscribe"; readonly params: { readonly required: readonly ["events"]; readonly optional: readonly ["contexts"]; }; }; readonly unsubscribe: { readonly command: "bidiUnsubscribe"; readonly params: { readonly optional: readonly ["events", "contexts", "subscriptions"]; }; }; readonly status: { readonly command: "bidiStatus"; readonly params: {}; }; }; readonly browsingContext: { readonly navigate: { readonly command: "bidiNavigate"; readonly params: { readonly required: readonly ["context", "url"]; readonly optional: readonly ["w…{ readonly session: { readonly status: { readonly command: "bidiStatus"; readonly params: {}; }; readonly new: { readonly command: "bidiSessionNew"; readonly params: { readonly required: readonly ["capabilities"]; }; }; readonly end: { readonly command: "bidiSessionEnd"; readonly params: {}; }; readonly subscribe: { readonly command: "bidiSubscribe"; readonly params: { readonly required: readonly ["events"]; readonly optional: readonly ["contexts", "userContexts"]; }; }; readonly unsubscribe: { readonly command: "bidiUnsubscribe"; readonly params: { readonly required: readonly [readonly ["subs…
@appium/base-driver · errorFromW3CJsonCode(signature: string, message: string, stacktrace?: string | undefined): ProtocolError(signature: string, message: string, stacktrace?: string | undefined, data?: Record<string, unknown> | undefined): ProtocolError
@appium/base-driver · generateDriverLogPrefix(obj: object | null, _sessionId?: string | null | undefined): string(obj: object | null): string

已删除的类或接口成员

memberimport之前
BaseDriver.reset@appium/base-driver(): Promise<void>
BaseDriver.driverData@appium/base-driver{}
BaseDriver.getSession@appium/base-driver(): Promise<SingularSessionData<C, SessionData>>
BaseDriver.isMjsonwpProtocol@appium/base-driver(): boolean
BaseDriver.setProtocolMJSONWP@appium/base-driver(): void
DriverCore.driverData@appium/base-driver{}
DriverCore.isMjsonwpProtocol@appium/base-driver(): boolean
DriverCore.setProtocolMJSONWP@appium/base-driver(): void
WebDriverProxy.protocolConverter@appium/base-driverProtocolConverter
WebDriverProxy.downstreamProtocol@appium/base-driverProtocol | null | undefined
WebDriverProxy._downstreamProtocol@appium/base-driverany
WebDriverProxy.getSessionIdFromUrl@appium/base-driver(url: string): string | null
WebDriverProxy.getProtocolFromResBody@appium/base-driver(resObj: Record<string, unknown>): Protocol | undefined

已修改的类或接口成员

member之前之后
BaseDriver.helperstypeof import("/pkg/build/lib/basedriver/helpers")typeof import("/pkg/build/lib/basedriver/helpers/index")
BaseDriver.getStatus(): Promise<{}>(): Promise<any>
BaseDriver.constructor<const C extends Constraints, CArgs extends StringRecord = StringRecord, Settings extends StringRecord = StringRecord, CreateResult = DefaultCreateSessionResult<C>, DeleteResult = DefaultDeleteSessionResult, SessionData extends StringRecord = StringRecord>(opts: InitialOpts, shouldValidateCaps?: boo…<const C extends Constraints, CArgs extends StringRecord = StringRecord, Settings extends StringRecord = StringRecord, CreateResult = DefaultCreateSessionResult<C>, DeleteResult = DefaultDeleteSessionResult>(opts?: any, shouldValidateCaps?: boolean | undefined): BaseDriver<C, CArgs, Settings, Create…
BaseDriver.createSession(w3cCapabilities: W3CDriverCaps<C>): Promise<CreateResult> | (...legacyArgs: LegacyCreateSessionArgs<C>): Promise<CreateResult>(w3cCapabilities: W3CDriverCaps<C>): Promise<CreateResult>
BaseDriver.implicitWaitMsnumberTimeoutValue
BaseDriver.getManagedDrivers(): Driver<Constraints, StringRecord, StringRecord, any, void, StringRecord>[](): Driver[]
DriverCore.helperstypeof import("/pkg/build/lib/basedriver/helpers")typeof import("/pkg/build/lib/basedriver/helpers/index")
DriverCore.getStatus(): Promise<{}>(): Promise<any>
DriverCore.implicitWaitMsnumberTimeoutValue
DriverCore.getManagedDrivers(): Driver<Constraints, StringRecord, StringRecord, any, void, StringRecord>[](): Driver[]
WebDriverProxy.constructor(opts?: any): JWProxy(opts?: any): WebDriverProxy

新增弃用

未发现。

要求变化(engines、peer 依赖)

之前之后
engines.node^20.19.0 || ^22.12.0 || >=24.0.0^22.22.2 || ^24.15.0 || >=26.0.0
新增导出 (15)
importexportkind
@appium/base-drivergetProxyReqfunction
@appium/base-drivercalcSignaturefunction
@appium/base-driverJsonParseErrorsclass
@appium/base-driverW3C_TIMEOUTS_MSvariable
@appium/base-driverjsonParseErrorsvariable
@appium/base-driverrunWithProxyReqfunction
@appium/base-driverwithoutProxyReqfunction
@appium/base-driverhandleIdempotencyfunction
@appium/base-driverCheckParamsOptionsinterface
@appium/base-drivermarkResponseEnvelopefunction
@appium/base-driverrunWithCommandTimeoutfunction
@appium/base-driverNEW_COMMAND_TIMEOUT_MSvariable
@appium/base-driverRouteConfiguringFunctiontype
@appium/base-driverisProtocolResponseEnvelopefunction
@appium/base-driverRouteConfiguringFunctionOptsinterface

把这些数据交给你的 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" } } }

智能体技能(SKILL.md):告诉智能体何时使用 Vigia · 用于拉取请求的 GitHub Action

常见问题

将 @appium/base-driver 从 10 升级到 11 有哪些不兼容变更?

在 @appium/base-driver 10.8.3 与 11.0.0 之间,Vigia 发现 11 个已删除的导出、4 个已修改的签名,以及 24 个已删除或修改的类或接口成员。

@appium/base-driver 11 中弃用了哪些内容?

@appium/base-driver 11.0.0 中有 0 个导出或成员新被标记为弃用。

供智能体使用

GET https://vigia.coredls.cloud/v1/packages/npm/@appium/base-driver/upgrade?from=10.8.3&to=11.0.0