blowfishxyz / blocklist

Javascript library to use Blowfish blocklists locally
https://blowfish.xyz/
MIT License
11 stars 0 forks source link

feat: add persistence and re-fetch of bloom filter #19

Closed metreniuk closed 10 months ago

metreniuk commented 11 months ago

Done

  1. Add re-fetch functionality
  2. Add persistence functionality (supports any environment through storage passed in constructor)
  3. Update docs
  4. Add "Extension" guide to the docs
  5. Add react-native guide to the docs

To do

  1. Add tests

Questions

  1. Should we expose the low level primitives from previous versions? It could be a good idea to provide escape hatches, but it could lead to integration complexity.
  2. Should we make storage required instead of making it in-memory by default? We could go as far as provide different storages: InMemoryStorage, WebStorage, ChromeStorage, ReactNativeStorage. But I feel it's easier to add examples in docs and not support every use case.