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

fix: replace debug with weald to remove CJS deps #2648

Merged
merged 3 commits into from
Aug 2, 2024

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Aug 2, 2024

debug is a CJS module with CJS dependencies.

It will be an ESM module in it's next major release, however that release issue has been open for over five years so when that will ship is anyone's guess.

weald is an API compatible port written in TypeScript and published as ESM.

We can revert this change if/when debug finally ships an ESM version.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

debug is a CJS module with CJS dependencies.

It will be an ESM module in it's [next major release](debug-js/debug#656),
however that release issue has been open for over five years so it
may never arrive.

This PR vendors in the debug module as typescript so we can move
on from CJS.
@achingbrain achingbrain requested a review from a team as a code owner August 2, 2024 11:13
@achingbrain achingbrain changed the title fix: vendor in debug module fix: replace debug with weald to remove CJS deps Aug 2, 2024
@achingbrain achingbrain merged commit f30e2ee into main Aug 2, 2024
24 checks passed
@achingbrain achingbrain deleted the fix/vendor-debug-module branch August 2, 2024 14:19
@achingbrain achingbrain mentioned this pull request Aug 2, 2024
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