Skip to content

Releases: fwextensions/quick-score

v0.1.0

19 Apr 21:56
Compare
Choose a tag to compare

Added

  • Add TypeScript support via index.d.ts declaration file, and add types field to package.json.
  • Update JSDocs to include type information.

Changed

  • Don't concat the parameters to setItems() and setKeys() with an empty array. Call .slice() instead to create a copy.
  • Don't supply a default value for the sortKey parameter in setKeys().
  • Don't supply default values for the string and query parameters in quickScore().

Fixed

  • Resolve #19 and #20.
  • Remove empty PR trigger in gh-pages.yml.
  • Improve API docs styling.
  • Update devDependencies to the latest minor versions.

v0.0.14

25 Feb 07:03
Compare
Choose a tag to compare

Fixed

  • Update devDependencies to the latest versions.
  • Add GitHub action to push docs to GitHub Pages and code coverage to Codecov.

v0.0.13

05 Oct 23:42
Compare
Choose a tag to compare

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

25 Apr 01:24
Compare
Choose a tag to compare

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. Added config.maxIterations to control the number of loops.
  • Update devDependencies to latest packages.

v0.0.11

25 Apr 00:37
Compare
Choose a tag to compare

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 in keys is desired.
  • A new scoreValue field is returned in the results from search(), which provides the string pointed to be scoreKey. This makes it easier to access the string when it's nested.

v0.0.10

02 Jan 21:40
Compare
Choose a tag to compare

Added

  • A new transformString option to the QuickScore 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

26 Jul 02:21
Compare
Choose a tag to compare

Fixed

  • Update devDependencies to latest packages.

v0.0.8

08 May 02:59
Compare
Choose a tag to compare

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

04 May 01:36
Compare
Choose a tag to compare

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.