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

+73 -75
-5
.changeset/curly-bags-tap.md
··· 1 - --- 2 - 'next-urql': patch 3 - --- 4 - 5 - Prevent serialization of the `Client` for `withUrqlClient` even if the target component doesn't have a `getInitialProps` method. Before this caused the client to not be initialised correctly on the client-side.
-5
.changeset/rich-eels-shop.md
··· 1 - --- 2 - '@urql/exchange-graphcache': patch 3 - --- 4 - 5 - Add warning for queries that traverse an Operation Root Type (Mutation / Subscription types occuring in a query result)
-39
.changeset/strange-donuts-listen.md
··· 1 - --- 2 - '@urql/svelte': minor 3 - --- 4 - 5 - Refactor all operations to allow for more use-cases which preserve state and allow all modes of Svelte to be applied to urql. 6 - 7 - ``` 8 - // Standard Usage: 9 - mutate({ query, variables })() 10 - 11 - // Subscribable Usage: 12 - $: result = mutate({ query, variables }); 13 - 14 - // Curried Usage 15 - const executeMutation = mutate({ query, variables }); 16 - const onClick = () => executeMutation(); 17 - 18 - // Curried Usage with overrides 19 - const executeMutation = mutate({ query }); 20 - const onClick = () => await executeMutation({ variables }); 21 - 22 - // Subscribable Usage (as before): 23 - $: result = query({ query: TestQuery, variables }); 24 - 25 - // Subscribable Usage which preserves state over time: 26 - const testQuery = query({ query: TestQuery }); 27 - // - this preserves the state even when the variables change! 28 - $: result = testQuery({ variables }); 29 - 30 - // Promise-based callback usage: 31 - const testQuery = query({ query: TestQuery }); 32 - const doQuery = async () => await testQuery; 33 - 34 - // Promise-based usage updates the subscribables! 35 - const testQuery = query({ query: TestQuery }); 36 - const doQuery = async () => await testQuery; 37 - // - doQuery will also update this result 38 - $: result = query({ query: TestQuery, variables }); 39 - ```
-5
.changeset/strong-games-scream.md
··· 1 - --- 2 - '@urql/core': patch 3 - --- 4 - 5 - Fix timing for out-of-band `client.reexecuteOperation` calls. This would surface in asynchronous caching scenarios, where no result would be delivered by the cache synchronously, while it still calls `client.reexecuteOperation` for e.g. a `network-only` request, which happens for `cache-and-network`. This issue becomes especially obvious in highly synchronous frameworks like Svelte.
-5
.changeset/thick-bees-decide.md
··· 1 - --- 2 - '@urql/exchange-graphcache': patch 3 - --- 4 - 5 - Fix storage implementation not preserving deleted values correctly or erroneously checking optimistically written entries for changes. This is fixed by adding a new default serializer to the `@urql/exchange-graphcache/default-storage` implementation, which will be incompatible with the old one.
-6
.changeset/tiny-tomatoes-bow.md
··· 1 - --- 2 - '@urql/exchange-graphcache': patch 3 - '@urql/core': patch 4 - --- 5 - 6 - Replace unnecessary `scheduleTask` polyfill with inline `Promise.resolve().then(fn)` calls.
+10
exchanges/graphcache/CHANGELOG.md
··· 1 1 # @urql/exchange-graphcache 2 2 3 + ## 3.0.1 4 + 5 + ### Patch Changes 6 + 7 + - Add warning for queries that traverse an Operation Root Type (Mutation / Subscription types occuring in a query result), by [@kitten](https://github.com/kitten) (See [#859](https://github.com/FormidableLabs/urql/pull/859)) 8 + - ⚠️ Fix storage implementation not preserving deleted values correctly or erroneously checking optimistically written entries for changes. This is fixed by adding a new default serializer to the `@urql/exchange-graphcache/default-storage` implementation, which will be incompatible with the old one, by [@kitten](https://github.com/kitten) (See [#866](https://github.com/FormidableLabs/urql/pull/866)) 9 + - Replace unnecessary `scheduleTask` polyfill with inline `Promise.resolve().then(fn)` calls, by [@kitten](https://github.com/kitten) (See [#861](https://github.com/FormidableLabs/urql/pull/861)) 10 + - Updated dependencies (See [#860](https://github.com/FormidableLabs/urql/pull/860) and [#861](https://github.com/FormidableLabs/urql/pull/861)) 11 + - @urql/core@1.12.1 12 + 3 13 ## 3.0.0 4 14 5 15 This major release comes with a couple of fixes and new **experimental offline support**, which
+2 -2
exchanges/graphcache/package.json
··· 1 1 { 2 2 "name": "@urql/exchange-graphcache", 3 - "version": "3.0.0", 3 + "version": "3.0.1", 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", ··· 65 65 "preset": "../../scripts/jest/preset" 66 66 }, 67 67 "dependencies": { 68 - "@urql/core": ">=1.12.0", 68 + "@urql/core": ">=1.12.1", 69 69 "wonka": "^4.0.14" 70 70 }, 71 71 "peerDependencies": {
+7
packages/core/CHANGELOG.md
··· 1 1 # @urql/core 2 2 3 + ## 1.12.1 4 + 5 + ### Patch Changes 6 + 7 + - ⚠️ Fix timing for out-of-band `client.reexecuteOperation` calls. This would surface in asynchronous caching scenarios, where no result would be delivered by the cache synchronously, while it still calls `client.reexecuteOperation` for e.g. a `network-only` request, which happens for `cache-and-network`. This issue becomes especially obvious in highly synchronous frameworks like Svelte, by [@kitten](https://github.com/kitten) (See [#860](https://github.com/FormidableLabs/urql/pull/860)) 8 + - Replace unnecessary `scheduleTask` polyfill with inline `Promise.resolve().then(fn)` calls, by [@kitten](https://github.com/kitten) (See [#861](https://github.com/FormidableLabs/urql/pull/861)) 9 + 3 10 ## 1.12.0 4 11 5 12 As always, please ensure that you deduplicate `@urql/core` when upgrading. Additionally
+1 -1
packages/core/package.json
··· 1 1 { 2 2 "name": "@urql/core", 3 - "version": "1.12.0", 3 + "version": "1.12.1", 4 4 "description": "The shared core for the highly customizable and versatile GraphQL client", 5 5 "sideEffects": false, 6 6 "homepage": "https://formidable.com/open-source/urql/docs/",
+13 -4
packages/next-urql/CHANGELOG.md
··· 1 1 # Changelog 2 2 3 + ## 1.0.1 4 + 5 + ### Patch Changes 6 + 7 + - Prevent serialization of the `Client` for `withUrqlClient` even if the target component doesn't have a `getInitialProps` method. Before this caused the client to not be initialised correctly on the client-side, by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#857](https://github.com/FormidableLabs/urql/pull/857)) 8 + 3 9 ## 1.0.0 4 10 5 11 To migrate to the new version, you will now have to pass a single function argument, instead ··· 17 23 To look like the following: 18 24 19 25 ```js 20 - export default withUrqlClient((ssrExchange, ctx) => ({ 21 - url: '', 22 - exchanges: [dedupExchange, cacheExchange, ssrExchange, fetchExchange] 23 - }), { ssr: true }); 26 + export default withUrqlClient( 27 + (ssrExchange, ctx) => ({ 28 + url: '', 29 + exchanges: [dedupExchange, cacheExchange, ssrExchange, fetchExchange], 30 + }), 31 + { ssr: true } 32 + ); 24 33 ``` 25 34 26 35 The second argument may now be used to pass `{ ssr: true }` explicitly, when you are
+1 -1
packages/next-urql/package.json
··· 1 1 { 2 2 "name": "next-urql", 3 - "version": "1.0.0", 3 + "version": "1.0.1", 4 4 "description": "Convenience wrappers for using urql with NextJS.", 5 5 "sideEffects": false, 6 6 "homepage": "https://formidable.com/open-source/urql/docs/",
+37
packages/svelte-urql/CHANGELOG.md
··· 1 1 # @urql/svelte 2 2 3 + ## 0.3.0 4 + 5 + ### Minor Changes 6 + 7 + - Refactor all operations to allow for more use-cases which preserve state and allow all modes of Svelte to be applied to urql. 8 + ``` 9 + // Standard Usage: 10 + mutate({ query, variables })() 11 + // Subscribable Usage: 12 + $: result = mutate({ query, variables }); 13 + // Curried Usage 14 + const executeMutation = mutate({ query, variables }); 15 + const onClick = () => executeMutation(); 16 + // Curried Usage with overrides 17 + const executeMutation = mutate({ query }); 18 + const onClick = () => await executeMutation({ variables }); 19 + // Subscribable Usage (as before): 20 + $: result = query({ query: TestQuery, variables }); 21 + // Subscribable Usage which preserves state over time: 22 + const testQuery = query({ query: TestQuery }); 23 + // - this preserves the state even when the variables change! 24 + $: result = testQuery({ variables }); 25 + // Promise-based callback usage: 26 + const testQuery = query({ query: TestQuery }); 27 + const doQuery = async () => await testQuery; 28 + // Promise-based usage updates the subscribables! 29 + const testQuery = query({ query: TestQuery }); 30 + const doQuery = async () => await testQuery; 31 + // - doQuery will also update this result 32 + $: result = query({ query: TestQuery, variables }); 33 + ``` 34 + 35 + ### Patch Changes 36 + 37 + - Updated dependencies (See [#860](https://github.com/FormidableLabs/urql/pull/860) and [#861](https://github.com/FormidableLabs/urql/pull/861)) 38 + - @urql/core@1.12.1 39 + 3 40 ## 0.2.4 4 41 5 42 ### Patch Changes
+2 -2
packages/svelte-urql/package.json
··· 1 1 { 2 2 "name": "@urql/svelte", 3 - "version": "0.2.4", 3 + "version": "0.3.0", 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/", ··· 55 55 "svelte": "^3.0.0" 56 56 }, 57 57 "dependencies": { 58 - "@urql/core": "^1.12.0", 58 + "@urql/core": "^1.12.1", 59 59 "wonka": "^4.0.14" 60 60 }, 61 61 "devDependencies": {