fix(deps): update dependency cozy-client to v57
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
cozy-client | dependencies | major | 48.7.0 -> 57.7.1 |
Release Notes
cozy/cozy-client
v57.7.1
Bug Fixes
- Ignore Twake prefix in getAppDisplayName (22e785c)
v57.7.0
Features
- Add sortApplicationsList in apps model (eed4fad)
- Use a shorter version of sortApplicationsList (ae7ae91)
57.6.1 (2025-04-03)
Bug Fixes
- Add opsqlite as devDep (3656709)
- Do not use transaction for read queries (e33547f)
- Handle
cozyPouchData
for sqlite (8427309) - Move sqliteDb in a native code file (32881bf)
- Pagination (619aa51)
- PersistCozyData for new docs (baaca44)
- SQL limit (3dc6ac8)
v57.6.0
Bug Fixes
- Do not store existing documents (9966988)
- Early return when there is no result (5c02d59)
- Relationships normalization (2a967d3)
- Simple query example (bd666b8)
Features
- Add queryEngine platform option (3f40ebc)
- Add SQLite QueryEngine (bbe89b3)
- Change PouchDB databases naming (48217cd)
- Do not include design doc in results (26cd93f)
v57.5.0
Features
- Migrate to Yarn 4 (3e08b74)
- Update peer deps version (30369af)
- Update ts config after Yarn 4 (db928e1)
v57.4.0
Features
v57.3.0
Bug Fixes
- Correctly handle document's store updates (96cef80)
Features
- Improve merge performances (6573f3b)
v57.2.0
Features
- Add ifMatch option to FileCollection methods (1e60e3c)
v57.1.0
Features
- Improve store query performance for id queries (449c7cd)
v57.0.0
Features
- Add a option to create a "shared drive" sharing (d78caee)
- Add FileCollection.getSharedDrivesDirectoryOrCreate (c7a36cf)
- Manage rules for shared drive sharing (542761e)
- Remove deprecated SharingCollection.share method (fdafda8)
- Remove sharingType argument from getSharingRules (7571509)
- Rename getOrCreateSharedDrivesDirectory (92aa9e4)
BREAKING CHANGES
- SharingCollection.share method has been removed. Use SharingCollection.create method.
v56.0.0
Features
- Remove fsnative model and mobile cordova helpers (ed23fda)
BREAKING CHANGES
- fsnative model has been removed. readMobileFile and doMobileUpload methods have been removed on file model. If you still have them in an app, you can safely remove the code.
v55.0.0
Bug Fixes
- Always use response body as FetchError reason (d664bc0)
Features
- Add option to always throw fetch errors (f05d997)
BREAKING CHANGES
-
The
reason
attribute of non-JSON fetch errors is no longer a string composed of the server response status and status text.We used to have 2 different kinds of values for the
reason
attribute ofFetchError
built inCozyStackClient
:- a string representation of the response body sent by the server (which may contain details about what when wrong, especially for 400 status responses) for JSON requests
- a string composed of the server response status and status text for non-JSON requests
In the non-JSON request situation, we lose information by not using the server response body as the reason of the
FetchError
which prevents users ofcozy-client
from reacting appropriately when receiving such an error to their request. Therefore we homogenize ourFetchError
instances by always using the server response body to build the errorreason
.We need to add a new
throwFetchErrors
option toCozyStackClient.fetch
to determine when to throw the error rather than emitting it as JSON requests expect the error to be thrown but we can't keep reading the response body from the JSON request method to build a new error to throw as it's already been read to build the emitted error. Besides, by doing so, we build the error only once, making sure we get the same kind no matter what type of request we make.
54.0.1 (2025-02-12)
Bug Fixes
- Allow disabling file name sanitization (7b33a66)
v54.0.1
Bug Fixes
- Allow disabling file name sanitization (7b33a66)
v54.0.0
Bug Fixes
- Correctly handle replication refreshToken (38ef6aa)
- Make refreshToken work in worker and node env (e392131), closes /github.com/cozy/cozy-drive/blob/master/src/targets/browser/index.ejs#L37
BREAKING CHANGES
- The
data-cozy-token
injection is no longer supported for refreshToken.
We used to rely on DOMParser to extract the new token during a
refreshToken procedure. However, DOMParser is a web API, which is not
available in web workers, nor in node env. Therefore, we implement our
own HTML parsing, relying on the data-cozy
attribute in HTML. We tried
using external libraries such as JSDom, fauxdom or linkedom, but got
build issues with all those libs. It was somehow manageable, but
required some additional config in consuming apps. As the HTML parsing
is quite basic, we decided that it is not worth the effort, and we now
do the parsing ourselves, making it available in web, workers, and node
envs.
As a consequence, we do not support the data-cozy-token
existence
anymore, as it would require extra work and is seen as deprecated for
several years now. If your app still somehow require it, you need to
migrate the app template to rely on data-cozy
like this:
53.2.1 (2025-02-05)
Bug Fixes
- deps: Upgrade cozy-pouch-link's parcel (4773f13)
v53.2.0
Features
- Add OAuth client last synced datetime update (0dcd553)
53.1.1 (2025-01-29)
Bug Fixes
v53.1.1
Bug Fixes
v53.1.0
Features
- Add helpers for encrypted files (715b77a)
v53.0.0
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
via
createSharingLink
is no longeremail
butcode
. You can either adapt your code accordingly or simply add the option{ codes: 'email' }
when callingcreateSharingLink
.
v52.2.0
Features
-
SharingColl: Add
shortcut
option to getDiscoveryLink (1d45ab2), closes cozy/cozy-stack#4503
52.1.1 (2025-01-15)
Bug Fixes
- konnectors: Avoid creating multiple konnector folders (14ec6c4)
v52.1.1
Bug Fixes
- konnectors: Avoid creating multiple konnector folders (14ec6c4)
v52.1.0
Features
- Add new qualification helpers (44688e2)
52.0.1 (2025-01-06)
Bug Fixes
- models/paper: Change date format (d054820)
v52.0.1
Bug Fixes
- models/paper: Change date format (d054820)
v52.0.0
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 */ })
v51.7.0
Features
- Add PerformanceApi to CozyClient (3e42ea4)
- Add PerformanceApi to CozyClient's store (8da242d)
- Add PerformanceApi to CozyPouchLink (247db09)
- Add PerformanceApi to StackLink (9c4f3b1)
51.6.1 (2024-12-16)
Note: Version bump only for package cozy-client
v51.6.1
Note: Version bump only for package cozy-client
v51.6.0
Features
- Do not query /jobs/triggers with a partialFilter (bb380fa)
v51.5.0
Bug Fixes
- Fn hasQualifications was returning true for null / undefined values (0b7a40a)
Features
- Add "none" translation in document themes (ac082de)
v51.4.0
Features
- Parallelize
loadInstanceOptionsFromStacks
queries (55dd291)
51.3.1 (2024-11-28)
Note: Version bump only for package cozy-client
v51.3.1
Note: Version bump only for package cozy-client
v51.3.0
Features
- Remove unused package @material-ui/core (8c2b582)
v51.2.0
Features
v51.1.0
Features
- Add legal_notice_url to InstanceData (12271e1)
51.0.1 (2024-11-15)
Bug Fixes
- Add missing fields on CozyMetadata for io.cozy.files (2457269)
v51.0.1
Bug Fixes
- Add missing fields on CozyMetadata for io.cozy.files (2457269)
v51.0.0
Features
BREAKING CHANGES
- you no longer need cozy-ui as dep for cozy-client usage
- you must change the import of devtools from
import CozyDevtools from 'cozy-client/dist/devtools'
toimport CozyDevtools from 'cozy-devtools'
v50.4.0
Features
-
FileCollection: Add getAll(), and so Q(
io.cozy.files
).getByIds (8463cc4)
50.3.1 (2024-11-06)
Bug Fixes
- Set correct type for
limitBy()
limit argument in DSL (658ec8c)
v50.3.1
Bug Fixes
- Set correct type for
limitBy()
limit argument in DSL (658ec8c)
v50.2.0
Features
- Add setLinks method (d59842e)
v50.1.0
Bug Fixes
- Limit type (bcf9f58)
Features
v50.0.0
Features
- Remove useClientErrors (d7f6079)
BREAKING CHANGES
-
useClientErrors
has been removed. You must havecozy-ui >= 112.0.0
and import it from thereimport { useClientErrors } from 'cozy-ui/transpiled/react/hooks/useClientErrors'
v49.8.0
Features
- Handle timeout errors for mango queries (aa1018a)
49.7.1 (2024-10-17)
Bug Fixes
- mango: Order alphabetically object inside arrays based on 1st key (0e86883)
v49.7.1
Bug Fixes
- mango: Order alphabetically object inside arrays based on 1st key (0e86883)
v49.6.0
Features
- Adding missing attributes inside FileDocument (f623c80)
v49.4.0
Bug Fixes
- RealTimeQueries: Unsubscribing from the good functions (dbeaed7)
Features
- Spread attributes from JSON:API at document root (f9f0ffd)
- Use JSON:API normalizer instead custom ones inside collection (d86616d)
- Use normalization from exported modules instead static functions (259235d)
49.3.1 (2024-10-09)
Note: Version bump only for package cozy-client
v49.3.1
Note: Version bump only for package cozy-client
v49.3.0
Features
- Add type for externalDataSource.creator (a3326b8)
v49.2.0
Features
- Apply data enhancement to realtime results for specific doctypes (7984d6d)
49.1.1 (2024-10-04)
Bug Fixes
- Revert some updates to file metadata types (b4c32a5)
v49.1.1
Bug Fixes
- Revert some updates to file metadata types (b4c32a5)
v49.0.0
Bug Fixes
- Await for
persistVirtualDocuments
result before finishing request (0a4816c), closes #1486 - Check for Flagship's downloadFile method support before calling it (6f36af5), closes #1518
-
cozy-pouch-link: Merge partialFilter into selector on
find
query (102999b), closes /github.com/cozy/cozy-client/commit/7c69838d2962be8f59ada6806d65761dbfe47082#diff-41848dd46551544674c134f359a5d7cddea46dd1e47c21da6814e1d1d585173dR482-R489 - Don't use attributes on HasManyFiles (65a6058)
- Don't use attributes on loadInstanceOptionsFromStack (88633b3)
- Don't use attributes on models/applications (857cc87)
- Don't use attributes on models/instance (ccc197e)
- Don't use attributes on useCapabilities (3425899)
- Don't use attributes on useFetchShortctut (29b96af)
- pouch-link: Add relationships to jsonapi's normalizeDoc (bf6ecb8)
- pouch-link: Make CozyPouchLink use native partial indexes (8777f7e)
- Remove
attributes
andmeta
attributes before persisting docs (a0f2be6), closes /github.com/cozy/cozy-client/pull/1486#discussion_r1713788468
Features
- Add
downloadFile
method infile
model (9c3b2f2) - Add a warning when an indexedField is missing in query selector (29ca22c), closes /github.com/cozy/cozy-client/pull/1506#discussion_r1716484732
- Ensure storageEngine implements correct interface (b70fe5b), closes /github.com/cozy/cozy-client/pull/1483#discussion_r1626141973
- Force _rev for queries with .select fields (15f8dc4), closes #1517 #1486
- Handle queries that fetch Konnectors by channel (374782f), closes cozy/cozy-home#2186
- Implement FlagshipLink (cd9b46c)
- Improve CozyLink typing and add
reset()
method (d2ece7e) - pouch-link: Add links to jsonapi's normalizeDoc (c0fb776)
- pouch-link: Allow to ignore warmup (5e6b843)
- pouch-link: Apply new index naming algorithm on CozyPouchLink (63990b8), closes #1495
- pouch-link: Handle missing selector predicates for indexed values (bc0e444)
- pouch-link: Handle missing selector predicates for sorted values (0169bcb)
- pouch-link: Support empty selector for PouchDB (40ea4c1)
- Rename FlagshipLink to WebFlagshipLink (e06163c)
- Upgrade cozy-intent to
2.23.0
(16965b8), closes cozy/cozy-libs#2562
Reverts
- Remove
cozyFromPouch
guard (43be3e7), closes /github.com/cozy/cozy-client/pull/1486#discussion_r1713802232 - Remove
ignoreWarmup
option (930b9e7), closes /github.com/cozy/cozy-client/pull/1506#discussion_r1716561921
BREAKING CHANGES
- cozy-client now requires cozy-intent >= 2.23.0 (used for offline support)
v48.25.0
Features
- Update file metadata types (fb1bbf0)
48.24.1 (2024-09-19)
Bug Fixes
- Remove realtimes.d.ts (e79b85b)
v48.24.1
Bug Fixes
- Remove realtimes.d.ts (e79b85b)
v48.24.0
Bug Fixes
- Remove ref to CozyClient as it breaks tests (circular dependency) (36a97e6)
Features
- Expose real time dispatch changes function (783ff77)
v48.23.0
Features
- Add announcements remote doctype for production (5dc3d8a)
v48.22.0
Features
- Rename
pôle emploi
inFrance Travail
(4eaaac7)
v48.21.0
Features
v48.20.0
Features
- Rename other_activity_document label (f29b4ae)
v48.19.0
Features
- Rename "numéro de la carte vitale" in "sécurité sociale" (26a12cf)
v48.18.0
Features
- Add locales for new announcements remote-doctype (3899675)
v48.17.0
Features
- Sort document when using executeFromStore option (fbd44b8)
v48.16.0
Features
- NextcloudFilesCollection: Add spacing (3e49c5d)
v48.15.0
Features
- Add spacing (4121015)
48.14.1 (2024-08-21)
Note: Version bump only for package cozy-client
v48.13.1
Bug Fixes
- Support executing queries from store (75d3228)
v48.13.0
Features
- Support executing queries from store (49ac876)
48.12.1 (2024-07-31)
Bug Fixes
v48.12.1
Bug Fixes
v48.12.0
Bug Fixes
- FileCollection: Copy to a specific folder (b39a498)
Features
- Make helper function to copy file to either Cozy or Nextcloud (8bff5f7)
- NextcloudFilesCollection: Add copy (55a5f5c)
48.11.2 (2024-07-30)
Bug Fixes
- move: Trash the conflicting file instead of the destination folder (ae8e6da)
48.11.1 (2024-07-23)
Bug Fixes
- resetQuery: Return null when the query is not found (0ff4cf0)
v48.11.2
Bug Fixes
- move: Trash the conflicting file instead of the destination folder (ae8e6da)
v48.11.1
Bug Fixes
- resetQuery: Return null when the query is not found (0ff4cf0)
v48.11.0
Features
- Add restore_path to NextcloudFile type (3d2f7f9)
v48.10.0
Features
- Improve type of NextcloudFile (077e6f8)
v48.9.0
Features
- nextcloud: Access content inside nextcloud trash (c63112f)
- nextcloud: Add deletePermanently method (98f9c33)
- nextcloud: Add emptyTrash method (83da9e3)
- nextcloud: Add restore method (1468f19)
v48.8.0
Features
- models/paper: Add isForeignPaper helper (dc454e6)
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.