Repository navigation
fix(deps): unblock Dependabot and bump moment to 2.31.0 - #1138
Merged
Merged
Conversation
added 3 commits
October 11, 2026 22:39
The caret ranges for `@nextcloud/eslint-config` and `@nextcloud/vite-config` now resolve to versions requiring ESLint 10 and Vite 7, while the project still pinned ESLint 9 and Vite 6. A plain `npm ci` works from the lockfile, but any re-resolution fails with ERESOLVE, which breaks all Dependabot npm updates. - eslint ^9.31.0 -> ^10.12.0 - @nextcloud/eslint-config ^9.0.0-rc.2 -> ^9.0.1 - vite ^6.3.0 -> ^7.3.7 - @nextcloud/vite-config ^2.3.5 -> ^2.5.4 - devEngines: Node 24 / npm 11 (rollup-plugin-node-externals 9 uses `RegExp.escape`, which requires Node 24) - regenerate package-lock.json and sort package.json as required by the new ESLint config Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Grigory Vodyanov <grigory.vodyanov@nextcloud.com>
Fixes a path traversal via crafted non-string locale names (GHSA-4p3w-j4w9-5jqw / CVE-2026-17495). Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Grigory Vodyanov <grigory.vodyanov@nextcloud.com>
The workflow only read `engines` and fell back to npm ^10, which now conflicts with `devEngines` requiring npm ^11. Use the same parse-package-engines action as nextcloud-router. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Grigory Vodyanov <grigory.vodyanov@nextcloud.com>
GVodyanov
force-pushed
the
fix/dependabot-peer-deps
branch
from
October 11, 2026 20:40
b1dec00 to
7cfdafa
Compare
susnux
approved these changes
Oct 11, 2026
Contributor
|
(should not be a problem as apps can just installer more recent subdependencies themself) |
Contributor
Author
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Problem
Every Dependabot npm update has been failing since ~February, so no
security PRs have been opened (82 open alerts, including a direct
momentpath-traversal advisory, GHSA-4p3w-j4w9-5jqw).Cause:
@nextcloud/eslint-config@^9.0.0-rc.2and@nextcloud/vite-config@^2.3.5now resolve to versions whose peers are ESLint 10 / Vite 7, while we pin
ESLint 9 / Vite 6. Installing from the lockfile works, but any
re-resolution (what Dependabot does) fails with
ERESOLVE.Changes
devEnginesto Node 24 / npm 11 (same as nextcloud-router);required because
rollup-plugin-node-externals9 usesRegExp.escapepackage-lock.json(hence the large diff)momentto^2.31.0(security fix)No changes to library source code.
Verification (Node 24.9 / npm 11.6)
npm installresolves without errorsnpm run build,npm run lint,npm test(9/9),npm run ts:checkpassnpm audit --omit=dev: 0 vulnerabilities (was: moment + DOMPurify)be handled by Dependabot once this lands
Follow-up
Assisted-by: ClaudeCode:claude-opus-5-5