Skip to content

chore: remove deprecated global libraries - #62677

Merged
susnux merged 2 commits into
masterfrom
chore/deprecated-global-deps
Jul 30, 2026
Merged

chore: remove deprecated global libraries#62677
susnux merged 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 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
@susnux
susnux force-pushed the chore/deprecated-global-deps branch from 3ce1369 to 61afbaa Compare July 30, 2026 11:04
susnux added 2 commits July 30, 2026 14:51
- `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>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux
susnux force-pushed the chore/deprecated-global-deps branch from 6f4ba79 to fbf2d93 Compare July 30, 2026 12:52
@susnux
susnux enabled auto-merge July 30, 2026 12:52
@susnux
susnux merged commit 14b21d7 into master Jul 30, 2026
211 checks passed
@susnux
susnux deleted the chore/deprecated-global-deps branch July 30, 2026 13:24
@susnux

susnux commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

Documentation: nextcloud/documentation#15396

@susnux susnux removed the pending documentation This pull request needs an associated documentation update label Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants