github urql-graphql/urql @urql/exchange-graphcache@3.0.0

latest releases: @urql/solid@0.1.0, @urql/next@1.1.2, @urql/exchange-graphcache@7.1.3...
4 years ago

This major release comes with a couple of fixes and new experimental offline support, which
we're very excited for! Please give it a try if your application is targeting Offline First!

To migrate to this new major version, check the major breaking changes below. Mainly you will have
to watch out for cache.invalidateQuery which has been removed. Instead you should now invalidate
individual entities and fields using cache.invalidate. Learn more about this method on our
docs.

Major Changes

  • Remove the deprecated populateExchange export from @urql/exchange-graphcache.
    If you're using the populateExchange, please install the seprate @urql/exchange-populate package and import it from there, by @kitten (See #840)
  • The deprecated cache.invalidateQuery() method has been removed. Please migrate over to cache.invalidate() instead, which operates on individual fields instead of queries, by @kitten (See #840)

Minor Changes

Patch Changes

  • ⚠️ Fix resolvers being executed for data even when data is currently written. This behaviour could lead to interference with custom updaters that update fragments or queries, e.g. an updater that was receiving paginated data due to a pagination resolver. We've determined that generally it is undesirable to have any resolvers run during the cache update (writing) process, since it may lead to resolver data being accidentally written to the cache or for resolvers to interfere with custom user updates, by @olistic (See #812)
  • Upgrade to a minimum version of wonka@^4.0.14 to work around issues with React Native's minification builds, which use uglify-es and could lead to broken bundles, by @kitten (See #842)
  • Updated dependencies (See #838 and #842)
    • @urql/core@1.12.0

Don't miss a new urql release

NewReleases is sending notifications on new releases.