unstale

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 init

@unstale/cli on npm

appium 485 changes

Breaking changes 65

  • The config file property was removed; use --allow-insecure=*:cors or --relaxed-security, optionally overridden with --deny-insecure=*:cors.

    4.0.0release notes

  • The deprecated appium:autoLaunch capability is no longer part of the standard capability constraints.

    4.0.0release notes

  • The package no longer exports statusCodes or getSummaryByCode; jsonwp-status was removed.

    4.0.0release notes

  • 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.

    4.0.0release notes

  • Use this package for server APIs and types no longer exported by @appium/base-driver.

    4.0.0release notes

  • Several exports were removed, including process helpers, mkdirp, imageUtil, mjpeg, FTP upload support, utility functions, and filesystem helpers.

    4.0.0release notes

  • Use errorWithException instead.

    4.0.0release notes

  • autoWebview is no longer part of the standard capability constraints and must be defined by the corresponding driver.

    4.0.0release notes

  • The deprecated legacy logger and default export are removed.

    4.0.0release notes

  • The protected guard is now an asyncbox AsyncLock; callback-style acquire() and the internal queues field are gone. Use getQueueLength() or isBusy().

    4.0.0release notes

  • Use getAppiumSessionCapabilities for session capabilities and EventCommands.getLogEvents for event history.

    4.0.0release notes

  • BaseDriver.reset() was removed.

    4.0.0release notes

  • @appium/base-plugin no longer exports BasePlugin as its default; use the named export.

    4.0.0release notes

  • The server argument was removed.

    4.0.0release notes

  • The server argument was removed.

    4.0.0release notes

  • Human-readable informational output now goes to STDOUT; only actual errors go to STDERR. JSON output and error behavior are unaffected.

    4.0.0release notes

  • Drivers must use base-driver's shared command activity tracking; custom timeout implementations must delegate timer creation to super.startNewCommandTimeout().

    4.0.0release notes

  • Command POST bodies that are not JSON objects are rejected.

    4.0.0release notes

  • Results shaped like {protocol, value} are no longer unwrapped; the object is returned as the command value.

    4.0.0release notes

  • The implicit debug default changed to info; pass --log-level debug to retain debug-level output.

    4.0.0release notes

  • The deprecated multi-argument createSession overload is removed.

    4.0.0release notes

  • The server argument was removed.

    4.0.0release notes

  • The function was removed; drivers can no longer produce legacy JSONWP response shapes, and all responses are W3C-shaped.

    4.0.0release notes

  • The method was removed.

    4.0.0release notes

  • The method was removed.

    4.0.0release notes

  • Core.driverData, DriverData, and the driverData parameter on createSession/deleteSession are gone; drivers relying on sibling-session data must migrate away from this mechanism.

    4.0.0release notes

  • The deprecated driverData mechanism is removed.

    4.0.0release notes

  • The env export was removed from @appium/support.

    4.0.0release notes

  • This function and its errorFromCode alias were removed; use errorFromW3CJsonCode for W3C error-signature mapping.

    4.0.0release notes

  • The useSystemUnzip option was removed from ExtractAllOptions.

    4.0.0release notes

  • FakeDriver no longer supports the uniqueApp capability.

    4.0.0release notes

  • Unflagged filenames now default to utf8 instead of cp437; cp437 decoding is unsupported, and fileNamesEncoding accepts only Node.js BufferEncodings.

    4.0.0release notes

  • 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.

    4.0.0release notes

  • The deprecated getSession command is removed.

    4.0.0release notes

  • The overload and LegacyCreateSessionArgs type were deleted; createSession now has a single-argument signature.

    4.0.0release notes

  • The deprecated export was removed; use WebDriverProxy instead.

    4.0.0release notes

  • language is no longer part of the standard capability constraints and must be defined by the corresponding driver.

    4.0.0release notes

  • locale is no longer part of the standard capability constraints and must be defined by the corresponding driver.

    4.0.0release notes

  • @appium/logger and @appium/support no longer export a default log; import the named log export instead.

    4.0.0release notes

  • Log output defaults to STDOUT except for errors; code redirecting all levels via stream must also set errorStream.

    4.0.0release notes

  • Default exports and dead logging APIs are removed.

    4.0.0release notes

  • This permanently disabled no-op method was removed.

    4.0.0release notes

  • The constant was removed; responses now contain only the W3C element reference key.

    4.0.0release notes

  • The server argument was removed; use the Grid 4 relay feature to register with a Selenium Grid.

    4.0.0release notes

  • @appium/tsconfig now enables noImplicitOverride, so extensions must mark overriding members with override or tsc fails with TS4114.

    4.0.0release notes

  • The function now takes a hasAppiumDependency boolean computed by the caller.

    4.0.0release notes

  • orientation is no longer part of the standard capability constraints and must be defined by the corresponding driver.

    4.0.0release notes

  • Use Plugin#log instead.

    4.0.0release notes

  • POST request bodies must be JSON objects; other shapes produce an invalid argument error.

    4.0.0release notes

  • The wire route no longer sends capabilities three times into the command arguments.

    4.0.0release notes

  • ProtocolError instances no longer have a jsonwpCode property.

    4.0.0release notes

  • Selenium Grid 3 support was removed.

    4.0.0release notes

  • The server.callback-address configuration property was removed.

    4.0.0release notes

  • The server.callback-port configuration property was removed.

    4.0.0release notes

  • The server.debug-log-spacing configuration property was removed.

    4.0.0release notes

  • The configuration property was removed; use the Grid 4 relay feature to register with a Selenium Grid.

    4.0.0release notes

  • The server.strict-caps configuration property was removed.

    4.0.0release notes

  • The server.trace-dir configuration property was removed.

    4.0.0release notes

  • Standard capability names are matched case-sensitively.

    4.0.0release notes

  • The server argument was removed.

    4.0.0release notes

  • Timeout endpoints were aligned more closely with the W3C standard.

    4.0.0release notes

  • TLS listeners now serve plain HTTPS (HTTP/1.1) through Node's native https module instead of negotiating SPDY or HTTP/2 via ALPN.

    4.0.0release notes

  • The server argument was removed.

    4.0.0release notes

  • udid is no longer part of the standard capability constraints and must be defined by the corresponding driver.

    4.0.0release notes

  • It no longer proxies to or interprets responses from MJSONWP downstream servers; downstream automation servers must speak W3C WebDriver.

    4.0.0release notes

Security 1

  • A server argument was added to restrict remote app URLs.

    4.0.0release notes

New APIs and options 5

  • Flow control was added for WebDriver BiDi event delivery.

    4.0.0release notes

  • Log adds errorStream for directing error output separately from the default output stream.

    4.0.0release notes

  • Log adds stderrLevel as part of its error-stream configuration.

    4.0.0release notes

  • Port helper APIs were added to @appium/support's net module.

    4.0.0release notes

  • Execute methods were added to toggle translation.

    4.0.0release notes

Behavior and default changes 2

  • Installed extension commands now accept package names.

    4.0.0release notes

  • Extension manifests and extensions.yaml are validated via ajv.

    4.0.0release notes

Tooling 1

  • Type checking now checks execute method parameters against the command signature.

    4.0.0release notes

Fixes and other changes 11

  • IPv6 hosts are bracketed in BiDi websocket URLs.

    4.0.0release notes

  • Driver selection failures are classified as session not created.

    4.0.0release notes

  • Extension updates respect server compatibility and warn on non-npm installs.

    4.0.0release notes

  • Default capabilities are applied to every firstMatch candidate, and all capability candidates are validated and merged.

    4.0.0release notes

  • Idle timeout starts after session initialization, is suspended during BiDi commands, and is tracked across plugin commands.

    4.0.0release notes

  • Initial settings are applied from the selected capabilities.

    4.0.0release notes

  • Local extensions can be installed without global npm links.

    4.0.0release notes

  • Sessions are rolled back when initialization fails.

    4.0.0release notes

  • Standard capability names are matched case-sensitively.

    4.0.0release notes

  • Every timeout capability candidate is validated; standard timeouts are validated and null values are preserved.

    4.0.0release notes

  • Definitions were added for all WebDriver BiDi commands.

    4.0.0release notes

appium 324 changes

Breaking changes 1

  • Parses --webhook as a URI rather than as host:port.

    3.7.0release notes

Security 1

  • Prevents zip extraction through symlink chains.

    3.9.0release notes

New APIs and options 7

  • Installed extension commands accept package names, allowing developers to invoke them by package name.

    3.8.0release notes

  • Adds a front router for global extension middleware.

    3.7.0release notes

  • The storage plugin adds route aliases.

    3.7.0release notes

  • Adds an option to tolerate unrecognized server CLI arguments.

    3.6.0release notes

  • Drivers and plugins can communicate through IPC channels scoped to each session.

    3.5.0release notes

  • The maximum count of topics per session is limited and can be configured.

    3.5.0release notes

  • Adds three WebDriver extension endpoints.

    3.4.0release notes

Behavior and default changes 1

  • The verbose extensions list now includes repository links, helping developers identify extension source repositories.

    3.2.0release notes

Fixes and other changes 14

  • Wraps non-configurable property descriptors via a shadow target.

    3.9.1release notes

  • BiDi close code validation was backported.

    3.9.0release notes

  • Prevents recursion when logging the first BiDi event of a method.

    3.9.0release notes

  • BiDi subscriptions are tracked and removed by ID.

    3.9.0release notes

  • A directory is no longer treated as a CLI argument file.

    3.8.0release notes

  • Insecure feature prefixes are matched by automationName, case-insensitively.

    3.8.0release notes

  • A sibling folder is no longer treated as a subpath of the root.

    3.7.0release notes

  • The delete request now uses fs.sanitizeName to sanitize names.

    3.5.1release notes

  • Fixes plugins caching per session.

    3.3.1release notes

  • Fixes normalization of CLI arguments.

    3.2.1release notes

  • Ensures there is a single logger instance per process.

    3.2.1release notes

  • Prevents plugins from being attached to a non-existing session.

    3.2.1release notes

  • Fixed Appium symlink behavior across driver and plugin installations.

    3.2.0release notes

  • Appium injects symlinks for all installed extensions.

    3.1.1release notes

appium 234 changes

Breaking changes 24

  • The internal package was renamed to @appium/base-driver, affecting software that directly incorporates Appium code.

    2.0.0upgrade guide

  • Set the Chromedriver executable through the UiAutomator2 capability instead of the removed --chromedriver-executable parameter.

    2.0.0upgrade guide

  • Appium Desktop is deprecated and incompatible with Appium 2.0; its inspector functionality moved to Appium Inspector.

    2.0.0upgrade guide

  • Install drivers separately from the Appium server using the extension CLI.

    2.0.0upgrade guide

  • Install plugins such as images and execute-driver through the extension CLI.

    2.0.0upgrade guide

  • Use this environment variable during driver installation instead of the removed --chromedriver-skip-install flag.

    2.0.0upgrade guide

  • Use this environment variable during driver installation instead of the removed --chromedriver-cdnurl flag.

    2.0.0upgrade guide

  • Use this environment variable during driver installation instead of the removed --chromedriver-version flag.

    2.0.0upgrade guide

  • The server’s default base path is now / instead of /wd/hub; use --base-path to retain the old path.

    2.0.0upgrade guide

  • External files are no longer supported for this option; provide its value directly or use a configuration file.

    2.0.0upgrade guide

  • Commands specific to a driver are defined by that driver; requests without an active driver that knows the command return 404 rather than 501.

    2.0.0upgrade guide

  • Driver- and platform-specific CLI parameters are now handled by drivers; some must be prefixed with the driver name.

    2.0.0upgrade guide

  • Prefix the XCUITest driver’s webdriveragent port parameter with driver-xcuitest when starting Appium.

    2.0.0upgrade guide

  • The advanced server-side script execution feature moved to the execute-driver plugin, which must be installed and enabled.

    2.0.0upgrade guide

  • 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.

    2.0.0upgrade guide

  • Support for the older JSON Wire Protocol and Mobile JSON Wire Protocol is being removed; clients must use W3C WebDriver.

    2.0.0upgrade guide

  • 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.

    2.0.0upgrade guide

  • The old iOS and Android UiAutomator 1 drivers and related tools were removed.

    2.0.0upgrade guide

  • Port 0 is no longer accepted; choose a free port yourself and start Appium on an explicit port.

    2.0.0upgrade guide

  • Use this configuration property as an array of strings instead of an external CSV-like file for --allow-insecure.

    2.0.0upgrade guide

  • Use this configuration property as an array of strings instead of an external CSV-like file for --deny-insecure.

    2.0.0upgrade guide

  • Start the server with this option to enable the installed plugins it should run.

    2.0.0upgrade guide

  • Non-standard capabilities must use a vendor prefix, such as appium:; standard capabilities remain unchanged.

    2.0.0upgrade guide

  • The WD JavaScript client is unsupported because it has not been updated for W3C WebDriver; migrate to a modern client.

    2.0.0upgrade guide

New APIs and options 8

  • Start a local server with this flag to use the browser version of Appium Inspector.

    2.0.0upgrade guide

  • Use --updates to check whether installed drivers have updates available.

    2.0.0upgrade guide

  • Driver dependencies are installed under APPIUM_HOME, which defaults to ~/.appium.

    2.0.0upgrade guide

  • Bundle Appium-prefixed capabilities into one object capability; values inside it override same-named top-level capabilities.

    2.0.0upgrade guide

  • Appium now supports JSON, JS, and YAML configuration files for nearly all arguments previously provided on the CLI.

    2.0.0upgrade guide

  • Extension authors can create drivers and install them through the Extension CLI from NPM, Git, GitHub, or a local filesystem.

    2.0.0upgrade guide

  • Pass driver names during npm installation to install Appium and those drivers in one step.

    2.0.0upgrade guide

  • Extension authors can create plugins that intercept or modify Appium commands and alter how the underlying HTTP server works.

    2.0.0upgrade guide

Behavior and default changes 1

  • The Appium server and drivers are versioned and released separately, allowing driver updates without waiting for a server release.

    2.0.0upgrade guide

Tooling 1

  • Update an individual driver independently of the Appium server release.

    2.0.0upgrade guide