Skip to content
This repository was archived by the owner on Dec 20, 2025. It is now read-only.

refactor: migrate packages to ESM-first with CJS compatibility via dual build - #94

Merged
typicalninja merged 10 commits into
masterfrom
esm-migration
Jul 27, 2025
Merged

refactor: migrate packages to ESM-first with CJS compatibility via dual build#94
typicalninja merged 10 commits into
masterfrom
esm-migration

Conversation

@typicalninja

@typicalninja typicalninja commented Jul 27, 2025

Copy link
Copy Markdown
Owner
  • All packages now use "type": "module" and are ESM-first
  • CommonJS support is maintained via dual builds using exports conditions.
  • Minimum supported Node.js version is now 20.0.0.

Note: CommonJS is not deprecated. This change sets ESM as the default, but CJS builds will continue to be provided. See this notice

  • Updated repository field format as suggested by publint.

@changeset-bot

changeset-bot Bot commented Jul 27, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 202c17f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
google-sr-selectors Minor
google-that Minor
google-sr Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jul 27, 2025

Copy link
Copy Markdown
npm i https://pkg.pr.new/google-sr@94
npm i https://pkg.pr.new/google-sr-selectors@94
npm i https://pkg.pr.new/google-that@94

commit: 202c17f

@codecov

codecov Bot commented Jul 27, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@7c78903). Learn more about missing BASE report.
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #94   +/-   ##
=========================================
  Coverage          ?   98.41%           
=========================================
  Files             ?       12           
  Lines             ?      506           
  Branches          ?      107           
=========================================
  Hits              ?      498           
  Misses            ?        8           
  Partials          ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@typicalninja
typicalninja merged commit 6c08082 into master Jul 27, 2025
11 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 27, 2025
@typicalninja
typicalninja deleted the esm-migration branch July 27, 2025 10:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant