From 30f10cfc368d43ea675fbf936368f55c21ad0ea0 Mon Sep 17 00:00:00 2001 From: poli0981 <127664709+poli0981@users.noreply.github.com> Date: Thu, 14 May 2026 14:02:34 +0700 Subject: [PATCH] chore(release): v1.4.3 (#54) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch release for the toast close-button regression (#52): - Upgrade sonner v1.7 to v2 — close button now dismisses on click on both desktop and mobile - Touch hit-area expansion on close button + touch-action: manipulation - docs/tested-viewports.md documents the manual device test matrix - README EN + VI link to the new doc Co-authored-by: Claude Opus 4.7 (1M context) --- CHANGELOG.md | 15 +++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- 5 files changed, 20 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d137b2..3f55915 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,21 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and No unreleased changes at this time. Future work tracked in `docs/ROADMAP.md` under "Beyond Phase 3". +## [1.4.3] — 2026-05-14 + +### Fixed + +- **Toast close button (`×`) did nothing on click/tap** on both desktop and mobile. `sonner@1.7.4`'s toast root attached `r.target.setPointerCapture(r.pointerId)` unconditionally on `pointerdown`, and combined with React 19's new container-root event delegation, the pointer-capture quirk swallowed the synthetic click event on the close button — so the bundled `dismiss()` handler never ran. The bug fired on both mouse and touch because the PointerEvent API is unified. Upgraded `sonner` `^1.7.0` → `^2.0.7`, which rewrote pointer/swipe handling and ships first-class React 19 support. `` props (`position`, `theme`, `richColors`, `closeButton`, `toastOptions.classNames`) and the `toast.success/warning/error/info` call sites are API-compatible — no code changes needed beyond the version bump. + +### Added + +- **`docs/tested-viewports.md`** — the maintainer's manual device test matrix (BlackBerry Z30 / Galaxy S9+ / Pixel 3/4/7 / iPhone SE/12/14 Pro/XR/Pro Max / iPad / BlackBerry PlayBook). Documents Nokia Lumia 520 (320×533) as a known limitation below the recommended `360×640` minimum. README EN + VI link to it. +- **Touch hit-area expansion on the toast close button.** A `::after` pseudo gives an effective ~36–40px tap target (visible size stays at sonner's 20px default), plus `touch-action: manipulation` to drop the 300ms tap delay on touch devices. Defensive — sonner v2 already fixes the underlying click — but a free mobile UX win. + +### Dependencies + +- Bumped `sonner` `^1.7.0` → `^2.0.7` (MIT). THIRD-PARTY.md updated. + ## [1.4.2] — 2026-05-14 ### Added diff --git a/package-lock.json b/package-lock.json index a50b001..fe29bc1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "jsonprism", - "version": "1.4.2", + "version": "1.4.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "jsonprism", - "version": "1.4.2", + "version": "1.4.3", "license": "Apache-2.0", "dependencies": { "@codemirror/lang-json": "^6.0.0", diff --git a/package.json b/package.json index 63f9e75..f404c41 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "jsonprism", "private": true, - "version": "1.4.2", + "version": "1.4.3", "type": "module", "description": "Disperse JSON into many formats — JSONL, CSV, YAML, XML, TOML, RESX, Markdown, SQL — fully client-side.", "author": "poli0981 ", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 71356e9..f17cc74 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonprism" -version = "1.4.2" +version = "1.4.3" description = "Disperse JSON into many formats." authors = ["poli0981 "] license = "Apache-2.0" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 0dff500..3945b3e 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "JSONPrism", - "version": "1.4.2", + "version": "1.4.3", "identifier": "com.poli0981.jsonprism", "build": { "beforeDevCommand": "npm run dev",