Skip to content

v7.4.0-beta.1

Pre-release
Pre-release

Choose a tag to compare

@krisk krisk released this 04 Apr 19:20
· 49 commits to main since this release

Features

  • FuseWorker — parallel search via Web Workers (9ba192c)

Distributes search across multiple Web Workers for near-linear speedup on large datasets. Benchmarked at ~5x faster with 8 workers on 100K documents, with zero UI jank.

import { FuseWorker } from 'fuse.js/worker'

const fuse = new FuseWorker(docs, options)
const results = await fuse.search('query')
fuse.terminate()

API: search, add, setCollection, terminate.

This is a beta release — the API may change based on feedback. Please open an issue if you have thoughts on the API surface.

Web Workers documentation