185 Commits

Author SHA1 Message Date
Jeroen Claassens (Favna)
664a9ac86b Fix for IE11 (ES5) compatibility (#294)
* Upgrade Jest

* ES5 (IE11) compatibility

* Bump version

* Actually properly bump version
2019-03-09 21:16:29 -08:00
Jeroen Claassens (Favna)
48e55f7a7b Three improvements for the price of one (#291)
* Cleanup build

Partial: Requires next commit for a proper version!

* Port tests to the Jest framework

* Fix typings and cover them in a test

This should resolve #261 as long as the system of the test is being used. That being said, this system allows for a fully typed configuration with IDE support

TypeScript usage is further described in the documentation, so please accept that PR if this one is accepted.

* Run standard-format

* Remove duplicate types field from package
2019-03-06 21:06:27 -08:00
Kirollos Risk
297423d359 Upgraded to latest webpack 2019-02-06 21:42:05 -08:00
Kirollos Risk
85bfc8764b Fixes #197 2019-02-04 23:27:12 -08:00
Rob Ede
e79e2060c8 Result limiting per search (#211)
* add results limit parameter to search method

* mark limit parameter as optional in ts definition

* add limit option to opts parameter object

* add result limit tests

* update ts definitions
2019-01-14 15:25:31 -08:00
Kirollos Risk
ec5d1a7079 new version 2018-06-06 09:50:46 -04:00
Kirollos Risk
75f57b8042 Fixed #233 2018-06-06 09:46:27 -04:00
Thiago Lagden
f528034744 Ponyfill is_array (#234)
Use Array.isArray() if it's natively available
2018-05-26 19:04:17 -04:00
Karanvir Kang
0e331ef3ae Skip calling JSON.stringify if verbose option is not enabled (#219)
* Skip calling JSON.stringfiy if verbose option was not specified

* Update fuse.js

* Add files via upload
2018-01-29 16:39:37 -05:00
Sheldon Rong
2dddf96065 Give better result for exact match when using weighted keys (#192) 2017-09-27 09:45:40 -04:00
Martino
ec5474fa71 allow searching deep nested numbers (#189) 2017-09-02 19:43:08 -04:00
Filipp Riabchun
85df1cf333 Added match index location for array key[tris] (#183)
* Add a match index for children

* Fix minMatchCharLength bug #164

* build

* Fix misplaced comment. Apply standard style

* Rename `index` to `arrayIndex` to highlight difference with `indices`

* pass arrayIndex even if array has length 1

* Add text value to `matches`

* add tests

* #164: minMatchCharLength should exclude matches not results

* Build
2017-08-19 23:15:36 -04:00
Kirollos Risk
b7f298dc51 New version 2017-06-14 14:43:19 -04:00
Ambareesh "Amby" Balaji
c579a26c4f Escape regexp special characters in search pattern (#168)
* Escape regexp special characters in search pattern

* Add tests

* change to es5
2017-06-14 14:30:49 -04:00
Ambareesh "Amby" Balaji
cfd5846ea3 Convert all != to !== (#169) 2017-06-14 09:43:30 -04:00
Kirollos Risk
62d326bef9 Fixed #162 2017-05-28 08:06:17 -04:00
Kirollos Risk
d34965b3c9 Added missing declaration 2017-05-15 15:19:22 -04:00
Kirollos Risk
2810ead760 Fixed #155 2017-05-11 10:48:45 -04:00
Kirollos Risk
ebad889683 Fixed #154 2017-05-09 09:44:04 -04:00
Kirollos Risk
3f9cb5e791 Updated to v3, with new architecture 2017-04-27 11:42:31 -04:00
Kirollos Risk
42b082fb16 Rearchitecture (#151)
* New architecture

* added newer versions of node

* Travis fix

* Remove iojs to make travis happy

* Added copyright info

* Fixed package and config

* Incremeneted version

* Added support for iojs

* Removed newline from copyright

* Version up
2017-04-25 09:51:21 -04:00
Kirollos Risk
a546cb3aa2 New version 2017-02-23 15:47:13 -05:00
Kirollos Risk
0204aaa265 Cleaned up API 2016-12-06 17:40:36 -05:00
Kirollos Risk
95616f4070 Clean up 2016-12-06 17:10:16 -05:00
Kirollos Risk
455e698a0f Added definitions to d.ts 2016-12-06 17:06:33 -05:00
Kirollos Risk
93d1314f64 Updated to version 2.6.0 2016-12-06 17:01:44 -05:00
austinmoffa
f4da51e95d Adding options for Indices match length and full string search (#122)
* Options for min match length and fulltext search

Will only return indices of matches that exceed a min length, and will continue to end of text even if a full match is found to find other full/partials

* Updating readme and adding tests
2016-12-06 17:01:20 -05:00
Chad Killingsworth
53e2de5d5d Convert function @param annotation to an @type annotation 2016-11-16 02:53:06 -06:00
Chad Killingsworth
7461e90988
Add type annotations for closure-compiler support 2016-11-11 20:42:10 -06:00
Snir Segal
06f4d15f68 fix(fuse): add semi-colon to the end of the function 2016-08-30 20:19:46 +03:00
Kirollos Risk
deaba935fe Added change log 2016-08-29 10:53:53 -04:00
Kirollos Risk
5d60f0fcb6 Added match count, fixes #102 2016-08-29 10:45:08 -04:00
Kirollos Risk
b1f42ccc7d Added comments 2016-08-29 10:45:08 -04:00
Kirollos Risk
0b679540eb Added dependency on tokenize 2016-08-29 10:45:08 -04:00
Kirollos Risk
505a133d0f semantics 2016-08-29 10:45:08 -04:00
Kirollos Risk
cd1e9a29e8 Fixed #95 2016-08-29 10:45:08 -04:00
Kirollos Risk
3495527d8e Removed double 2016-08-02 14:26:16 -04:00
Kirollos Risk
d39a26b3b8 Added better verbosity 2016-08-02 14:24:01 -04:00
Kirollos Risk
7126187f43 Version 2.3.0 2016-07-14 16:13:48 -04:00
Jonathan Emord
12bb2279d2 Add tokenSeparator to options 2016-06-27 16:58:35 -04:00
Joseph Atkins-Turkish
c5f48032ff Cleanup unused variables and accidental global use. 2016-05-27 15:09:50 -07:00
Kirollos Risk
38ae3ca293 Added v2.2.0. Issue #6, #62 2016-03-07 12:34:31 -05:00
Kirollos Risk
fdb3c3e6d9 Modified matches to include key. References #6 2016-03-03 14:37:47 -05:00
Kirollos Risk
33964e0c73 modified mask to be text array based. Fixed #6 2016-03-03 13:28:37 -05:00
Kirollos Risk
38fa488636 Removed undefined check 2016-03-03 13:13:09 -05:00
Kirollos Risk
a948dfbf39 Added ability to returned matched indices. Fixed #6 2016-03-03 13:11:03 -05:00
Kirollos Risk
8ffc08cc7a Added key weights Fixes #62 2016-03-02 13:47:35 -05:00
Kirollos Risk
9f3e32bdfc Made tokenize an option 2016-02-28 09:59:55 -05:00
Kirollos Risk
eba6531167 Fixed #77 2016-02-28 09:38:16 -05:00
Kyle Halleman
6730060769 bumped version number 2016-02-11 18:50:06 -06:00