Skip to content

chore: remove deprecated global libraries - #62677

Open
susnux wants to merge 2 commits into
masterfrom
chore/deprecated-global-deps
Open

chore: remove deprecated global libraries#62677
susnux wants to merge 2 commits into
masterfrom
chore/deprecated-global-deps

Conversation

@susnux

@susnux susnux commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • clipboard => just use native navigator.clipboard
  • davclient.js => use webdav or @nextcloud/files
  • moment => use @nextcloud/moment or better native Intl.DateTimeFormat or Temporal API
  • underscore => just use moder ES2015+ syntax

Adjusted core (remove usage of _) to be able to fully drop those libraries as dependencies (except moment which we still use in some legacy apps).

Now that davclient.js is gone we also can re-enable the Validate package-lock.json step on CI.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

susnux added 2 commits July 29, 2026 17:01
Those aliases were deprecated since Nextcloud 17 and scheduled for
removal since Nextcloud 20.
No app uses them except `oc_requesttoken` for which I reported this:
- nextcloud/passman#869

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
- `clipboard` => just use native `navigator.clipboard`
- `davclient.js` => use `webdav` or `@nextcloud/files`
- `moment` => use `@nextcloud/moment` or better native `Intl.DateTimeFormat` or `Temporal` API
- `underscore` => just use moder ES2015+ syntax

Adjusted core (remove usage of `_`) to be able to fully drop those
libraries as dependencies (except `moment` which we still use in some
legacy apps).

Now that `davclient.js` is gone we also can re-enable the
`Validate package-lock.json` step on CI.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux added this to the Nextcloud 35 milestone Jul 29, 2026
@susnux susnux added 3. to review Waiting for reviews feature: dependencies technical debt 🧱 🤔🚀 javascript pending documentation This pull request needs an associated documentation update labels Jul 29, 2026
@icewind1991
icewind1991 force-pushed the chore/deprecated-globals branch from 828e85e to 319a649 Compare July 29, 2026 23:01
Base automatically changed from chore/deprecated-globals to master July 30, 2026 09:17
@susnux
susnux marked this pull request as ready for review July 30, 2026 09:20
@susnux
susnux requested review from a team as code owners July 30, 2026 09:20
@susnux
susnux requested review from Altahrim, come-nc, icewind1991, kristian-zendato, nfebe and skjnldsv and removed request for a team and skjnldsv July 30, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews feature: dependencies javascript pending documentation This pull request needs an associated documentation update technical debt 🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants