Skip to content

Commit

Permalink
chore(release): 6.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
krisk committed Jan 1, 2021
1 parent 2e60bee commit 934fbea
Show file tree
Hide file tree
Showing 13 changed files with 58 additions and 51 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [6.4.5](https://github.com/krisk/Fuse/compare/v6.4.4...v6.4.5) (2021-01-01)


### Bug Fixes

* **ts:** export FuseIndex type ([2e60bee](https://github.com/krisk/Fuse/commit/2e60bee242c7b82f0d014a3a35281b34bc6b62fb)), closes [#519](https://github.com/krisk/Fuse/issues/519)

### [6.4.4](https://github.com/krisk/Fuse/compare/v6.4.3...v6.4.4) (2020-12-29)


Expand Down
6 changes: 3 additions & 3 deletions dist/fuse.basic.common.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Fuse.js v6.4.4 - Lightweight fuzzy-search (http://fusejs.io)
* Fuse.js v6.4.5 - Lightweight fuzzy-search (http://fusejs.io)
*
* Copyright (c) 2020 Kiro Risk (http://kiro.me)
* Copyright (c) 2021 Kiro Risk (http://kiro.me)
* All Rights Reserved. Apache Software License 2.0
*
* http://www.apache.org/licenses/LICENSE-2.0
Expand Down Expand Up @@ -1446,7 +1446,7 @@ function format(results, docs) {
});
}

Fuse.version = '6.4.4';
Fuse.version = '6.4.5';
Fuse.createIndex = createIndex;
Fuse.parseIndex = parseIndex;
Fuse.config = Config;
Expand Down
6 changes: 3 additions & 3 deletions dist/fuse.basic.esm.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Fuse.js v6.4.4 - Lightweight fuzzy-search (http://fusejs.io)
* Fuse.js v6.4.5 - Lightweight fuzzy-search (http://fusejs.io)
*
* Copyright (c) 2020 Kiro Risk (http://kiro.me)
* Copyright (c) 2021 Kiro Risk (http://kiro.me)
* All Rights Reserved. Apache Software License 2.0
*
* http://www.apache.org/licenses/LICENSE-2.0
Expand Down Expand Up @@ -1227,7 +1227,7 @@ function format(
})
}

Fuse.version = '6.4.4';
Fuse.version = '6.4.5';
Fuse.createIndex = createIndex;
Fuse.parseIndex = parseIndex;
Fuse.config = Config;
Expand Down
6 changes: 3 additions & 3 deletions dist/fuse.basic.esm.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/fuse.basic.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Fuse.js v6.4.4 - Lightweight fuzzy-search (http://fusejs.io)
* Fuse.js v6.4.5 - Lightweight fuzzy-search (http://fusejs.io)
*
* Copyright (c) 2020 Kiro Risk (http://kiro.me)
* Copyright (c) 2021 Kiro Risk (http://kiro.me)
* All Rights Reserved. Apache Software License 2.0
*
* http://www.apache.org/licenses/LICENSE-2.0
Expand Down Expand Up @@ -1450,7 +1450,7 @@
});
}

Fuse.version = '6.4.4';
Fuse.version = '6.4.5';
Fuse.createIndex = createIndex;
Fuse.parseIndex = parseIndex;
Fuse.config = Config;
Expand Down
6 changes: 3 additions & 3 deletions dist/fuse.basic.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/fuse.common.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Fuse.js v6.4.4 - Lightweight fuzzy-search (http://fusejs.io)
* Fuse.js v6.4.5 - Lightweight fuzzy-search (http://fusejs.io)
*
* Copyright (c) 2020 Kiro Risk (http://kiro.me)
* Copyright (c) 2021 Kiro Risk (http://kiro.me)
* All Rights Reserved. Apache Software License 2.0
*
* http://www.apache.org/licenses/LICENSE-2.0
Expand Down Expand Up @@ -2230,7 +2230,7 @@ function format(results, docs) {
});
}

Fuse.version = '6.4.4';
Fuse.version = '6.4.5';
Fuse.createIndex = createIndex;
Fuse.parseIndex = parseIndex;
Fuse.config = Config;
Expand Down
40 changes: 20 additions & 20 deletions dist/fuse.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for Fuse.js v6.4.4
// Type definitions for Fuse.js v6.4.5
// TypeScript v3.9.5

export default Fuse
Expand All @@ -8,7 +8,7 @@ declare class Fuse<T> {
constructor(
list: ReadonlyArray<T>,
options?: Fuse.IFuseOptions<T>,
index?: FuseIndex<T>
index?: Fuse.FuseIndex<T>
)
/**
* Search function for the Fuse instance.
Expand All @@ -28,12 +28,12 @@ declare class Fuse<T> {
* @param options `Fuse.FuseSearchOptions`
* @returns An array of search results
*/
search<R = T>(
search<T>(
pattern: string | Fuse.Expression,
options?: Fuse.FuseSearchOptions
): Fuse.FuseResult<R>[]
): Fuse.FuseResult<T>[]

setCollection(docs: ReadonlyArray<T>, index?: FuseIndex<T>): void
setCollection(docs: ReadonlyArray<T>, index?: Fuse.FuseIndex<T>): void

/**
* Adds a doc to the end the list.
Expand All @@ -55,7 +55,7 @@ declare class Fuse<T> {
/**
* Returns the generated Fuse index
*/
getIndex(): FuseIndex<T>
getIndex(): Fuse.FuseIndex<T>

/**
* Return the current version.
Expand Down Expand Up @@ -92,28 +92,28 @@ declare class Fuse<T> {
keys: Array<Fuse.FuseOptionKey>,
list: ReadonlyArray<U>,
options?: Fuse.FuseIndexOptions<U>
): FuseIndex<U>
): Fuse.FuseIndex<U>

static parseIndex<U>(
index: any,
options?: Fuse.FuseIndexOptions<U>
): FuseIndex<U>
): Fuse.FuseIndex<U>
}

declare class FuseIndex<T> {
constructor(options?: Fuse.FuseIndexOptions<T>)
setSources(docs: ReadonlyArray<T>): void
setKeys(keys: ReadonlyArray<string>): void
setIndexRecords(records: Fuse.FuseIndexRecords): void
create(): void
add(doc: T): void
toJSON(): {
keys: ReadonlyArray<string>
collection: Fuse.FuseIndexRecords
declare namespace Fuse {
export class FuseIndex<T> {
constructor(options?: FuseIndexOptions<T>)
setSources(docs: ReadonlyArray<T>): void
setKeys(keys: ReadonlyArray<string>): void
setIndexRecords(records: FuseIndexRecords): void
create(): void
add(doc: T): void
toJSON(): {
keys: ReadonlyArray<string>
collection: FuseIndexRecords
}
}
}

declare namespace Fuse {
type FuseGetFunction<T> = (
obj: T,
path: string | string[]
Expand Down
6 changes: 3 additions & 3 deletions dist/fuse.esm.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Fuse.js v6.4.4 - Lightweight fuzzy-search (http://fusejs.io)
* Fuse.js v6.4.5 - Lightweight fuzzy-search (http://fusejs.io)
*
* Copyright (c) 2020 Kiro Risk (http://kiro.me)
* Copyright (c) 2021 Kiro Risk (http://kiro.me)
* All Rights Reserved. Apache Software License 2.0
*
* http://www.apache.org/licenses/LICENSE-2.0
Expand Down Expand Up @@ -1759,7 +1759,7 @@ function format(
})
}

Fuse.version = '6.4.4';
Fuse.version = '6.4.5';
Fuse.createIndex = createIndex;
Fuse.parseIndex = parseIndex;
Fuse.config = Config;
Expand Down

0 comments on commit 934fbea

Please sign in to comment.