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 4825773 commit f80de26
Show file tree
Hide file tree
Showing 39 changed files with 178 additions and 151 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.

8 changes: 0 additions & 8 deletions .changeset/slimy-shirts-bow.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/stupid-cherries-join.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/tricky-ears-add.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), [#3015](https://github.com/urql-graphql/urql/pull/3015), and [#3022](https://github.com/urql-graphql/urql/pull/3022))
- @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), [#3015](https://github.com/urql-graphql/urql/pull/3015), and [#3022](https://github.com/urql-graphql/urql/pull/3022))
- @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
14 changes: 14 additions & 0 deletions exchanges/populate/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @urql/exchange-populate

## 1.1.0

### Minor Changes

- Introduce `maxDepth` and `skipType` into the `populateExchange`, these options allow you to specify
the maximum depth a mutation should be populated as well as which types should not be counted towards
this depth
Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#3023](https://github.com/urql-graphql/urql/pull/3023))

### Patch Changes

- 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), [#3015](https://github.com/urql-graphql/urql/pull/3015), and [#3022](https://github.com/urql-graphql/urql/pull/3022))
- @urql/core@3.2.0

## 1.0.0

### Major Changes
Expand Down
4 changes: 2 additions & 2 deletions exchanges/populate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@urql/exchange-populate",
"version": "1.0.0",
"version": "1.1.0",
"description": "An exchange that automaticcally populates the mutation selection body",
"sideEffects": false,
"homepage": "https://formidable.com/open-source/urql/docs/advanced/auto-populate-mutations",
Expand Down 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
18 changes: 18 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @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))
- Expose consistent `GraphQLRequestParams` utility type from which `GraphQLRequest`s are created in all bindings
Submitted by [@kitten](https://github.com/kitten) (See [#3022](https://github.com/urql-graphql/urql/pull/3022))

## 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
9 changes: 9 additions & 0 deletions packages/preact-urql/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @urql/preact

## 3.0.3

### Patch Changes

- ⚠️ Fix type utilities turning the `variables` properties optional when a type from `TypedDocumentNode` has no `Variables` or all optional `Variables`. Previously this would break for wrappers, e.g. in code generators, or when the type didn't quite match what we'd expect
Submitted by [@kitten](https://github.com/kitten) (See [#3022](https://github.com/urql-graphql/urql/pull/3022))
- 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), [#3015](https://github.com/urql-graphql/urql/pull/3015), and [#3022](https://github.com/urql-graphql/urql/pull/3022))
- @urql/core@3.2.0

## 3.0.2

### Patch Changes
Expand Down
Loading

0 comments on commit f80de26

Please sign in to comment.