From 889d759eaf3b0a553f3135554bd2bd34d2213f7c Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Wed, 30 Sep 2026 02:44:25 +0200 Subject: [PATCH] chore: prepare 2.0.0-beta.12 Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: skjnldsv --- CHANGELOG.md | 34 ++++++++++++++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 37 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1edf6d..c4309b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,40 @@ All notable changes to this project will be documented in this file. +## 2.0.0-beta.12 + +### Changed + +- Every `onClose` passed while the viewer is open is called once when it + closes, not only the last one. Opening over a viewer that is still open + used to drop the first opener's, so the Files app never cleaned + `openfile=true` out of its URL when a handler handed its file to + another one with `open()`. The same function passed twice is still + called once, and one that throws does not stop the others (#66) +- The options filled in for a caller that passes none no longer carry + no-op callbacks. The viewer always called them optionally (#66) + +### Fixed + +- Clicking rotate again while the previous turn was still being written + could undo it, and every turn made the picture flash once written. + Writes now wait for each other and build on the bytes just sent, and + the viewer no longer reloads a picture it is already showing turned + (#61) +- The right-click menu is refused on a share that hides or forbids + the download: the check read the old viewer's names for those + restrictions, not the ones nodes carry, `hide-download` and + `share-attributes` (#65) +- Registering the same handler twice, as the server's copy and an app's + do with the defaults, no longer warns. Another handler taking an id + that is already used still does (#64) +- The header is readable on the dark backdrop (#60) + +### Documentation + +- A tutorial that builds a handler from scratch, and a reference that + lists every option and the whole migration from `OCA.Viewer` (#67) + ## 2.0.0-beta.11 ### Added diff --git a/package-lock.json b/package-lock.json index 135e50a..84eed24 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@nextcloud/viewer", - "version": "2.0.0-beta.11", + "version": "2.0.0-beta.12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@nextcloud/viewer", - "version": "2.0.0-beta.11", + "version": "2.0.0-beta.12", "license": "AGPL-3.0-or-later", "dependencies": { "@mdi/svg": "^7.4.47", diff --git a/package.json b/package.json index 94aad5a..7432aeb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nextcloud/viewer", - "version": "2.0.0-beta.11", + "version": "2.0.0-beta.12", "description": "The Nextcloud file viewer, and the API for apps to add their own file views", "keywords": [ "nextcloud",