Skip to content

v60.0.0

Choose a tag to compare

@cozy-bot cozy-bot released this 17 Jul 13:08
· 131 commits to master since this release

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
    a document.relationshipName is always defined, anymore.
    As an alternative, it is possible to pass autoHydrate 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.