Releases: cozy/cozy-client
Releases · cozy/cozy-client
v60.7.0
v60.6.0
v60.5.1
v60.5.0
v60.4.0
v60.3.0
v60.2.0
v60.1.1
v60.1.0
v60.0.0
60.0.0 (2025-07-17)
Bug Fixes
- Correctly fetch documents relationships (ff6e884)
Features
- Do not hydrate doc if the relationship does not exist (d369a33)
- Improve React performances by avoiding useless renders (13fafdf)
- Remove
makeNewDocument
API method (678c1dd)
BREAKING CHANGES
- the relationship hydration is made only if the
relationship exists in the document, so the developer should not assume
adocument.relationshipName
is always defined, anymore.
As an alternative, it is possible to passautoHydrate
on
cozy-client options to ease migration, e.g:
const newClient = new CozyClient({
schema,
autoHydrate: true
})
However, please not this has performance impact, as it forces
extra-check on store queries evaluation.
client.makeNewDocument
no longer exists, please
remove any code using it.
This method was not very useful and was relying on the full hydratation
of the schema relationships. This behaviour should be changed
eventually.