Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Version Packages

+26 -27
-5
.changeset/little-chicken-ring.md
··· 1 - --- 2 - '@urql/exchange-graphcache': minor 3 - --- 4 - 5 - Implement refetch blocking for queries that are affected by optimistic update. When a query would normally be refetched, either because it was partial or a cache-and-network operation, we now wait if it touched optimistic data for that optimistic mutation to complete. This prevents optimistic update data from unexpectedly disappearing
-5
.changeset/long-rocks-give.md
··· 1 - --- 2 - '@urql/exchange-graphcache': patch 3 - --- 4 - 5 - Adjust mutation results priority to always override query results as they arrive, similarly to subscriptions. This will prevent race conditions when mutations are slow to execute at the cost of some consistency.
-5
.changeset/seven-onions-check.md
··· 1 - --- 2 - '@urql/exchange-graphcache': minor 3 - --- 4 - 5 - Implement optimistic mutation result flushing. Mutation results for mutation that have had optimistic updates will now wait for all optimistic mutations to complete at the same time before being applied to the cache. This sometimes does delay cache updates to until after multiple mutations have completed, but it does prevent optimistic data from being accidentally committed permanently, which is more intuitive.
-5
.changeset/smart-adults-suffer.md
··· 1 - --- 2 - '@urql/svelte': patch 3 - --- 4 - 5 - Update `mutate` helper to return a Promise directly rather than a lazy Promise-like object.
-5
.changeset/spotty-maps-kick.md
··· 1 - --- 2 - '@urql/exchange-graphcache': patch 3 - --- 4 - 5 - Improve warning and error console output in development by cleaning up the GraphQL trace stack.
+18
exchanges/graphcache/CHANGELOG.md
··· 1 1 # @urql/exchange-graphcache 2 2 3 + ## 2.4.0 4 + 5 + This release heavily improves on the intuitiveness of how Optimistic Updates work. It ensures that 6 + optimistic updates aren't accidentally discarded, by temporarily blocking some refetches when 7 + necessary. It also prevents optimistic mutation updates from becoming permanent, which could 8 + previously happen if an updater read optimistic data and rewrote it again. This isn't possible 9 + anymore as mutation results are applied as a batch. 10 + 11 + ### Minor Changes 12 + 13 + - Implement refetch blocking for queries that are affected by optimistic update. When a query would normally be refetched, either because it was partial or a cache-and-network operation, we now wait if it touched optimistic data for that optimistic mutation to complete. This prevents optimistic update data from unexpectedly disappearing, by [@kitten](https://github.com/kitten) (See [#750](https://github.com/FormidableLabs/urql/pull/750)) 14 + - Implement optimistic mutation result flushing. Mutation results for mutation that have had optimistic updates will now wait for all optimistic mutations to complete at the same time before being applied to the cache. This sometimes does delay cache updates to until after multiple mutations have completed, but it does prevent optimistic data from being accidentally committed permanently, which is more intuitive, by [@kitten](https://github.com/kitten) (See [#750](https://github.com/FormidableLabs/urql/pull/750)) 15 + 16 + ### Patch Changes 17 + 18 + - Adjust mutation results priority to always override query results as they arrive, similarly to subscriptions. This will prevent race conditions when mutations are slow to execute at the cost of some consistency, by [@kitten](https://github.com/kitten) (See [#745](https://github.com/FormidableLabs/urql/pull/745)) 19 + - Improve warning and error console output in development by cleaning up the GraphQL trace stack, by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#751](https://github.com/FormidableLabs/urql/pull/751)) 20 + 3 21 ## 2.3.8 4 22 5 23 ### Patch Changes
+1 -1
exchanges/graphcache/package.json
··· 1 1 { 2 2 "name": "@urql/exchange-graphcache", 3 - "version": "2.3.8", 3 + "version": "2.4.0", 4 4 "description": "A normalized and configurable cache exchange for urql", 5 5 "sideEffects": false, 6 6 "homepage": "https://formidable.com/open-source/urql/docs/graphcache",
+6
packages/svelte-urql/CHANGELOG.md
··· 1 1 # @urql/svelte 2 2 3 + ## 0.2.2 4 + 5 + ### Patch Changes 6 + 7 + - Update `mutate` helper to return a Promise directly rather than a lazy Promise-like object, by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#758](https://github.com/FormidableLabs/urql/pull/758)) 8 + 3 9 ## 0.2.1 4 10 5 11 ### Patch Changes
+1 -1
packages/svelte-urql/package.json
··· 1 1 { 2 2 "name": "@urql/svelte", 3 - "version": "0.2.1", 3 + "version": "0.2.2", 4 4 "description": "A highly customizable and versatile GraphQL client for Svelte", 5 5 "sideEffects": false, 6 6 "homepage": "https://formidable.com/open-source/urql/docs/",