将 @wdio/utils 从 9.x 升级到 10.x
根据 TypeScript 类型自动比较 @wdio/utils 9.32.0 与 10.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。
概要
| 已删除的导入路径 | 0 |
|---|---|
| 已删除的导出 | 1 |
| 已修改的签名 | 4 |
| 已删除的类或接口成员 | 0 |
| 已修改的类或接口成员 | 0 |
| 新增弃用 | 0 |
| 要求变化(engines、peer 依赖) | 1 |
| 新增导出 | 21 |
已删除的导出
| import | export | kind | 之前 |
|---|---|---|---|
@wdio/utils | isW3C | function | (capabilities?: any): boolean |
已修改的签名
| export | 之前 | 之后 |
|---|---|---|
@wdio/utils · testFnWrapper | (this: unknown, args_0: string, args_1: SpecFunction, args_2: BeforeHookParam<unknown>, args_3: AfterHookParam<unknown>, args_4: string, args_5: number, args_6?: string | undefined, args_7?: number | undefined): Promise<any> | (this: unknown, args_0: string, args_1: SpecFunction, args_2: BeforeHookParam<unknown>, args_3: AfterHookParam<unknown>, args_4: string, args_5: number, args_6?: string | undefined, args_7?: number | undefined): Promise<unknown> |
@wdio/utils · webdriverMonad | (options: object, modifier?: Function | undefined, propertiesObject?: PropertiesObject | undefined): { (this: void, sessionId: string, commandWrapper?: Function | undefined, elementCmdImplicitWaitExclusionList?: string[] | undefined): any; lift(name: string, func: Function, proto: Record<string, any>, origCommand?: Function | undefined): void; } | (options: object, modifier?: Function | undefined, propertiesObject?: PropertiesObject | undefined): { (this: void, sessionId: string, commandWrapper?: Function | undefined, elementCmdImplicitWaitExclusionList?: string[] | undefined): any; lift(name: string, func: Function, proto?: Record<string, any> | undefined, origCommand?: Function | undefined): void; } |
@wdio/utils · wrapGlobalTestMethod | (this: unknown, isSpec: boolean, beforeFn: Function | Function[], beforeArgsFn: HookFnArgs<unknown>, afterFn: Function | Function[], afterArgsFn: HookFnArgs<unknown>, fnName: string, cid: string, scope?: typeof globalThis | undefined): void | (this: unknown, isSpec: boolean, beforeFn: Function | Function[], beforeArgsFn: HookFnArgs<unknown>, afterFn: Function | Function[], afterArgsFn: HookFnArgs<unknown>, fnName: string, cid: string, scope?: typeof globalThis | undefined, frameworkResult?: (() => FrameworkResult | undefined) | undefined): void |
@wdio/utils · sessionEnvironmentDetector | ({ capabilities, requestedCapabilities }: { capabilities: WebdriverIO.Capabilities; requestedCapabilities: Capabilities.RequestedStandaloneCapabilities; }): { isW3C: boolean; isChrome: boolean; isFirefox: boolean; isMobile: boolean; isIOS: boolean; isAndroid: boolean; isSauce: boolean; isSeleniumStandalone: boolean; isBidi: boolean; isChromium: boolean; isWindowsApp: boolean; isMacApp: boolean; } | ({ capabilities, requestedCapabilities }: { capabilities: WebdriverIO.Capabilities; requestedCapabilities: Capabilities.RequestedStandaloneCapabilities; }): { isChrome: boolean; isFirefox: boolean; isMobile: boolean; isIOS: boolean; isAndroid: boolean; isSauce: boolean; isSeleniumStandalone: boolean; isBidi: boolean; isChromium: boolean; isWindowsApp: boolean; isMacApp: boolean; } |
已删除的类或接口成员
未发现。
已修改的类或接口成员
未发现。
新增弃用
未发现。
要求变化(engines、peer 依赖)
| 之前 | 之后 | |
|---|---|---|
engines.node | >=18.20.0 | >=22.19.0 |
新增导出 (21)
| import | export | kind |
|---|---|---|
@wdio/utils | RoleRule | type |
@wdio/utils | WdioKind | type |
@wdio/utils | WDIO_KIND | variable |
@wdio/utils | roleTable | function |
@wdio/utils | WDIO_KINDS | variable |
@wdio/utils | knownRoles | function |
@wdio/utils | getWdioKind | function |
@wdio/utils | setWdioKind | function |
@wdio/utils | AttributeTest | type |
@wdio/utils | ROLE_SYNONYMS | variable |
@wdio/utils | WDIO_CHAINABLE | variable |
@wdio/utils | isLoadedElement | function |
@wdio/utils | getLoadedWdioKind | function |
@wdio/utils | isArrayOfElements | function |
@wdio/utils | ELEMENT_ARRAY_WRAP | variable |
@wdio/utils | getCurrentRunnable | function |
@wdio/utils | setDebugAgentPause | function |
@wdio/utils | chainElementPromise | function |
@wdio/utils | ELEMENT_ARRAY_COMMANDS | variable |
@wdio/utils | registerElementArrayFactory | function |
@wdio/utils | resolveCustomCommandOptions | function |
把这些数据交给你的 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" } } }常见问题
将 @wdio/utils 从 9 升级到 10 有哪些不兼容变更?
在 @wdio/utils 9.32.0 与 10.0.0 之间,Vigia 发现 1 个已删除的导出、4 个已修改的签名,以及 0 个已删除或修改的类或接口成员。
@wdio/utils 10 中弃用了哪些内容?
@wdio/utils 10.0.0 中有 0 个导出或成员新被标记为弃用。
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/@wdio/utils/upgrade?from=9.32.0&to=10.0.0