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
makeNewDocumentAPI method (678c1dd)
BREAKING CHANGES
- the relationship hydration is made only if the
relationship exists in the document, so the developer should not assume
adocument.relationshipNameis always defined, anymore.
As an alternative, it is possible to passautoHydrateon
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.makeNewDocumentno 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.