From 0b8712da66a3556768a42239487fb30f36d203a1 Mon Sep 17 00:00:00 2001 From: BenSheridanEdwards Date: Fri, 3 Jul 2026 10:36:56 +0100 Subject: [PATCH] chore(release): v0.13.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit getByRole { visible } filter (#89) — pick the on-screen instance among offscreen/shadow role duplicates, closing the last raw-predicate fallback in consumer suites. --- CHANGELOG.md | 14 +++++++++++++ package-lock.json | 52 ++--------------------------------------------- package.json | 2 +- 3 files changed, 17 insertions(+), 51 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eaa96c7..faf80cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,20 @@ All notable changes to NativeProof are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/) and the project adheres to [Semantic Versioning](https://semver.org/). +## 0.13.0 + +Visible-state locator filtering. + +**Added** + +- `getByRole(role, { visible: true | false })` (and `by.role`) keeps only elements the + toolkit reports on screen — iOS `visible="true"`, Android `displayed="true"`. Native + trees carry offscreen or shadow duplicates of the same role (a hidden SwiftUI text field + behind the focused one returns first in document order, so `fill()` types nowhere); + `{ visible: true }` picks the live instance. Composes with `name`/`checked`/`disabled` + and closes the gap that forced consumer suites onto raw + `-ios predicate string:... AND visible == 1` selectors. + ## 0.12.0 Scrolling, selector discovery, and a hardened locator core. diff --git a/package-lock.json b/package-lock.json index c38b85f..add7afb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "nativeproof", - "version": "0.12.0", + "version": "0.13.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nativeproof", - "version": "0.12.0", + "version": "0.13.0", "license": "MIT", "dependencies": { "@wdio/cli": "^9.29.1", @@ -1291,9 +1291,6 @@ "cpu": [ "arm" ], - "libc": [ - "glibc" - ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1310,9 +1307,6 @@ "cpu": [ "arm64" ], - "libc": [ - "glibc" - ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1329,9 +1323,6 @@ "cpu": [ "ppc64" ], - "libc": [ - "glibc" - ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1348,9 +1339,6 @@ "cpu": [ "riscv64" ], - "libc": [ - "glibc" - ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1367,9 +1355,6 @@ "cpu": [ "s390x" ], - "libc": [ - "glibc" - ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1386,9 +1371,6 @@ "cpu": [ "x64" ], - "libc": [ - "glibc" - ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1405,9 +1387,6 @@ "cpu": [ "arm64" ], - "libc": [ - "musl" - ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1424,9 +1403,6 @@ "cpu": [ "x64" ], - "libc": [ - "musl" - ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1443,9 +1419,6 @@ "cpu": [ "arm" ], - "libc": [ - "glibc" - ], "license": "Apache-2.0", "optional": true, "os": [ @@ -1468,9 +1441,6 @@ "cpu": [ "arm64" ], - "libc": [ - "glibc" - ], "license": "Apache-2.0", "optional": true, "os": [ @@ -1493,9 +1463,6 @@ "cpu": [ "ppc64" ], - "libc": [ - "glibc" - ], "license": "Apache-2.0", "optional": true, "os": [ @@ -1518,9 +1485,6 @@ "cpu": [ "riscv64" ], - "libc": [ - "glibc" - ], "license": "Apache-2.0", "optional": true, "os": [ @@ -1543,9 +1507,6 @@ "cpu": [ "s390x" ], - "libc": [ - "glibc" - ], "license": "Apache-2.0", "optional": true, "os": [ @@ -1568,9 +1529,6 @@ "cpu": [ "x64" ], - "libc": [ - "glibc" - ], "license": "Apache-2.0", "optional": true, "os": [ @@ -1593,9 +1551,6 @@ "cpu": [ "arm64" ], - "libc": [ - "musl" - ], "license": "Apache-2.0", "optional": true, "os": [ @@ -1618,9 +1573,6 @@ "cpu": [ "x64" ], - "libc": [ - "musl" - ], "license": "Apache-2.0", "optional": true, "os": [ diff --git a/package.json b/package.json index 8d1259c..ff766ce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nativeproof", - "version": "0.12.0", + "version": "0.13.0", "license": "MIT", "type": "module", "description": "Playwright-feeling native mobile E2E for Appium/WebdriverIO with runner-native tests, locators, expect, fixtures, and evidence.",