Skip to content

Commit

Permalink
Export cache types (#1507)
Browse files Browse the repository at this point in the history
* Export types to make creating custom cached 3P clients easier

* Add changeset

* don't export AllCacheOptions
  • Loading branch information
juanpprieto authored Nov 15, 2023
1 parent 2bff9fc commit a9b8bcd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/good-plums-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/hydrogen': patch
---

Export caching types to make creating custom clients easier in typescript
3 changes: 3 additions & 0 deletions packages/hydrogen/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ export {
CacheNone,
CacheShort,
generateCacheControlHeader,
type CachingStrategy,
type NoStoreStrategy,
} from './cache/strategies';
export {InMemoryCache} from './cache/in-memory';
export {type CacheKey} from './cache/fetch';

export {storefrontRedirect} from './routing/redirect';
export {graphiqlLoader} from './routing/graphiql';
Expand Down

0 comments on commit a9b8bcd

Please sign in to comment.