You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+16-7Lines changed: 16 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,12 @@
1
1
# @apollo/datasource-rest
2
2
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
+
3
10
## 5.0.0
4
11
5
12
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
11
18
At a higher level, the most notable changes include:
12
19
13
20
#### 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.
18
26
19
27
#### Additive
20
-
* Introduce a public `fetch` method, giving access to the full `Response` object
0 commit comments