0.2.0 - 2022-6-03
- Improve TypeScript compatibility by typing the
QuickScore
array params asreadonly
. - Type the
item
key in bothScoredString
andScoredObject
as a generic soScoredResult
is more consistent. - Update 'devDependencies' to the latest major/minor versions, including Jest 28.
0.1.0 - 2022-04-19
- Add TypeScript support via
index.d.ts
declaration file, and addtypes
field topackage.json
. - Update JSDocs to include type information.
- Don't concat the parameters to
setItems()
andsetKeys()
with an empty array. Call.slice()
instead to create a copy. This means that passing a single bare string instead of an array to theQuickScore
constructor will no longer work. - Don't supply a default value for the
sortKey
parameter insetKeys()
. - Don't supply default values for the
string
andquery
parameters inquickScore()
.
- Resolve #19 and #20.
- Remove empty PR trigger in
gh-pages.yml
. - Improve API docs styling.
- Update
devDependencies
to the latest minor versions.
0.0.14 - 2022-02-24
- Update
devDependencies
to the latest versions. - Add GitHub action to push docs to GitHub Pages and code coverage to Codecov.
0.0.13 - 2021-10-05
- Update
devDependencies
to the latest minor versions. - Run npm audit fix to remove vulnerabilities.
- Update .travis.yml to enable partner queue builds.
- Add GitHub code analysis workflow.
0.0.12 - 2021-04-24
- Limit the number of loops inside the
quickScore()
function so that long, nearly-matching queries don't take too long before returning a 0 score. Addedconfig.maxIterations
to control the number of loops. - Update
devDependencies
to latest packages.
0.0.11 - 2021-03-26
- Passing an empty array in the
keys
parameter will cause all of the keys on an item to be cached and searched, without having to specify each one. - Paths to nested keys in the
keys
array can be specified as arrays of strings, instead of a dot-delimited path in a single string. Wrapping a single string in an array will cause any dots it contains to not be treated as a path. - A new
sortKey
option can be used to specify on which key to sort identically-scored items, if a key other than the first one inkeys
is desired. - A new
scoreValue
field is returned in the results fromsearch()
, which provides the string pointed to bescoreKey
. This makes it easier to access the string when it's nested.
0.0.10 - 2021-01-02
- A new
transformString
option to theQuickScore
constructor can be used to ignore diacritics and accents when searching.
- Update
devDependencies
to latest packages, fixing a vulnerability in jest.
0.0.9 - 2020-07-25
- Update
devDependencies
to latest packages.
0.0.8 - 2020-05-07
- Use the correct unpkg.com CDN URL in the readme.
- Highlight needing to access the methods through a global when loading the library via a
<script>
tag.
0.0.7 - 2020-05-03
- Info about loading built files from unpkg.com to the readme.
- Add a test that doesn't pass a matches array to get the branch coverage to 100%.
- Added CHANGELOG.md.
- Update
devDependencies
to latest packages. - Update node version in
.travis.yml
to latest. - Update to rollup 2.0.
0.0.6 - 2020-01-19
- The correct match indices were not returned in some cases, since the whole
matches
array was getting cleared whenremainingScore
was 0 during a search. - Update
devDependencies
to latest packages.
0.0.5 - 2019-10-19
- Update
devDependencies
to latest packages.
0.0.4 - 2019-05-27
- Update to babel 7, jest 24, and rollup 1.0.
- Update
devDependencies
to latest packages.
0.0.3 - 2019-05-27
- Support searching nested keys on objects use dot-delimited key names, like
"foo.bar"
.
0.0.2 - 2018-11-05
- Changed
prepare
script toprepublishOnly
.
0.0.1 - 2018-11-05
- Initial release.