krisk / Fuse

Lightweight fuzzy-search, in JavaScript
https://fusejs.io/
Apache License 2.0
17.76k stars 753 forks source link

Release 7.0.0 ? #746

Closed tmaihoff closed 2 weeks ago

tmaihoff commented 8 months ago

Is there an existing issue for this?

Your question

Here on npmjs it says version 7.0.0 was released 7 days ago.

However the Github release page still shows 6.6.2 from 2022 as the latest release.

Which is correct? Where can I find a changelog for version 7.0.0? Are there breaking changes which require migrating?

Looking forward to hearing from you.

Nercus commented 8 months ago

Hey there, had the exact same question and found the changes in the current changelog markdown file :) https://github.com/krisk/Fuse/blob/main/CHANGELOG.md

PhiLhoSoft commented 5 months ago

For information, we use Fuse with TypeScript. In v. 6, we were doing:

import Fuse from 'fuse.js';

private options: Fuse.IFuseOptions<T>;
const filterResults: ReadonlyArray<Fuse.FuseResult<T>> = this.search();
const filterResultsMap: Map<T['id'], readonly Fuse.FuseResultMatch[]> = new Map();

(For example…)

In v. 7, we must do:

import Fuse, { FuseResult, FuseResultMatch, IFuseOptions } from 'fuse.js';

private options: IFuseOptions<T>;
const filterResults: ReadonlyArray<FuseResult<T>> = this.search();
const filterResultsMap: Map<T['id'], readonly FuseResultMatch[]> = new Map();
github-actions[bot] commented 1 month ago

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 30 days