Releases: fwextensions/quick-score
Releases · fwextensions/quick-score
v0.1.0
Added
- Add TypeScript support via
index.d.ts
declaration file, and addtypes
field topackage.json
. - Update JSDocs to include type information.
Changed
- Don't concat the parameters to
setItems()
andsetKeys()
with an empty array. Call.slice()
instead to create a copy. - Don't supply a default value for the
sortKey
parameter insetKeys()
. - Don't supply default values for the
string
andquery
parameters inquickScore()
.
Fixed
v0.0.14
Fixed
- Update
devDependencies
to the latest versions. - Add GitHub action to push docs to GitHub Pages and code coverage to Codecov.
v0.0.13
Fixed
- 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.
v0.0.12
Fixed
- 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.
v0.0.11
Added
- 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.
v0.0.10
Added
- A new
transformString
option to theQuickScore
constructor can be used to ignore diacritics and accents when searching.
Fixed
- Update
devDependencies
to latest packages, fixing a vulnerability in jest.
v0.0.9
Fixed
- Update
devDependencies
to latest packages.
v0.0.8
Fixed
- 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.
v0.0.7
Added
- 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.
Fixed
- Update
devDependencies
to latest packages. - Update node version in .travis.yml to latest.
- Update to rollup 2.0.