Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 9, 2023
1 parent f4464ba commit 562f59e
Show file tree
Hide file tree
Showing 32 changed files with 129 additions and 127 deletions.
5 changes: 0 additions & 5 deletions .changeset/afraid-gorillas-hope.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/clean-tables-exercise.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/curly-avocados-buy.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/giant-tables-help.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/nine-dancers-film.md

This file was deleted.

38 changes: 0 additions & 38 deletions .changeset/perfect-lobsters-kiss.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/popular-carpets-compare.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silent-emus-brake.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/stupid-cobras-clap.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/thirty-pears-lay.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wet-buses-hide.md

This file was deleted.

47 changes: 47 additions & 0 deletions exchanges/auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,52 @@
# Changelog

## 2.0.0

### Major Changes

- Implement new `authExchange` API, which removes the need for an `authState` (i.e. an internal authentication state) and removes `getAuth`, replacing it with a separate `refreshAuth` flow.
The new API requires you to now pass an initializer function. This function receives a `utils`
object with `utils.mutate` and `utils.appendHeaders` utility methods.
It must return the configuration object, wrapped in a promise, and this configuration is similar to
what we had before, if you're migrating to this. Its `refreshAuth` method is now only called after
authentication errors occur and not on initialization. Instead, it's now recommended that you write
your initialization logic in-line.
```js
authExchange(async utils => {
let token = localStorage.getItem('token');
let refreshToken = localStorage.getItem('refreshToken');
return {
addAuthToOperation(operation) {
return utils.appendHeaders(operation, {
Authorization: `Bearer ${token}`,
});
},
didAuthError(error) {
return error.graphQLErrors.some(
e => e.extensions?.code === 'FORBIDDEN'
);
},
async refreshAuth() {
const result = await utils.mutate(REFRESH, { token });
if (result.data?.refreshLogin) {
token = result.data.refreshLogin.token;
refreshToken = result.data.refreshLogin.refreshToken;
localStorage.setItem('token', token);
localStorage.setItem('refreshToken', refreshToken);
}
},
};
});
```
Submitted by [@kitten](https://github.com/kitten) (See [#3012](https://github.com/urql-graphql/urql/pull/3012))
### Patch Changes
- ⚠️ Fix `willAuthError` not being called for operations that are waiting on the authentication state to update. This can actually lead to a common issue where operations that came in during the authentication initialization (on startup) will never have `willAuthError` called on them. This can cause an easy mistake where the initial authentication state is never checked to be valid
Submitted by [@kitten](https://github.com/kitten) (See [#3017](https://github.com/urql-graphql/urql/pull/3017))
- Updated dependencies (See [#3007](https://github.com/urql-graphql/urql/pull/3007), [#2962](https://github.com/urql-graphql/urql/pull/2962), [#3007](https://github.com/urql-graphql/urql/pull/3007), and [#3015](https://github.com/urql-graphql/urql/pull/3015))
- @urql/[email protected]
## 1.0.0
### Major Changes
Expand Down
4 changes: 2 additions & 2 deletions exchanges/auth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@urql/exchange-auth",
"version": "1.0.0",
"version": "2.0.0",
"description": "An exchange for managing authentication and token refresh in urql",
"sideEffects": false,
"homepage": "https://formidable.com/open-source/urql/docs/",
Expand Down Expand Up @@ -48,7 +48,7 @@
"prepublishOnly": "run-s clean build"
},
"dependencies": {
"@urql/core": ">=3.1.1",
"@urql/core": ">=3.2.0",
"wonka": "^6.0.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exchanges/context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"prepublishOnly": "run-s clean build"
},
"dependencies": {
"@urql/core": ">=3.1.1",
"@urql/core": ">=3.2.0",
"wonka": "^6.0.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exchanges/execute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"prepublishOnly": "run-s clean build"
},
"dependencies": {
"@urql/core": ">=3.1.1",
"@urql/core": ">=3.2.0",
"wonka": "^6.0.0"
},
"peerDependencies": {
Expand Down
23 changes: 23 additions & 0 deletions exchanges/graphcache/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @urql/exchange-graphcache

## 5.2.0

### Minor Changes

- Add `isOfflineError` option to the `offlineExchange` to allow it to be customized to different conditions to determine whether an operation has failed because of a network error
Submitted by [@robertherber](https://github.com/robertherber) (See [#3020](https://github.com/urql-graphql/urql/pull/3020))
- Allow `updates` config to react to arbitrary type updates other than just `Mutation` and `Subscription` fields.
You’ll now be able to write updaters that react to any entity field being written to the cache,
which allows for more granular invalidations. **Note:** If you’ve previously used `updates.Mutation`
and `updated.Subscription` with a custom schema with custom root names, you‘ll get a warning since
you’ll have to update your `updates` config to reflect this. This was a prior implementation
mistake!
Submitted by [@kitten](https://github.com/kitten) (See [#2979](https://github.com/urql-graphql/urql/pull/2979))

### Patch Changes

- ⚠️ Fix regression which caused partial results, whose refetches were blocked by the looping protection, to not have a `stale: true` flag added to them. This is a regression from https://github.com/urql-graphql/urql/pull/2831 and only applies to `cacheExchange`s that had the `schema` option set
Submitted by [@kitten](https://github.com/kitten) (See [#2999](https://github.com/urql-graphql/urql/pull/2999))
- Add `invariant` to data layer that prevents cache writes during cache query operations. This prevents `cache.writeFragment`, `cache.updateQuery`, and `cache.link` from being called in `resolvers` for instance
Submitted by [@kitten](https://github.com/kitten) (See [#2978](https://github.com/urql-graphql/urql/pull/2978))
- Updated dependencies (See [#3007](https://github.com/urql-graphql/urql/pull/3007), [#2962](https://github.com/urql-graphql/urql/pull/2962), [#3007](https://github.com/urql-graphql/urql/pull/3007), and [#3015](https://github.com/urql-graphql/urql/pull/3015))
- @urql/core@3.2.0

## 5.0.9

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions exchanges/graphcache/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@urql/exchange-graphcache",
"version": "5.1.0",
"version": "5.2.0",
"description": "A normalized and configurable cache exchange for urql",
"sideEffects": false,
"homepage": "https://formidable.com/open-source/urql/docs/graphcache",
Expand Down Expand Up @@ -62,7 +62,7 @@
"prepublishOnly": "run-s clean build"
},
"dependencies": {
"@urql/core": ">=3.1.1",
"@urql/core": ">=3.2.0",
"wonka": "^6.0.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exchanges/multipart-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"prepublishOnly": "run-s clean build"
},
"dependencies": {
"@urql/core": ">=3.1.1",
"@urql/core": ">=3.2.0",
"extract-files": "^11.0.0",
"wonka": "^6.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion exchanges/persisted-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"prepublishOnly": "run-s clean build"
},
"dependencies": {
"@urql/core": ">=3.1.1",
"@urql/core": ">=3.2.0",
"wonka": "^6.0.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exchanges/populate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"prepublishOnly": "run-s clean build"
},
"dependencies": {
"@urql/core": ">=3.1.1",
"@urql/core": ">=3.2.0",
"wonka": "^6.0.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exchanges/refocus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
},
"dependencies": {
"@urql/core": ">=3.1.1",
"@urql/core": ">=3.2.0",
"wonka": "^6.0.0"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion exchanges/request-policy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
},
"dependencies": {
"@urql/core": ">=3.1.1",
"@urql/core": ">=3.2.0",
"wonka": "^6.0.0"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion exchanges/retry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
},
"dependencies": {
"@urql/core": ">=3.1.1",
"@urql/core": ">=3.2.0",
"wonka": "^6.0.0"
},
"publishConfig": {
Expand Down
16 changes: 16 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @urql/core

## 3.2.0

### Minor Changes

- Update support for the "Incremental Delivery" payload specification, accepting the new `incremental` property on execution results, as per the specification. This will expand support for newer APIs implementing the more up-to-date specification
Submitted by [@kitten](https://github.com/kitten) (See [#3007](https://github.com/urql-graphql/urql/pull/3007))
- Update default `Accept` header to include `multipart/mixed` and `application/graphql-response+json`. The former seems to now be a defactor standard-accepted indication for support of the "Incremental Delivery" GraphQL over HTTP spec addition/RFC, and the latter is an updated form of the older `Content-Type` of GraphQL responses, so both the old and new one should now be included
Submitted by [@kitten](https://github.com/kitten) (See [#3007](https://github.com/urql-graphql/urql/pull/3007))

### Patch Changes

- Add TSDoc annotations to all external `@urql/core` APIs
Submitted by [@kitten](https://github.com/kitten) (See [#2962](https://github.com/urql-graphql/urql/pull/2962))
- ⚠️ Fix subscriptions not being duplicated when `hasNext` isn't set. The `hasNext` field is an upcoming "Incremental Delivery" field. When a subscription result doesn't set it we now set it to `true` manually. This indicates to the `dedupExchange` that no duplicate subscription operations should be started
Submitted by [@kitten](https://github.com/kitten) (See [#3015](https://github.com/urql-graphql/urql/pull/3015))

## 3.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@urql/core",
"version": "3.1.1",
"version": "3.2.0",
"description": "The shared core for the highly customizable and versatile GraphQL client",
"sideEffects": false,
"homepage": "https://formidable.com/open-source/urql/docs/",
Expand Down
2 changes: 1 addition & 1 deletion packages/preact-urql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"preact": ">= 10.0.0"
},
"dependencies": {
"@urql/core": "^3.1.1",
"@urql/core": "^3.2.0",
"wonka": "^6.0.0"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-urql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"react": ">= 16.8.0"
},
"dependencies": {
"@urql/core": "^3.1.1",
"@urql/core": "^3.2.0",
"wonka": "^6.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/storybook-addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"prepublishOnly": "run-s clean build"
},
"dependencies": {
"@urql/core": "^3.1.1",
"@urql/core": "^3.2.0",
"wonka": "^6.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte-urql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"svelte": "^3.0.0"
},
"dependencies": {
"@urql/core": "^3.1.1",
"@urql/core": "^3.2.0",
"wonka": "^6.0.0"
},
"devDependencies": {
Expand Down
9 changes: 9 additions & 0 deletions packages/vue-urql/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @urql/vue

## 1.0.5

### Patch Changes

- Allow a `Client` provided using `provideClient` to be used in the same component it's been provided in
Submitted by [@kitten](https://github.com/kitten) (See [#3018](https://github.com/urql-graphql/urql/pull/3018))
- Updated dependencies (See [#3007](https://github.com/urql-graphql/urql/pull/3007), [#2962](https://github.com/urql-graphql/urql/pull/2962), [#3007](https://github.com/urql-graphql/urql/pull/3007), and [#3015](https://github.com/urql-graphql/urql/pull/3015))
- @urql/core@3.2.0

## 1.0.4

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/vue-urql/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@urql/vue",
"version": "1.0.4",
"version": "1.0.5",
"description": "A highly customizable and versatile GraphQL client for vue",
"sideEffects": false,
"homepage": "https://formidable.com/open-source/urql/docs/",
Expand Down Expand Up @@ -58,7 +58,7 @@
"vue": "^2.7.0 || ^3.0.0"
},
"dependencies": {
"@urql/core": "^3.1.1",
"@urql/core": "^3.2.0",
"wonka": "^6.0.0"
},
"publishConfig": {
Expand Down
Loading

0 comments on commit 562f59e

Please sign in to comment.