Skip to content

Commit c72a736

Browse files
committed
changeset
1 parent 02a62ac commit c72a736

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

.changeset/twenty-camels-wonder.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
'@envelop/response-cache': minor
3+
---
4+
5+
Deprecate `ttlPerType` in favor of `ttlPerSchemaCoordinate`, for a more streamlined API
6+
7+
## Migration instructions
8+
9+
If you where using `ttlPerType`, you can merge the object into the `ttlPerSchemaCoordinate`, the
10+
syntax doesn't change.
11+
12+
```diff
13+
useResponseCache({
14+
session: null,
15+
- ttlPerType: {
16+
- User: 10_000,
17+
- Profile: 600_000,
18+
- },
19+
ttlPerSchemaCoordinate: {
20+
'Query.me': 0
21+
+ User: 10_000,
22+
+ Profile: 600_000,
23+
}
24+
})
25+
```

pnpm-lock.yaml

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)