From e5a849ff798eef0664591f7c9c0598aaf489ecf4 Mon Sep 17 00:00:00 2001 From: Jon Robson Date: Mon, 2 Oct 2023 13:54:55 -0700 Subject: [PATCH] Codex-search NPM module was deprecated, use codex instead Change-Id: I0dfb2c8372a423630db093ae1af82385293b017b --- jest.config.js | 1 + package-lock.json | 161 +++++++++++++++++++++++++++++++++++----------- package.json | 5 +- 3 files changed, 128 insertions(+), 39 deletions(-) diff --git a/jest.config.js b/jest.config.js index 629495c6d..0c2b47908 100644 --- a/jest.config.js +++ b/jest.config.js @@ -5,6 +5,7 @@ module.exports = { moduleNameMapper: { + '@wikimedia/codex-search': '@wikimedia/codex', '^./templates/(.*).mustache': '/includes/templates/$1.mustache' }, diff --git a/package-lock.json b/package-lock.json index 5745a14dd..078c94b5b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,9 +12,8 @@ "@types/node-fetch": "2.6.5", "@vue/test-utils": "2.4.1", "@vue/vue3-jest": "27.0.0", - "@wikimedia/codex": "0.19.0", - "@wikimedia/codex-icons": "0.19.0", - "@wikimedia/codex-search": "0.19.0", + "@wikimedia/codex": "0.20.0", + "@wikimedia/codex-icons": "0.20.0", "@wikimedia/mw-node-qunit": "7.2.0", "@wikimedia/types-wikimedia": "0.4.1", "eslint-config-wikimedia": "0.25.1", @@ -731,6 +730,67 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, + "node_modules/@floating-ui/core": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.5.0.tgz", + "integrity": "sha512-kK1h4m36DQ0UHGj5Ah4db7R0rHemTqqO0QLvUqi1/mUUp3LuAWbWxdxSIf/XsnH9VS6rRVPLJCncjRzUvyCLXg==", + "dev": true, + "dependencies": { + "@floating-ui/utils": "^0.1.3" + } + }, + "node_modules/@floating-ui/dom": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.3.tgz", + "integrity": "sha512-ClAbQnEqJAKCJOEbbLo5IUlZHkNszqhuxS4fHAVxRPXPya6Ysf2G8KypnYcOTpx6I8xcgF9bbHb6g/2KpbV8qA==", + "dev": true, + "dependencies": { + "@floating-ui/core": "^1.4.2", + "@floating-ui/utils": "^0.1.3" + } + }, + "node_modules/@floating-ui/utils": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.1.6.tgz", + "integrity": "sha512-OfX7E2oUDYxtBvsuS4e/jSn4Q9Qb6DzgeYtsAdkPZ47znpoNsMgZw0+tVijiv3uGNR6dgNlty6r9rzIzHjtd/A==", + "dev": true + }, + "node_modules/@floating-ui/vue": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@floating-ui/vue/-/vue-1.0.2.tgz", + "integrity": "sha512-sImlAl9mAoCKZLNlwWz2P2ZMJIDlOEDXrRD6aD2sIHAka1LPC+nWtB+D3lPe7IE7FGWSbwBPTnlSdlABa3Fr0A==", + "dev": true, + "dependencies": { + "@floating-ui/dom": "^1.4.5", + "vue-demi": ">=0.13.0" + } + }, + "node_modules/@floating-ui/vue/node_modules/vue-demi": { + "version": "0.14.6", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.6.tgz", + "integrity": "sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==", + "dev": true, + "hasInstallScript": true, + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.8", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", @@ -2408,10 +2468,13 @@ } }, "node_modules/@wikimedia/codex": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/@wikimedia/codex/-/codex-0.19.0.tgz", - "integrity": "sha512-W0MMv3Z+X1Fm7qk9FtxYiPyoTwWS5EGbpdMF3x2A5EMCiVqDlaecczTsUGaoneZkDoCFeqaQ3VhMQc3onyBhyA==", + "version": "0.20.0", + "resolved": "https://registry.npmjs.org/@wikimedia/codex/-/codex-0.20.0.tgz", + "integrity": "sha512-zsK/oOS/V3ltC5fBTh0BSC3bQaERsk5SLfcTkNdFDbOdDvVlyS4NeUKrZNEVNg/sL5DipL8Bogyfuglm36f7iw==", "dev": true, + "dependencies": { + "@floating-ui/vue": "^1.0.2" + }, "engines": { "node": ">=16", "npm": ">=7.21.0" @@ -2421,28 +2484,15 @@ } }, "node_modules/@wikimedia/codex-icons": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/@wikimedia/codex-icons/-/codex-icons-0.19.0.tgz", - "integrity": "sha512-ZuolOJWzEkzTuYC03g6QaIvTs5wrqO7un2hDyjYQLmffmdZKr3W3u5B30jtPtKfrpj1VjIVLEFr0l7tOTqqMtg==", + "version": "0.20.0", + "resolved": "https://registry.npmjs.org/@wikimedia/codex-icons/-/codex-icons-0.20.0.tgz", + "integrity": "sha512-iuOY0BZut7dtTIXBpG3A8XabEERpQM2yhlmWlBnOg4XxTDpPuZe87Tz3lUavdM6jIaMgqGaEFr203J5SWIfLaw==", "dev": true, "engines": { "node": ">=16", "npm": ">=7.21.0" } }, - "node_modules/@wikimedia/codex-search": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/@wikimedia/codex-search/-/codex-search-0.19.0.tgz", - "integrity": "sha512-XIAPO1ECvVv1ZWMdZvXRtwpMSLqvIyuP2/QCNUshNEwlmVmbvrW6NTKPQ687x1z4QkwsZp4H1MAl5cJVVXQWhw==", - "dev": true, - "engines": { - "node": ">=16", - "npm": ">=7.21.0" - }, - "peerDependencies": { - "vue": "^3.2.37" - } - }, "node_modules/@wikimedia/mw-node-qunit": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/@wikimedia/mw-node-qunit/-/mw-node-qunit-7.2.0.tgz", @@ -12955,6 +13005,50 @@ "integrity": "sha512-x5vzdtOOGgFVDCUs81QRB2+liax8rFg3+7hqM+QhBG0/G3F1ZsoYl97UrqgHgQ9KKT7G6c4V+aTUCgu/n22v1A==", "dev": true }, + "@floating-ui/core": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.5.0.tgz", + "integrity": "sha512-kK1h4m36DQ0UHGj5Ah4db7R0rHemTqqO0QLvUqi1/mUUp3LuAWbWxdxSIf/XsnH9VS6rRVPLJCncjRzUvyCLXg==", + "dev": true, + "requires": { + "@floating-ui/utils": "^0.1.3" + } + }, + "@floating-ui/dom": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.3.tgz", + "integrity": "sha512-ClAbQnEqJAKCJOEbbLo5IUlZHkNszqhuxS4fHAVxRPXPya6Ysf2G8KypnYcOTpx6I8xcgF9bbHb6g/2KpbV8qA==", + "dev": true, + "requires": { + "@floating-ui/core": "^1.4.2", + "@floating-ui/utils": "^0.1.3" + } + }, + "@floating-ui/utils": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.1.6.tgz", + "integrity": "sha512-OfX7E2oUDYxtBvsuS4e/jSn4Q9Qb6DzgeYtsAdkPZ47znpoNsMgZw0+tVijiv3uGNR6dgNlty6r9rzIzHjtd/A==", + "dev": true + }, + "@floating-ui/vue": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@floating-ui/vue/-/vue-1.0.2.tgz", + "integrity": "sha512-sImlAl9mAoCKZLNlwWz2P2ZMJIDlOEDXrRD6aD2sIHAka1LPC+nWtB+D3lPe7IE7FGWSbwBPTnlSdlABa3Fr0A==", + "dev": true, + "requires": { + "@floating-ui/dom": "^1.4.5", + "vue-demi": ">=0.13.0" + }, + "dependencies": { + "vue-demi": { + "version": "0.14.6", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.6.tgz", + "integrity": "sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==", + "dev": true, + "requires": {} + } + } + }, "@humanwhocodes/config-array": { "version": "0.11.8", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", @@ -14305,25 +14399,20 @@ } }, "@wikimedia/codex": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/@wikimedia/codex/-/codex-0.19.0.tgz", - "integrity": "sha512-W0MMv3Z+X1Fm7qk9FtxYiPyoTwWS5EGbpdMF3x2A5EMCiVqDlaecczTsUGaoneZkDoCFeqaQ3VhMQc3onyBhyA==", + "version": "0.20.0", + "resolved": "https://registry.npmjs.org/@wikimedia/codex/-/codex-0.20.0.tgz", + "integrity": "sha512-zsK/oOS/V3ltC5fBTh0BSC3bQaERsk5SLfcTkNdFDbOdDvVlyS4NeUKrZNEVNg/sL5DipL8Bogyfuglm36f7iw==", "dev": true, - "requires": {} + "requires": { + "@floating-ui/vue": "^1.0.2" + } }, "@wikimedia/codex-icons": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/@wikimedia/codex-icons/-/codex-icons-0.19.0.tgz", - "integrity": "sha512-ZuolOJWzEkzTuYC03g6QaIvTs5wrqO7un2hDyjYQLmffmdZKr3W3u5B30jtPtKfrpj1VjIVLEFr0l7tOTqqMtg==", + "version": "0.20.0", + "resolved": "https://registry.npmjs.org/@wikimedia/codex-icons/-/codex-icons-0.20.0.tgz", + "integrity": "sha512-iuOY0BZut7dtTIXBpG3A8XabEERpQM2yhlmWlBnOg4XxTDpPuZe87Tz3lUavdM6jIaMgqGaEFr203J5SWIfLaw==", "dev": true }, - "@wikimedia/codex-search": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/@wikimedia/codex-search/-/codex-search-0.19.0.tgz", - "integrity": "sha512-XIAPO1ECvVv1ZWMdZvXRtwpMSLqvIyuP2/QCNUshNEwlmVmbvrW6NTKPQ687x1z4QkwsZp4H1MAl5cJVVXQWhw==", - "dev": true, - "requires": {} - }, "@wikimedia/mw-node-qunit": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/@wikimedia/mw-node-qunit/-/mw-node-qunit-7.2.0.tgz", diff --git a/package.json b/package.json index 9770691c0..c32abf2d6 100644 --- a/package.json +++ b/package.json @@ -23,9 +23,8 @@ "@types/node-fetch": "2.6.5", "@vue/test-utils": "2.4.1", "@vue/vue3-jest": "27.0.0", - "@wikimedia/codex": "0.19.0", - "@wikimedia/codex-icons": "0.19.0", - "@wikimedia/codex-search": "0.19.0", + "@wikimedia/codex": "0.20.0", + "@wikimedia/codex-icons": "0.20.0", "@wikimedia/mw-node-qunit": "7.2.0", "@wikimedia/types-wikimedia": "0.4.1", "eslint-config-wikimedia": "0.25.1",