Skip to content

refactor: use ConditionUnmetError instead of message matching - #441

Merged
mykola-mokhnach merged 1 commit into
appium:masterfrom
mykola-mokhnach:refactor/asyncbox-typed-errors
Nov 7, 2026
Merged

mykola-mokhnach merged 1 commit into
appium:masterfrom
mykola-mokhnach:refactor/asyncbox-typed-errors

Conversation

@mykola-mokhnach

Copy link
Copy Markdown
Contributor

Replaces message-based matching of /Condition unmet/ with instanceof ConditionUnmetError (typed errors, asyncbox 6.6.0). Same change as appium/appium#23141.

  • Bump asyncbox to ^6.6.0.

Bump asyncbox to ^6.6.0 and match the typed error with instanceof.
@mykola-mokhnach
mykola-mokhnach merged commit f2abf50 into appium:master Nov 7, 2026
15 checks passed
@mykola-mokhnach
mykola-mokhnach deleted the refactor/asyncbox-typed-errors branch November 7, 2026 17:23
github-actions Bot pushed a commit that referenced this pull request Nov 9, 2026
## [5.0.0](v4.6.1...v5.0.0) (2026-11-09)

### ⚠ BREAKING CHANGES

* Requires Appium ^4.0.0-beta.6 (peer dependency). No longer compatible with Appium 3.
* Drops Node 20. The minimum is now ^22.22.2 || ^24.15.0 || >=26.0.0, matching Appium 4's engine range.
* Driver API: createSession takes a single w3cCapabilities argument, following the Appium 4 base driver. This only matters to anyone subclassing Mac2Driver.
* Default exports removed: the package no longer has a default export. Use the named export instead: import {Mac2Driver} from 'appium-mac2-driver'. The internal logger and constraints modules now use named exports too (log, MAC2_CONSTRAINTS).
* Command methods live on the prototype: the command methods are attached to Mac2Driver.prototype (with declare module typings) rather than being instance fields, so subclasses can call super for them.

### Features

* target Appium 4 beta ([#442](#442)) ([59e7605](59e7605))

### Code Refactoring

* use ConditionUnmetError instead of message matching ([#441](#441)) ([f2abf50](f2abf50))
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 5.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants