Skip to content

chore(deps): Bump @nextcloud/files from 3.12.2 to 4.0.0#2067

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/nextcloud/files-4.0.0
Open

chore(deps): Bump @nextcloud/files from 3.12.2 to 4.0.0#2067
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/nextcloud/files-4.0.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Apr 7, 2026

Bumps @nextcloud/files from 3.12.2 to 4.0.0.

Release notes

Sourced from @​nextcloud/files's releases.

v4.0.0 - Nextcloud 33+

4.0.0 - 2026-02-10

ℹ️ The release does not contain any breaking changes compared to v4.0.0-rc.3.

📝 Notes

  • This package now is a pure ES module.
  • Due to breaking changes this major version is only compatible with the files app of Nextcloud 33 or later.
  • The Node API was changed, the root property of any node, including File or Folder, is now required.
  • All methods now also accept the interface of the provided classes, meaning instead of accepting View they accept the more generic IView interface. This allows better integration with frameworks and custom implementations of the interface where needed.

DAV related export

The DAV related exports from the main entry point were deprecated for a long time and are now removed from it. Instead you have to use the @nextcloud/files/dav entry point.

For example:

- import { davRemoteURL } from '@nextcloud/files'
+ import { defaultRemoteURL } from '@nextcloud/files/dav'

File Actions API changes

The FileAction API has been changed to provide a more consistent set of context to the action handlers. We're now using destructuring objects for the context parameters. For example:

type ActionContext = {
  nodes: INode[],
  view: IView,
  folder: IFolder,
  contents: INode[],
}

action.exec(view: View, folder: Folder, dir: string): Promise<boolean>


action.exec({ nodes, view, folder, contents }): Promise<boolean>

Node permissions

To make work with nodes easier a new constant has been introduced:

Permission.WRITE is set for files where the content can be changed (whereas Permission.UPDATE only indicates the file can be updates as in renamed or moved).

... (truncated)

Changelog

Sourced from @​nextcloud/files's changelog.

4.0.0 - 2026-02-10

ℹ️ The release does not contain any breaking changes compared to v4.0.0-rc.3.

📝 Notes

  • This package now is a pure ES module.
  • Due to breaking changes this major version is only compatible with the files app of Nextcloud 33 or later.
  • The Node API was changed, the root property of any node, including File or Folder, is now required.
  • All methods now also accept the interface of the provided classes, meaning instead of accepting View they accept the more generic IView interface. This allows better integration with frameworks and custom implementations of the interface where needed.

DAV related export

The DAV related exports from the main entry point were deprecated for a long time and are now removed from it. Instead you have to use the @nextcloud/files/dav entry point.

For example:

- import { davRemoteURL } from '@nextcloud/files'
+ import { defaultRemoteURL } from '@nextcloud/files/dav'

File Actions API changes

The FileAction API has been changed to provide a more consistent set of context to the action handlers. We're now using destructuring objects for the context parameters. For example:

type ActionContext = {
  nodes: INode[],
  view: IView,
  folder: IFolder,
  contents: INode[],
}

action.exec(view: View, folder: Folder, dir: string): Promise<boolean>


action.exec({ nodes, view, folder, contents }): Promise<boolean>

Node permissions

To make work with nodes easier a new constant has been introduced:

Permission.WRITE is set for files where the content can be changed (whereas Permission.UPDATE only indicates the file can be updates as in renamed or moved). This is similar to the Permission.CREATE for folders.

... (truncated)

Commits
  • bd65425 Merge pull request #1497 from nextcloud-libraries/chore/prepare-v4
  • fc0e5f3 chore: prepare v4.0.0
  • 80dc1af Merge pull request #1495 from nextcloud-libraries/snowflake
  • 9ccd156 feat(node): add support for string based snowflake ids
  • 983fe40 Merge pull request #1493 from nextcloud-libraries/chore/prepare-rc3
  • 2ef1d67 Merge pull request #1492 from nextcloud-libraries/feat/scope-globals
  • a4a095f chore: prepare v4.0.0-rc.3
  • cc6e894 feat: scope global state to major version of library
  • b39e111 Merge pull request #1486 from nextcloud-libraries/chore/rc-2
  • ad64989 Merge pull request #1491 from nextcloud-libraries/dependabot/npm_and_yarn/mai...
  • Additional commits viewable in compare view

@dependabot dependabot bot added 3. to review Waiting for reviews dependencies Pull requests that update a dependency file labels Apr 7, 2026
@github-actions github-actions bot enabled auto-merge April 7, 2026 17:24
Bumps [@nextcloud/files](https://github.com/nextcloud-libraries/nextcloud-files) from 3.12.2 to 4.0.0.
- [Release notes](https://github.com/nextcloud-libraries/nextcloud-files/releases)
- [Changelog](https://github.com/nextcloud-libraries/nextcloud-files/blob/main/CHANGELOG.md)
- [Commits](nextcloud-libraries/nextcloud-files@v3.12.2...v4.0.0)

---
updated-dependencies:
- dependency-name: "@nextcloud/files"
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/nextcloud/files-4.0.0 branch from ed8b0db to f134b4a Compare April 8, 2026 05:29
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 dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants