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

Version 4.0.0-alpha.0 #71

Open
wants to merge 114 commits into
base: master
Choose a base branch
from
Open

Version 4.0.0-alpha.0 #71

wants to merge 114 commits into from

Conversation

folkvir
Copy link
Collaborator

@folkvir folkvir commented May 16, 2024

Hello my friend! 🎉

This is a new life for this package, here are my modifications:

  • Use @node-rs/xxhash in place of the xxhashjs package
    • The deps contains the @node-rs/xxhash-wasm32-wasi, this is for the browser build and is not included by default wit @node-rs/xxhash because of the cpu option which by default targets your plateform. We may pay attention
  • Replace the usage of the Buffer built-in package (and of course the polyfill for browser users) by built-in UInt8array(s)
  • Replace the usage of the Long.js package by built-in bigints in the XorFilter
  • Use only 64-bits and 128-bits hash functions everywhere
  • Add XOR 32-bits and 64-bits, straightforward addition with our modular implementation
  • Update all dependencies to latest
  • Replace mocha by jest
  • Enforce eslint with plugin:@typescript-eslint/strict-type-checked
  • Fix missing Hyperloglog large estimation correction
  • Remove dead code, no more support for getDistinctIndexes, its last usage was for the Invertible Bloom Filter which do not use it anymore.
  • Invertible Bloom Filters now only accept strings as input
  • The project use yarn v4
    • Hence the new .yarn folder which needs to be shared
  • It outputs both commonjs and module js. The package.json reflects the exports of every files of the project
  • Examples on how to bundle using rspack and webpack have been added
  • Update workflows version to latest
  • Remove all .equals functions; there is no point to check for equality because items that are added using indexes could have identical indexes for 2 different elements with a same seed.

Fix the issues:

Versioning/Publishing:

  • version was bumped to 4.0.0-alpha.0 with yarn version premajor --preid alpha from the 3.0.1
  • incrementing is: yarn version prerelease
  • publishing is: yarn publish --tag alpha

Feedback is welcome! @Callidon

TODO:

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@folkvir folkvir marked this pull request as ready for review May 26, 2024 20:18
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.

None yet

1 participant