All notable changes to this project will be documented in this file.
- feat: Allow cloning a node by @Pytal in #1077
- feat(FileAction): Allow to set
destructive
flag by @susnux in #1076
- fix: Document optional
user
property of FileListFilterChip by @susnux in #1075 - fix deprecation warning
Node.attributes.displayname
should be accessed directly on theNode
by @dvaerum in #1074
- chore(deps-dev): Bump @codecov/vite-plugin from 0.0.1-beta.10 to 0.0.1-beta.12 by @dependabot in #1073
- chore(deps-dev): Bump @types/node from 22.5.1 to 22.5.4 by @dependabot in #1070
- chore(deps-dev): Bump @types/node from 22.5.4 to 22.5.5 by @dependabot in #1078
- chore(deps-dev): Bump @types/node from 22.5.5 to 22.7.4 by @dependabot in #1089
- chore(deps-dev): Bump @types/node from 22.7.4 to 22.7.5 by @dependabot in #1094
- chore(deps-dev): Bump @types/node from 22.7.5 to 22.7.6 by @dependabot in #1101
- chore(deps-dev): Bump @vitest/coverage-istanbul from 2.0.5 to 2.1.1 by @dependabot in #1079
- chore(deps-dev): Bump @vitest/coverage-istanbul from 2.1.1 to 2.1.2 by @dependabot in #1093
- chore(deps-dev): Bump @vitest/coverage-istanbul from 2.1.2 to 2.1.3 by @dependabot in #1100
- chore(deps-dev): Bump fast-xml-parser from 4.4.1 to 4.5.0 by @dependabot in #1072
- chore(deps-dev): Bump jsdom from 25.0.0 to 25.0.1 by @dependabot in #1091
- chore(deps-dev): Bump tslib from 2.7.0 to 2.8.0 by @dependabot in #1098
- chore(deps-dev): Bump typedoc from 0.26.6 to 0.26.7 by @dependabot in #1080
- chore(deps-dev): Bump typedoc from 0.26.7 to 0.26.8 by @dependabot in #1092
- chore(deps-dev): Bump typedoc from 0.26.8 to 0.26.9 by @dependabot in #1095
- chore(deps-dev): Bump typedoc from 0.26.9 to 0.26.10 by @dependabot in #1102
- chore(deps-dev): Bump typescript from 5.5.4 to 5.6.2 by @dependabot in #1082
- chore(deps-dev): Bump typescript from 5.6.2 to 5.6.3 by @dependabot in #1096
- chore(deps-dev): Bump vite from 5.4.2 to 5.4.3 by @dependabot in #1071
- chore(deps-dev): Bump vite from 5.4.3 to 5.4.5 by @dependabot in #1083
- chore(deps-dev): Bump vite from 5.4.5 to 5.4.6 by @dependabot in #1085
- chore(deps-dev): Bump vite from 5.4.6 to 5.4.7 by @dependabot in #1087
- chore(deps-dev): Bump vite from 5.4.7 to 5.4.8 by @dependabot in #1090
- chore(deps-dev): Bump vite from 5.4.8 to 5.4.9 by @dependabot in #1103
- chore(deps): Bump dompurify from 3.1.2 to 3.1.6 by @dependabot in #1084
- chore(deps): Bump rollup from 4.21.0 to 4.22.4 by @dependabot in #1088
- @dvaerum made their first contribution in #1074
- feat: Allow views to be naturally sorted by @Pytal in #1053
- chore(deps-dev): Bump @nextcloud/vite-config from 2.1.0 to 2.2.2 by @dependabot in #1048
- chore(deps-dev): Bump vite from 5.3.5 to 5.4.0 by @dependabot in #1051
- chore(deps): Bump webdav from 5.7.0 to 5.7.1 by @dependabot in #1049
- chore(deps-dev): Bump @types/node from 22.1.0 to 22.2.0 by @dependabot in #1050
- chore(deps): Bump is-svg from 5.0.1 to 5.1.0 by @dependabot in #1052
- chore(deps): Bump @nextcloud/auth from 2.3.0 to 2.4.0 by @dependabot in #1054
- chore(deps-dev): Bump vite from 5.4.0 to 5.4.1 by @dependabot in #1055
- chore(deps-dev): Bump @types/node from 22.2.0 to 22.4.0 by @dependabot in #1056
- chore(deps-dev): Bump elliptic from 6.5.5 to 6.5.7 by @dependabot in #1057
- chore(deps-dev): Bump tslib from 2.6.3 to 2.7.0 by @dependabot in #1059
- chore(deps-dev): Bump @types/node from 22.4.0 to 22.5.0 by @dependabot in #1061
- chore(deps-dev): Bump typedoc from 0.26.5 to 0.26.6 by @dependabot in #1062
- chore(deps-dev): Bump vite from 5.4.1 to 5.4.2 by @dependabot in #1060
- chore(deps-dev): Bump @types/node from 22.5.0 to 22.5.1 by @dependabot in #1064
- Update dependabot-approve-merge.yml from main org by @AndyScherzinger in #1066
- chore(deps-dev): Bump jsdom from 24.1.1 to 25.0.0 by @dependabot in #1065
- feat: Allow registration of load child views callback on view by @Pytal in #1046
- chore(deps-dev): Bump @vitest/coverage-istanbul from 2.0.3 to 2.0.4 by @dependabot in #1033
- chore(deps-dev): Bump typedoc from 0.26.4 to 0.26.5 by @dependabot in #1031
- chore(deps): Bump @nextcloud/paths from 2.2.0 to 2.2.1 by @dependabot in #1037
- chore(deps): Bump @nextcloud/sharing from 0.2.2 to 0.2.3 by @dependabot in #1034
- chore(deps-dev): Bump vite from 5.3.4 to 5.3.5 by @dependabot in #1036
- chore(deps-dev): Bump jsdom from 24.1.0 to 24.1.1 by @dependabot in #1035
- chore(deps-dev): Bump @types/node from 20.14.11 to 20.14.12 by @dependabot in #1032
- chore(deps-dev): Bump typescript from 5.5.3 to 5.5.4 by @dependabot in #1038
- chore(deps-dev): Bump fast-xml-parser from 4.4.0 to 4.4.1 by @dependabot in #1040
- chore(deps-dev): Bump @vitest/coverage-istanbul from 2.0.4 to 2.0.5 by @dependabot in #1042
- chore(deps): Bump webdav from 5.6.0 to 5.7.0 by @dependabot in #1043
- chore(deps-dev): Bump @types/node from 20.14.12 to 22.1.0 by @dependabot in #1044
- fix(dav): Cast displayname to string in
resultToNode
#1028 (susnux) - fix: Correctly export public API #1026 (susnux)
- chore(deps): Bump @nextcloud/paths from 2.1.0 to 2.2.0
- feat(filename): Improve filename validation to support Nextcloud 30 capabilities #1013 (susnux)
- feat(node): Add
displayname
as top level attribute #1019 (susnux)
- Update README.md to add more info about the webDAV client #1007 (StCyr)
- test: Add missing test case for sorting equal values and ESLint warning #1014 (susnux)
- Migrate REUSE to TOML format #1012 (AndyScherzinger)
- Bump @nextcloud/sharing from 0.2.1 to 0.2.2
- Updated development dependencies
Full Changelog: https://github.com/nextcloud-libraries/nextcloud-files/compare/v3.5.0...v3.5.1
- fix
davResultToNode
on public shares (#993) - fix: make
davRootPath
anddavRemoteURL
support public shares (#996) - fix(dav): Add
displayname
andcreationdate
to default props (#991) - fix(sorting): The display name attribute is called
displayname
notdisplayName
for DAV (#992)
- chore(deps-dev): Bump ws from 8.17.0 to 8.17.1
- chore: Update development dependencies
Full Changelog: https://github.com/nextcloud-libraries/nextcloud-files/compare/v3.4.1...v3.5.0
- feat: Add filename util
getUniqueName
to generate a unique name (#986) - feat: Export public interfaces of
Node
,File
andFolder
(#976) - feat(navigation): Allow to listen for active navigation changes (#987)
- fix(dav): Set
status
indavResultToNode
when fileid is negative (#985) - fix: When sorting by filename the extension should only be considered if the basename is equal (#984)
- Add SPDX headers (#980)
- Updated development dependencies
Full Changelog: https://github.com/nextcloud-libraries/nextcloud-files/compare/v3.4.0...v3.4.1
- fix(node): remove auto mtime update on attributes change and allow mtime set by @skjnldsv in #974
- chore(deps-dev): Bump vite from 5.2.11 to 5.2.12 by @dependabot in #971
- chore(deps-dev): Bump @types/node from 20.12.12 to 20.13.0 by @dependabot in #970
- chore(deps-dev): Bump jsdom from 24.0.0 to 24.1.0 by @dependabot in #972
Full Changelog: https://github.com/nextcloud-libraries/nextcloud-files/compare/v3.3.1...v3.4.0
- feat: Add
sortNodes
and genericorderBy
by @susnux in #961
- fix(Node): Do not drop readonly attributes but only forbid updating them by @susnux in #967
- chore(deps-dev): Bump @codecov/vite-plugin from 0.0.1-beta.6 to 0.0.1-beta.8 by @dependabot in #965
- chore(deps-dev): Bump fast-xml-parser from 4.3.6 to 4.4.0 by @dependabot in #966
Full Changelog: https://github.com/nextcloud-libraries/nextcloud-files/compare/v3.3.0...v3.3.1
- fix: Export
NewMenuEntryCategory
from package by @susnux in #960
- feat: Add and export
isFilenameValid
function by @susnux in #951 - feat(files): allow updating attributes by @skjnldsv in #947
- feat(new-menu): Allow to set the category for entries by @susnux in #952
- fix: Update workflows from organization by @susnux in #932
- fix(fileAction): cover parent getter in tests by @skjnldsv in #950
- fix(navigation): files import by @skjnldsv in #949
- fix(dav): Add fallback for owner of dav nodes on public shares by @susnux in #959
- feat(ci): add codecov bundler by @skjnldsv in #948
- chore(deps): Bump @nextcloud/auth from 2.2.1 to 2.3.0 by @dependabot
- chore(deps): Bump @nextcloud/l10n from 2.2.0 to 3.1.0 by @dependabot
- chore(deps): Bump @nextcloud/logger from 2.7.0 to 3.0.2 by @dependabot
- chore(deps): Bump @nextcloud/router from 3.0.0 to 3.0.1 by @dependabot
- chore(deps): Bump is-svg from 5.0.0 to 5.0.1 by @dependabot
- chore(deps): Bump webdav from 5.5.0 to 5.6.0 by @dependabot
Full Changelog: https://github.com/nextcloud-libraries/nextcloud-files/compare/v3.2.1...v3.3.0
- fix: Update NPM version to LTS version 10
- Updated development dependencies
Full Changelog: https://github.com/nextcloud-libraries/nextcloud-files/compare/v3.1.1...v3.2.0
- feat(dav): Make getFavoriteNodes cancelable by @Pytal in #923
- Updated webdav from 5.4.0 to 5.5.0
- Updated development dependencies
- fix(dav): various typings and owner string cast by @skjnldsv in #882
- fix(dav): remove sharing attributes from default dav fetch and change duplicate registration from
error
towarn
by @skjnldsv in #902
- Update
@nextcloud/router
from 2.2.1 to 3.0.0 - Update
webdav
from 5.3.2 to 5.4.0
- enh(dav): Allow to set custom headers when creating the DAV client by @susnux in #849
- fix(Node): Handle slash as root path for public webdav endpoint by @susnux in #847
- fix(dav): davResultToNode real owner by @skjnldsv in #862
- Update webdav from 5.3.0 to 5.3.1
- Update dev dependencies
- Node requirements are now node 20 and npm 9
- Lots of new APIs:
Node
standards: https://nextcloud-libraries.github.io/nextcloud-files/classes/Node.htmlFileAction
: https://nextcloud-libraries.github.io/nextcloud-files/classes/FileAction.htmlHeader
: https://nextcloud-libraries.github.io/nextcloud-files/classes/Header.htmlView
: https://nextcloud-libraries.github.io/nextcloud-files/classes/View.html- Works in sync with
Column
: https://nextcloud-libraries.github.io/nextcloud-files/classes/Column.html
- Works in sync with
- Lots of changes with Nextcloud 28, please see server changelog as well
- Add context to getEntries by @skjnldsv in #484
- Add DAV functions for fetching nodes from Nextcloud by @susnux in #706
- Add File and Folder API by @skjnldsv in #501
- Add newFileMenu and refactor library with rollup by @skjnldsv in #420
- Also use context from exposed method by @skjnldsv in #486
- feat: add action title by @skjnldsv in #767
- feat: add FileListHeader by @skjnldsv in #717
- feat: migrate Navigation and update FileAction from server by @skjnldsv in #732
- feat: provide fileList names as newFileMenu handler argument by @skjnldsv in #752
- feat: support nested actions by @skjnldsv in #814
- feat: support new file menu entry order by @skjnldsv in #781
- feat: use Folder as filemenu context by @skjnldsv in #731
- feat(actions): also test doc build on pull requests by @skjnldsv in #621
- feat(dav): Add "recent files" SEARCH payload as an export by @susnux in #710
- feat(FileAction): add file action support by @skjnldsv in #608
- feat(files): add encodedSource by @skjnldsv in #794
- feat(files): add node status by @skjnldsv in #744
- feat(files): update mtime on attributes tampering by @skjnldsv in #602
- feat(node): allow and recommend to provide a specific root by @skjnldsv in #574
- feat(parseFileSize): Added
parseFileSize
function to parse a human readable file size to number of bytes by @susnux in #769 - feat(permissions): add webdav permissions parser by @skjnldsv in #565
- Fix
resultToNode
by adding some documenation how to use by @susnux in #741 - Fix decimal prefixes and add option for binary prefixes per IEC 80000-13 by @Zipdox in #536
- Fix templateName usage and errors strings by @skjnldsv in #494
- fix: allow undefined properties in File and Folder by @skjnldsv in #683
- fix: also export Node by @skjnldsv in #573
- fix: Bring back Typescript definitions by @susnux in #712
- fix: Do not export the declaration of window.OC by @skjnldsv in #667
- fix: do not update mtime if not already defined by @skjnldsv in #709
- fix: fileid definition and fallback by @skjnldsv in #681
- fix: force bundle
is-svg
by @skjnldsv in #740 - fix: getNewFileMenuEntries usage by @skjnldsv in #734
- fix: headers and actions empty variable init by @skjnldsv in #724
- fix: Node import type by @skjnldsv in #754
- fix: prevent invalid roots to be defined by @skjnldsv in #577
- fix: use Node and not string for the new file menu handler arg by @skjnldsv in #753
- fix!(humanFileSize): Revert changes to default file sizes by @susnux in #822
- fix(dav): Fix DAV functions to make work with them easier by @susnux in #725
- fix(dav): use of webdav library by @pulsejet in #821
- fix(fileActions): improve typing and add silent actions by @skjnldsv in #625
- fix(formatFileSize): Fix default value for
binaryPrefixes
by @susnux in #770 - fix(newfilemenu): better sorting and proper fallback to displayName by @skjnldsv in #806
- fix(newfilemenu): fix handler requirement, deprecate iconClass and fix context by @skjnldsv in #742
- fix(node): allow negative file ids by @skjnldsv in #716
- fix(node): default permissions should be NONE and fix undefined return by @skjnldsv in #630
- Replace deprecated String.prototype.substr() by @CommanderRoot in #390
Full Changelog: https://github.com/nextcloud-libraries/nextcloud-files/compare/v2.1.0...v3.0.0
- Dependency updates
- Browserslist config updated, which means some older browsers are not supported anymore
- Dependency updates
- formatFileSize works without the global OC
- Dependency updates
- Dependency updates
- Update vulnerable packages