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
chore: update to version 5.0.0 with cache persistence as a separate plugin
- Added support for cache persistence via the new `@contentstack/delivery-sdk-persistence` package.
- Updated README to include usage instructions for cache policies requiring a persistence store.
- Refactored cache handling to throw an error if `persistanceStore` is not provided when using cache policies.
- Removed the old persistence implementation from the codebase.
- Updated CHANGELOG for version 5.0.0 with breaking changes and enhancements.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,8 @@
1
+
### Version: 5.0.0
2
+
#### Date: Jan-30-2026
3
+
Breaking: Cache persistence is now a separate plugin. When using a cache policy other than `IGNORE_CACHE`, you must pass `cacheOptions.persistanceStore`. Install `@contentstack/delivery-sdk-persistence` and use `new PersistanceStore({ ... })` as the store. The SDK no longer bundles persistence code or accepts `storeType` in `cacheOptions`.
4
+
Enhancement: SDK defines only the `PersistanceStore` interface (getItem/setItem); full implementation lives in the plugin for a lighter core package.
5
+
1
6
### Version: 4.11.0
2
7
#### Date: Jan-19-2026
3
8
Enhancement: Integrated getContentstackEndpoint method of Utils SDK for endpoint selection
To use cache policies (`CACHE_THEN_NETWORK`, `CACHE_ELSE_NETWORK`, `NETWORK_ELSE_CACHE`), you must provide a persistence store via `cacheOptions.persistanceStore`. Install the optional persistence plugin and pass a `PersistanceStore` instance:
See [@contentstack/delivery-sdk-persistence](https://www.npmjs.com/package/@contentstack/delivery-sdk-persistence) for options (`storeType`, `maxAge`, custom storage).
0 commit comments