fix(deps): update dependency fuzzysort to v3 (#30315)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renaud Chaput <renchap@gmail.com>
This commit is contained in:
renovate[bot] 2024-07-24 10:13:09 +02:00 committed by GitHub
parent 8b7f93cc7f
commit 06f070d86d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 14 additions and 14 deletions

View File

@ -68,7 +68,7 @@ module.exports = (api) => {
plugins,
overrides: [
{
test: /tesseract\.js/,
test: [/tesseract\.js/, /fuzzysort\.js/],
presets: [
['@babel/env', { ...envOptions, modules: 'commonjs' }],
],

View File

@ -2,19 +2,19 @@ const { join, resolve } = require('path');
const { env, settings } = require('../configuration');
// Those modules contain modern ES code that need to be transpiled for Webpack to process it
const nodeModulesToProcess = [
'@reduxjs', 'fuzzysort'
];
module.exports = {
test: /\.(js|jsx|mjs|ts|tsx)$/,
include: [
settings.source_path,
...settings.resolved_paths,
'node_modules/@reduxjs'
...nodeModulesToProcess.map(p => resolve(`node_modules/${p}`)),
].map(p => resolve(p)),
exclude: function(modulePath) {
return (
/node_modules/.test(modulePath) &&
!/@reduxjs/.test(modulePath)
);
},
exclude: new RegExp('node_modules\\/(?!(' + nodeModulesToProcess.join('|')+')\\/).*'),
use: [
{
loader: 'babel-loader',

View File

@ -72,7 +72,7 @@
"escape-html": "^1.0.3",
"file-loader": "^6.2.0",
"font-awesome": "^4.7.0",
"fuzzysort": "^2.0.4",
"fuzzysort": "^3.0.0",
"glob": "^10.2.6",
"history": "^4.10.1",
"hoist-non-react-statics": "^3.3.2",

View File

@ -2850,7 +2850,7 @@ __metadata:
eslint-plugin-react-hooks: "npm:^4.6.0"
file-loader: "npm:^6.2.0"
font-awesome: "npm:^4.7.0"
fuzzysort: "npm:^2.0.4"
fuzzysort: "npm:^3.0.0"
glob: "npm:^10.2.6"
history: "npm:^4.10.1"
hoist-non-react-statics: "npm:^3.3.2"
@ -8876,10 +8876,10 @@ __metadata:
languageName: node
linkType: hard
"fuzzysort@npm:^2.0.4":
version: 2.0.4
resolution: "fuzzysort@npm:2.0.4"
checksum: 10c0/3170d16fccc0f4ac5e31323dbab7d0da7b1a4024878ed4d6b4ec86c0df94e12dc335f8d4181e38d97ca7919ac51bc5de4a9c2ec94914a4e51f9e9c05208c9ea9
"fuzzysort@npm:^3.0.0":
version: 3.0.2
resolution: "fuzzysort@npm:3.0.2"
checksum: 10c0/c6cdbd092a8e91ed822aeac6d4fb95559759c10602cb29f27307c1cabd01fdd384fa399f7757722435b595244efb000cd63f144104c41b8551b2faff123279cb
languageName: node
linkType: hard