diff --git a/package.json b/package.json index 3bd30390..65ebcb94 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "url": "git+https://github.com/asabaylus/react-command-palette.git" }, "engines": { - "node": ">=14 <=17" + "node": ">=16 <=17" }, "keywords": [ "react", @@ -87,7 +87,7 @@ }, "dependencies": { "fast-deep-equal": "^3.1.3", - "fuzzysort": "^1.9.0", + "fuzzysort": "^2.0.1", "mousetrap": "^1.6.5", "react-autosuggest": "^10.1.0", "react-modal": "^3.15.1" diff --git a/src/fuzzysort-options.js b/src/fuzzysort-options.js index d2b01116..f6da5a82 100644 --- a/src/fuzzysort-options.js +++ b/src/fuzzysort-options.js @@ -4,7 +4,6 @@ export default { threshold: -Infinity, // Don't return matches worse than this (higher is faster) limit: 7, // Don't return more results than this (lower is faster) - allowTypo: true, // Allwos a snigle transpoes (false is faster) key: "name", // For when targets are objects (see its example usage) keys: ["name"], // For when targets are objects (see its example usage) scoreFn: null, // For use with `keys` (see its example usage) diff --git a/yarn.lock b/yarn.lock index f48bf164..f2f33a74 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8568,10 +8568,10 @@ fuse.js@^3.6.1: resolved "https://registry.npmjs.org/fuse.js/-/fuse.js-3.6.1.tgz" integrity sha512-hT9yh/tiinkmirKrlv4KWOjztdoZo1mx9Qh4KvWqC7isoXwdUY3PNWUxceF4/qO9R6riA2C29jdTOeQOIROjgw== -fuzzysort@^1.9.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/fuzzysort/-/fuzzysort-1.9.0.tgz#d36d27949eae22340bb6f7ba30ea6751b92a181c" - integrity sha512-MOxCT0qLTwLqmEwc7UtU045RKef7mc8Qz8eR4r2bLNEq9dy/c3ZKMEFp6IEst69otkQdFZ4FfgH2dmZD+ddX1g== +fuzzysort@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/fuzzysort/-/fuzzysort-2.0.1.tgz#e1bf6abbcfeefd1191900a5f56527aa0508d6934" + integrity sha512-SlgbPAq0eQ6JQ1h3l4MNeGH/t9DHKH8GGM0RD/6RhmJrNnSoWt3oIVaiQm9g9BPB+wAhRMeMqlUTbhbd7+Ufcg== gauge@^3.0.0: version "3.0.2"