Nâng cấp @appium/base-driver từ 10.x lên 11.x
So sánh API công khai của @appium/base-driver 10.8.3 và 11.0.0, được tính tự động từ kiểu TypeScript. Chữ ký thay đổi là thay đổi có thể không tương thích, không phải điều chắc chắn.
Tóm tắt
| Đường dẫn import bị xóa | 0 |
|---|---|
| Export bị xóa | 11 |
| Chữ ký thay đổi | 4 |
| Thành viên lớp hoặc interface bị xóa | 13 |
| Thành viên lớp hoặc interface thay đổi | 11 |
| Mới bị ngừng hỗ trợ | 0 |
| Thay đổi yêu cầu (engines, phụ thuộc peer) | 1 |
| Export mới | 15 |
Export bị xóa
| import | export | kind | Trước |
|---|---|---|---|
@appium/base-driver | server | function | (opts: ServerOpts): Promise<AppiumServer> |
@appium/base-driver | JWProxy | class | class |
@appium/base-driver | default | class | class |
@appium/base-driver | STATIC_DIR | variable | string |
@appium/base-driver | ServerOpts | interface | interface |
@appium/base-driver | statusCodes | variable | { 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-driver | errorFromCode | function | (code: number, value?: string | { message: string; } | undefined): ProtocolError |
@appium/base-driver | getSummaryByCode | function | (code: string | number): string |
@appium/base-driver | determineProtocol | function | (createSessionArgs: any[]): "W3C" | "MJSONWP" |
@appium/base-driver | normalizeBasePath | function | (basePath: string): string |
@appium/base-driver | errorFromMJSONWPStatusCode | function | (code: number, value?: string | { message: string; } | undefined): ProtocolError |
Chữ ký thay đổi
| export | Trước | Sau |
|---|---|---|
@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 |
Thành viên lớp hoặc interface bị xóa
| member | import | Trước |
|---|---|---|
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-driver | ProtocolConverter |
WebDriverProxy.downstreamProtocol | @appium/base-driver | Protocol | null | undefined |
WebDriverProxy._downstreamProtocol | @appium/base-driver | any |
WebDriverProxy.getSessionIdFromUrl | @appium/base-driver | (url: string): string | null |
WebDriverProxy.getProtocolFromResBody | @appium/base-driver | (resObj: Record<string, unknown>): Protocol | undefined |
Thành viên lớp hoặc interface thay đổi
| member | Trước | Sau |
|---|---|---|
BaseDriver.helpers | typeof 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.implicitWaitMs | number | TimeoutValue |
BaseDriver.getManagedDrivers | (): Driver<Constraints, StringRecord, StringRecord, any, void, StringRecord>[] | (): Driver[] |
DriverCore.helpers | typeof import("/pkg/build/lib/basedriver/helpers") | typeof import("/pkg/build/lib/basedriver/helpers/index") |
DriverCore.getStatus | (): Promise<{}> | (): Promise<any> |
DriverCore.implicitWaitMs | number | TimeoutValue |
DriverCore.getManagedDrivers | (): Driver<Constraints, StringRecord, StringRecord, any, void, StringRecord>[] | (): Driver[] |
WebDriverProxy.constructor | (opts?: any): JWProxy | (opts?: any): WebDriverProxy |
Mới bị ngừng hỗ trợ
Không phát hiện.
Thay đổi yêu cầu (engines, phụ thuộc peer)
| Trước | Sau | |
|---|---|---|
engines.node | ^20.19.0 || ^22.12.0 || >=24.0.0 | ^22.22.2 || ^24.15.0 || >=26.0.0 |
Export mới (15)
| import | export | kind |
|---|---|---|
@appium/base-driver | getProxyReq | function |
@appium/base-driver | calcSignature | function |
@appium/base-driver | JsonParseErrors | class |
@appium/base-driver | W3C_TIMEOUTS_MS | variable |
@appium/base-driver | jsonParseErrors | variable |
@appium/base-driver | runWithProxyReq | function |
@appium/base-driver | withoutProxyReq | function |
@appium/base-driver | handleIdempotency | function |
@appium/base-driver | CheckParamsOptions | interface |
@appium/base-driver | markResponseEnvelope | function |
@appium/base-driver | runWithCommandTimeout | function |
@appium/base-driver | NEW_COMMAND_TIMEOUT_MS | variable |
@appium/base-driver | RouteConfiguringFunction | type |
@appium/base-driver | isProtocolResponseEnvelope | function |
@appium/base-driver | RouteConfiguringFunctionOpts | interface |
Cung cấp dữ liệu này cho tác tử AI của bạn
Vigia là máy chủ MCP miễn phí: tác tử lập trình của bạn kiểm tra phiên bản, thay đổi phá vỡ tương thích và lỗ hổng trước khi viết mã. Không cần đăng ký, không cần khóa API.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Thêm vào CursorThêm vào VS Code★ Gắn sao trên GitHub
Mọi ứng dụng MCP khác
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Kỹ năng cho tác tử (SKILL.md): cho tác tử biết khi nào dùng Vigia · GitHub Action cho pull request
Câu hỏi thường gặp
Nâng cấp @appium/base-driver từ 10 lên 11 có những thay đổi không tương thích nào?
Giữa @appium/base-driver 10.8.3 và 11.0.0, Vigia tìm thấy 11 export bị xóa, 4 chữ ký thay đổi và 24 thành viên lớp hoặc interface bị xóa hay thay đổi.
Những gì bị ngừng hỗ trợ trong @appium/base-driver 11?
0 export hoặc thành viên mới bị đánh dấu ngừng hỗ trợ trong @appium/base-driver 11.0.0.
Dành cho tác tử
GET https://vigia.coredls.cloud/v1/packages/npm/@appium/base-driver/upgrade?from=10.8.3&to=11.0.0