Skip to content

v2 beta 9: drop use of serialize-error package directly#145

Merged
cuzzlor merged 1 commit into
mainfrom
drop-serialize-error-package
Apr 29, 2026
Merged

v2 beta 9: drop use of serialize-error package directly#145
cuzzlor merged 1 commit into
mainfrom
drop-serialize-error-package

Conversation

@cuzzlor
Copy link
Copy Markdown
Collaborator

@cuzzlor cuzzlor commented Apr 29, 2026

Using the ESM only serialize-error package can cause friction for CJS users, even running NodeJS versions that support flag-less require(esm).

For example, by default, jest will fail to load the library with it's custom module loader.

Therefore, to reduce CJS friction, we will use a built-in error serialisation function and allow consumers to supply an override using the serialize-error package if they prefer.

@cuzzlor cuzzlor requested a review from mderriey April 29, 2026 09:09
@cuzzlor cuzzlor merged commit 436a012 into main Apr 29, 2026
1 check passed
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