Skip to content

Commit 8070943

Browse files
Version Packages (#243)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent dfb8bcc commit 8070943

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.changeset/gorgeous-timers-relax.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# @apollo/datasource-rest
22

3+
## 6.1.0
4+
5+
### Minor Changes
6+
7+
- [#242](https://github.com/apollographql/datasource-rest/pull/242) [`dfb8bcc`](https://github.com/apollographql/datasource-rest/commit/dfb8bccce5e26247e7d5f9428eb1ca8d5dfaef08) Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Add optional `url` parameter to `didEncounterErrors` hook
8+
9+
In previous versions of `RESTDataSource`, the URL of the request was available on the `Request` object passed in to the hook. The `Request` object is no longer passed as an argument, so this restores the availability of the `url` to the hook.
10+
11+
This is optional for now in order to keep this change forward compatible for existing `this.didEncounterErrors` call sites in userland code. In the next major version, this might become a required parameter.
12+
313
## 6.0.1
414

515
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@apollo/datasource-rest",
33
"description": "REST DataSource for Apollo Server v4",
4-
"version": "6.0.1",
4+
"version": "6.1.0",
55
"author": "Apollo <[email protected]>",
66
"license": "MIT",
77
"repository": {

0 commit comments

Comments
 (0)