61 Commits

Author SHA1 Message Date
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
28ed5937b9 Fixed #362 2020-03-17 19:46:38 -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
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
f92000ed30 Added transformers and moved from recursion to stack 2020-03-12 10:48:26 -07:00
Kirollos Risk
cf6962a4d4 Added missing tests 2020-03-11 16:51:44 -07:00
Kirollos Risk
dbedadca01 Build version 4.0.1-beta 2020-03-11 16:50:33 -07:00
Kirollos Risk
4343f71e41 Added extended searching, and removed tokenization 2020-03-09 16:50:16 -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
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
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
Kirollos Risk
fb062da4c3 Stylistic change + travis fix 2019-03-06 21:25:58 -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
fe02a9d94e New version 2019-02-04 23:32:56 -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
75f57b8042 Fixed #233 2018-06-06 09:46:27 -04: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
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
Kirollos Risk
62d326bef9 Fixed #162 2017-05-28 08:06:17 -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
0204aaa265 Cleaned up API 2016-12-06 17:40:36 -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
Kirollos Risk
5d60f0fcb6 Added match count, fixes #102 2016-08-29 10:45:08 -04:00
Kirollos Risk
38ae3ca293 Added v2.2.0. Issue #6, #62 2016-03-07 12:34:31 -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
8bfdef5697 New version 2.0.0, Fixes #41, #63, #64, #38, #73 2016-02-05 10:36:57 -05:00
Kirollos Risk
9ff07c1ea5 Added multi search 2015-11-29 11:41:14 -05:00
Kirollos Risk
10e592f393 Optim 2015-11-28 14:02:48 -05:00
Kirollos Risk
0db07fdc86 Revert "Revert "Changed 'includeScore:false' to a more general 'include:[]'"" 2015-09-29 16:23:56 -04:00
Kirollos Risk
5048848af0 Revert "Changed 'includeScore:false' to a more general 'include:[]'" 2015-09-29 16:22:10 -04:00
Adam Gaskins
af93e0c67a Removed 'includeScore' and added the more generic 'include'. 2015-09-03 15:32:12 -04:00
Joe Ellis
d4e1909162 Add public set function 2015-05-12 17:03:36 -05:00
Kirollos Risk
95f6eb541b Fixed issue #39 2014-11-14 15:54:04 -08:00
Kirollos Risk
8a9ddae59d Fixed #36 2014-10-25 14:58:40 -07:00
Matthew Dapena-Tretter
629e36eeb5 Test searching fields of objects in arrays 2014-09-08 16:58:40 -04:00
Matthew Dapena-Tretter
82878ce14e Test recursion into arrays 2014-09-08 15:47:13 -04:00
Daniel Smilkov
0c0c3c2885 fixed bug when the user specifies both ID and score in the results list 2014-07-24 12:04:31 -04:00
Kirollos Risk
3739b7c103 Fixed #26 2014-05-30 09:44:24 -07:00
William D. Meldon
b222273bad Added support for a ``getFn`` option that will be used to access object
properties.
2014-05-14 14:25:48 -04:00