Skip to content

[stable-0.1] Backport fixes and dependency updates - #393

Merged
AndyScherzinger merged 6 commits into
stable-0.1from
backport/stable-0.1
Oct 18, 2026
Merged

AndyScherzinger merged 6 commits into
stable-0.1from
backport/stable-0.1

Conversation

@AndyScherzinger

@AndyScherzinger AndyScherzinger commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Backports to stable-0.1, the maintenance branch for Nextcloud 32–35. stable-0.1 starts at 6e6d991, the last main commit before the viewer library migration (#375): v0.1.3 plus dependency, CI and translation updates.

Picked from main:

Not picked:

npm audit goes from 17 vulnerabilities (5 high) to 12 (6 low, 6 moderate). Vitest (93 tests), lint and the build pass. The version stays at 0.1.3, so the next 0.1.x release needs its own bump.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI (N/A)

AndyScherzinger and others added 6 commits October 18, 2026 11:37
The custom renderBuiltUrl emitted a bare OC.filePath(), which a
minified top-level function named OC can shadow. With the viewer
library bundled, lazy chunks then fail to load wherever this app's
copy of the viewer is the one mounted, e.g. on Nextcloud 32.
@nextcloud/vite-config already emits window.OC.filePath() itself.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
(cherry picked from commit 2ed84e2)
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
The toast was handed the Error object, which made it throw and hid
the actual error.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
(cherry picked from commit ef8dc65)
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
(cherry picked from commit 2bada0d)
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
vite-plugin-static-copy only copied src/viewer.js to js/viewer.js, and
pulled in chokidar 3 with braces, which GHSA-vfj7-8cjw-p6xm affects in
every version. A small inline plugin emits the file instead and watches
it in watch mode.

Assisted-by: Claude Code:claude-opus-5-5

(cherry picked from commit 4ab6970)
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
The hoisted vue and @vue/server-renderer stayed at 3.5.33, which
GHSA-g2v6-rqmx-r4w6 affects (fixed in 3.5.42), because they require
each other at the exact same version and npm audit fix cannot move the
pair. Re-resolve them and dedupe, as #387 did on main. The vue peer
dependency stays, as this branch still renders the viewer component.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
The viewer and public share entries import mindmap.js, which was still
built as the entry files_mindmap-mindmap.mjs, whose name never changes.
The server lets browsers cache it for six months and the import carries
no version, so after an update browsers could keep running the old file
next to the new entries. Nothing loads it as an entry, so build it as a
normal chunk, whose name carries a content hash.

Same fix as #392 on main.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
@AndyScherzinger AndyScherzinger added this to the v0.1.4 milestone Oct 18, 2026
@AndyScherzinger
AndyScherzinger merged commit 6b503b3 into stable-0.1 Oct 18, 2026
7 checks passed
@AndyScherzinger
AndyScherzinger deleted the backport/stable-0.1 branch October 18, 2026 10:29
@AndyScherzinger AndyScherzinger added the AI assisted This PR contains AI-assisted commits label Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI assisted This PR contains AI-assisted commits

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants