You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This version include some reworked - and accessible - toast notifications.
Those new toast messages will be displayed on the bottom start of the page,
this is by design and not a bug.
This version include some reworked - and accessible - toast notifications.
Those new toast messages will be displayed on the bottom start of the page,
this is by design and not a bug.
github-actionsBot
changed the title
build(deps): bump @nextcloud/dialogs from 7.4.1 to 7.5.0 in /build/frontend-legacy
[stable34] build(deps): bump @nextcloud/dialogs from 7.4.1 to 7.5.0 in /build/frontend-legacy
Sep 5, 2026
So at line 296 data becomes undefined. getAnnouncementText(undefined, false) fails the typeof data === 'string' guard, falls through to getVisibleText(undefined), and dereferences .nodeType. The exact error was reproduced in isolation with the 7.5.0 code path.
Why the bump surfaced it (and why it is still non-breaking)
7.4.1 had the same innerText defect — line 122: element.innerHTML = data; data = element.innerText. Under jsdom the toast message was already undefined there; it was just handed to Toastify as text and rendered harmlessly. 7.5.0 added the new persistent aria-live announcement path (getAnnouncementText / getVisibleText), which now dereferences that value.
The bump did not introduce the defect — it converted a pre-existing silent one into a throw. The semver-minor classification is accurate for browser use.
Not an issue outside tests
In real browsers innerText exists. The DOMParser document has no browsing context, so nothing in it is "being rendered", and per the HTML spec innerText then returns the same value as textContent. The strip works correctly in every browser. No user-facing regression — jsdom-only.
Why this particular spec fails
Two latent issues in our own code line up:
apps/files/src/composables/useHotKeys.ts:36 — useHotKey(key, () => executeAction(action), …). The returned promise is never awaited or caught, so anything escaping executeAction becomes an unhandled rejection (hence processTicksAndRejections in the trace).
useHotKeys.spec.ts does vi.mock('../actions/deleteAction.ts', { spy: true }), which keeps the realexec. In the 'registeres actions' test the call stack contains keydown, so exec enters askConfirmation(...) and throws under jsdom. executeAction catches it, logs, and calls showError at apps/files/src/utils/actionUtils.ts:75 — inside the catch. showError itself then throws, escapes the catch, and there is no handler anywhere up the chain.
Recommended fixes
Upstream (the real fix) — nextcloud-libraries/nextcloud-dialogs: use textContent instead of innerText at toast.ts:296, and/or guard getVisibleText against a nullish node. 7.5.0 is currently the latest published version, so no released fix exists yet.
In this repo, to unblock the bump — add an innerText polyfill to build/frontend-legacy/__tests__/mock-window.js:
This also fixes the latent 7.4.1 breakage where toasts silently announced undefined in tests.
Worth doing regardless — attach a .catch() in useHotKeys.ts:36 so a failing action can never produce an unhandled rejection.
Related
build/frontend also runs on jsdom and pulls dialogs from the root package.json (still ^7.4.1). The equivalent dependabot PR there will hit the identical failure, so the polyfill likely belongs in both test setups.
Note: if this is headed for the PR thread or an upstream issue, our AGENTS.md requires review comments and issue reports to be in your own words — worth rewording rather than pasting verbatim.
dependabotBot
changed the title
[stable34] build(deps): bump @nextcloud/dialogs from 7.4.1 to 7.5.0 in /build/frontend-legacy
chore(deps): bump @nextcloud/dialogs from 7.4.1 to 7.5.0 in /build/frontend-legacy
Sep 17, 2026
github-actionsBot
changed the title
chore(deps): bump @nextcloud/dialogs from 7.4.1 to 7.5.0 in /build/frontend-legacy
[stable34] chore(deps): bump @nextcloud/dialogs from 7.4.1 to 7.5.0 in /build/frontend-legacy
Sep 17, 2026
dependabotBot
changed the title
[stable34] chore(deps): bump @nextcloud/dialogs from 7.4.1 to 7.5.0 in /build/frontend-legacy
chore(deps): bump @nextcloud/dialogs from 7.4.1 to 7.5.0 in /build/frontend-legacy
Sep 17, 2026
github-actionsBot
changed the title
chore(deps): bump @nextcloud/dialogs from 7.4.1 to 7.5.0 in /build/frontend-legacy
[stable34] chore(deps): bump @nextcloud/dialogs from 7.4.1 to 7.5.0 in /build/frontend-legacy
Sep 17, 2026
dependabotBot
changed the title
[stable34] chore(deps): bump @nextcloud/dialogs from 7.4.1 to 7.5.0 in /build/frontend-legacy
chore(deps): bump @nextcloud/dialogs from 7.4.1 to 7.5.0 in /build/frontend-legacy
Sep 22, 2026
github-actionsBot
changed the title
chore(deps): bump @nextcloud/dialogs from 7.4.1 to 7.5.0 in /build/frontend-legacy
[stable34] chore(deps): bump @nextcloud/dialogs from 7.4.1 to 7.5.0 in /build/frontend-legacy
Sep 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps @nextcloud/dialogs from 7.4.1 to 7.5.0.
Release notes
Sourced from @nextcloud/dialogs's releases.
Changelog
Sourced from @nextcloud/dialogs's changelog.
Commits
dec5ccfMerge pull request #2579 from nextcloud-libraries/chore/prepare-rel395a38fchore: add note about toasts6d2dd27chore: prepare v7.5.04030af4Merge pull request #2575 from nextcloud-libraries/dependabot/npm_and_yarn/mai...a07e474chore(deps-dev): bump the vitest group with 2 updates40d0492Merge pull request #2565 from nextcloud-libraries/automated/noid/main-fix-npm...20df0f0Merge pull request #2539 from nextcloud-libraries/feat/timeout-configurationf4e2981chore: adjust to comply with ESLintc8e9080feat: toast timeout configuration19882e5Merge pull request #2574 from nextcloud-libraries/translations_441be4f7621043...