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

chore: remove use of assert module #721

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

achingbrain
Copy link
Contributor

@achingbrain achingbrain commented May 15, 2021

It's a node core module that isn't declared as a dep of this module so modules depending on this one have to declare it separately when using bundlers that don't polyfill node core.

Usage of it here seems unnecessary and can be replaced with a simple equality check.

It's a node built-in that isn't declared as a dep of this module so
modules depending on this one have to declare it separately when using
bundlers that don't polyfil node core.

Usage of it here seems unecessary  and can be replaced with an equality
check.
Copy link
Member

@vweevers vweevers left a comment

Choose a reason for hiding this comment

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

Small note: this changes the error type from AssertionError to Error but it's highly unlikely anyone depends on that.

@vweevers vweevers added the semver-patch Bug fixes that are backward compatible label May 15, 2021
@vweevers vweevers merged commit f3e86ae into Level:master Jun 7, 2021
@vweevers
Copy link
Member

vweevers commented Jun 7, 2021

5.0.1. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-patch Bug fixes that are backward compatible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants