Skip to content

Commit

Permalink
chore: Upgrade string-sameness
Browse files Browse the repository at this point in the history
* Removes dependency on unmaintained dice coeffecient library
* New version is esm-only library
  • Loading branch information
FoxxMD committed Feb 15, 2024
1 parent 9a5a808 commit 8057982
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 14 deletions.
42 changes: 30 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"@fortawesome/react-fontawesome": "^0.2.0",
"@foxxmd/chromecast-client": "^1.0.4",
"@foxxmd/string-sameness": "^0.2.0",
"@foxxmd/string-sameness": "^0.4.0",
"@foxxmd/winston": "3.3.31",
"@kenyip/backoff-strategies": "^1.0.4",
"@react-nano/use-event-source": "^0.13.0",
Expand Down
2 changes: 1 addition & 1 deletion src/backend/tests/utils/strings.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ describe('String Comparisons', function () {

for(const test of tests) {
const result = compareNormalizedStrings(test[0], test[1]);
assert.isAtMost( result.highScore, 53, `Comparing: '${test[0]}' | '${test[1]}'`);
assert.isAtMost( result.highScore, 58, `Comparing: '${test[0]}' | '${test[1]}'`);
}
});

Expand Down

0 comments on commit 8057982

Please sign in to comment.