Skip to content

Commit

Permalink
changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
EmrysMyrddin committed Jul 10, 2024
1 parent 95797da commit 3e0ba79
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 9 deletions.
25 changes: 25 additions & 0 deletions .changeset/twenty-camels-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
'@envelop/response-cache': minor
---

Deprecate `ttlPerType` in favor of `ttlPerSchemaCoordinate`, for a more streamlined API

## Migration instructions

If you where using `ttlPerType`, you can merge the object into the `ttlPerSchemaCoordinate`, the
syntax doesn't change.

```diff
useResponseCache({
session: null,
- ttlPerType: {
- User: 10_000,
- Profile: 600_000,
- },
ttlPerSchemaCoordinate: {
'Query.me': 0
+ User: 10_000,
+ Profile: 600_000,
}
})
```
26 changes: 17 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3e0ba79

Please sign in to comment.