npm / appium
appium
What changed in appium 2 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-27.
90 breaking2 security20 new APIs and options4 behavior and defaults2 tooling25 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initappium 485 changes
Breaking changes 65
The config file property was removed; use --allow-insecure=*:cors or --relaxed-security, optionally overridden with --deny-insecure=*:cors.
The deprecated appium:autoLaunch capability is no longer part of the standard capability constraints.
The package no longer exports statusCodes or getSummaryByCode; jsonwp-status was removed.
The file no longer re-exports server APIs or the default BaseDriver export and no longer uses a blanket export; import from @appium/http-server directly where needed.
Use this package for server APIs and types no longer exported by @appium/base-driver.
Several exports were removed, including process helpers, mkdirp, imageUtil, mjpeg, FTP upload support, utility functions, and filesystem helpers.
Use errorWithException instead.
autoWebview is no longer part of the standard capability constraints and must be defined by the corresponding driver.
The deprecated legacy logger and default export are removed.
The protected guard is now an asyncbox AsyncLock; callback-style acquire() and the internal queues field are gone. Use getQueueLength() or isBusy().
Use getAppiumSessionCapabilities for session capabilities and EventCommands.getLogEvents for event history.
BaseDriver.reset() was removed.
@appium/base-plugin no longer exports BasePlugin as its default; use the named export.
The server argument was removed.
The server argument was removed.
Human-readable informational output now goes to STDOUT; only actual errors go to STDERR. JSON output and error behavior are unaffected.
Drivers must use base-driver's shared command activity tracking; custom timeout implementations must delegate timer creation to super.startNewCommandTimeout().
Command POST bodies that are not JSON objects are rejected.
Results shaped like {protocol, value} are no longer unwrapped; the object is returned as the command value.
The implicit debug default changed to info; pass --log-level debug to retain debug-level output.
The deprecated multi-argument createSession overload is removed.
The server argument was removed.
The function was removed; drivers can no longer produce legacy JSONWP response shapes, and all responses are W3C-shaped.
The method was removed.
The method was removed.
Core.driverData, DriverData, and the driverData parameter on createSession/deleteSession are gone; drivers relying on sibling-session data must migrate away from this mechanism.
The deprecated driverData mechanism is removed.
The env export was removed from @appium/support.
This function and its errorFromCode alias were removed; use errorFromW3CJsonCode for W3C error-signature mapping.
The useSystemUnzip option was removed from ExtractAllOptions.
FakeDriver no longer supports the uniqueApp capability.
Unflagged filenames now default to utf8 instead of cp437; cp437 decoding is unsupported, and fileNamesEncoding accepts only Node.js BufferEncodings.
Its options now use a smaller @appium/support-owned GlobOptions interface supporting cwd, withFileTypes, absolute, and lazy; options such as nodir, ignore, and nocase are unsupported.
The deprecated getSession command is removed.
The overload and LegacyCreateSessionArgs type were deleted; createSession now has a single-argument signature.
The deprecated export was removed; use WebDriverProxy instead.
language is no longer part of the standard capability constraints and must be defined by the corresponding driver.
locale is no longer part of the standard capability constraints and must be defined by the corresponding driver.
@appium/logger and @appium/support no longer export a default log; import the named log export instead.
Log output defaults to STDOUT except for errors; code redirecting all levels via stream must also set errorStream.
Default exports and dead logging APIs are removed.
This permanently disabled no-op method was removed.
The constant was removed; responses now contain only the W3C element reference key.
The server argument was removed; use the Grid 4 relay feature to register with a Selenium Grid.
@appium/tsconfig now enables noImplicitOverride, so extensions must mark overriding members with override or tsc fails with TS4114.
The function now takes a hasAppiumDependency boolean computed by the caller.
orientation is no longer part of the standard capability constraints and must be defined by the corresponding driver.
Use Plugin#log instead.
POST request bodies must be JSON objects; other shapes produce an invalid argument error.
The wire route no longer sends capabilities three times into the command arguments.
ProtocolError instances no longer have a jsonwpCode property.
Selenium Grid 3 support was removed.
The server.callback-address configuration property was removed.
The server.callback-port configuration property was removed.
The server.debug-log-spacing configuration property was removed.
The configuration property was removed; use the Grid 4 relay feature to register with a Selenium Grid.
The server.strict-caps configuration property was removed.
The server.trace-dir configuration property was removed.
Standard capability names are matched case-sensitively.
The server argument was removed.
Timeout endpoints were aligned more closely with the W3C standard.
TLS listeners now serve plain HTTPS (HTTP/1.1) through Node's native https module instead of negotiating SPDY or HTTP/2 via ALPN.
The server argument was removed.
udid is no longer part of the standard capability constraints and must be defined by the corresponding driver.
It no longer proxies to or interprets responses from MJSONWP downstream servers; downstream automation servers must speak W3C WebDriver.
Security 1
A server argument was added to restrict remote app URLs.
New APIs and options 5
Flow control was added for WebDriver BiDi event delivery.
Log adds errorStream for directing error output separately from the default output stream.
Log adds stderrLevel as part of its error-stream configuration.
Port helper APIs were added to @appium/support's net module.
Execute methods were added to toggle translation.
Behavior and default changes 2
Installed extension commands now accept package names.
Extension manifests and extensions.yaml are validated via ajv.
Tooling 1
Type checking now checks execute method parameters against the command signature.
Fixes and other changes 11
IPv6 hosts are bracketed in BiDi websocket URLs.
Driver selection failures are classified as session not created.
Extension updates respect server compatibility and warn on non-npm installs.
Default capabilities are applied to every firstMatch candidate, and all capability candidates are validated and merged.
Idle timeout starts after session initialization, is suspended during BiDi commands, and is tracked across plugin commands.
Initial settings are applied from the selected capabilities.
Local extensions can be installed without global npm links.
Sessions are rolled back when initialization fails.
Standard capability names are matched case-sensitively.
Every timeout capability candidate is validated; standard timeouts are validated and null values are preserved.
Definitions were added for all WebDriver BiDi commands.
appium 324 changes
Breaking changes 1
Parses --webhook as a URI rather than as host:port.
Security 1
Prevents zip extraction through symlink chains.
New APIs and options 7
Installed extension commands accept package names, allowing developers to invoke them by package name.
Adds a front router for global extension middleware.
The storage plugin adds route aliases.
Adds an option to tolerate unrecognized server CLI arguments.
Drivers and plugins can communicate through IPC channels scoped to each session.
The maximum count of topics per session is limited and can be configured.
Adds three WebDriver extension endpoints.
Behavior and default changes 1
The verbose extensions list now includes repository links, helping developers identify extension source repositories.
Fixes and other changes 14
Wraps non-configurable property descriptors via a shadow target.
BiDi close code validation was backported.
Prevents recursion when logging the first BiDi event of a method.
BiDi subscriptions are tracked and removed by ID.
A directory is no longer treated as a CLI argument file.
Insecure feature prefixes are matched by automationName, case-insensitively.
A sibling folder is no longer treated as a subpath of the root.
The delete request now uses fs.sanitizeName to sanitize names.
Fixes plugins caching per session.
Fixes normalization of CLI arguments.
Ensures there is a single logger instance per process.
Prevents plugins from being attached to a non-existing session.
Fixed Appium symlink behavior across driver and plugin installations.
Appium injects symlinks for all installed extensions.
appium 234 changes
Breaking changes 24
The internal package was renamed to @appium/base-driver, affecting software that directly incorporates Appium code.
Set the Chromedriver executable through the UiAutomator2 capability instead of the removed --chromedriver-executable parameter.
Appium Desktop is deprecated and incompatible with Appium 2.0; its inspector functionality moved to Appium Inspector.
Install drivers separately from the Appium server using the extension CLI.
Install plugins such as images and execute-driver through the extension CLI.
Use this environment variable during driver installation instead of the removed --chromedriver-skip-install flag.
Use this environment variable during driver installation instead of the removed --chromedriver-cdnurl flag.
Use this environment variable during driver installation instead of the removed --chromedriver-version flag.
The server’s default base path is now / instead of /wd/hub; use --base-path to retain the old path.
External files are no longer supported for this option; provide its value directly or use a configuration file.
Commands specific to a driver are defined by that driver; requests without an active driver that knows the command return 404 rather than 501.
Driver- and platform-specific CLI parameters are now handled by drivers; some must be prefixed with the driver name.
Prefix the XCUITest driver’s webdriveragent port parameter with driver-xcuitest when starting Appium.
The advanced server-side script execution feature moved to the execute-driver plugin, which must be installed and enabled.
Image comparison and image-based element finding moved to the images plugin, which must be installed and enabled; client-side plugin setup is also required.
Support for the older JSON Wire Protocol and Mobile JSON Wire Protocol is being removed; clients must use W3C WebDriver.
External files are no longer supported for this option; provide its JSON string on the command line or use server.nodeconfig in a config file.
The old iOS and Android UiAutomator 1 drivers and related tools were removed.
Port 0 is no longer accepted; choose a free port yourself and start Appium on an explicit port.
Use this configuration property as an array of strings instead of an external CSV-like file for --allow-insecure.
Use this configuration property as an array of strings instead of an external CSV-like file for --deny-insecure.
Start the server with this option to enable the installed plugins it should run.
Non-standard capabilities must use a vendor prefix, such as appium:; standard capabilities remain unchanged.
The WD JavaScript client is unsupported because it has not been updated for W3C WebDriver; migrate to a modern client.
New APIs and options 8
Start a local server with this flag to use the browser version of Appium Inspector.
Use --updates to check whether installed drivers have updates available.
Driver dependencies are installed under APPIUM_HOME, which defaults to ~/.appium.
Bundle Appium-prefixed capabilities into one object capability; values inside it override same-named top-level capabilities.
Appium now supports JSON, JS, and YAML configuration files for nearly all arguments previously provided on the CLI.
Extension authors can create drivers and install them through the Extension CLI from NPM, Git, GitHub, or a local filesystem.
Pass driver names during npm installation to install Appium and those drivers in one step.
Extension authors can create plugins that intercept or modify Appium commands and alter how the underlying HTTP server works.
Behavior and default changes 1
The Appium server and drivers are versioned and released separately, allowing driver updates without waiting for a server release.
Tooling 1
Update an individual driver independently of the Appium server release.