Skip to content

Commit

Permalink
working towards 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
farzher committed May 23, 2022
1 parent baac123 commit 3f990f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Sublime's fuzzy search is... sublime. I wish everything used it. So here's an op

- **Fast** - **1ms** to search **13,000** files.
- **Tiny** - 1 file, **3kb**. 0 dependencies.
- **Good** - clean api + sorts results well (unlike others who shall not be named).
- **Good** - clean api + sorts results well.

https://rawgit.com/farzher/fuzzysort/master/test.html

Expand Down Expand Up @@ -38,7 +38,7 @@ import fuzzysort from 'fuzzysort'
## Installation Browser

```html
<script src="https://cdn.jsdelivr.net/npm/fuzzysort@1.9.0/fuzzysort.js"></script>
<script src="https://cdn.jsdelivr.net/npm/fuzzysort@1.9.0/fuzzysort.min.js"></script>
```


Expand Down Expand Up @@ -155,8 +155,7 @@ bestResult.obj.title // 'Google Chrome'
- Added new behavior when your search contains spaces!
- Added fuzzysort.min.js
- Now depends on ES6 features
- Changed how indexes work to improve GC performance
- Removed result.indexes & Added fuzzysort.indexes
- Removed `result.indexes` & Added `fuzzysort.indexes` (improved GC performance)
- Completely Removed `options.allowTypo`
- Completely Removed `fuzzysort.goAsync`
- Completely Removed `fuzzysort.new`
Expand Down
2 changes: 1 addition & 1 deletion test.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


<div id="vue" class="jumbotron" style="background:none">
<div class="container">
<div class="container" style="max-width: 720px;">

<!-- testdatakeys -->
<div class="btn-group">
Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ HOW TO WRITE TESTS:
assert(true, 'my err msg') // must be truthy
*/


// require / setup
const isNode = typeof require !== 'undefined' && typeof window === 'undefined'
if(isNode) var fuzzysort = require('./fuzzysort') // if we're running in the browser we already have these
const minjs = isNode ? !!process.argv[2] : false // test minified fuzzysort (if node and you pass any cmd argument)
if(isNode) var fuzzysort = minjs ? require('./fuzzysort.min.js') : require('./fuzzysort') // if we're running in the browser we already have these
if(isNode) var testdata = require('./testdata') // if we're running in the browser we already have these

// config
Expand Down

0 comments on commit 3f990f7

Please # to comment.