Skip to content

Commit 485b02d

Browse files
Version Packages (#139)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent c9ffa7f commit 485b02d

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

.changeset/smart-sheep-jump.md

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

CHANGELOG.md

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

3+
## 5.0.1
4+
5+
### Patch Changes
6+
7+
- [#137](https://github.com/apollographql/datasource-rest/pull/137) [`c9ffa7f`](https://github.com/apollographql/datasource-rest/commit/c9ffa7f0de166f619eeed151d7a9b129aa917d59) Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Create intermediate request types (`PostRequest`, etc.) for consistency and export them.
8+
Export `DataSourceRequest`, `DataSourceConfig`, and `DataSourceFetchResult` types.
9+
310
## 5.0.0
411

512
Version 5 of `RESTDataSource` addresses many of the long-standing issues and PRs that have existed in this repository (and its former location in the `apollo-server` repository). While this version does include a number of breaking changes, our hope is that the updated API makes this package more usable and its caching-related behavior less surprising.
@@ -11,15 +18,17 @@ The entries below enumerate all of the changes in v5 in detail along with their
1118
At a higher level, the most notable changes include:
1219

1320
#### Breaking
14-
* Remove magic around request deduplication behavior and provide a hook to configure its behavior. Previously, requests were deduplicated forever by default. Now, only requests happening concurrently will be deduplicated (and subsequently cleared from the in-memory cache).
15-
* Cache keys now include the request method by default (no more overlap in GET and POST requests).
16-
* Remove the semantically confusing `didReceiveResponse` hook.
17-
* Paths now behave as links would in a web browser, allowing path segments to contain colons.
21+
22+
- Remove magic around request deduplication behavior and provide a hook to configure its behavior. Previously, requests were deduplicated forever by default. Now, only requests happening concurrently will be deduplicated (and subsequently cleared from the in-memory cache).
23+
- Cache keys now include the request method by default (no more overlap in GET and POST requests).
24+
- Remove the semantically confusing `didReceiveResponse` hook.
25+
- Paths now behave as links would in a web browser, allowing path segments to contain colons.
1826

1927
#### Additive
20-
* Introduce a public `fetch` method, giving access to the full `Response` object
21-
* Improve ETag header semantics (correctly handle `Last-Modified` header)
22-
* Introduce a public `head` class method for issuing `HEAD` requests
28+
29+
- Introduce a public `fetch` method, giving access to the full `Response` object
30+
- Improve ETag header semantics (correctly handle `Last-Modified` header)
31+
- Introduce a public `head` class method for issuing `HEAD` requests
2332

2433
### Major Changes
2534

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": "5.0.0",
4+
"version": "5.0.1",
55
"author": "Apollo <[email protected]>",
66
"license": "MIT",
77
"repository": {

0 commit comments

Comments
 (0)