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

Make xxhash optional #2

Merged
merged 1 commit into from
Feb 27, 2019
Merged

Make xxhash optional #2

merged 1 commit into from
Feb 27, 2019

Conversation

sormy
Copy link

@sormy sormy commented Feb 26, 2019

Make xxhash optional

as discussed here: #1

Changes:

  • moved xxhash to optionalDependencies
  • replaced static import with require() and try/catch wrapper
  • throw error if requested xxhash32/64 hash but xxhash is not available

Tests are passing

@swernerx swernerx merged commit 464676b into sebastian-software:master Feb 27, 2019
@swernerx
Copy link
Member

Thanks!

@swernerx
Copy link
Member

I decided to go with a minor release as this was not even used by default.

@swernerx
Copy link
Member

Published as v2.3.0.

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