185 Commits

Author SHA1 Message Date
Kirollos Risk
10cb370799 Modified bitap to work on long patterns 2020-04-18 15:51:10 -07:00
Kirollos Risk
3c704b0f65
Fixed scoring for extended search 2020-04-12 20:28:20 -07:00
Kirollos Risk
ea5658e276
Added short-circuit on pattern is empty 2020-04-11 13:41:08 -07:00
Kirollos Risk
66eecc910b
Better obj deconstructing 2020-04-11 11:02:20 -07:00
Kirollos Risk
da27ea7506 Fixes #389, #390 2020-04-11 10:41:55 -07:00
michaeltamaki-okta
d7aeba3da3
Update IFuseOptions to use isCaseSensitive (#386) 2020-04-07 13:34:50 -07:00
Kirollos Risk
0937c34453 Added defaults to functions 2020-04-06 11:08:45 -07:00
Kirollos Risk
bf511569f6 File rename 2020-04-05 16:53:40 -07:00
Kirollos Risk
9cc63925d5 New filenames 2020-04-05 16:41:08 -07:00
Kirollos Risk
6fa7f31772 Build 5.2.0-alpha.0 2020-04-05 13:54:32 -07:00
Kirollos Risk
414cc6d1df Addresses #385 2020-04-05 13:23:56 -07:00
Kirollos Risk
d2a434b317 Added better options 2020-04-05 11:19:32 -07:00
Kirollos Risk
4a8423dcfd Added indices tests and changed babrlrc to json 2020-04-04 20:16:45 -07:00
Kirollos Risk
73a73e4462 Addresses #376 2020-04-04 18:28:33 -07:00
Kirollos Risk
f36f21b39f extended search improvements 2020-04-03 12:06:46 -07:00
Kirollos Risk
5fba5e3a93 Added better docs 2020-03-31 12:35:13 -07:00
Kirollos Risk
5f97c4c539 Added new documents 2020-03-29 14:17:33 -07:00
Kirollos Risk
0a90392121 Used prettier format 2020-03-27 17:04:50 -07:00
Kirollos Risk
e04afe8d86 Fixed definition file and linted tests 2020-03-25 12:20:10 -07:00
Kirollos Risk
5497e63aa4
Added eslint + testing 2020-03-23 20:31:02 -07:00
Kiro Risk
e74a9ef305
Changed bundler to Rollup (#367)
- Changed bundler to Rollup
- Added ES6 modules for bundlers and browsers (fixed #262)
- Added CommonJS builds
- Added UMD builds
- Name change so that .min actually reflects the minified version
2020-03-23 08:22:20 -07:00
Kirollos Risk
d82a806fdb Fixed #363 2020-03-19 08:43:52 -07:00
Kirollos Risk
1b921e29a7 Normalized weights so that their sum is equal to 1. Fixes #357 2020-03-18 10:09:47 -07:00
Kirollos Risk
28ed5937b9 Fixed #362 2020-03-17 19:46:38 -07:00
Kirollos Risk
649d4926e5 Fixed #361 2020-03-17 17:14:05 -07:00
Daniel Dickinson
31fc5b7c96
Fix 'TypeError: Cannot read property 'length' of undefined (#360)
Which occurs when pattern length exceeds machine word length and we get
results but not matches (highlights).

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
2020-03-16 19:51:57 -07:00
Kirollos Risk
1c613190d3 Exposed indexing function 2020-03-15 18:35:30 -07:00
Kirollos Risk
5f9cc57854 New folder structure 2020-03-15 13:36:57 -07:00
Kirollos Risk
a443766ecb Improved indexing 2020-03-14 21:11:03 -07:00
Kirollos Risk
65cc0a9908 Better test framework 2020-03-14 13:21:03 -07:00
Kirollos Risk
4ed87adbb1 Added new pre-processing of list for performance 2020-03-14 13:04:44 -07:00
Kirollos Risk
e77a2fc488 Removed matchAllTokens option 2020-03-14 01:03:39 -07:00
Kirollos Risk
bd510cdef5 Improved searching 2020-03-14 00:42:44 -07:00
Kirollos Risk
54239839f5 Added ability to search longer than 32 bits 2020-03-13 18:43:22 -07:00
Kirollos Risk
82498f1960 Name change to formatters 2020-03-12 20:50:16 -07:00
Kirollos Risk
f92000ed30 Added transformers and moved from recursion to stack 2020-03-12 10:48:26 -07:00
Kirollos Risk
dbedadca01 Build version 4.0.1-beta 2020-03-11 16:50:33 -07:00
Kirollos Risk
4f7998c73c Added case sensitivity to extended search text 2020-03-10 21:01:48 -07:00
Kirollos Risk
b9a12fc82b doc 2020-03-09 17:20:35 -07:00
Kirollos Risk
fc0ac8ebfb Added extended search readme 2020-03-09 17:05:06 -07:00
Kirollos Risk
4343f71e41 Added extended searching, and removed tokenization 2020-03-09 16:50:16 -07:00
Kirollos Risk
427155081c Commented console.log 2020-03-08 20:43:44 -07:00
Kirollos Risk
1fb86f0ebd Build version 3.6.0 2020-03-08 20:37:56 -07:00
Kirollos Risk
e40349d61d New release process 2020-03-08 18:27:39 -07:00
Kirollos Risk
af4e659c06 Fixed #341 2020-03-08 17:52:20 -07:00
Elvin Dzhavadov
be759d5c08
Added list property in typings (#348) 2020-03-01 19:42:21 -08:00
konjac-potage
5e8e2ccb30 fix & enhance type definition of search() (#318)
* fix broken type inference

* enhance search definition

Split FuseResult into FuseResultWithMatches & FuseResultWithScore

* fix type of id, keys in FuserOptions

replace keyof T -> keyof T | string
object path like 'author.lastName' should be parmitted.
2019-10-30 23:19:44 -07:00
ErikLarsson82
b1fe7cc67b False positive matches when pattern.length > 32 #136 #254 bugfix (#333)
* Initial tests (that fail) for #136

* Fix for maximum integer overflow in signed 32 bit number by applying ceiling. Also tests. Issue #136
2019-10-30 23:14:51 -07:00
Kirollos Risk
fe1ff83645 v3.4.5 2019-05-29 20:27:24 -07:00
Jeroen Claassens
248ee3176a Fix typings (#309)
This fixes the typings for nested keys which was previously broken, and
reported by @mmajko on #261

While this does fix the typings at least for now, they can be made even
more ideal. To achieve this however advanced typings would be required
and a request has been made to the utility-types repository (see:
https://github.com/piotrwitek/utility-types/issues/85) for the required
advanced type. To summarize that issue, if we would have a Flatten<T>
that would flatten the entire given typing T to single keys it would be
a perfect match for this library.
2019-05-29 20:21:37 -07:00