Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stick to @nextcloud/files v2 #5265

Closed

Conversation

max-nextcloud
Copy link
Collaborator

📝 Summary

@nextcloud/files requires node 20 and npm 9. This dependency was introduced based on a beta version that did not have these requirements yet. Roll back to version 2 rather than updating the entire node stack.

Only difference here is that formatFileSize which we use will default to non-binary file sizes - i.e 1.024KB instead of 1KiB as this only became available with v3:

@max-nextcloud max-nextcloud added tests If you write them we ♥ you 3. to review labels Jan 15, 2024
@max-nextcloud max-nextcloud added this to the Nextcloud 27.1.6 milestone Jan 15, 2024
@max-nextcloud
Copy link
Collaborator Author

/compile

* Forward ports: #5264
* Resolves: failing build in #5251

`@nextcloud/files` requires node 20 and npm 9. This dependency was introduced based on a beta version that did not have these requirements yet. Roll back to version 2 rather than updating the entire node stack.

Only difference here is that `formatFileSize` which we use will default to non-binary file sizes - i.e 1.024KB instead of 1KiB as this only became available with v3:
* https://github.com/nextcloud-libraries/nextcloud-files/pull/770/files#diff-237392127cb275fc6789cf6faec014d758950c87ccdab0329dde793d034190d8

Signed-off-by: Max <[email protected]>
@juliusknorr juliusknorr force-pushed the backport/5264/stable27-nextcloud-files-2 branch from 8c8b4ec to e05aa25 Compare January 15, 2024 13:52
@juliusknorr
Copy link
Member

/compile

@max-nextcloud
Copy link
Collaborator Author

Looks like we need parts of the V3 api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review tests If you write them we ♥ you
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants