Releases: cozy/cozy-client
Releases · cozy/cozy-client
v53.1.1
v53.1.0
v53.0.0
53.0.0 (2025-01-21)
Features
- models/sharing: Add verbs param to getSharingLink function (6a47793)
- models/sharing: Rename getSharingLink to makeSharingLink (d1f9557)
- permissionColl: Improve add method (b2d2c73)
- PermissionColl: Normalize params between create (1d7a4a2)
BREAKING CHANGES
- models/sharing: Rename getSharingLink to makeSharingLink.
This function creates or updates a share link.
- PermissionColl: By default, the name of the attribute returned
viacreateSharingLink
is no longeremail
butcode
.
You can either adapt your code accordingly or
simply add the option{ codes: 'email' }
when callingcreateSharingLink
.
v52.2.0
v52.1.1
v52.1.0
v52.0.1
v52.0.0
52.0.0 (2024-12-20)
Features
- Allow to enforce Stack link on request chain (6aac845)
BREAKING CHANGES
- CozyLink's request methods now takes an additional
options
argument that can be used to enforce usage of Stack link.
Although.request()
is meant to be an internal API, if your code
calls it, you'll want to introduce a new argument foroptions
. This
is also the case if you instanciate a new CozyLink with a handler
argument forrequest
Before:
// Initialization
new CozyLink((operation, result = '', forward) => {
return forward(operation, result + 'foo')
})
// Call
link.request(operation)
// Call with result and forward
link.request(operation, null, () => { /* do stuff */ })
After:
// Initialization
new CozyLink((operation, options, result = '', forward) => {
return forward(operation, options, result + 'foo')
})
// Call
link.request(operation, options)
// Call with result and forward
link.request(operation, options, null, () => { /* do stuff */ })