diff --git a/.changeset/heavy-rabbits-beam.md b/.changeset/heavy-rabbits-beam.md deleted file mode 100644 index e829cf9044..0000000000 --- a/.changeset/heavy-rabbits-beam.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@urql/core": patch ---- - -Support aborting in `withPromise` cases diff --git a/.changeset/moody-brooms-refuse.md b/.changeset/moody-brooms-refuse.md deleted file mode 100644 index 636a5dd7fa..0000000000 --- a/.changeset/moody-brooms-refuse.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': patch ---- - -Passthrough responses with content type of `text/*` as error messages. diff --git a/.changeset/spotty-ligers-play.md b/.changeset/spotty-ligers-play.md deleted file mode 100644 index aed5ec2223..0000000000 --- a/.changeset/spotty-ligers-play.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@urql/core': minor ---- - -Add `Accept` header to GraphQL HTTP requests. This complies to the specification but doesn't go as far as sending `Content-Type` which would throw a lot of APIs off. Instead, we'll now be sending an accept header for `application/graphql+json, application/json` to indicate that we comply with the GraphQL over HTTP protocol. -This also fixes headers merging to allow overriding `Accept` and `Content-Type` regardless of the user options' casing. diff --git a/.changeset/thin-worms-unite.md b/.changeset/thin-worms-unite.md deleted file mode 100644 index 0816221f5e..0000000000 --- a/.changeset/thin-worms-unite.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-graphcache': patch ---- - -Switch `isFragmentHeuristicallyMatching()` to always return `true` for writes, so that we give every fragment a chance to be applied and to write to the cache. diff --git a/.changeset/two-masks-draw.md b/.changeset/two-masks-draw.md deleted file mode 100644 index 9ecd9050ad..0000000000 --- a/.changeset/two-masks-draw.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-graphcache': patch ---- - -Fix default storage persisting data after `clear()` was called on it diff --git a/.changeset/wise-parents-yawn.md b/.changeset/wise-parents-yawn.md deleted file mode 100644 index 680f35b58a..0000000000 --- a/.changeset/wise-parents-yawn.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@urql/svelte': major ---- - -Reimplement Svelte with functional-only API. -We've gotten plenty of feedback and issues from the Svelte community about our prior -Svelte bindings. These bindings favoured a Store singleton to read and write to, -and a separate signal to start an operation. -Svelte usually however calls for a lot more flexibility, so we're returning the -API to a functional-only API again that serves to only create stores, which is more -similar to the original implementation. diff --git a/exchanges/graphcache/CHANGELOG.md b/exchanges/graphcache/CHANGELOG.md index ba9642870c..10424f58d8 100644 --- a/exchanges/graphcache/CHANGELOG.md +++ b/exchanges/graphcache/CHANGELOG.md @@ -1,5 +1,14 @@ # @urql/exchange-graphcache +## 4.4.1 + +### Patch Changes + +- Switch `isFragmentHeuristicallyMatching()` to always return `true` for writes, so that we give every fragment a chance to be applied and to write to the cache, by [@kitten](https://github.com/kitten) (See [#2455](https://github.com/FormidableLabs/urql/pull/2455)) +- ⚠️ Fix default storage persisting data after `clear()` was called on it, by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#2458](https://github.com/FormidableLabs/urql/pull/2458)) +- Updated dependencies (See [#2446](https://github.com/FormidableLabs/urql/pull/2446), [#2456](https://github.com/FormidableLabs/urql/pull/2456), and [#2457](https://github.com/FormidableLabs/urql/pull/2457)) + - @urql/core@2.5.0 + ## 4.4.0 ### Minor Changes diff --git a/exchanges/graphcache/package.json b/exchanges/graphcache/package.json index 14edb8bfef..d3eff671a8 100644 --- a/exchanges/graphcache/package.json +++ b/exchanges/graphcache/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-graphcache", - "version": "4.4.0", + "version": "4.4.1", "description": "A normalized and configurable cache exchange for urql", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/graphcache", @@ -65,7 +65,7 @@ "preset": "../../scripts/jest/preset" }, "dependencies": { - "@urql/core": ">=2.3.6", + "@urql/core": ">=2.5.0", "wonka": "^4.0.14" }, "peerDependencies": { diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index fbbde4f3aa..60f21e2420 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,17 @@ # @urql/core +## 2.5.0 + +### Minor Changes + +- Add `Accept` header to GraphQL HTTP requests. This complies to the specification but doesn't go as far as sending `Content-Type` which would throw a lot of APIs off. Instead, we'll now be sending an accept header for `application/graphql+json, application/json` to indicate that we comply with the GraphQL over HTTP protocol. + This also fixes headers merging to allow overriding `Accept` and `Content-Type` regardless of the user options' casing, by [@kitten](https://github.com/kitten) (See [#2457](https://github.com/FormidableLabs/urql/pull/2457)) + +### Patch Changes + +- Support aborting in `withPromise` cases, by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#2446](https://github.com/FormidableLabs/urql/pull/2446)) +- Passthrough responses with content type of `text/*` as error messages, by [@kitten](https://github.com/kitten) (See [#2456](https://github.com/FormidableLabs/urql/pull/2456)) + ## 2.4.4 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 369f756a57..321a5b882d 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@urql/core", - "version": "2.4.4", + "version": "2.5.0", "description": "The shared core for the highly customizable and versatile GraphQL client", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", diff --git a/packages/svelte-urql/CHANGELOG.md b/packages/svelte-urql/CHANGELOG.md index 77f74ea346..6e8145ca3a 100644 --- a/packages/svelte-urql/CHANGELOG.md +++ b/packages/svelte-urql/CHANGELOG.md @@ -1,5 +1,22 @@ # @urql/svelte +## 2.0.0 + +### Major Changes + +- Reimplement Svelte with functional-only API. + We've gotten plenty of feedback and issues from the Svelte community about our prior + Svelte bindings. These bindings favoured a Store singleton to read and write to, + and a separate signal to start an operation. + Svelte usually however calls for a lot more flexibility, so we're returning the + API to a functional-only API again that serves to only create stores, which is more + similar to the original implementation, by [@jonathanstanley](https://github.com/jonathanstanley) (See [#2370](https://github.com/FormidableLabs/urql/pull/2370)) + +### Patch Changes + +- Updated dependencies (See [#2446](https://github.com/FormidableLabs/urql/pull/2446), [#2456](https://github.com/FormidableLabs/urql/pull/2456), and [#2457](https://github.com/FormidableLabs/urql/pull/2457)) + - @urql/core@2.5.0 + ## 1.3.3 ### Patch Changes diff --git a/packages/svelte-urql/package.json b/packages/svelte-urql/package.json index 71fbd3f04b..0a475bd10d 100644 --- a/packages/svelte-urql/package.json +++ b/packages/svelte-urql/package.json @@ -1,6 +1,6 @@ { "name": "@urql/svelte", - "version": "1.3.3", + "version": "2.0.0", "description": "A highly customizable and versatile GraphQL client for Svelte", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", @@ -55,7 +55,7 @@ "svelte": "^3.0.0" }, "dependencies": { - "@urql/core": "^2.3.6", + "@urql/core": "^2.5.0", "wonka": "^4.0.14" }, "devDependencies": {