Vigia

@appium/types को 1.x से 2.x पर अपग्रेड करना

@appium/types 1.7.2 और 2.0.0 के सार्वजनिक API की तुलना, उनके TypeScript टाइप से अपने-आप निकाली गई। बदला हुआ सिग्नेचर संभावित असंगत बदलाव है, निश्चितता नहीं।

सारांश

हटाए गए इम्पोर्ट पाथ0
हटाए गए एक्सपोर्ट11
बदले गए सिग्नेचर20
क्लास या इंटरफ़ेस के हटाए गए सदस्य38
क्लास या इंटरफ़ेस के बदले गए सदस्य52
नए डिप्रिकेटेड4
आवश्यकताओं में बदलाव (engines, peer निर्भरताएँ)2
नए एक्सपोर्ट27

हटाए गए एक्सपोर्ट

importexportkindपहले
@appium/typesLocationinterfaceinterface
@appium/typesDriverDatatype{ [x: string]: unknown; }
@appium/typesTraceDirConfigtypestring
@appium/typesAllowCorsConfigtypeboolean
@appium/typesNodeconfigConfiginterfaceinterface
@appium/typesStrictCapsConfigtypeboolean
@appium/typesCallbackPortConfigtypenumber
@appium/typesSingularSessionDatatypeConstraintsToCaps<{ readonly platformName: { readonly presence: true; readonly isString: true; }; readonly app: { readonly isString: true; }; readonly platformVersion: { readonly isString: true; }; readonly webSocketUrl: { readonly isBoolean: true; }; readonly newCommandTimeout: { readonly isNumber: true; }; readonly automationName: { readonly isString: true; }; readonly autoLaunch: { readonly isBoolean: true; }; readonly udid: { readonly isString: true; }; readonly orientation: { readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"]; }; readonly autoWebview: { readonly isBoolean: true; }; re…
@appium/typesCallbackAddressConfigtypestring
@appium/typesDebugLogSpacingConfigtypeboolean
@appium/typesLegacyCreateSessionArgstype[w3cCaps1: W3CDriverCaps<C>, w3cCaps2?: W3CDriverCaps<C> | undefined, w3cCaps3?: W3CDriverCaps<C> | undefined, driverData?: DriverData[] | undefined]

बदले गए सिग्नेचर

exportपहलेबाद में
@appium/types · Classany{ new (...args: Args): Proto; prototype: Pick<Proto, keyof Proto>; } & StaticMembers
@appium/types · MethodMapT extends Plugin ? Readonly<PluginMethodMap<T>> : T extends Driver<Constraints, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void, StringRecord> ? Readonly<DriverMethodMap<T>> : neverT extends Plugin ? Readonly<PluginMethodMap<T>> : T extends Driver<Constraints, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void> ? Readonly<DriverMethodMap<T>> : never
@appium/types · DriverCapsConstraintsToCaps<{ readonly platformName: { readonly presence: true; readonly isString: true; }; readonly app: { readonly isString: true; }; readonly platformVersion: { readonly isString: true; }; readonly webSocketUrl: { readonly isBoolean: true; }; readonly newCommandTimeout: { readonly isNumber: true; }; readonly automationName: { readonly isString: true; }; readonly autoLaunch: { readonly isBoolean: true; }; readonly udid: { readonly isString: true; }; readonly orientation: { readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"]; }; readonly autoWebview: { readonly isBoolean: true; }; re…ConstraintsToCaps<{ readonly platformName: { readonly presence: true; readonly isString: true; }; readonly app: { readonly isString: true; }; readonly platformVersion: { readonly isString: true; }; readonly webSocketUrl: { readonly isBoolean: true; }; readonly newCommandTimeout: { readonly isNumber: true; }; readonly automationName: { readonly isString: true; }; readonly noReset: { readonly isBoolean: true; }; readonly fullReset: { readonly isBoolean: true; }; readonly printPageSourceOnFindFailure: { readonly isBoolean: true; }; }> & ConstraintsToCaps<C>
@appium/types · DriverOptsany{ [x: string]: any; fastReset?: boolean | undefined; skipUninstall?: boolean | undefined; } & ConstraintsToCaps<{ readonly platformName: { readonly presence: true; readonly isString: true; }; readonly app: { readonly isString: true; }; readonly platformVersion: { readonly isString: true; }; readonly webSocketUrl: { readonly isBoolean: true; }; readonly newCommandTimeout: { readonly isNumber: true; }; readonly automationName: { readonly isString: true; }; readonly noReset: { readonly isBoolean: true; }; readonly fullReset: { readonly isBoolean: true; }; readonly printPageSourceOnFindFailure: { …
@appium/types · DriverClassany{ new (...args: [] | [Partial<ServerArgs>] | [Partial<ServerArgs>, boolean]): T; prototype: Pick<T, keyof T>; } & DriverStatic<T>
@appium/types · InitialOptsMerge<ServerArgs, ExtraDriverOpts>{ [x: string]: any; fastReset?: boolean | undefined; skipUninstall?: boolean | undefined; }
@appium/types · PluginClassany{ new (pluginName: string, cliArgs: StringRecord<unknown>, driverId: string | null): P; prototype: Pick<P, keyof P>; } & PluginStatic<P>
@appium/types · NSDriverCapsPartial<CapsToNSCaps<ConstraintsToCaps<{ readonly platformName: { readonly presence: true; readonly isString: true; }; readonly app: { readonly isString: true; }; readonly platformVersion: { readonly isString: true; }; readonly webSocketUrl: { readonly isBoolean: true; }; readonly newCommandTimeout: { readonly isNumber: true; }; readonly automationName: { readonly isString: true; }; readonly autoLaunch: { readonly isBoolean: true; }; readonly udid: { readonly isString: true; }; readonly orientation: { readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"]; }; readonly autoWebview: { readonly i…Partial<CapsToNSCaps<ConstraintsToCaps<{ readonly platformName: { readonly presence: true; readonly isString: true; }; readonly app: { readonly isString: true; }; readonly platformVersion: { readonly isString: true; }; readonly webSocketUrl: { readonly isBoolean: true; }; readonly newCommandTimeout: { readonly isNumber: true; }; readonly automationName: { readonly isString: true; }; readonly noReset: { readonly isBoolean: true; }; readonly fullReset: { readonly isBoolean: true; }; readonly printPageSourceOnFindFailure: { readonly isBoolean: true; }; }>, "appium">> & Partial<CapsToNSCaps<Constr…
@appium/types · BidiMethodDefinterfaceOmit<BaseExecuteMethodDef, "params"> & { command: string; params?: BidiMethodParams | undefined; }
@appium/types · BaseCapabilities{ platformName: string; app: string | undefined; platformVersion: string | undefined; webSocketUrl: boolean | undefined; newCommandTimeout: number | undefined; automationName: string | undefined; autoLaunch: boolean | undefined; udid: string | undefined; orientation: unknown; autoWebview: boolean | undefined; noReset: boolean | undefined; fullReset: boolean | undefined; language: string | undefined; locale: string | undefined; eventTimings: boolean | undefined; printPageSourceOnFindFailure: boolean | undefined; }{ platformName: string; app: string | undefined; platformVersion: string | undefined; webSocketUrl: boolean | undefined; newCommandTimeout: number | undefined; automationName: string | undefined; noReset: boolean | undefined; fullReset: boolean | undefined; printPageSourceOnFindFailure: boolean | undefined; }
@appium/types · ExecuteMethodMapT extends Plugin ? Readonly<StringRecord<PluginExecuteMethodDef<T>>> : T extends Driver<Constraints, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void, StringRecord> ? Readonly<StringRecord<DriverExecuteMethodDef<T>>> : neverT extends Plugin ? Readonly<StringRecord<PluginExecuteMethodDef<T>>> : T extends Driver<Constraints, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void> ? Readonly<StringRecord<DriverExecuteMethodDef<T>>> : never
@appium/types · BaseNSCapabilities{ platformName?: string | undefined; "appium:app"?: string | undefined; "appium:platformVersion"?: string | undefined; webSocketUrl?: boolean | undefined; "appium:newCommandTimeout"?: number | undefined; "appium:automationName"?: string | undefined; "appium:autoLaunch"?: boolean | undefined; "appium:udid"?: string | undefined; "appium:orientation"?: unknown; "appium:autoWebview"?: boolean | undefined; "appium:noReset"?: boolean | undefined; "appium:fullReset"?: boolean | undefined; "appium:language"?: string | undefined; "appium:locale"?: string | undefined; "appium:eventTimings"?: boolean | u…{ platformName?: string | undefined; "appium:app"?: string | undefined; "appium:platformVersion"?: string | undefined; webSocketUrl?: boolean | undefined; "appium:newCommandTimeout"?: number | undefined; "appium:automationName"?: string | undefined; "appium:noReset"?: boolean | undefined; "appium:fullReset"?: boolean | undefined; "appium:printPageSourceOnFindFailure"?: boolean | undefined; }
@appium/types · BaseW3CCapabilitiesW3CCapabilities<{ readonly platformName: { readonly presence: true; readonly isString: true; }; readonly app: { readonly isString: true; }; readonly platformVersion: { readonly isString: true; }; readonly webSocketUrl: { readonly isBoolean: true; }; readonly newCommandTimeout: { readonly isNumber: true; }; readonly automationName: { readonly isString: true; }; readonly autoLaunch: { readonly isBoolean: true; }; readonly udid: { readonly isString: true; }; readonly orientation: { readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"]; }; readonly autoWebview: { readonly isBoolean: true; }; read…W3CCapabilities<{ readonly platformName: { readonly presence: true; readonly isString: true; }; readonly app: { readonly isString: true; }; readonly platformVersion: { readonly isString: true; }; readonly webSocketUrl: { readonly isBoolean: true; }; readonly newCommandTimeout: { readonly isNumber: true; }; readonly automationName: { readonly isString: true; }; readonly noReset: { readonly isBoolean: true; }; readonly fullReset: { readonly isBoolean: true; }; readonly printPageSourceOnFindFailure: { readonly isBoolean: true; }; }>
@appium/types · IImplementedCommandsIBidiCommands & ILogCommands & IFindCommands & ISettingsCommands<Settings> & ITimeoutCommands & IEventCommands & IExecuteCommands & ISessionHandler<C, CreateResult, DeleteResult, SessionData>IBidiCommands & ILogCommands & IFindCommands & ISettingsCommands<Settings> & ITimeoutCommands & IEventCommands & IExecuteCommands & ISessionHandler<C, CreateResult, DeleteResult>
@appium/types · DriverExecuteMethodDefinterfaceIsAny<T> extends true ? LooseExecuteMethodDef : CheckedExecuteMethodDef<ConditionalPick<T, DriverCommand>, "driver">
@appium/types · NormalizedServerConfig{ [x: string]: string | number | boolean | AllowInsecureConfig | DenyInsecureConfig | LogFiltersConfig | UseDriversConfig | UsePluginsConfig | DefaultCapabilitiesConfig | DriverConfig | NodeconfigConfig | PluginConfig | undefined; }{ [x: string]: string | number | boolean | AllowInsecureConfig | AppUrlRules | DenyInsecureConfig | LogFiltersConfig | UseDriversConfig | UsePluginsConfig | DefaultCapabilitiesConfig | DriverConfig | PluginConfig | undefined; }
@appium/types · PluginExecuteMethodDefinterfaceIsAny<T> extends true ? LooseExecuteMethodDef : CheckedExecuteMethodDef<ConditionalPick<T, PluginCommand>, "plugin">
@appium/types · BaseDriverCapConstraints{ readonly platformName: { readonly presence: true; readonly isString: true; }; readonly app: { readonly isString: true; }; readonly platformVersion: { readonly isString: true; }; readonly webSocketUrl: { readonly isBoolean: true; }; readonly newCommandTimeout: { readonly isNumber: true; }; readonly automationName: { readonly isString: true; }; readonly autoLaunch: { readonly isBoolean: true; }; readonly udid: { readonly isString: true; }; readonly orientation: { readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"]; }; readonly autoWebview: { readonly isBoolean: true; }; readonly noReset: { …{ readonly platformName: { readonly presence: true; readonly isString: true; }; readonly app: { readonly isString: true; }; readonly platformVersion: { readonly isString: true; }; readonly webSocketUrl: { readonly isBoolean: true; }; readonly newCommandTimeout: { readonly isNumber: true; }; readonly automationName: { readonly isString: true; }; readonly noReset: { readonly isBoolean: true; }; readonly fullReset: { readonly isBoolean: true; }; readonly printPageSourceOnFindFailure: { readonly isBoolean: true; }; }
@appium/types · BASE_DESIRED_CAP_CONSTRAINTS{ readonly platformName: { readonly presence: true; readonly isString: true; }; readonly app: { readonly isString: true; }; readonly platformVersion: { readonly isString: true; }; readonly webSocketUrl: { readonly isBoolean: true; }; readonly newCommandTimeout: { readonly isNumber: true; }; readonly automationName: { readonly isString: true; }; readonly autoLaunch: { readonly isBoolean: true; }; readonly udid: { readonly isString: true; }; readonly orientation: { readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"]; }; readonly autoWebview: { readonly isBoolean: true; }; readonly noReset: { …{ readonly platformName: { readonly presence: true; readonly isString: true; }; readonly app: { readonly isString: true; }; readonly platformVersion: { readonly isString: true; }; readonly webSocketUrl: { readonly isBoolean: true; }; readonly newCommandTimeout: { readonly isNumber: true; }; readonly automationName: { readonly isString: true; }; readonly noReset: { readonly isBoolean: true; }; readonly fullReset: { readonly isBoolean: true; }; readonly printPageSourceOnFindFailure: { readonly isBoolean: true; }; }
@appium/types · DriverCommandToPluginCommand(next: NextPluginCallback<NextRetval>, driver: ExternalDriver<Constraints, string, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void, StringRecord>, ...args: TArgs) => Promise<TReturn>(next: NextPluginCallback<NextRetval>, driver: ExternalDriver<Constraints, string, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void>, ...args: TArgs) => Promise<TReturn>

क्लास या इंटरफ़ेस के हटाए गए सदस्य

memberimportपहले
Core.driverData@appium/typesDriverData
Core.isMjsonwpProtocol@appium/types(): boolean
Driver.driverData@appium/typesDriverData
Driver.getSession@appium/types(): Promise<SingularSessionData<C, SessionData>>
Driver.implicitWaitW3C@appium/types(ms: number): Promise<void>
Driver.scriptTimeoutW3C@appium/types(ms: number): Promise<void>
Driver.isMjsonwpProtocol@appium/types(): boolean
Driver.newCommandTimeout@appium/types(ms: number): Promise<void>
Driver.pageLoadTimeoutW3C@appium/types(ms: number): Promise<void>
Plugin.logger@appium/typesAppiumLogger
AppiumLogger.errorAndThrow@appium/types(...args: any[]): never
ServerConfig.trace-dir@appium/typesstring | undefined
ServerConfig.allow-cors@appium/typesboolean | undefined
ServerConfig.nodeconfig@appium/typesNodeconfigConfig | undefined
ServerConfig.strict-caps@appium/typesboolean | undefined
ServerConfig.callback-port@appium/typesnumber | undefined
ServerConfig.callback-address@appium/typesstring | undefined
ServerConfig.debug-log-spacing@appium/typesboolean | undefined
ExternalDriver.driverData@appium/typesDriverData
ExternalDriver.getSession@appium/types(): Promise<SingularSessionData<C, SessionData>>
ExternalDriver.getGeoLocation@appium/types(() => Promise<Location>) | undefined
ExternalDriver.setGeoLocation@appium/types((location: Partial<Location>) => Promise<Location>) | undefined
ExternalDriver.implicitWaitW3C@appium/types(ms: number): Promise<void>
ExternalDriver.scriptTimeoutW3C@appium/types(ms: number): Promise<void>
ExternalDriver.isMjsonwpProtocol@appium/types(): boolean
ExternalDriver.newCommandTimeout@appium/types(ms: number): Promise<void>
ExternalDriver.pageLoadTimeoutW3C@appium/types(ms: number): Promise<void>
ExternalDriver.getNetworkConnection@appium/types(() => Promise<number>) | undefined
ExternalDriver.setNetworkConnection@appium/types((type: number) => Promise<number>) | undefined
IJSONWPCommands.getGeoLocation@appium/types(() => Promise<Location>) | undefined
IJSONWPCommands.setGeoLocation@appium/types((location: Partial<Location>) => Promise<Location>) | undefined
ISessionHandler.getSession@appium/types(): Promise<SingularSessionData<C, SessionData>>
IMJSONWPCommands.getNetworkConnection@appium/types(() => Promise<number>) | undefined
IMJSONWPCommands.setNetworkConnection@appium/types((type: number) => Promise<number>) | undefined
ITimeoutCommands.implicitWaitW3C@appium/types(ms: number): Promise<void>
ITimeoutCommands.scriptTimeoutW3C@appium/types(ms: number): Promise<void>
ITimeoutCommands.newCommandTimeout@appium/types(ms: number): Promise<void>
ITimeoutCommands.pageLoadTimeoutW3C@appium/types(ms: number): Promise<void>

क्लास या इंटरफ़ेस के बदले गए सदस्य

memberपहलेबाद में
Core.optsanyDriverOpts<C>
Core.initialOptsMerge<ServerArgs, ExtraDriverOpts>{ [x: string]: any; fastReset?: boolean | undefined; skipUninstall?: boolean | undefined; }
Core.implicitWaitMsnumberTimeoutValue
Core.addManagedDriver(driver: Driver<Constraints, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void, StringRecord>): void(driver: Driver<Constraints, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void>): void
Core.getManagedDrivers(): Driver<Constraints, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void, StringRecord>[](): Driver<Constraints, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void>[]
Driver.optsanyDriverOpts<C>
Driver.timeouts(type?: string | undefined, ms?: string | number | undefined, script?: number | undefined, pageLoad?: number | undefined, implicit?: string | number | undefined): Promise<void>(type?: string | undefined, ms?: string | number | undefined, script?: TimeoutValue | undefined, pageLoad?: TimeoutValue | undefined, implicit?: TimeoutValue | undefined, command?: number | undefined): Promise<void>
Driver.findElOrEls(strategy: string, selector: string, mult: true, context?: any): Promise<Element<string>[]> | (strategy: string, selector: string, mult: false, context?: any): Promise<Element<string>>(strategy: string, selector: string, mult: true, context?: any): Promise<Element<string>[]> | (strategy: string, selector: string, mult: false, context?: any): Promise<Element<string>> | (strategy: string, selector: string, mult: boolean, context?: any): Promise<Element<string> | Element<string>[]>
Driver.getTimeouts(): Promise<Record<string, number>>(): Promise<Timeouts & { command: number; }>
Driver.initialOptsMerge<ServerArgs, ExtraDriverOpts>{ [x: string]: any; fastReset?: boolean | undefined; skipUninstall?: boolean | undefined; }
Driver.getLogEvents(type?: string | string[] | undefined): Promise<Record<string, number> | EventHistory>(type?: string | string[] | undefined): Promise<EventHistory | Record<string, number>>
Driver.bidiSubscribe(events: string[], contexts?: string[] | undefined): Promise<{ subscription: string; }>(events: string[], contexts?: string[] | undefined, userContexts?: string[] | undefined): Promise<{ subscription: string; }>
Driver.createSession(w3cCapabilities: W3CDriverCaps<C>): Promise<CreateResult> | (w3cCaps1: W3CDriverCaps<C>, w3cCaps2?: W3CDriverCaps<C> | undefined, w3cCaps3?: W3CDriverCaps<C> | undefined, driverData?: DriverData[] | undefined): Promise<CreateResult>(w3cCapabilities: W3CDriverCaps<C>): Promise<CreateResult>
Driver.deleteSession(sessionId?: string | undefined): Promise<void | DeleteResult> | (sessionId?: string | undefined, driverData?: DriverData[] | undefined): Promise<void | DeleteResult>(sessionId?: string | undefined): Promise<void | DeleteResult>
Driver.implicitWaitMsnumberTimeoutValue
Driver.setImplicitWait(ms: number): void(ms: TimeoutValue): void
Driver.addManagedDriver(driver: Driver<Constraints, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void, StringRecord>): void(driver: Driver<Constraints, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void>): void
Driver.getManagedDrivers(): Driver<Constraints, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void, StringRecord>[](): Driver<Constraints, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void>[]
Plugin.handlePluginCommand<ExternalDriver<Constraints, string, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void, StringRecord>, [cmdName: string, ...args: any[]], void, unknown> | undefinedPluginCommand<ExternalDriver<Constraints, string, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void>, [cmdName: string, ...args: any[]], void, unknown> | undefined
Plugin.cliArgsRecord<string, any>Readonly<Record<string, any>>
Plugin.onUnexpectedShutdown((driver: ExternalDriver<Constraints, string, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void, StringRecord>, cause: string | Error) => Promise<void>) | undefined((driver: ExternalDriver<Constraints, string, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void>, cause: string | Error) => Promise<void>) | undefined
DriverHelpers.generateDriverLogPrefix(obj: object, sessionId?: string | undefined): string(obj: object): string
IBidiCommands.bidiSubscribe(events: string[], contexts?: string[] | undefined): Promise<{ subscription: string; }>(events: string[], contexts?: string[] | undefined, userContexts?: string[] | undefined): Promise<{ subscription: string; }>
IFindCommands.findElOrEls(strategy: string, selector: string, mult: true, context?: any): Promise<Element<string>[]> | (strategy: string, selector: string, mult: false, context?: any): Promise<Element<string>>(strategy: string, selector: string, mult: true, context?: any): Promise<Element<string>[]> | (strategy: string, selector: string, mult: false, context?: any): Promise<Element<string>> | (strategy: string, selector: string, mult: boolean, context?: any): Promise<Element<string> | Element<string>[]>
PayloadParams.requiredanyreadonly string[] | readonly (readonly string[])[] | undefined
PayloadParams.validate((obj: any, protocol: string) => string | boolean | undefined) | undefined((obj: any) => string | boolean | undefined) | undefined
ExternalDriver.optsanyDriverOpts<C>
ExternalDriver.timeouts(type?: string | undefined, ms?: string | number | undefined, script?: number | undefined, pageLoad?: number | undefined, implicit?: string | number | undefined): Promise<void>(type?: string | undefined, ms?: string | number | undefined, script?: TimeoutValue | undefined, pageLoad?: TimeoutValue | undefined, implicit?: TimeoutValue | undefined, command?: number | undefined): Promise<void>
ExternalDriver.findElOrEls(strategy: string, selector: string, mult: true, context?: any): Promise<Element<string>[]> | (strategy: string, selector: string, mult: false, context?: any): Promise<Element<string>>(strategy: string, selector: string, mult: true, context?: any): Promise<Element<string>[]> | (strategy: string, selector: string, mult: false, context?: any): Promise<Element<string>> | (strategy: string, selector: string, mult: boolean, context?: any): Promise<Element<string> | Element<string>[]>
ExternalDriver.getTimeouts(): Promise<Record<string, number>>(): Promise<Timeouts & { command: number; }>
ExternalDriver.initialOptsMerge<ServerArgs, ExtraDriverOpts>{ [x: string]: any; fastReset?: boolean | undefined; skipUninstall?: boolean | undefined; }
ExternalDriver.getLogEvents(type?: string | string[] | undefined): Promise<Record<string, number> | EventHistory>(type?: string | string[] | undefined): Promise<EventHistory | Record<string, number>>
ExternalDriver.bidiSubscribe(events: string[], contexts?: string[] | undefined): Promise<{ subscription: string; }>(events: string[], contexts?: string[] | undefined, userContexts?: string[] | undefined): Promise<{ subscription: string; }>
ExternalDriver.createSession(w3cCapabilities: W3CDriverCaps<C>): Promise<CreateResult> | (w3cCaps1: W3CDriverCaps<C>, w3cCaps2?: W3CDriverCaps<C> | undefined, w3cCaps3?: W3CDriverCaps<C> | undefined, driverData?: DriverData[] | undefined): Promise<CreateResult>(w3cCapabilities: W3CDriverCaps<C>): Promise<CreateResult>
ExternalDriver.deleteSession(sessionId?: string | undefined): Promise<void | DeleteResult> | (sessionId?: string | undefined, driverData?: DriverData[] | undefined): Promise<void | DeleteResult>(sessionId?: string | undefined): Promise<void | DeleteResult>
ExternalDriver.implicitWaitMsnumberTimeoutValue
ExternalDriver.setImplicitWait(ms: number): void(ms: TimeoutValue): void
ExternalDriver.addManagedDriver(driver: Driver<Constraints, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void, StringRecord>): void(driver: Driver<Constraints, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void>): void
ExternalDriver.getManagedDrivers(): Driver<Constraints, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void, StringRecord>[](): Driver<Constraints, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void>[]
IEventCommands.getLogEvents(type?: string | string[] | undefined): Promise<Record<string, number> | EventHistory>(type?: string | string[] | undefined): Promise<EventHistory | Record<string, number>>
DriverMethodDef.command(D extends true ? string : string | number | symbol) | undefined(D extends true ? string : ConditionalKeys<Required<T>, DriverCommand>) | undefined
ISessionHandler.createSession(w3cCapabilities: W3CDriverCaps<C>): Promise<CreateResult> | (w3cCaps1: W3CDriverCaps<C>, w3cCaps2?: W3CDriverCaps<C> | undefined, w3cCaps3?: W3CDriverCaps<C> | undefined, driverData?: DriverData[] | undefined): Promise<CreateResult>(w3cCapabilities: W3CDriverCaps<C>): Promise<CreateResult>
ISessionHandler.deleteSession(sessionId?: string | undefined): Promise<void | DeleteResult> | (sessionId?: string | undefined, driverData?: DriverData[] | undefined): Promise<void | DeleteResult>(sessionId?: string | undefined): Promise<void | DeleteResult>
PluginMethodDef.commandstring | number | symbol | undefinedConditionalKeys<Required<T>, PluginCommand> | undefined
W3CCapabilities.firstMatchPartial<CapsToNSCaps<ConstraintsToCaps<C>, "appium">>[]Partial<CapsToNSCaps<ConstraintsToCaps<C>, "appium">>[] | undefined
W3CCapabilities.alwaysMatchPartial<CapsToNSCaps<ConstraintsToCaps<C>, "appium">>Partial<CapsToNSCaps<ConstraintsToCaps<C>, "appium">> | undefined
BidiMethodParams.requiredreadonly string[] | undefinedreadonly string[] | readonly (readonly string[])[] | undefined
ExecuteMethodDef.commandstring | number | symbolConditionalKeys<Required<Ext>, Ext extends Plugin ? PluginCommand : Ext extends Driver<Constraints, StringRecord, StringRecord, DefaultCreateSessionResult<Constraints>, void> ? DriverCommand : never>
ITimeoutCommands.timeouts(type?: string | undefined, ms?: string | number | undefined, script?: number | undefined, pageLoad?: number | undefined, implicit?: string | number | undefined): Promise<void>(type?: string | undefined, ms?: string | number | undefined, script?: TimeoutValue | undefined, pageLoad?: TimeoutValue | undefined, implicit?: TimeoutValue | undefined, command?: number | undefined): Promise<void>
ITimeoutCommands.getTimeouts(): Promise<Record<string, number>>(): Promise<Timeouts & { command: number; }>
ITimeoutCommands.setImplicitWait(ms: number): void(ms: TimeoutValue): void
StandardCapabilities.timeoutsTimeouts | undefinedPartial<Timeouts> | undefined

नए डिप्रिकेटेड

export@deprecated
@appium/types · Core.protocolIgnored. Responses are always W3C. Removed in Appium 5.
@appium/types · Driver.protocolIgnored. Responses are always W3C. Removed in Appium 5.
@appium/types · ProtocolIgnored. Responses are always W3C. Removed in Appium 5.
@appium/types · ExternalDriver.protocolIgnored. Responses are always W3C. Removed in Appium 5.

आवश्यकताओं में बदलाव (engines, peer निर्भरताएँ)

पहलेबाद में
engines.node^20.19.0 || ^22.12.0 || >=24.0.0^22.22.2 || ^24.15.0 || >=26.0.0
peerDependencies.@appium/logger^2.0.0^3.0.0-beta.0
नए एक्सपोर्ट (27)
importexportkind
@appium/typesIsAnytype
@appium/typesMergetype
@appium/typesIsNevertype
@appium/typesJsonifytype
@appium/typesSimplifytype
@appium/typesTimeoutstype
@appium/typesBiDiEventinterface
@appium/typesJsonArraytype
@appium/typesJsonValuetype
@appium/typesJsonObjecttype
@appium/typesAppUrlRulesinterface
@appium/typesKeyAsStringtype
@appium/typesPackageJsoninterface
@appium/typesSetOptionaltype
@appium/typesSetRequiredtype
@appium/typesTimeoutValuetype
@appium/typesJsonPrimitivetype
@appium/typesMergeExclusivetype
@appium/typesConditionalPicktype
@appium/typesAppUrlRulesConfigtype
@appium/typesBiDiEventDeliveryinterface
@appium/typesRequireAtLeastOnetype
@appium/typesBiDiBackpressureEventinterface
@appium/typesBidiMaxBufferedMsConfigtype
@appium/typesBidiMaxBufferedBytesConfigtype
@appium/typesBidiHeartbeatIntervalConfigtype
@appium/typesMultidimensionalReadonlyArraytype

अपने 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/types को 1 से 2 पर अपग्रेड करने पर कौन-से असंगत बदलाव हैं?

@appium/types 1.7.2 और 2.0.0 के बीच Vigia को 11 हटाए गए एक्सपोर्ट, 20 बदले गए सिग्नेचर और 90 हटाए या बदले गए क्लास/इंटरफ़ेस सदस्य मिले।

@appium/types 2 में क्या डिप्रिकेट हुआ?

@appium/types 2.0.0 में 4 एक्सपोर्ट या सदस्य नए रूप से डिप्रिकेटेड चिह्नित हैं।

एजेंटों के लिए

GET https://vigia.coredls.cloud/v1/packages/npm/@appium/types/upgrade?from=1.7.2&to=2.0.0