Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nextjs and data packages to ESM #746

Merged
merged 8 commits into from
May 31, 2024
Merged

Update nextjs and data packages to ESM #746

merged 8 commits into from
May 31, 2024

Conversation

agerard-godaddy
Copy link
Contributor

@agerard-godaddy agerard-godaddy commented May 10, 2024

Summary

Gets nextjs and data packages ESM-ready. Next Document-specific functions move to separate document export path. The withGasketData HOC now works with functional document components.

The @gasket/data package now exports a gasketData() function for more straightforward import and interface.

Supporting GasketActions and related documentation will need to be added with a fuller refactor to @gasket/plugin-response-data.

Changelog

@gasket/data

  • ESM-ready with gasketData() lookup function

@gasket/nextjs

  • ESM-ready with document export
  • withGasketData works with functional components

Test Plan

Locally tested in Next 14 app

@agerard-godaddy agerard-godaddy added the version 7 Change targeted for version 7 label May 10, 2024
@agerard-godaddy agerard-godaddy marked this pull request as ready for review May 31, 2024 03:04
@agerard-godaddy agerard-godaddy requested a review from a team as a code owner May 31, 2024 03:04
@agerard-godaddy agerard-godaddy merged commit 183383e into v7 May 31, 2024
2 checks passed
@agerard-godaddy agerard-godaddy deleted the next-data-esm branch May 31, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
version 7 Change targeted for version 7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants