-
Notifications
You must be signed in to change notification settings - Fork 107
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
Chai v5 support #160
Comments
@domenic I think the first pull request (#161) from @robinbisping solves this issue, could it be accepted? Thanks in advance! |
push |
Hi, So while adding support for chai@5 you dropped support for chai@4? David |
chai 5 is ESM-only, while chai 4 is commonjs if you haven't had chance to move to ESM yet, you should stick to chai 4 (and the older sinon-chai version) mixing them up leads to various problems since you can't (currently) |
Yeah. I'm too tired to once again explain that breaking the ecosystem is not cool. Thanks for maintaining open source projects, keep up the good work. Cheers, |
That's why it was a major version bump, since it is a breaking change. Realistically, supporting both ESM and commonjs is challenging. At best it's extra work. |
Indeed, nobody has "broken" the ecosystem here If you don't have time to move to esm, use chai 4 until you do. As per semver, chai 5 is a breaking change to switch to esm. The feature set is pretty much the same as 4. If you still think the ecosystem is broken, it is important you explain yourself so we can investigate it. |
For clarity I think it would be useful to document the fact that |
im not sure its so simple sinon-chai 4.x should work fine with chai 4, assuming your project is written as ES modules |
Now chai v5 is out, it would be helpful if sinon-chai could also support it
The text was updated successfully, but these errors were encountered: