Skip to content

Commit

Permalink
[response-cache] update @envelop/response-cache with support of scope…
Browse files Browse the repository at this point in the history
…, defer and stream (#2993)

* [response-cache] support @CacheControl(scope: CacheControlScope)

* chore(dependencies): updated changesets for modified dependencies

* use metadata helper

* chore(dependencies): updated changesets for modified dependencies

* add tests for stream and defer directives

* changeset

* update envelop plugin to stable release

* chore(dependencies): updated changesets for modified dependencies

* add documentation

* fix typo

* chore(dependencies): updated changesets for modified dependencies

* give access to request instead of context in cache key factory

* Update packages/plugins/response-cache/package.json

Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>

* update lockfile

* chore(dependencies): updated changesets for modified dependencies

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
  • Loading branch information
3 people authored Sep 27, 2023
1 parent bf602ed commit 0c6625a
Show file tree
Hide file tree
Showing 8 changed files with 691 additions and 216 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@graphql-yoga/plugin-response-cache': patch
---
dependencies updates:
- Updated dependency [`@envelop/response-cache@^5.3.0`
↗︎](https://www.npmjs.com/package/@envelop/response-cache/v/5.3.0) (from `^5.1.0`, in
`dependencies`)
5 changes: 5 additions & 0 deletions .changeset/curly-walls-pretend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-yoga/plugin-response-cache': minor
---

support @cacheControl(scope: CacheControlScope), allowing to enforce cache depending on session
5 changes: 5 additions & 0 deletions .changeset/fifty-drinks-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-yoga/plugin-response-cache': minor
---

Add support for @stream and @defer directives
Loading

0 comments on commit 0c6625a

Please sign in to comment.