Skip to content

Migrate to Rollup with cache persistence support#306

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

Migrate to Rollup with cache persistence support#306
nadeem-cs wants to merge 4 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.31% (+0.17% 🔼)
866/872
🟢 Branches
97.19% (+0.1% 🔼)
277/285
🟢 Functions
97.91% (-0.08% 🔻)
187/191
🟢 Lines
99.52% (+0.19% 🔼)
822/826
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢 assets/index.ts 100% 100% 100% 100%
🟢 assets/asset.ts 100% 100% 100% 100%
🟢
... / image-transform.ts
100% 100% 100% 100%
🟢 common/types.ts 100% 100% 100% 100%
🟢
... / string-extensions.ts
100% 100% 100% 100%
🟢 query/index.ts 100% 100% 85.71% 100%
🟢 query/base-query.ts 97.37% 85.71% 100% 100%
🟢
... / pagination.ts
100% 100% 100% 100%
🟢 common/utils.ts 100% 100% 100% 100%
🟢 query/query.ts 98.85% 93.44% 100% 99.42%
🟢
... / error-messages.ts
100% 66.67% 100% 100%
🟢
... / entry-queryable.ts
100% 100% 100% 100%
🟢
... / contenttype-query.ts
100% 100% 100% 100%
🟢
... / asset-query.ts
100% 100% 100% 100%
🟢
... / taxonomy-query.ts
100% 100% 100% 100%
🟢
... / global-field-query.ts
100% 100% 100% 100%
🟢
... / index.ts
100% 100% 100% 100%
🟢 entries/index.ts 100% 100% 100% 100%
🟢 entries/entries.ts 100% 100% 100% 100%
🟢 entries/entry.ts 100% 100% 100% 100%
🟢
... / index.ts
100% 100% 100% 100%
🟢 stack/index.ts 100% 100% 66.67% 100%
🟢
... / contentstack.ts
96.43% 97.83% 83.33% 96.39%
🟢 cache/index.ts 100% 100% 100% 100%
🟢 stack/stack.ts 100% 100% 100% 100%
🟢 sync/index.ts 100% 100% 100% 100%
🟢
... / synchronization.ts
100% 100% 100% 100%

Test suite run success

629 tests passing in 31 suites.

Report generated by 🧪jest coverage report action from a4f5485

…d process

- Added new entries to .gitignore for compiled test artifacts.
- Removed jest.preset.js and updated jest.config files to streamline configuration.
- Updated package.json to reflect changes in Node.js version requirements and modified main module paths.
- Enhanced README with development instructions and updated Node.js version prerequisites.
- Deleted obsolete TypeScript configuration files and scripts related to bundling and testing.
- Introduced new sanity report scripts for better integration with Slack notifications.
- Updated file paths in .talismanrc to reflect new directory structure.
- Introduced new classes for asset management and image transformation in the src/assets directory.
- Added caching utilities and error messages to improve cache handling.
- Enhanced README with updated instructions for cache policies and persistence store usage.
- Updated CHANGELOG to reflect changes in caching and file structure adjustments.
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