Skip to content

Switch to ESM modules#808

Merged
liam-lloyd merged 1 commit into
mainfrom
per-10567_migrate_to_esm_modules
Jul 23, 2026
Merged

Switch to ESM modules#808
liam-lloyd merged 1 commit into
mainfrom
per-10567_migrate_to_esm_modules

Conversation

@liam-lloyd

Copy link
Copy Markdown
Member

ESM, rather than CommonJS, seems to be the module system of the future. We have some dependencies that we can't update without adopting ESM. So, this commit updates this project to use ESM instead of CommonJS.

@liam-lloyd

Copy link
Copy Markdown
Member Author

(I used this ticket to test out auto-mode Claude Code running in a Docker Sandbox)

@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.30%. Comparing base (3eeb8ca) to head (a7920ef).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #808   +/-   ##
=======================================
  Coverage   98.30%   98.30%           
=======================================
  Files          93       93           
  Lines        2481     2481           
  Branches      462      461    -1     
=======================================
  Hits         2439     2439           
  Misses         42       42           
Flag Coverage Δ
api 98.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cecilia-donnelly cecilia-donnelly left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is simultaneously very big and very limited, so I did the random sampling approach to my review. Tests are passing so I believe them that all is well!

ESM, rather than CommonJS, seems to be the module system of the future.
We have some dependencies that we can't update without adopting ESM. So,
this commit updates this project to use ESM instead of CommonJS.
@liam-lloyd
liam-lloyd force-pushed the per-10567_migrate_to_esm_modules branch from c3c1e35 to a7920ef Compare July 23, 2026 21:21
@liam-lloyd
liam-lloyd merged commit cca1d94 into main Jul 23, 2026
35 checks passed
@liam-lloyd
liam-lloyd deleted the per-10567_migrate_to_esm_modules branch July 23, 2026 21:27
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.

2 participants