Changelog for 3.1.0 (2024-04-19)
The following sections list the changes in ownCloud SDK 3.1.0.
- Bugfix - Allow removing expiration dates from space shares: #1204
- Bugfix - Propfind reponse cut off: #1241
- Bugfix - Add missing headers: #8612
- Enhancement - Resource processing: #1109
- Enhancement - Share space with group: #1207
- Enhancement - Add notifications fields: #1234
- Enhancement - Add response to error object: #1236
- Enhancement - Add OCSError: #1237
- Enhancement - Search allow spaces endpoint: #1239
- Enhancement - Decide whether to fetch hidden shares from server: #4194
-
Bugfix - Allow removing expiration dates from space shares: #1204
We've fixed a bug where removing expiration dates from space shares was not possible.
-
Bugfix - Propfind reponse cut off: #1241
We've fixed a bug that caused the activelock information to be cut off the file info.
-
Bugfix - Add missing headers: #8612
Some requests were missing the headers which were given when initializing the SDK. This has been fixed.
-
Enhancement - Resource processing: #1109
We've added a processing property to the fileinfo if the server response is
HTTP/1.1 425 TOO EARLY
-
Enhancement - Share space with group: #1207
We've added a helper to share a space with a group.
-
Enhancement - Add notifications fields: #1234
This enhancement adds extra fields on the update share method to accommodate the changes in CS3APIs (https://cs3org.github.io/cs3apis/#cs3.sharing.link.v1beta1.CreatePublicShareRequest), as well as the method to send a reminder notification about a share.
-
Enhancement - Add response to error object: #1236
We've added the http response object to the error object, this allows developers to further process the error information.
-
Enhancement - Add OCSError: #1237
We've added the new OCSError class, this allows developers to further process the error information.
-
Enhancement - Search allow spaces endpoint: #1239
We've added the support for the spaces endpoint for the search. So it's not necessary to use the legacy files/ endpoint anymore.
-
Enhancement - Decide whether to fetch hidden shares from server: #4194
The getShares endpoint now accepts a show_hidden query parameter when fetching shares.
Changelog for 3.0.0 (2022-11-28)
The following sections list the changes in ownCloud SDK 3.0.0.
- Bugfix - Always add X-Request-ID: #1016
- Bugfix - Always add X-Requested-With header: #1020
- Bugfix - Optional no cache for public links: #1079
- Bugfix - Depth 0 PROPFIND on empty responses: #1128
- Change - Pass full trash bin path to methods of FilesTrash class: #1021
- Enhancement - Adjust share management to properly work with spaces: #1013
- Enhancement - Add blob resolveType: #1028
- Enhancement - Replace deprecated String.prototype.substr(): #1035
- Enhancement - Create quicklink: #1041
- Enhancement - Enforce
share_type
guest if applies: #1046 - Enhancement - Enable search results for ocis: #1057
- Enhancement - Send oc-etag on putFileContents and getFileContents methods: #1067
- Enhancement - Add overwrite flag for file move: #1073
- Enhancement - Add overwrite flag for file copy: #1087
- Enhancement - Add role api parameter and stop deleting other params: #1092
- Enhancement - Add range to search result: #1112
- Enhancement - Add token info endpoint support: #1126
- Enhancement - Add overwrite flag for public files move and copy: #7122
-
Bugfix - Always add X-Request-ID: #1016
We've removed a version check that omitted the
X-Request-ID
header value in request headers when the backend version was below v10.1.0. Since ownCloud Infinite Scale follows it's own versioning this caused oCIS not having the X-Request-ID in any request if below this version, hence preventing us from announcing the correct version for oCIS. -
Bugfix - Always add X-Requested-With header: #1020
We've added the
X-Requested-With
header to all requests as oC 10 is using this to determine whether it should treat certain requests as ajax requests or not (for example: ajax requests should never show an auth popup). -
Bugfix - Optional no cache for public links: #1079
Adds a new
noCache
option to the public links'download
method, which sets theCache-Control: no-cache
header. -
Bugfix - Depth 0 PROPFIND on empty responses: #1128
We fixed a bug where depth 0 PROPFINDs resulted in an exception when the response is empty. This was happening when requesting only certain props in the PROPFIND and those were not present.
-
Change - Pass full trash bin path to methods of FilesTrash class: #1021
Since incompatibility with spaces, we changed the way how the methods of the class FilesTrash(filesTrash.js) need to be called. Now it is mandatory to pass the full webDav(v2) path of the trash bin.
-
Enhancement - Adjust share management to properly work with spaces: #1013
This includes the following changes:
- Added a new method
shareSpaceWithUser
* Added the possibility to pass URL params to thedeleteShare
method * Added a newspace_ref
param when fetching or adding new shares
- Added a new method
-
Enhancement - Add blob resolveType: #1028
We now support blob as resolveType for requests in addition to text and arrayBuffer.
-
Enhancement - Replace deprecated String.prototype.substr(): #1035
We've replaced all occurrences of the deprecated String.prototype.substr() function with String.prototype.slice() which works similarly but isn't deprecated.
-
Enhancement - Create quicklink: #1041
We've added the option to define if a share link is of type quicklink or not.
owncloud/web#6605 #1041 owncloud/core#39167 cs3org/reva#2715
-
Enhancement - Enforce
share_type
guest if applies: #1046With oC10, the
share_type
is not set to guest, if a user shares a resource with a guest user, therefore we check if the propertyshare_with_user_type
is present and set toguest
, if so we manipulate theshare_type
property and set it to guest. -
Enhancement - Enable search results for ocis: #1057
We've enabled search results for ocis, which has been skipped before.
-
Enhancement - Send oc-etag on putFileContents and getFileContents methods: #1067
Due to server encoding, the ETag might differ from OC-ETag, therefore we emit both.
-
Enhancement - Add overwrite flag for file move: #1073
We've added an overwrite flag for the file move operation
-
Enhancement - Add overwrite flag for file copy: #1087
We've added an overwrite flag for the file copy operation
-
Enhancement - Add role api parameter and stop deleting other params: #1092
We've added the option to define a role when sharing a resource. Beside that we've stopped to delete certain other parameters when a
space_ref
is provided. -
Enhancement - Add range to search result: #1112
We've added the range property to the search result, so we can retrieve the found items, even if the search limit will be exceeded.
-
Enhancement - Add token info endpoint support: #1126
We've added support for the new token info endpoint.
-
Enhancement - Add overwrite flag for public files move and copy: #7122
We've added an overwrite flag for the public files move and copy operation
Changelog for 2.0.1 (2022-02-15)
The following sections list the changes in ownCloud SDK 2.0.1.
- Bugfix - Trashbin query: #1002
-
Bugfix - Trashbin query: #1002
We've brought back providing a query when listing trashbin contents. This got lost during the switch from webdav v1 to v2.
Changelog for 2.0.0 (2022-02-08)
The following sections list the changes in ownCloud SDK 2.0.0.
- Change - Remove webdav v1 api support: #962
- Change - Drop Internet Explorer support: #966
- Change - Pass full file or directory path to methods of Files class: #971
- Change - Use peerDependencies instead of dependencies: #979
-
Change - Remove webdav v1 api support: #962
The DAV api now uses dav v2 by default, webdav v1 has been entirely removed.
-
Change - Drop Internet Explorer support: #966
Since it's nearing its end-of-life, we've dropped polyfills for IE in favor of a smaller bundle size.
-
Change - Pass full file or directory path to methods of Files class: #971
Since incompatibility with spaces, we changed the way how the methods of the class Files(filesManagement.js) need to be called. Now it is mandatory to pass the full webDav(v2) path of a file or directory.
For example, before this change the path was: 'myfile.txt', with this change it is: 'files/admin/myfile.txt'
-
Change - Use peerDependencies instead of dependencies: #979
In the past, we used dependencies in package.json which lead to a big bundle size and increased the possibility that the same package with 2 different versions is part of the final bundle of the consuming application.
From now on, dependencies that are required to use the SDK are added to the peerDependencies section in package.json. The consuming application then has to add the dependency on its own and can decide which minor or bugfix version to use.
Changelog for 1.1.2 (2022-02-01)
The following sections list the changes in ownCloud SDK 1.1.2.
- Bugfix - Graceful reject for failing network request in OCS: #977
-
Bugfix - Graceful reject for failing network request in OCS: #977
When the network request inside a _makeOCSrequest failed it terminated the entire application instead of rejecting the promise. We now catch errors on the network request and reject the promise so that applications have a chance to handle the error.
Changelog for 1.1.0 (2022-01-26)
The following sections list the changes in ownCloud SDK 1.1.0.
- Enhancement - Previous releases and introducing semver: #10
-
Enhancement - Previous releases and introducing semver: #10
We created the ownCloud SDK to provide developers with a well documented and easy-to-use solution for interaction with ownCloud backends from their JavaScript applications.
While in the previous years, each successful CI run would publish a new version of the SDK, we have now switched to semantic versioning.
The following sections list the changes in ownCloud SDK 1.1.1.
- Bugfix - Always require default axios: #965