Skip to content

Migrate to Rollup with cache persistence support#306

Open
nadeem-cs wants to merge 2 commits intodevelopmentfrom
version5
Open

Migrate to Rollup with cache persistence support#306
nadeem-cs wants to merge 2 commits intodevelopmentfrom
version5

Conversation

@nadeem-cs
Copy link
Contributor

  • Introduce cache persistence as a separate plugin, requiring users to implement persistanceStore for cache policies.
  • Transition the build system from tsup to Rollup, enabling ESM and CJS formats.
  • Enhance the README to document host and region support.
  • Update the CHANGELOG for version 5.0.0 to reflect breaking changes and enhancements.

…lugin

- 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.
- Added rollup configuration for building the project with support for ESM and CJS formats.
- Updated package.json to include rollup plugins for commonjs, node resolution, and esbuild.
- Removed tsup configuration file and adjusted build scripts accordingly.
- Introduced a new TypeScript configuration for generating ESM declarations.
- Updated dependency checks in tests to reflect the transition to rollup.
@nadeem-cs nadeem-cs requested a review from a team as a code owner February 4, 2026 12:44
@github-actions
Copy link

github-actions bot commented Feb 4, 2026

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements
99.05% (-0.09% 🔻)
833/841
🟢 Branches
97.19% (+0.1% 🔼)
277/285
🟢 Functions
98.86% (+0.87% 🔼)
174/176
🟢 Lines
99.26% (-0.07% 🔻)
804/810
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢 image-transform.ts 100% 100% 100% 100%
🟢 string-extensions.ts 100% 100% 100% 100%
🟢 types.ts 100% 100% 100% 100%
🟢 query.ts 98.85% 93.44% 100% 99.42%
🟢 base-query.ts 97.37% 85.71% 100% 100%
🟢 pagination.ts 100% 100% 100% 100%
🟢 utils.ts 100% 100% 100% 100%
🟢 error-messages.ts 100% 66.67% 100% 100%
🟢 content-type.ts 100% 100% 100% 100%
🟢 entry.ts 100% 100% 100% 100%
🟢 entries.ts 100% 100% 100% 100%
🟢 contenttype-query.ts 100% 100% 100% 100%
🟢 global-field.ts 100% 100% 100% 100%
🟢 contentstack.ts 96.43% 97.83% 83.33% 96.39%
🟢 cache.ts 100% 100% 100% 100%
🟢 stack.ts 100% 100% 100% 100%
🟢 asset.ts 100% 100% 100% 100%
🟢 asset-query.ts 100% 100% 100% 100%
🟢 synchronization.ts 100% 100% 100% 100%
🟢 taxonomy-query.ts 100% 100% 100% 100%
🟢 global-field-query.ts 100% 100% 100% 100%
🔴 entry-queryable.ts 0% 100% 100% 0%

Test suite run success

629 tests passing in 31 suites.

Report generated by 🧪jest coverage report action from 1aed86f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant