diff --git a/.knipignore b/.knipignore new file mode 100644 index 0000000000..2efa1101a4 --- /dev/null +++ b/.knipignore @@ -0,0 +1,43 @@ +# Knip ignore file - patterns to exclude from analysis + +# Build outputs +**/lib/** +**/dist/** +**/build/** + +# Coverage and test outputs +**/coverage/** +**/.nyc_output/** + +# Generated files +**/tmp/** +**/.sbom/** + +# Test fixtures +**/test/fixtures/** +**/test/data/** + +# Evergreen CI specific +.evergreen/** + +# Async rewriter3 (Rust/WASM project) +packages/async-rewriter3/** + +# Lock files and dependencies +**/node_modules/** +package-lock.json +npm-shrinkwrap.json +yarn.lock +pnpm-lock.yaml + +# IDE and editor files +**/.vscode/** +**/.idea/** +**/*.swp +**/*.swo +**/*~ + +# OS files +**/.DS_Store +**/Thumbs.db + diff --git a/knip.ts b/knip.ts new file mode 100644 index 0000000000..0e319f0ebd --- /dev/null +++ b/knip.ts @@ -0,0 +1,235 @@ +import type { KnipConfig } from "knip"; +import fs from "fs"; + +// Create an empty file to satisfy the knip rule for async-rewriter2 +fs.writeFileSync( + "packages/async-rewriter2/src/runtime-support.out.nocov.ts", + "" +); + +const config: KnipConfig = { + rules: { + // Disable checking for unused exports, unused exported types, and duplicate dependencies. + exports: "off", + types: "off", + duplicates: "off", + }, + // Ignore patterns for files that should not be analyzed + ignore: [ + // Build outputs + "**/lib/**", + "**/dist/**", + "**/build/**", + "**/coverage/**", + "**/.nyc_output/**", + // Generated files + "**/tmp/**", + "**/.sbom/**", + "**/test/data/**", + // Configuration files + ".evergreen/**", + "config/**", + "configs/**", + "**/.eslintrc.js", + ], + + // Received from @mongodb-js/sbom-tools + ignoreBinaries: ["mongodb-sbom-tools"], + + // Workspace-specific configurations + workspaces: { + // Root package (monorepo root, no entry file needed) + ".": { + entry: ["scripts/*.ts"], + project: [], + ignoreBinaries: [ + // Lerna is listed as an optional dependency. + "lerna", + ], + }, + + // Config packages + "configs/eslint-config-mongosh": { + entry: ["utils.js"], + }, + + "configs/tsconfig-mongosh": { + entry: ["tsconfig.common.json"], + }, + + // Special cases for packages with different entry points + "packages/cli-repl": { + project: ["src/**/*.ts!", "bin/**/*.js", "test/**/*.ts"], + ignoreDependencies: [ + // Eagerly loaded startup snapshot dependencies + "@mongodb-js/saslprep", + "socks", + "emphasize", + "ipv6-normalize", + "bindings", + "system-ca", + // Used for monkey-patching our s390x fix + "@tootallnate/quickjs-emscripten", + ], + }, + + "packages/shell-api": { + entry: ["src/api.ts!", "scripts/*.ts", "test/*.ts"], + }, + + "packages/mongosh": { + project: ["bin/**/*.js"], + }, + + "packages/e2e-tests": { + entry: ["test/**/*.ts", "test/fixtures/**/*"], + ignoreDependencies: [ + // This is used for version check. TODO: Consider changing that test. + "@mongosh/cli-repl", + ], + }, + + "scripts/docker": { + ignoreDependencies: [ + // Used by build.sh script. + "mongodb-crypt-library-version", + ], + }, + + "packages/service-provider-node-driver": { + ignoreDependencies: [ + // Used for MONGODB-AWS auth + // See: https://github.com/mongodb-js/mongosh/pull/1149 + // See: https://jira.mongodb.org/browse/NODE-5005 + "aws4", + ], + }, + + "packages/node-runtime-worker-thread": { + ignoreDependencies: [ + // Used in worker thread context + "system-ca", + ], + ignoreFiles: [ + // Used in package.json + "tests/register-worker.js", + ], + }, + + "packages/errors": { + entry: ["src/index.ts!", "scripts/*.ts"], + }, + + "packages/browser-repl": { + entry: ["src/index.tsx!", "config/*.js"], + project: ["src/**/*.{ts,tsx}!"], + ignoreDependencies: [ + "@wojtekmaj/enzyme-adapter-react-17", + "enzyme", + // Karma test runner plugins + "karma-chrome-launcher", + "karma-mocha", + "karma-mocha-reporter", + "karma-typescript", + // Resolved as `/` + "buffer", + "util", + ], + }, + + "packages/java-shell": { + entry: ["src/test/js/run-tests.ts"], + project: ["src/main/js/**/*"], + ignoreDependencies: [ + // Used in webpack and build scripts + "bson", + "tr46", + "assert", + "buffer", + "util", + ], + }, + + "packages/connectivity-tests": { + entry: ["scripts/disable-dns-srv.js"], + // This package only contains bash test scripts + ignoreDependencies: [ + // Used by test scripts + "mongosh", + ], + }, + + "packages/async-rewriter2": { + entry: [ + "src/index.ts!", + "bin/*.js!", + "test/fixtures/**/*", + "scripts/*.js", + "benchmark/index.ts", + ], + ignoreFiles: [ + // Used by make-runtime-support.js + "src/runtime-support.nocov.js", + ], + }, + + "packages/snippet-manager": { + entry: ["test/fixtures/**/*"], + }, + + testing: { + entry: ["src/**/*.ts"], + project: ["src/**/*.ts"], + }, + }, + + // Mocha test files configuration + mocha: { + config: ["**/mocharc.{js,json,yml,yaml}", "**/.mocharc.{js,json,yml,yaml}"], + entry: ["**/*.spec.{ts,tsx,js}", "**/*.test.{ts,tsx,js}"], + }, + + // TypeScript configuration + typescript: { + config: [ + "tsconfig.json", + "tsconfig-lint.json", + "**/tsconfig.json", + "**/tsconfig-lint.json", + "configs/tsconfig-mongosh/tsconfig.common.json", + ], + }, + + // Webpack configuration + webpack: { + config: [ + "config/webpack.base.config.js", + "**/webpack.config.js", + "**/webpack.config.*.js", + ], + }, + + // ESLint configuration + eslint: { + config: [ + "configs/eslint-config-mongosh/index.js", + "**/.eslintrc.{js,json}", + ], + }, + + // Prettier configuration + prettier: { + config: [ + ".prettierrc", + ".prettierrc.{js,json,yml,yaml}", + "prettier.config.js", + ], + }, + + // Nyc (test coverage) configuration + nyc: { + config: [".nycrc", ".nycrc.{json,yml,yaml}", "nyc.config.js"], + }, +}; + +export default config; diff --git a/mongosh.code-workspace b/mongosh.code-workspace index 728c1c39f8..9ce22be57a 100644 --- a/mongosh.code-workspace +++ b/mongosh.code-workspace @@ -32,10 +32,6 @@ "name": "📦 @mongosh/history", "path": "packages/history" }, - { - "name": "📦 @mongosh/java-shell", - "path": "packages/java-shell" - }, { "name": "📦 @mongosh/js-multiline-to-singleline", "path": "packages/js-multiline-to-singleline" @@ -64,6 +60,10 @@ "name": "📦 @mongosh/arg-parser", "path": "packages/arg-parser" }, + { + "name": "📦 @mongosh/java-shell", + "path": "packages/java-shell" + }, { "name": "📦 @mongosh/service-provider-core", "path": "packages/service-provider-core" diff --git a/package-lock.json b/package-lock.json index c61095565f..6339c1ffe0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,6 @@ "packages/build", "packages/errors", "packages/history", - "packages/java-shell", "packages/js-multiline-to-singleline", "packages/types", "packages/i18n", @@ -23,6 +22,7 @@ "packages/shell-bson", "packages/testing", "packages/arg-parser", + "packages/java-shell", "packages/service-provider-core", "packages/service-provider-node-driver", "packages/shell-api", @@ -43,32 +43,25 @@ "mongosh": "packages/cli-repl/bin/mongosh.js" }, "devDependencies": { - "@babel/compat-data": "^7.26.8", "@mongodb-js/monorepo-tools": "^1.1.10", "@pkgjs/nv": "^0.2.2", "@types/chai": "^5.2.3", "@types/mocha": "^5.2.7", "@types/node": "^22.15.30", - "@types/rimraf": "^3.0.0", "@types/semver": "^7.3.4", "@types/sinon-chai": "^4.0.0", - "@types/which": "^1.3.2", "chai": "^6.2.1", "cross-env": "^6.0.3", - "depcheck": "^1.4.7", - "duplexpair": "^1.0.2", "find-up": "^5.0.0", "glob": "^10.3.12", "husky": "^9.0.11", - "mocha": "^10.2.0", - "mongodb": "^6.19.0", + "knip": "^5.71.0", + "mocha": "^11.7.5", "mongodb-runner": "^6.0.0", - "node-gyp": "^11.5.0", "nyc": "^15.1.0", "pkg-up": "^3.1.0", "rimraf": "^3.0.2", - "semver": "^7.6.3", - "sinon": "^7.5.0", + "sinon": "^19.0.4", "sinon-chai": "^4.0.1", "terser-webpack-plugin": "^5.3.11", "ts-loader": "^8.0.14", @@ -78,7 +71,6 @@ "webpack": "^5.99.9", "webpack-bundle-analyzer": "^4.7.0", "webpack-cli": "^6.0.1", - "which": "^2.0.2", "yaml": "^1.10.0" }, "engines": { @@ -3349,13 +3341,13 @@ "license": "0BSD" }, "node_modules/@emnapi/core": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.2.0.tgz", - "integrity": "sha512-E7Vgw78I93we4ZWdYCb4DGAwRROGkMIXk7/y87UmANR+J6qsWusmC3gLt0H+O0KOt5e6O38U8oJamgbudrES/w==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.7.1.tgz", + "integrity": "sha512-o1uhUASyo921r2XtHYOHy7gdkGLge8ghBEQHMWmyJFoXlpU58kIrhhN3w26lpQb6dspetweapMn2CSNwQ8I4wg==", "license": "MIT", "optional": true, "dependencies": { - "@emnapi/wasi-threads": "1.0.1", + "@emnapi/wasi-threads": "1.1.0", "tslib": "^2.4.0" } }, @@ -3367,9 +3359,9 @@ "optional": true }, "node_modules/@emnapi/runtime": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.2.0.tgz", - "integrity": "sha512-bV21/9LQmcQeCPEg3BDFtvwL6cwiTMksYNWQQ4KOxCZikEGalWtenoZ0wCiukJINlGCIi2KXx01g4FoH/LxpzQ==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.7.1.tgz", + "integrity": "sha512-PVtJr5CmLwYAU9PZDMITZoR5iAOShYREoR45EyyLrbntV50mdePTgUn4AmOw90Ifcj+x2kRjdzr1HP3RrNiHGA==", "license": "MIT", "optional": true, "dependencies": { @@ -3384,9 +3376,9 @@ "optional": true }, "node_modules/@emnapi/wasi-threads": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.0.1.tgz", - "integrity": "sha512-iIBu7mwkq4UQGeMEM8bLwNK962nXdhodeScX4slfQnRhEMMzvYivHhutCIk8uojvmASXXPC2WNEjwxFWk72Oqw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.1.0.tgz", + "integrity": "sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==", "license": "MIT", "optional": true, "dependencies": { @@ -3394,9 +3386,9 @@ } }, "node_modules/@emnapi/wasi-threads/node_modules/tslib": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.0.tgz", - "integrity": "sha512-jWVzBLplnCmoaTr13V9dYbiQ99wvZRd0vNWaDRg+aVYRcjDF3nDksxFDE/+fkXnKhpnUUkmx5pK/v8mCtLVqZA==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", "license": "0BSD", "optional": true }, @@ -10311,6 +10303,321 @@ "integrity": "sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==", "license": "MIT" }, + "node_modules/@oxc-resolver/binding-android-arm-eabi": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-android-arm-eabi/-/binding-android-arm-eabi-11.15.0.tgz", + "integrity": "sha512-Q+lWuFfq7whNelNJIP1dhXaVz4zO9Tu77GcQHyxDWh3MaCoO2Bisphgzmsh4ZoUe2zIchQh6OvQL99GlWHg9Tw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@oxc-resolver/binding-android-arm64": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-android-arm64/-/binding-android-arm64-11.15.0.tgz", + "integrity": "sha512-vbdBttesHR0W1oJaxgWVTboyMUuu+VnPsHXJ6jrXf4czELzB6GIg5DrmlyhAmFBhjwov+yJH/DfTnHS+2sDgOw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@oxc-resolver/binding-darwin-arm64": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-darwin-arm64/-/binding-darwin-arm64-11.15.0.tgz", + "integrity": "sha512-R67lsOe1UzNjqVBCwCZX1rlItTsj/cVtBw4Uy19CvTicqEWvwaTn8t34zLD75LQwDDPCY3C8n7NbD+LIdw+ZoA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@oxc-resolver/binding-darwin-x64": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-darwin-x64/-/binding-darwin-x64-11.15.0.tgz", + "integrity": "sha512-77mya5F8WV0EtCxI0MlVZcqkYlaQpfNwl/tZlfg4jRsoLpFbaTeWv75hFm6TE84WULVlJtSgvf7DhoWBxp9+ZQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@oxc-resolver/binding-freebsd-x64": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-freebsd-x64/-/binding-freebsd-x64-11.15.0.tgz", + "integrity": "sha512-X1Sz7m5PC+6D3KWIDXMUtux+0Imj6HfHGdBStSvgdI60OravzI1t83eyn6eN0LPTrynuPrUgjk7tOnOsBzSWHw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@oxc-resolver/binding-linux-arm-gnueabihf": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-11.15.0.tgz", + "integrity": "sha512-L1x/wCaIRre+18I4cH/lTqSAymlV0k4HqfSYNNuI9oeL28Ks86lI6O5VfYL6sxxWYgjuWB98gNGo7tq7d4GarQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-linux-arm-musleabihf": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-11.15.0.tgz", + "integrity": "sha512-abGXd/zMGa0tH8nKlAXdOnRy4G7jZmkU0J85kMKWns161bxIgGn/j7zxqh3DKEW98wAzzU9GofZMJ0P5YCVPVw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-linux-arm64-gnu": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-11.15.0.tgz", + "integrity": "sha512-SVjjjtMW66Mza76PBGJLqB0KKyFTBnxmtDXLJPbL6ZPGSctcXVmujz7/WAc0rb9m2oV0cHQTtVjnq6orQnI/jg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-linux-arm64-musl": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-arm64-musl/-/binding-linux-arm64-musl-11.15.0.tgz", + "integrity": "sha512-JDv2/AycPF2qgzEiDeMJCcSzKNDm3KxNg0KKWipoKEMDFqfM7LxNwwSVyAOGmrYlE4l3dg290hOMsr9xG7jv9g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-linux-ppc64-gnu": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-11.15.0.tgz", + "integrity": "sha512-zbu9FhvBLW4KJxo7ElFvZWbSt4vP685Qc/Gyk/Ns3g2gR9qh2qWXouH8PWySy+Ko/qJ42+HJCLg+ZNcxikERfg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-linux-riscv64-gnu": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-11.15.0.tgz", + "integrity": "sha512-Kfleehe6B09C2qCnyIU01xLFqFXCHI4ylzkicfX/89j+gNHh9xyNdpEvit88Kq6i5tTGdavVnM6DQfOE2qNtlg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-linux-riscv64-musl": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-11.15.0.tgz", + "integrity": "sha512-J7LPiEt27Tpm8P+qURDwNc8q45+n+mWgyys4/V6r5A8v5gDentHRGUx3iVk5NxdKhgoGulrzQocPTZVosq25Eg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-linux-s390x-gnu": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-11.15.0.tgz", + "integrity": "sha512-+8/d2tAScPjVJNyqa7GPGnqleTB/XW9dZJQ2D/oIM3wpH3TG+DaFEXBbk4QFJ9K9AUGBhvQvWU2mQyhK/yYn3Q==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-linux-x64-gnu": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-x64-gnu/-/binding-linux-x64-gnu-11.15.0.tgz", + "integrity": "sha512-xtvSzH7Nr5MCZI2FKImmOdTl9kzuQ51RPyLh451tvD2qnkg3BaqI9Ox78bTk57YJhlXPuxWSOL5aZhKAc9J6qg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-linux-x64-musl": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-x64-musl/-/binding-linux-x64-musl-11.15.0.tgz", + "integrity": "sha512-14YL1zuXj06+/tqsuUZuzL0T425WA/I4nSVN1kBXeC5WHxem6lQ+2HGvG+crjeJEqHgZUT62YIgj88W+8E7eyg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-openharmony-arm64": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-openharmony-arm64/-/binding-openharmony-arm64-11.15.0.tgz", + "integrity": "sha512-/7Qli+1Wk93coxnrQaU8ySlICYN8HsgyIrzqjgIkQEpI//9eUeaeIHZptNl2fMvBGeXa7k2QgLbRNaBRgpnvMw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@oxc-resolver/binding-wasm32-wasi": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-wasm32-wasi/-/binding-wasm32-wasi-11.15.0.tgz", + "integrity": "sha512-q5rn2eIMQLuc/AVGR2rQKb2EVlgreATGG8xXg8f4XbbYCVgpxaq+dgMbiPStyNywW1MH8VU2T09UEm30UtOQvg==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@napi-rs/wasm-runtime": "^1.1.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@oxc-resolver/binding-wasm32-wasi/node_modules/@napi-rs/wasm-runtime": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.0.tgz", + "integrity": "sha512-Fq6DJW+Bb5jaWE69/qOE0D1TUN9+6uWhCeZpdnSBk14pjLcCWR7Q8n49PTSPHazM37JqrsdpEthXy2xn6jWWiA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.7.1", + "@emnapi/runtime": "^1.7.1", + "@tybys/wasm-util": "^0.10.1" + } + }, + "node_modules/@oxc-resolver/binding-wasm32-wasi/node_modules/@tybys/wasm-util": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz", + "integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@oxc-resolver/binding-wasm32-wasi/node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true, + "license": "0BSD", + "optional": true + }, + "node_modules/@oxc-resolver/binding-win32-arm64-msvc": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-11.15.0.tgz", + "integrity": "sha512-yCAh2RWjU/8wWTxQDgGPgzV9QBv0/Ojb5ej1c/58iOjyTuy/J1ZQtYi2SpULjKmwIxLJdTiCHpMilauWimE31w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@oxc-resolver/binding-win32-ia32-msvc": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-11.15.0.tgz", + "integrity": "sha512-lmXKb6lvA6M6QIbtYfgjd+AryJqExZVSY2bfECC18OPu7Lv1mHFF171Mai5l9hG3r4IhHPPIwT10EHoilSCYeA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@oxc-resolver/binding-win32-x64-msvc": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-win32-x64-msvc/-/binding-win32-x64-msvc-11.15.0.tgz", + "integrity": "sha512-HZsfne0s/tGOcJK9ZdTGxsNU2P/dH0Shf0jqrPvsC6wX0Wk+6AyhSpHFLQCnLOuFQiHHU0ePfM8iYsoJb5hHpQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, "node_modules/@pkgjs/nv": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/@pkgjs/nv/-/nv-0.2.2.tgz", @@ -11010,33 +11317,51 @@ "@sinonjs/commons": "^1.7.0" } }, - "node_modules/@sinonjs/formatio": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-3.2.2.tgz", - "integrity": "sha512-B8SEsgd8gArBLMD6zpRw3juQ2FVSsmdd7qlevyDqzS9WTCtvF55/gAL+h6gue8ZvPYcdiPdvueM/qm//9XzyTQ==", + "node_modules/@sinonjs/samsam": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-8.0.3.tgz", + "integrity": "sha512-hw6HbX+GyVZzmaYNh82Ecj1vdGZrqVIn/keDTg63IgAwiQPO+xCz99uG6Woqgb4tM0mUiFENKZ4cqd7IX94AXQ==", "dev": true, "license": "BSD-3-Clause", "dependencies": { - "@sinonjs/commons": "^1", - "@sinonjs/samsam": "^3.1.0" + "@sinonjs/commons": "^3.0.1", + "type-detect": "^4.1.0" } }, - "node_modules/@sinonjs/samsam": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-3.3.3.tgz", - "integrity": "sha512-bKCMKZvWIjYD0BLGnNrxVuw4dkWCYsLqFOUWw8VgKF/+5Y+mE7LfHWPIYoDXowH+3a9LsWDMo0uAP8YDosPvHQ==", + "node_modules/@sinonjs/samsam/node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", "dev": true, "license": "BSD-3-Clause", "dependencies": { - "@sinonjs/commons": "^1.3.0", - "array-from": "^2.1.1", - "lodash": "^4.17.15" + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/samsam/node_modules/@sinonjs/commons/node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/@sinonjs/samsam/node_modules/type-detect": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz", + "integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" } }, "node_modules/@sinonjs/text-encoding": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz", - "integrity": "sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==", + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.3.tgz", + "integrity": "sha512-DE427ROAphMQzU4ENbliGYrBSYPXF+TtLg9S8vzeA+OF4ZKzoDdzfL8sxuMUGS/lgRhM6j1URSk9ghf7Xo1tyA==", "dev": true, "license": "(Unlicense OR Apache-2.0)" }, @@ -13285,67 +13610,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/@vue/compiler-core": { - "version": "3.5.12", - "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.12.tgz", - "integrity": "sha512-ISyBTRMmMYagUxhcpyEH0hpXRd/KqDU4ymofPgl2XAkY9ZhQ+h0ovEZJIiPop13UmR/54oA2cgMDjgroRelaEw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.25.3", - "@vue/shared": "3.5.12", - "entities": "^4.5.0", - "estree-walker": "^2.0.2", - "source-map-js": "^1.2.0" - } - }, - "node_modules/@vue/compiler-dom": { - "version": "3.5.12", - "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.12.tgz", - "integrity": "sha512-9G6PbJ03uwxLHKQ3P42cMTi85lDRvGLB2rSGOiQqtXELat6uI4n8cNz9yjfVHRPIu+MsK6TE418Giruvgptckg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vue/compiler-core": "3.5.12", - "@vue/shared": "3.5.12" - } - }, - "node_modules/@vue/compiler-sfc": { - "version": "3.5.12", - "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.12.tgz", - "integrity": "sha512-2k973OGo2JuAa5+ZlekuQJtitI5CgLMOwgl94BzMCsKZCX/xiqzJYzapl4opFogKHqwJk34vfsaKpfEhd1k5nw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.25.3", - "@vue/compiler-core": "3.5.12", - "@vue/compiler-dom": "3.5.12", - "@vue/compiler-ssr": "3.5.12", - "@vue/shared": "3.5.12", - "estree-walker": "^2.0.2", - "magic-string": "^0.30.11", - "postcss": "^8.4.47", - "source-map-js": "^1.2.0" - } - }, - "node_modules/@vue/compiler-ssr": { - "version": "3.5.12", - "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.12.tgz", - "integrity": "sha512-eLwc7v6bfGBSM7wZOGPmRavSWzNFF6+PdRhE+VFJhNCgHiF8AM7ccoqcv5kBXA2eWUfigD7byekvf/JsOfKvPA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vue/compiler-dom": "3.5.12", - "@vue/shared": "3.5.12" - } - }, - "node_modules/@vue/shared": { - "version": "3.5.12", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.12.tgz", - "integrity": "sha512-L2RPSAwUFbgZH20etwrXyVyCBu9OxRSi8T/38QsvnkJyvq2LufW2lDCOzm7t/U9C1mkhJGWYfCuFBCmIuNivrg==", - "dev": true, - "license": "MIT" - }, "node_modules/@webassemblyjs/ast": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz", @@ -14139,8 +14403,8 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-3.0.0.tgz", "integrity": "sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==", - "devOptional": true, "license": "MIT", + "optional": true, "engines": { "node": ">=8" } @@ -14162,13 +14426,6 @@ "dev": true, "license": "MIT" }, - "node_modules/array-from": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/array-from/-/array-from-2.1.1.tgz", - "integrity": "sha512-GQTc6Uupx1FCavi5mPzBvVT7nEOeWMmUA9P95wpfpW1XwMSKs+KaymD5C2Up7KAUKg/mYwbsUYzdZWcoajlNZg==", - "dev": true, - "license": "MIT" - }, "node_modules/array-ify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", @@ -15571,15 +15828,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/callsite": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz", - "integrity": "sha512-0vdNRFXn5q+dtOqjfFtmtlI9N2eVZ7LMyEV2iKC5mEEFvSg/69Ml6b/WU2qF8W1nLRa0wiSrDT3Y5jOHZCwKPQ==", - "dev": true, - "engines": { - "node": "*" - } - }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -17330,94 +17578,6 @@ "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==", "license": "MIT" }, - "node_modules/depcheck": { - "version": "1.4.7", - "resolved": "https://registry.npmjs.org/depcheck/-/depcheck-1.4.7.tgz", - "integrity": "sha512-1lklS/bV5chOxwNKA/2XUUk/hPORp8zihZsXflr8x0kLwmcZ9Y9BsS6Hs3ssvA+2wUVbG0U2Ciqvm1SokNjPkA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.23.0", - "@babel/traverse": "^7.23.2", - "@vue/compiler-sfc": "^3.3.4", - "callsite": "^1.0.0", - "camelcase": "^6.3.0", - "cosmiconfig": "^7.1.0", - "debug": "^4.3.4", - "deps-regex": "^0.2.0", - "findup-sync": "^5.0.0", - "ignore": "^5.2.4", - "is-core-module": "^2.12.0", - "js-yaml": "^3.14.1", - "json5": "^2.2.3", - "lodash": "^4.17.21", - "minimatch": "^7.4.6", - "multimatch": "^5.0.0", - "please-upgrade-node": "^3.2.0", - "readdirp": "^3.6.0", - "require-package-name": "^2.0.1", - "resolve": "^1.22.3", - "resolve-from": "^5.0.0", - "semver": "^7.5.4", - "yargs": "^16.2.0" - }, - "bin": { - "depcheck": "bin/depcheck.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/depcheck/node_modules/brace-expansion": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", - "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/depcheck/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/depcheck/node_modules/minimatch": { - "version": "7.4.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-7.4.6.tgz", - "integrity": "sha512-sBz8G/YjVniEz6lKPNpKxXwazJe4c19fEfV2GDMX6AjFz+MX9uDWIZW8XreVhkFW3fkIdTv/gxWr/Kks5FFAVw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/depcheck/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/depd": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", @@ -17433,13 +17593,6 @@ "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", "license": "ISC" }, - "node_modules/deps-regex": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/deps-regex/-/deps-regex-0.2.0.tgz", - "integrity": "sha512-PwuBojGMQAYbWkMXOY9Pd/NWCDNHVH12pnS7WHqZkTSeMESe4hwnKKRp0yR87g37113x4JPbo/oIvXY+s/f56Q==", - "dev": true, - "license": "MIT" - }, "node_modules/dequal": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", @@ -17471,16 +17624,6 @@ "npm": "1.2.8000 || >= 1.4.16" } }, - "node_modules/detect-file": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz", - "integrity": "sha512-DtCOLG98P007x7wiiOmfI0fi3eIKyWiLTGJ2MDnVi/E04lWGbf+JzrRHMm0rgIIZJGtHpKpbVgLWHrv8xXpc3Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/detect-indent": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-5.0.0.tgz", @@ -18989,13 +19132,6 @@ "node": ">=4.0" } }, - "node_modules/estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "dev": true, - "license": "MIT" - }, "node_modules/esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", @@ -19119,19 +19255,6 @@ "node": ">=6" } }, - "node_modules/expand-tilde": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz", - "integrity": "sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==", - "dev": true, - "license": "MIT", - "dependencies": { - "homedir-polyfill": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/exponential-backoff": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.1.tgz", @@ -19586,16 +19709,16 @@ "dev": true }, "node_modules/fast-glob": { - "version": "3.2.11", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", - "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", - "micromatch": "^4.0.4" + "micromatch": "^4.0.8" }, "engines": { "node": ">=8.6.0" @@ -19688,6 +19811,26 @@ "node": ">=0.8.0" } }, + "node_modules/fd-package-json": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fd-package-json/-/fd-package-json-2.0.0.tgz", + "integrity": "sha512-jKmm9YtsNXN789RS/0mSzOC1NUq9mkVd65vbSSVsKdjGvYXBuE4oWe2QOEoFeRmJg+lPuZxpmrfFclNhoRMneQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "walk-up-path": "^4.0.0" + } + }, + "node_modules/fd-package-json/node_modules/walk-up-path": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/walk-up-path/-/walk-up-path-4.0.0.tgz", + "integrity": "sha512-3hu+tD8YzSLGuFYtPRb48vdhKMi0KQV5sn+uWr8+7dMEq/2G/dtLrdDinkLjqq5TIbIBjYJ4Ax/n3YiaW7QM8A==", + "dev": true, + "license": "ISC", + "engines": { + "node": "20 || >=22" + } + }, "node_modules/fd-slicer": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", @@ -19945,22 +20088,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/findup-sync": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-5.0.0.tgz", - "integrity": "sha512-MzwXju70AuyflbgeOhzvQWAvvQdo1XL0A9bVvlXsYcFEBM87WR4OakL4OfZq+QRmr+duJubio+UtNQCPsVESzQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "detect-file": "^1.0.0", - "is-glob": "^4.0.3", - "micromatch": "^4.0.4", - "resolve-dir": "^1.0.1" - }, - "engines": { - "node": ">= 10.13.0" - } - }, "node_modules/flat": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", @@ -20100,6 +20227,22 @@ "node": ">=0.4.x" } }, + "node_modules/formatly": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/formatly/-/formatly-0.3.0.tgz", + "integrity": "sha512-9XNj/o4wrRFyhSMJOvsuyMwy8aUfBaZ1VrqHVfohyXf0Sw0e+yfKG+xZaY3arGCOMdwFsqObtzVOc1gU9KiT9w==", + "dev": true, + "license": "MIT", + "dependencies": { + "fd-package-json": "^2.0.0" + }, + "bin": { + "formatly": "bin/index.mjs" + }, + "engines": { + "node": ">=18.3.0" + } + }, "node_modules/formdata-polyfill": { "version": "4.0.10", "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", @@ -20691,51 +20834,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/global-modules": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-1.0.0.tgz", - "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==", - "dev": true, - "license": "MIT", - "dependencies": { - "global-prefix": "^1.0.1", - "is-windows": "^1.0.1", - "resolve-dir": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/global-prefix": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-1.0.2.tgz", - "integrity": "sha512-5lsx1NUDHtSjfg0eHlmYvZKv8/nVqX4ckFbM+FrGcQ+04KWcWFo9P5MxPZYSzUvyzmdTbI7Eix8Q4IbELDqzKg==", - "dev": true, - "license": "MIT", - "dependencies": { - "expand-tilde": "^2.0.2", - "homedir-polyfill": "^1.0.1", - "ini": "^1.3.4", - "is-windows": "^1.0.1", - "which": "^1.2.14" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/global-prefix/node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, "node_modules/globals": { "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", @@ -21242,19 +21340,6 @@ "minimalistic-crypto-utils": "^1.0.1" } }, - "node_modules/homedir-polyfill": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", - "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", - "dev": true, - "license": "MIT", - "dependencies": { - "parse-passwd": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/hosted-git-info": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", @@ -22405,6 +22490,16 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/is-plain-obj": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", @@ -23018,6 +23113,16 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, + "node_modules/jiti": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", + "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, "node_modules/jju": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/jju/-/jju-1.4.0.tgz", @@ -23871,6 +23976,84 @@ "node": ">=0.10.0" } }, + "node_modules/knip": { + "version": "5.71.0", + "resolved": "https://registry.npmjs.org/knip/-/knip-5.71.0.tgz", + "integrity": "sha512-hwgdqEJ+7DNJ5jE8BCPu7b57TY7vUwP6MzWYgCgPpg6iPCee/jKPShDNIlFER2koti4oz5xF88VJbKCb4Wl71g==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/webpro" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/knip" + } + ], + "license": "ISC", + "dependencies": { + "@nodelib/fs.walk": "^1.2.3", + "fast-glob": "^3.3.3", + "formatly": "^0.3.0", + "jiti": "^2.6.0", + "js-yaml": "^4.1.1", + "minimist": "^1.2.8", + "oxc-resolver": "^11.13.2", + "picocolors": "^1.1.1", + "picomatch": "^4.0.1", + "smol-toml": "^1.5.2", + "strip-json-comments": "5.0.3", + "zod": "^4.1.11" + }, + "bin": { + "knip": "bin/knip.js", + "knip-bun": "bin/knip-bun.js" + }, + "engines": { + "node": ">=18.18.0" + }, + "peerDependencies": { + "@types/node": ">=18", + "typescript": ">=5.0.4 <7" + } + }, + "node_modules/knip/node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/knip/node_modules/strip-json-comments": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-5.0.3.tgz", + "integrity": "sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/knip/node_modules/zod": { + "version": "4.1.13", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.1.13.tgz", + "integrity": "sha512-AvvthqfqrAhNH9dnfmrfKzX5upOdjUVJYFqNSlkmGf64gRaTzlPwz99IHYnVs28qYAybvAlBV+H7pn0saFY4Ig==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, "node_modules/language-subtag-registry": { "version": "0.3.22", "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", @@ -25670,13 +25853,6 @@ "node": ">=8.0" } }, - "node_modules/lolex": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lolex/-/lolex-4.2.0.tgz", - "integrity": "sha512-gKO5uExCXvSm6zbF562EvM+rd1kQDnB9AZBbiQVzf1ZmdDpxUSvpnAaVOP83N/31mRK8Ml8/VE8DMvsAZQ+7wg==", - "dev": true, - "license": "BSD-3-Clause" - }, "node_modules/loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", @@ -25787,16 +25963,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/magic-string": { - "version": "0.30.12", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.12.tgz", - "integrity": "sha512-Ea8I3sQMVXr8JhN4z+H/d8zwo+tYDgHE9+5G4Wnrwhs0gaK9fXTKx0Tw5Xwsd/bCPTTZNRAdpyzvoeORe9LYpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0" - } - }, "node_modules/make-dir": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", @@ -26676,30 +26842,32 @@ "license": "MIT" }, "node_modules/mocha": { - "version": "10.8.2", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.8.2.tgz", - "integrity": "sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==", + "version": "11.7.5", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-11.7.5.tgz", + "integrity": "sha512-mTT6RgopEYABzXWFx+GcJ+ZQ32kp4fMf0xvpZIIfSq9Z8lC/++MtcCnQ9t5FP2veYEP95FIYSvW+U9fV4xrlig==", "dev": true, + "license": "MIT", "dependencies": { - "ansi-colors": "^4.1.3", "browser-stdout": "^1.3.1", - "chokidar": "^3.5.3", + "chokidar": "^4.0.1", "debug": "^4.3.5", - "diff": "^5.2.0", + "diff": "^7.0.0", "escape-string-regexp": "^4.0.0", "find-up": "^5.0.0", - "glob": "^8.1.0", + "glob": "^10.4.5", "he": "^1.2.0", + "is-path-inside": "^3.0.3", "js-yaml": "^4.1.0", "log-symbols": "^4.1.0", - "minimatch": "^5.1.6", + "minimatch": "^9.0.5", "ms": "^2.1.3", + "picocolors": "^1.1.1", "serialize-javascript": "^6.0.2", "strip-json-comments": "^3.1.1", "supports-color": "^8.1.1", - "workerpool": "^6.5.1", - "yargs": "^16.2.0", - "yargs-parser": "^20.2.9", + "workerpool": "^9.2.0", + "yargs": "^17.7.2", + "yargs-parser": "^21.1.1", "yargs-unparser": "^2.0.0" }, "bin": { @@ -26707,7 +26875,7 @@ "mocha": "bin/mocha.js" }, "engines": { - "node": ">= 14.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/mocha/node_modules/brace-expansion": { @@ -26720,6 +26888,37 @@ "balanced-match": "^1.0.0" } }, + "node_modules/mocha/node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/mocha/node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/mocha/node_modules/debug": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", @@ -26738,34 +26937,15 @@ } }, "node_modules/mocha/node_modules/diff": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", - "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-7.0.0.tgz", + "integrity": "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.3.1" } }, - "node_modules/mocha/node_modules/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/mocha/node_modules/log-symbols": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", @@ -26784,15 +26964,19 @@ } }, "node_modules/mocha/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "dev": true, + "license": "ISC", "dependencies": { "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=10" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/mocha/node_modules/ms": { @@ -26802,6 +26986,20 @@ "dev": true, "license": "MIT" }, + "node_modules/mocha/node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/mocha/node_modules/supports-color": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", @@ -26818,6 +27016,35 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, + "node_modules/mocha/node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/mocha/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, "node_modules/modify-values": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/modify-values/-/modify-values-1.0.1.tgz", @@ -27247,8 +27474,8 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-5.0.0.tgz", "integrity": "sha512-ypMKuglUrZUD99Tk2bUQ+xNQj43lPEfAeX2o9cTteAmShXy2VHDJpuwu1o0xqoKCt9jLVAvwyFKdLTPXKAfJyA==", - "devOptional": true, "license": "MIT", + "optional": true, "dependencies": { "@types/minimatch": "^3.0.3", "array-differ": "^3.0.0", @@ -27267,8 +27494,8 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", - "devOptional": true, "license": "MIT", + "optional": true, "engines": { "node": ">=8" } @@ -27453,27 +27680,55 @@ "license": "MIT" }, "node_modules/nise": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/nise/-/nise-1.5.3.tgz", - "integrity": "sha512-Ymbac/94xeIrMf59REBPOv0thr+CJVFMhrlAkW/gjCIE58BGQdCj0x7KRCb3yz+Ga2Rz3E9XXSvUyyxqqhjQAQ==", + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/nise/-/nise-6.1.1.tgz", + "integrity": "sha512-aMSAzLVY7LyeM60gvBS423nBmIPP+Wy7St7hsb+8/fc1HmeoHJfLO8CKse4u3BtOZvQLJghYPI2i/1WZrEj5/g==", "dev": true, "license": "BSD-3-Clause", "dependencies": { - "@sinonjs/formatio": "^3.2.1", - "@sinonjs/text-encoding": "^0.7.1", - "just-extend": "^4.0.2", - "lolex": "^5.0.1", - "path-to-regexp": "^1.7.0" + "@sinonjs/commons": "^3.0.1", + "@sinonjs/fake-timers": "^13.0.1", + "@sinonjs/text-encoding": "^0.7.3", + "just-extend": "^6.2.0", + "path-to-regexp": "^8.1.0" } }, - "node_modules/nise/node_modules/lolex": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/lolex/-/lolex-5.1.2.tgz", - "integrity": "sha512-h4hmjAvHTmd+25JSwrtTIuwbKdwg5NzZVRMLn9saij4SZaepCrTCxPr35H/3bjwfMJtN+t3CX8672UIkglz28A==", + "node_modules/nise/node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", "dev": true, "license": "BSD-3-Clause", "dependencies": { - "@sinonjs/commons": "^1.7.0" + "type-detect": "4.0.8" + } + }, + "node_modules/nise/node_modules/@sinonjs/fake-timers": { + "version": "13.0.5", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-13.0.5.tgz", + "integrity": "sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@sinonjs/commons": "^3.0.1" + } + }, + "node_modules/nise/node_modules/just-extend": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-6.2.0.tgz", + "integrity": "sha512-cYofQu2Xpom82S6qD778jBDpwvvy39s1l/hrYij2u9AMdQcGRpaBu6kY4mVhuno5kJVi1DAz4aiphA2WI1/OAw==", + "dev": true, + "license": "MIT" + }, + "node_modules/nise/node_modules/path-to-regexp": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.3.0.tgz", + "integrity": "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==", + "dev": true, + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/no-case": { @@ -29229,6 +29484,38 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/oxc-resolver": { + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/oxc-resolver/-/oxc-resolver-11.15.0.tgz", + "integrity": "sha512-Hk2J8QMYwmIO9XTCUiOH00+Xk2/+aBxRUnhrSlANDyCnLYc32R1WSIq1sU2yEdlqd53FfMpPEpnBYIKQMzliJw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/Boshen" + }, + "optionalDependencies": { + "@oxc-resolver/binding-android-arm-eabi": "11.15.0", + "@oxc-resolver/binding-android-arm64": "11.15.0", + "@oxc-resolver/binding-darwin-arm64": "11.15.0", + "@oxc-resolver/binding-darwin-x64": "11.15.0", + "@oxc-resolver/binding-freebsd-x64": "11.15.0", + "@oxc-resolver/binding-linux-arm-gnueabihf": "11.15.0", + "@oxc-resolver/binding-linux-arm-musleabihf": "11.15.0", + "@oxc-resolver/binding-linux-arm64-gnu": "11.15.0", + "@oxc-resolver/binding-linux-arm64-musl": "11.15.0", + "@oxc-resolver/binding-linux-ppc64-gnu": "11.15.0", + "@oxc-resolver/binding-linux-riscv64-gnu": "11.15.0", + "@oxc-resolver/binding-linux-riscv64-musl": "11.15.0", + "@oxc-resolver/binding-linux-s390x-gnu": "11.15.0", + "@oxc-resolver/binding-linux-x64-gnu": "11.15.0", + "@oxc-resolver/binding-linux-x64-musl": "11.15.0", + "@oxc-resolver/binding-openharmony-arm64": "11.15.0", + "@oxc-resolver/binding-wasm32-wasi": "11.15.0", + "@oxc-resolver/binding-win32-arm64-msvc": "11.15.0", + "@oxc-resolver/binding-win32-ia32-msvc": "11.15.0", + "@oxc-resolver/binding-win32-x64-msvc": "11.15.0" + } + }, "node_modules/p-cancelable": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.1.tgz", @@ -29778,16 +30065,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/parse-passwd": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", - "integrity": "sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/parse-path": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/parse-path/-/parse-path-7.0.0.tgz", @@ -30178,16 +30455,6 @@ "node": ">=4" } }, - "node_modules/please-upgrade-node": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz", - "integrity": "sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg==", - "dev": true, - "license": "MIT", - "dependencies": { - "semver-compare": "^1.0.0" - } - }, "node_modules/polished": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/polished/-/polished-4.2.2.tgz", @@ -30210,35 +30477,6 @@ "node": ">= 0.4" } }, - "node_modules/postcss": { - "version": "8.4.47", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.47.tgz", - "integrity": "sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "nanoid": "^3.3.7", - "picocolors": "^1.1.0", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, "node_modules/postcss-selector-parser": { "version": "6.1.2", "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", @@ -31756,13 +31994,6 @@ "dev": true, "license": "ISC" }, - "node_modules/require-package-name": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/require-package-name/-/require-package-name-2.0.1.tgz", - "integrity": "sha512-uuoJ1hU/k6M0779t3VMVIYpb2VMJk05cehCaABFhXaibcbvfgR8wKiozLjVFSzJPmQMRqIcO0HMyTFqfV09V6Q==", - "dev": true, - "license": "MIT" - }, "node_modules/requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", @@ -31822,20 +32053,6 @@ "node": ">=8" } }, - "node_modules/resolve-dir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-1.0.1.tgz", - "integrity": "sha512-R7uiTjECzvOsWSfdM0QKFNBVFcK27aHOUwdvK53BcW8zqnGdYp0Fbj82cy54+2A4P2tFM22J5kRfe1R+lM/1yg==", - "dev": true, - "license": "MIT", - "dependencies": { - "expand-tilde": "^2.0.0", - "global-modules": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", @@ -32283,13 +32500,6 @@ "node": ">=10" } }, - "node_modules/semver-compare": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", - "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==", - "dev": true, - "license": "MIT" - }, "node_modules/send": { "version": "0.19.1", "resolved": "https://registry.npmjs.org/send/-/send-0.19.1.tgz", @@ -32911,19 +33121,22 @@ } }, "node_modules/sinon": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-7.5.0.tgz", - "integrity": "sha512-AoD0oJWerp0/rY9czP/D6hDTTUYGpObhZjMpd7Cl/A6+j0xBE+ayL/ldfggkBXUs0IkvIiM1ljM8+WkOc5k78Q==", + "version": "19.0.5", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-19.0.5.tgz", + "integrity": "sha512-r15s9/s+ub/d4bxNXqIUmwp6imVSdTorIRaxoecYjqTVLZ8RuoXr/4EDGwIBo6Waxn7f2gnURX9zuhAfCwaF6Q==", "dev": true, "license": "BSD-3-Clause", "dependencies": { - "@sinonjs/commons": "^1.4.0", - "@sinonjs/formatio": "^3.2.1", - "@sinonjs/samsam": "^3.3.3", - "diff": "^3.5.0", - "lolex": "^4.2.0", - "nise": "^1.5.2", - "supports-color": "^5.5.0" + "@sinonjs/commons": "^3.0.1", + "@sinonjs/fake-timers": "^13.0.5", + "@sinonjs/samsam": "^8.0.1", + "diff": "^7.0.0", + "nise": "^6.1.1", + "supports-color": "^7.2.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/sinon" } }, "node_modules/sinon-chai": { @@ -32937,37 +33150,34 @@ "sinon": ">=4.0.0" } }, - "node_modules/sinon/node_modules/diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "node_modules/sinon/node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", "dev": true, "license": "BSD-3-Clause", - "engines": { - "node": ">=0.3.1" + "dependencies": { + "type-detect": "4.0.8" } }, - "node_modules/sinon/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "node_modules/sinon/node_modules/@sinonjs/fake-timers": { + "version": "13.0.5", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-13.0.5.tgz", + "integrity": "sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" + "license": "BSD-3-Clause", + "dependencies": { + "@sinonjs/commons": "^3.0.1" } }, - "node_modules/sinon/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "node_modules/sinon/node_modules/diff": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-7.0.0.tgz", + "integrity": "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==", "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^3.0.0" - }, + "license": "BSD-3-Clause", "engines": { - "node": ">=4" + "node": ">=0.3.1" } }, "node_modules/sirv": { @@ -33021,6 +33231,19 @@ "npm": ">= 3.0.0" } }, + "node_modules/smol-toml": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.5.2.tgz", + "integrity": "sha512-QlaZEqcAH3/RtNyet1IPIYPsEWAaYyXXv1Krsi+1L/QHppjX4Ifm8MQsBISz9vE8cHicIq3clogsheili5vhaQ==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">= 18" + }, + "funding": { + "url": "https://github.com/sponsors/cyyynthia" + } + }, "node_modules/snyk-module": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/snyk-module/-/snyk-module-3.2.0.tgz", @@ -33252,16 +33475,6 @@ "node": ">=0.10.0" } }, - "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/source-map-support": { "version": "0.5.21", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", @@ -35455,6 +35668,7 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/web-worker/-/web-worker-1.3.0.tgz", "integrity": "sha512-BSR9wyRsy/KOValMgd5kMyr3JzpdeoR9KVId8u5GVlTTAtNChlsE4yTxeY7zMdNSyOmoKBv8NH2qeRY9Tg+IaA==", + "dev": true, "license": "Apache-2.0" }, "node_modules/webdriver-bidi-protocol": { @@ -36521,10 +36735,11 @@ "license": "MIT" }, "node_modules/workerpool": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz", - "integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==", - "dev": true + "version": "9.3.4", + "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-9.3.4.tgz", + "integrity": "sha512-TmPRQYYSAnnDiEB0P/Ytip7bFGvqnSU6I2BcuSw7Hx+JSg/DsUi5ebYfc8GYaSdpuvOcEs6dXxPurOYpe9QFwg==", + "dev": true, + "license": "Apache-2.0" }, "node_modules/wrap-ansi": { "version": "7.0.0", @@ -36892,7 +37107,6 @@ "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/yargs-parser": "^21.0.3", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb": "^6.19.0", "prettier": "^2.8.8" @@ -36923,7 +37137,6 @@ "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/babel__core": "^7.20.1", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" }, @@ -36945,9 +37158,8 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "depcheck": "^1.4.7", "eslint": "^7.25.0", - "mocha": "^10.2.0", + "mocha": "^11.7.5", "prettier": "^2.8.8" }, "engines": { @@ -36980,6 +37192,7 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongosh/testing": "0.0.0-dev.0", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.8", "@testing-library/dom": "^8.20.1", "@testing-library/react": "^12.1.5", @@ -36987,12 +37200,10 @@ "@types/numeral": "^2.0.2", "@types/react": "^16.9.17", "@types/react-dom": "^18.0.8", - "@types/sinon": "^7.5.1", "@types/text-table": "^0.2.1", "@wojtekmaj/enzyme-adapter-react-17": "^0.8.0", "babel-loader": "^8.3.0", "buffer": "^6.0.3", - "depcheck": "^1.4.7", "enzyme": "^3.11.0", "eslint": "^7.25.0", "html-webpack-plugin": "^5.5.0", @@ -37072,13 +37283,6 @@ "node": ">=12" } }, - "packages/browser-repl/node_modules/@types/sinon": { - "version": "7.5.2", - "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-7.5.2.tgz", - "integrity": "sha512-T+m89VdXj/eidZyejvmoP9jivXgBDdkOSBVQjU9kF349NEx10QdPNGxHeZUaj1IlJ32/ewdyXJjnJxyxJroYwg==", - "dev": true, - "license": "MIT" - }, "packages/browser-repl/node_modules/ajv": { "version": "8.17.1", "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", @@ -37706,7 +37910,6 @@ "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@mongosh/types": "^3.14.1", "bson": "^6.10.4", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8", "rimraf": "^3.0.2" @@ -37729,10 +37932,7 @@ "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@mongosh/service-provider-node-driver": "^3.18.0", - "@types/sinon": "^7.5.1", - "@types/sinon-chai": "^4.0.0", "bson": "^6.10.4", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8", "rimraf": "^3.0.2" @@ -37741,13 +37941,6 @@ "node": ">=14.15.1" } }, - "packages/browser-runtime-electron/node_modules/@types/sinon": { - "version": "7.5.2", - "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-7.5.2.tgz", - "integrity": "sha512-T+m89VdXj/eidZyejvmoP9jivXgBDdkOSBVQjU9kF349NEx10QdPNGxHeZUaj1IlJ32/ewdyXJjnJxyxJroYwg==", - "dev": true, - "license": "MIT" - }, "packages/build": { "name": "@mongosh/build", "version": "3.7.11", @@ -37788,7 +37981,6 @@ "@types/tar-fs": "^2.0.0", "@types/tmp": "^0.2.3", "cross-spawn": "^7.0.5", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8", "sinon-chai": "^4.0.1", @@ -38183,7 +38375,6 @@ "@types/numeral": "^2.0.2", "@types/text-table": "^0.2.1", "chai-as-promised": "^8.0.2", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb": "^6.19.0", "mongodb-crypt-library-dummy": "^1.0.2", @@ -38223,23 +38414,19 @@ "name": "@mongosh/e2e-tests", "version": "3.17.0", "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/oidc-plugin": "^2.0.5", - "@mongosh/cli-repl": "2.5.10", - "@mongosh/service-provider-core": "3.7.0", - "strip-ansi": "^6.0.0" - }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/oidc-mock-provider": "^0.11.3", + "@mongodb-js/oidc-plugin": "^2.0.5", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongosh/cli-repl": "2.5.10", + "@mongosh/service-provider-core": "3.7.0", "@types/chai-as-promised": "^8.0.2", "@types/node": "^22.15.30", "@types/rimraf": "^3.0.0", "bson": "^6.10.4", "chai-as-promised": "^8.0.2", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "lodash": "^4.17.21", "moment": "^2.29.1", @@ -38247,7 +38434,8 @@ "mongodb-log-writer": "^2.4.3", "node-fetch": "^3.3.2", "prettier": "^2.8.8", - "rimraf": "^3.0.2" + "rimraf": "^3.0.2", + "strip-ansi": "^6.0.0" }, "engines": { "node": ">=16.15.0" @@ -38308,7 +38496,6 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "nanobus": "^4.5.0", "prettier": "^2.8.8" @@ -38326,7 +38513,6 @@ "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", "chalk": "^4.1.2", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "handlebars": "^4.7.7", "prettier": "^2.8.8", @@ -38347,7 +38533,6 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" }, @@ -38366,7 +38551,6 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" }, @@ -38380,6 +38564,7 @@ "license": "SSPL", "devDependencies": { "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongosh/testing": "0.0.0-dev.0", "assert": "^1.5.0", "buffer": "^6.0.3", "crypto-browserify": "^3.12.0", @@ -38454,7 +38639,6 @@ "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/babel__core": "^7.1.18", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" }, @@ -38469,7 +38653,6 @@ "dependencies": { "@mongodb-js/device-id": "^0.2.1", "@mongodb-js/devtools-connect": "^3.9.4", - "@mongosh/errors": "2.4.5", "@mongosh/types": "^3.14.1", "mongodb-log-writer": "^2.4.3", "mongodb-redact": "^1.3.0", @@ -38479,8 +38662,8 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongosh/errors": "2.4.5", "@segment/analytics-node": "^1.3.0", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8", "sinon": "^19.0.4" @@ -38489,115 +38672,6 @@ "node": ">=14.15.1" } }, - "packages/logging/node_modules/@sinonjs/commons": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", - "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "type-detect": "4.0.8" - } - }, - "packages/logging/node_modules/@sinonjs/fake-timers": { - "version": "13.0.5", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-13.0.5.tgz", - "integrity": "sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@sinonjs/commons": "^3.0.1" - } - }, - "packages/logging/node_modules/@sinonjs/samsam": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-8.0.2.tgz", - "integrity": "sha512-v46t/fwnhejRSFTGqbpn9u+LQ9xJDse10gNnPgAcxgdoCDMXj/G2asWAC/8Qs+BAZDicX+MNZouXT1A7c83kVw==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@sinonjs/commons": "^3.0.1", - "lodash.get": "^4.4.2", - "type-detect": "^4.1.0" - } - }, - "packages/logging/node_modules/@sinonjs/samsam/node_modules/type-detect": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz", - "integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "packages/logging/node_modules/@sinonjs/text-encoding": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.3.tgz", - "integrity": "sha512-DE427ROAphMQzU4ENbliGYrBSYPXF+TtLg9S8vzeA+OF4ZKzoDdzfL8sxuMUGS/lgRhM6j1URSk9ghf7Xo1tyA==", - "dev": true, - "license": "(Unlicense OR Apache-2.0)" - }, - "packages/logging/node_modules/diff": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-7.0.0.tgz", - "integrity": "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.3.1" - } - }, - "packages/logging/node_modules/just-extend": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-6.2.0.tgz", - "integrity": "sha512-cYofQu2Xpom82S6qD778jBDpwvvy39s1l/hrYij2u9AMdQcGRpaBu6kY4mVhuno5kJVi1DAz4aiphA2WI1/OAw==", - "dev": true, - "license": "MIT" - }, - "packages/logging/node_modules/nise": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/nise/-/nise-6.1.1.tgz", - "integrity": "sha512-aMSAzLVY7LyeM60gvBS423nBmIPP+Wy7St7hsb+8/fc1HmeoHJfLO8CKse4u3BtOZvQLJghYPI2i/1WZrEj5/g==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@sinonjs/commons": "^3.0.1", - "@sinonjs/fake-timers": "^13.0.1", - "@sinonjs/text-encoding": "^0.7.3", - "just-extend": "^6.2.0", - "path-to-regexp": "^8.1.0" - } - }, - "packages/logging/node_modules/path-to-regexp": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.2.0.tgz", - "integrity": "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=16" - } - }, - "packages/logging/node_modules/sinon": { - "version": "19.0.4", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-19.0.4.tgz", - "integrity": "sha512-myidFob7fjmYHJb+CHNLtAYScxn3sngGq4t75L2rCGGpE/k4OQVkN3KE5FsN+XkO2+fcDZ65PGvq3KHrlLAm7g==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@sinonjs/commons": "^3.0.1", - "@sinonjs/fake-timers": "^13.0.5", - "@sinonjs/samsam": "^8.0.1", - "diff": "^7.0.0", - "nise": "^6.1.1", - "supports-color": "^7.2.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/sinon" - } - }, "packages/mongosh": { "version": "2.5.10", "license": "Apache-2.0", @@ -38617,8 +38691,7 @@ "license": "Apache-2.0", "dependencies": { "interruptor": "^1.0.1", - "system-ca": "^2.0.1", - "web-worker": "^1.3.0" + "system-ca": "^2.0.1" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", @@ -38632,11 +38705,11 @@ "@mongosh/testing": "0.0.0-dev.0", "@mongosh/types": "^3.14.1", "bson": "^6.10.4", - "depcheck": "^1.4.7", "eslint": "^7.25.0", - "mocha": "^10.2.0", + "mocha": "^11.7.5", "postmsg-rpc": "^2.4.0", "prettier": "^2.8.8", + "web-worker": "^1.3.0", "webpack-merge": "^5.8.0" }, "engines": { @@ -38659,7 +38732,6 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" }, @@ -38689,7 +38761,6 @@ "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@mongosh/testing": "0.0.0-dev.0", "@types/sinon-chai": "^4.0.0", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" }, @@ -38706,8 +38777,6 @@ "version": "3.29.0", "license": "Apache-2.0", "dependencies": { - "@babel/core": "^7.26.10", - "@babel/types": "^7.26.10", "@mongosh/arg-parser": "^3.23.0", "@mongosh/errors": "2.4.5", "@mongosh/i18n": "^2.20.0", @@ -38717,6 +38786,8 @@ "mongodb-schema": "^12.6.2" }, "devDependencies": { + "@babel/core": "^7.26.10", + "@babel/types": "^7.26.10", "@microsoft/api-extractor": "^7.39.3", "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/mongodb-ts-autocomplete": "^0.4.7", @@ -38725,7 +38796,6 @@ "@mongosh/testing": "0.0.0-dev.0", "@mongosh/types": "^3.14.1", "bson": "^6.10.4", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb": "^6.19.0", "prettier": "^2.8.8", @@ -38747,7 +38817,6 @@ "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", "bson": "^6.10.4", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" }, @@ -38773,7 +38842,6 @@ "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@mongosh/types": "^3.14.1", "@types/sinon-chai": "^4.0.0", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" }, @@ -38803,7 +38871,6 @@ "@mongosh/testing": "0.0.0-dev.0", "@types/cross-spawn": "^6.0.6", "@types/tar": "^4.0.4", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "nanobus": "^4.5.0", "prettier": "^2.8.8" @@ -38860,7 +38927,6 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb": "^6.19.0", "prettier": "^2.8.8" diff --git a/package.json b/package.json index a8326455b1..b3b558c5d0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,6 @@ { "name": "mongosh", "description": "The MongoDB Shell", - "main": "index.js", "bin": { "mongosh": "packages/cli-repl/bin/mongosh.js" }, @@ -12,10 +11,10 @@ "bootstrap": "npx cross-env PUPPETEER_SKIP_DOWNLOAD=1 npm install && npm run compile", "clean": "lerna clean -y && rm -Rf node_modules", "check": "lerna run check --since HEAD --exclude-dependents", - "check-ci": "npm run check --workspaces --if-present", + "check-ci": "npm run depcheck && npm run check --workspaces --if-present", "depalign": "depalign", "predepcheck": "npm run depalign", - "depcheck": "npm run depcheck --workspaces --if-present", + "depcheck": "knip && knip --production", "lint": "npm run lint --workspaces --if-present", "test": "rimraf .nyc_output && npm run test-coverage --workspaces --if-present && npm run report-coverage", "test-ci": "rimraf .nyc_output && npm run test-ci-coverage --workspaces --if-present && npm run post-process-nyc", @@ -98,32 +97,25 @@ "node": ">=20.19.3" }, "devDependencies": { - "@babel/compat-data": "^7.26.8", "@mongodb-js/monorepo-tools": "^1.1.10", "@pkgjs/nv": "^0.2.2", "@types/chai": "^5.2.3", "@types/mocha": "^5.2.7", "@types/node": "^22.15.30", - "@types/rimraf": "^3.0.0", "@types/semver": "^7.3.4", "@types/sinon-chai": "^4.0.0", - "@types/which": "^1.3.2", "chai": "^6.2.1", "cross-env": "^6.0.3", - "depcheck": "^1.4.7", - "duplexpair": "^1.0.2", "find-up": "^5.0.0", "glob": "^10.3.12", "husky": "^9.0.11", - "mocha": "^10.2.0", - "mongodb": "^6.19.0", + "knip": "^5.71.0", + "mocha": "^11.7.5", "mongodb-runner": "^6.0.0", - "node-gyp": "^11.5.0", "nyc": "^15.1.0", "pkg-up": "^3.1.0", "rimraf": "^3.0.2", - "semver": "^7.6.3", - "sinon": "^7.5.0", + "sinon": "^19.0.4", "sinon-chai": "^4.0.1", "terser-webpack-plugin": "^5.3.11", "ts-loader": "^8.0.14", @@ -133,7 +125,6 @@ "webpack": "^5.99.9", "webpack-bundle-analyzer": "^4.7.0", "webpack-cli": "^6.0.1", - "which": "^2.0.2", "yaml": "^1.10.0" }, "optionalDependencies": { @@ -147,7 +138,6 @@ "packages/build", "packages/errors", "packages/history", - "packages/java-shell", "packages/js-multiline-to-singleline", "packages/types", "packages/i18n", @@ -155,6 +145,7 @@ "packages/shell-bson", "packages/testing", "packages/arg-parser", + "packages/java-shell", "packages/service-provider-core", "packages/service-provider-node-driver", "packages/shell-api", diff --git a/packages/arg-parser/.depcheckrc b/packages/arg-parser/.depcheckrc deleted file mode 100644 index dc0bc2df82..0000000000 --- a/packages/arg-parser/.depcheckrc +++ /dev/null @@ -1,16 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - sinon-chai - - eslint-plugin-mocha - - eslint-config-mongodb-js -# needed as a peer dependency of @mongodb-js/devtools-connect - - mongodb - # only used in arg-parser export; should be removed once switched to knip - - yargs-parser -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/arg-parser/package.json b/packages/arg-parser/package.json index 73f6f9e16c..d590adda21 100644 --- a/packages/arg-parser/package.json +++ b/packages/arg-parser/package.json @@ -28,8 +28,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "compile": "tsc -p tsconfig.json", "prepublish": "npm run compile", "prettier": "prettier", @@ -60,7 +59,6 @@ "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/yargs-parser": "^21.0.3", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb": "^6.19.0", "prettier": "^2.8.8" diff --git a/packages/async-rewriter2/.depcheckrc b/packages/async-rewriter2/.depcheckrc deleted file mode 100644 index 8721cf6363..0000000000 --- a/packages/async-rewriter2/.depcheckrc +++ /dev/null @@ -1,14 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - sinon - - sinon-chai - - ts-sinon - - eslint-plugin-mocha - - eslint-config-mongodb-js -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/async-rewriter2/package.json b/packages/async-rewriter2/package.json index 221e6c3ff3..7c99bc8c5c 100644 --- a/packages/async-rewriter2/package.json +++ b/packages/async-rewriter2/package.json @@ -12,9 +12,8 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", - "compile": "node bin/make-runtime-support.js --firstpass && tsc -p tsconfig.json && node bin/make-runtime-support.js --secondpass && tsc -p tsconfig.json", + "check": "npm run lint", + "compile": "node scripts/make-runtime-support.js --firstpass && tsc -p tsconfig.json && node scripts/make-runtime-support.js --secondpass && tsc -p tsconfig.json", "prepublish": "npm run compile", "prettier": "prettier", "reformat": "npm run prettier -- --write . && npm run eslint -- --fix" @@ -51,7 +50,6 @@ "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/babel__core": "^7.20.1", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" } diff --git a/packages/async-rewriter2/bin/make-runtime-support.js b/packages/async-rewriter2/scripts/make-runtime-support.js similarity index 100% rename from packages/async-rewriter2/bin/make-runtime-support.js rename to packages/async-rewriter2/scripts/make-runtime-support.js diff --git a/packages/autocomplete/.depcheckrc b/packages/autocomplete/.depcheckrc deleted file mode 100644 index b0d55bf402..0000000000 --- a/packages/autocomplete/.depcheckrc +++ /dev/null @@ -1,11 +0,0 @@ -ignores: - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - eslint-plugin-mocha - - eslint-config-mongodb-js -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/autocomplete/package.json b/packages/autocomplete/package.json index ec4030b3fa..eb6af1d8d8 100644 --- a/packages/autocomplete/package.json +++ b/packages/autocomplete/package.json @@ -23,8 +23,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "compile": "tsc -p tsconfig.json", "prepublish": "npm run compile", "prettier": "prettier", @@ -37,9 +36,8 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "depcheck": "^1.4.7", "eslint": "^7.25.0", - "mocha": "^10.2.0", + "mocha": "^11.7.5", "prettier": "^2.8.8" }, "dependencies": { diff --git a/packages/browser-repl/.depcheckrc b/packages/browser-repl/.depcheckrc deleted file mode 100644 index 203ccbcf87..0000000000 --- a/packages/browser-repl/.depcheckrc +++ /dev/null @@ -1,22 +0,0 @@ -ignores: - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - eslint-plugin-mocha - - eslint-config-mongodb-js - - sinon - - sinon-chai - - karma-chrome-launcher - - karma-mocha - - karma-mocha-reporter - - karma-typescript -# used by webpack - - webpack-cli -# resolved as `/` so depcheck doesn't see it being used - - buffer - - util -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/browser-repl/package.json b/packages/browser-repl/package.json index 6bc9152ded..cd8c8aece4 100644 --- a/packages/browser-repl/package.json +++ b/packages/browser-repl/package.json @@ -21,7 +21,8 @@ } }, "scripts": { - "start": "webpack serve --config ./config/webpack.config.watch.js", + "start": "npm run webpack-serve", + "webpack-serve": "webpack serve --config ./config/webpack.config.watch.js", "clean": "rimraf ./lib", "preprepublish": "rimraf ./lib", "prepublish": "npm run compile", @@ -31,8 +32,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "compile": "tsc -p tsconfig.json", "prettier": "prettier", "reformat": "npm run prettier -- --write . && npm run eslint -- --fix", @@ -85,12 +85,10 @@ "@types/numeral": "^2.0.2", "@types/react": "^16.9.17", "@types/react-dom": "^18.0.8", - "@types/sinon": "^7.5.1", "@types/text-table": "^0.2.1", "@wojtekmaj/enzyme-adapter-react-17": "^0.8.0", "babel-loader": "^8.3.0", "buffer": "^6.0.3", - "depcheck": "^1.4.7", "enzyme": "^3.11.0", "eslint": "^7.25.0", "html-webpack-plugin": "^5.5.0", diff --git a/packages/browser-runtime-core/.depcheckrc b/packages/browser-runtime-core/.depcheckrc deleted file mode 100644 index 64321acf68..0000000000 --- a/packages/browser-runtime-core/.depcheckrc +++ /dev/null @@ -1,14 +0,0 @@ -ignores: - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - sinon - - sinon-chai - - ts-sinon - - eslint-plugin-mocha - - eslint-config-mongodb-js -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/browser-runtime-core/package.json b/packages/browser-runtime-core/package.json index ab226f2b4b..4cb46713f3 100644 --- a/packages/browser-runtime-core/package.json +++ b/packages/browser-runtime-core/package.json @@ -21,8 +21,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "preprepublish": "rimraf ./lib", "prepublish": "npm run compile", "compile": "tsc -p tsconfig.json", @@ -44,7 +43,6 @@ "@mongodb-js/mongodb-ts-autocomplete": "^0.4.7", "@mongosh/types": "^3.14.1", "bson": "^6.10.4", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8", "rimraf": "^3.0.2" diff --git a/packages/browser-runtime-electron/.depcheckrc b/packages/browser-runtime-electron/.depcheckrc deleted file mode 100644 index a24c6469c9..0000000000 --- a/packages/browser-runtime-electron/.depcheckrc +++ /dev/null @@ -1,13 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - sinon-chai - - sinon - - eslint-plugin-mocha - - eslint-config-mongodb-js -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/browser-runtime-electron/package.json b/packages/browser-runtime-electron/package.json index 67903eead7..734e012ca1 100644 --- a/packages/browser-runtime-electron/package.json +++ b/packages/browser-runtime-electron/package.json @@ -21,8 +21,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "preprepublish": "rimraf ./lib", "prepublish": "npm run compile", "compile": "tsc -p tsconfig.json", @@ -42,10 +41,7 @@ "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@mongosh/service-provider-node-driver": "^3.18.0", - "@types/sinon": "^7.5.1", - "@types/sinon-chai": "^4.0.0", "bson": "^6.10.4", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8", "rimraf": "^3.0.2" diff --git a/packages/browser-runtime-electron/src/electron-runtime.spec.ts b/packages/browser-runtime-electron/src/electron-runtime.spec.ts index 23ee421162..47843664b5 100644 --- a/packages/browser-runtime-electron/src/electron-runtime.spec.ts +++ b/packages/browser-runtime-electron/src/electron-runtime.spec.ts @@ -24,8 +24,9 @@ describe('Electron runtime', function () { extraInfo: { uri: '' }, } as any); messageBus = sinon.createStubInstance(EventEmitter); - evaluationListener = sinon.createStubInstance(class FakeListener {}); - evaluationListener.onPrint = sinon.stub(); + evaluationListener = { + onPrint: sinon.stub(), + } as SinonStubbedInstance; electronRuntime = new ElectronRuntime(serviceProvider, messageBus); electronRuntime.setEvaluationListener(evaluationListener as any); }); diff --git a/packages/build/.depcheckrc b/packages/build/.depcheckrc deleted file mode 100644 index baf681c00b..0000000000 --- a/packages/build/.depcheckrc +++ /dev/null @@ -1,16 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - sinon - - ts-sinon - - sinon - - eslint-plugin-mocha - - eslint-config-mongodb-js - # transitive type dependency of @types/tmp-promise - - '@types/tmp' -ignore-patterns: - - .eslintrc.js diff --git a/packages/build/package.json b/packages/build/package.json index 4d5b196ad8..0059524de9 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -21,8 +21,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "evergreen-release": "ts-node -r ../../scripts/import-expansions.js src/index.ts", "release": "ts-node src/index.ts trigger-release", "prettier": "prettier", @@ -57,7 +56,6 @@ "@types/tar-fs": "^2.0.0", "@types/tmp": "^0.2.3", "cross-spawn": "^7.0.5", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8", "sinon-chai": "^4.0.1", diff --git a/packages/cli-repl/.depcheckrc b/packages/cli-repl/.depcheckrc deleted file mode 100644 index ba9a7904de..0000000000 --- a/packages/cli-repl/.depcheckrc +++ /dev/null @@ -1,24 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - sinon - - sinon-chai - - ts-sinon - - mocha - - eslint-plugin-mocha - - eslint-config-mongodb-js - # eagerly loaded startup snapshot dependencies - - '@mongodb-js/saslprep' - - socks - - emphasize - - ipv6-normalize - - bindings - - system-ca - # used for monkey-patching our s390x fix in - - '@tootallnate/quickjs-emscripten' -ignore-patterns: - - .eslintrc.js diff --git a/packages/cli-repl/package.json b/packages/cli-repl/package.json index bf7ea80399..b76d02e8f7 100644 --- a/packages/cli-repl/package.json +++ b/packages/cli-repl/package.json @@ -29,8 +29,7 @@ "test-smoke": "node bin/mongosh.js --smokeTests", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "prepublish": "npm run compile", "webpack-build": "npm run compile && webpack --mode production && cat dist/add-module-mapping.js >> dist/mongosh.js", "webpack-build-dev": "npm run compile && webpack --mode development && cat dist/add-module-mapping.js >> dist/mongosh.js", @@ -106,7 +105,6 @@ "@types/numeral": "^2.0.2", "@types/text-table": "^0.2.1", "chai-as-promised": "^8.0.2", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb": "^6.19.0", "mongodb-crypt-library-dummy": "^1.0.2", diff --git a/packages/e2e-tests/.depcheckrc b/packages/e2e-tests/.depcheckrc deleted file mode 100644 index 4468341a36..0000000000 --- a/packages/e2e-tests/.depcheckrc +++ /dev/null @@ -1,23 +0,0 @@ -ignores: - - '@mongosh/cli-repl' - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - sinon - - sinon-chai - - ts-sinon - - mocha - - eslint-plugin-mocha - - eslint-config-mongodb-js -ignore-patterns: - - .eslintrc.js -parsers: - '**/*.mjs': - - 'es6' - '**/*.js': - - 'es6' - '**/*.ts': - - 'typescript' diff --git a/packages/e2e-tests/package.json b/packages/e2e-tests/package.json index 5f45f2174b..a33d3e64e7 100644 --- a/packages/e2e-tests/package.json +++ b/packages/e2e-tests/package.json @@ -17,8 +17,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "prettier": "prettier", "reformat": "npm run prettier -- --write . && npm run eslint -- --fix" }, @@ -26,12 +25,6 @@ "engines": { "node": ">=16.15.0" }, - "dependencies": { - "@mongosh/cli-repl": "2.5.10", - "@mongosh/service-provider-core": "3.7.0", - "@mongodb-js/oidc-plugin": "^2.0.5", - "strip-ansi": "^6.0.0" - }, "devDependencies": { "mongodb-log-writer": "^2.4.3", "@mongodb-js/eslint-config-mongosh": "^1.0.0", @@ -43,13 +36,16 @@ "@types/rimraf": "^3.0.0", "bson": "^6.10.4", "chai-as-promised": "^8.0.2", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "lodash": "^4.17.21", "moment": "^2.29.1", "mongodb": "^6.19.0", "node-fetch": "^3.3.2", "prettier": "^2.8.8", - "rimraf": "^3.0.2" + "rimraf": "^3.0.2", + "@mongodb-js/oidc-plugin": "^2.0.5", + "strip-ansi": "^6.0.0", + "@mongosh/cli-repl": "2.5.10", + "@mongosh/service-provider-core": "3.7.0" } } diff --git a/packages/e2e-tests/test/e2e.spec.ts b/packages/e2e-tests/test/e2e.spec.ts index 7adc59e31b..ec3cbf4614 100644 --- a/packages/e2e-tests/test/e2e.spec.ts +++ b/packages/e2e-tests/test/e2e.spec.ts @@ -442,7 +442,7 @@ describe('e2e', function () { } const currentOp = await shell.executeLine('db.currentOp()'); const expectedVersion = - require('../package.json')['dependencies']['@mongosh/cli-repl']; + require('../package.json')['devDependencies']['@mongosh/cli-repl']; expect(currentOp).to.include(`appName: 'mongosh ${expectedVersion}'`); expect(currentOp).to.include("name: 'nodejs|mongosh'"); shell.assertNoErrors(); diff --git a/packages/editor/.depcheckrc b/packages/editor/.depcheckrc deleted file mode 100644 index 8721cf6363..0000000000 --- a/packages/editor/.depcheckrc +++ /dev/null @@ -1,14 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - sinon - - sinon-chai - - ts-sinon - - eslint-plugin-mocha - - eslint-config-mongodb-js -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/editor/package.json b/packages/editor/package.json index c3f4e859bd..bbdcc23071 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -17,8 +17,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "compile": "tsc -p tsconfig.json", "prepublish": "npm run compile", "prettier": "prettier", @@ -46,7 +45,6 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "nanobus": "^4.5.0", "prettier": "^2.8.8" diff --git a/packages/errors/.depcheckrc b/packages/errors/.depcheckrc deleted file mode 100644 index 8721cf6363..0000000000 --- a/packages/errors/.depcheckrc +++ /dev/null @@ -1,14 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - sinon - - sinon-chai - - ts-sinon - - eslint-plugin-mocha - - eslint-config-mongodb-js -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/errors/package.json b/packages/errors/package.json index 2436bcd7fe..33252021e4 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -23,8 +23,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "compile": "tsc -p tsconfig.json", "prepublish": "npm run compile", "generate-error-overview": "ts-node scripts/extract-errors.ts .. generated/error-overview.md generated/error-overview.rst && npm run reformat", @@ -40,7 +39,6 @@ "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", "chalk": "^4.1.2", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "handlebars": "^4.7.7", "prettier": "^2.8.8", diff --git a/packages/history/.depcheckrc b/packages/history/.depcheckrc deleted file mode 100644 index fe4bc51f91..0000000000 --- a/packages/history/.depcheckrc +++ /dev/null @@ -1,11 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - eslint-plugin-mocha - - eslint-config-mongodb-js -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/history/package.json b/packages/history/package.json index 8f18d8a34b..9f7f20e032 100644 --- a/packages/history/package.json +++ b/packages/history/package.json @@ -17,8 +17,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "compile": "tsc -p tsconfig.json", "prepublish": "npm run compile", "prettier": "prettier", @@ -41,7 +40,6 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" } diff --git a/packages/i18n/.depcheckrc b/packages/i18n/.depcheckrc deleted file mode 100644 index fe4bc51f91..0000000000 --- a/packages/i18n/.depcheckrc +++ /dev/null @@ -1,11 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - eslint-plugin-mocha - - eslint-config-mongodb-js -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 9662777e39..b5c3fc68c1 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -20,8 +20,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "prettier": "prettier", "reformat": "npm run prettier -- --write . && npm run eslint -- --fix" }, @@ -42,7 +41,6 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" } diff --git a/packages/java-shell/package.json b/packages/java-shell/package.json index 32a46f666d..6598051650 100644 --- a/packages/java-shell/package.json +++ b/packages/java-shell/package.json @@ -28,7 +28,8 @@ "path-browserify": "^1.0.1", "stream-browserify": "^3.0.0", "util": "^0.12.5", - "webpack-merge": "^5.8.0" + "webpack-merge": "^5.8.0", + "@mongosh/testing": "0.0.0-dev.0" }, "license": "SSPL", "publishConfig": { diff --git a/packages/js-multiline-to-singleline/.depcheckrc b/packages/js-multiline-to-singleline/.depcheckrc deleted file mode 100644 index fe4bc51f91..0000000000 --- a/packages/js-multiline-to-singleline/.depcheckrc +++ /dev/null @@ -1,11 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - eslint-plugin-mocha - - eslint-config-mongodb-js -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/js-multiline-to-singleline/package.json b/packages/js-multiline-to-singleline/package.json index fbf231d1b8..a184318063 100644 --- a/packages/js-multiline-to-singleline/package.json +++ b/packages/js-multiline-to-singleline/package.json @@ -17,8 +17,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "compile": "tsc -p tsconfig.json", "prepublish": "npm run compile", "prettier": "prettier", @@ -43,7 +42,6 @@ "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/babel__core": "^7.1.18", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" } diff --git a/packages/logging/.depcheckrc b/packages/logging/.depcheckrc deleted file mode 100644 index fe4bc51f91..0000000000 --- a/packages/logging/.depcheckrc +++ /dev/null @@ -1,11 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - eslint-plugin-mocha - - eslint-config-mongodb-js -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/logging/package.json b/packages/logging/package.json index 4de66e70ae..84f01ad83e 100644 --- a/packages/logging/package.json +++ b/packages/logging/package.json @@ -19,7 +19,6 @@ "dependencies": { "@mongodb-js/device-id": "^0.2.1", "@mongodb-js/devtools-connect": "^3.9.4", - "@mongosh/errors": "2.4.5", "@mongosh/types": "^3.14.1", "mongodb-log-writer": "^2.4.3", "mongodb-redact": "^1.3.0", @@ -30,10 +29,10 @@ "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@segment/analytics-node": "^1.3.0", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8", - "sinon": "^19.0.4" + "sinon": "^19.0.4", + "@mongosh/errors": "2.4.5" }, "scripts": { "test": "mocha", @@ -42,8 +41,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "compile": "tsc -p tsconfig.json", "prepublish": "npm run compile", "prettier": "prettier", diff --git a/packages/node-runtime-worker-thread/.depcheckrc b/packages/node-runtime-worker-thread/.depcheckrc deleted file mode 100644 index 9fdd5e5898..0000000000 --- a/packages/node-runtime-worker-thread/.depcheckrc +++ /dev/null @@ -1,14 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - sinon - - sinon-chai - - eslint-plugin-mocha - - eslint-config-mongodb-js - - system-ca -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/node-runtime-worker-thread/package.json b/packages/node-runtime-worker-thread/package.json index f0909de616..1385da8d26 100644 --- a/packages/node-runtime-worker-thread/package.json +++ b/packages/node-runtime-worker-thread/package.json @@ -24,8 +24,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "webpack-build": "npm run compile && webpack --mode production", "webpack-build-dev": "npm run compile && webpack --mode development", "compile": "tsc -p tsconfig.json", @@ -47,16 +46,15 @@ "@mongosh/service-provider-node-driver": "^3.18.0", "@mongosh/types": "^3.14.1", "bson": "^6.10.4", - "depcheck": "^1.4.7", "eslint": "^7.25.0", - "mocha": "^10.2.0", + "mocha": "^11.7.5", "postmsg-rpc": "^2.4.0", "prettier": "^2.8.8", - "webpack-merge": "^5.8.0" + "webpack-merge": "^5.8.0", + "web-worker": "^1.3.0" }, "dependencies": { "interruptor": "^1.0.1", - "system-ca": "^2.0.1", - "web-worker": "^1.3.0" + "system-ca": "^2.0.1" } } diff --git a/packages/service-provider-core/.depcheckrc b/packages/service-provider-core/.depcheckrc deleted file mode 100644 index fe4bc51f91..0000000000 --- a/packages/service-provider-core/.depcheckrc +++ /dev/null @@ -1,11 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - eslint-plugin-mocha - - eslint-config-mongodb-js -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/service-provider-core/package.json b/packages/service-provider-core/package.json index 90f9dc45bf..dec5b3826c 100644 --- a/packages/service-provider-core/package.json +++ b/packages/service-provider-core/package.json @@ -20,8 +20,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "prettier": "prettier", "reformat": "npm run prettier -- --write . && npm run eslint -- --fix" }, @@ -47,7 +46,6 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" } diff --git a/packages/service-provider-node-driver/.depcheckrc b/packages/service-provider-node-driver/.depcheckrc deleted file mode 100644 index f68e976681..0000000000 --- a/packages/service-provider-node-driver/.depcheckrc +++ /dev/null @@ -1,20 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - sinon - - sinon-chai - - ts-sinon - - eslint-plugin-mocha - - eslint-config-mongodb-js -# Used for MONGODB-AWS auth -# See: https://github.com/mongodb-js/mongosh/pull/1149 -# See: https://jira.mongodb.org/browse/NODE-5005 - - aws4 -# peer dep of devtools-connect - - '@mongodb-js/oidc-plugin' -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/service-provider-node-driver/package.json b/packages/service-provider-node-driver/package.json index bfd544f6a7..7411de2fd1 100644 --- a/packages/service-provider-node-driver/package.json +++ b/packages/service-provider-node-driver/package.json @@ -20,8 +20,7 @@ "prepublish": "npm run compile", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "prettier": "prettier", "reformat": "npm run prettier -- --write . && npm run eslint -- --fix" }, @@ -69,7 +68,6 @@ "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/sinon-chai": "^4.0.0", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8", "@mongosh/testing": "0.0.0-dev.0" diff --git a/packages/shell-api/.depcheckrc b/packages/shell-api/.depcheckrc deleted file mode 100644 index 8721cf6363..0000000000 --- a/packages/shell-api/.depcheckrc +++ /dev/null @@ -1,14 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - sinon - - sinon-chai - - ts-sinon - - eslint-plugin-mocha - - eslint-config-mongodb-js -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/shell-api/package.json b/packages/shell-api/package.json index 176d3e36ab..a0e3025eba 100644 --- a/packages/shell-api/package.json +++ b/packages/shell-api/package.json @@ -23,14 +23,13 @@ }, "scripts": { "compile": "tsc -p tsconfig.json && npm run api-generate", - "api-generate": "api-extractor run && ts-node bin/api-postprocess.ts", + "api-generate": "api-extractor run && ts-node scripts/api-postprocess.ts", "pretest": "npm run compile", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", - "report-missing-help": "ts-node bin/report-missing-help.ts", - "report-supported-api": "ts-node bin/report-supported-api.ts", + "check": "npm run lint", + "report-missing-help": "ts-node scripts/report-missing-help.ts", + "report-supported-api": "ts-node scripts/report-supported-api.ts", "test": "mocha", "test-ci": "node ../../scripts/run-if-package-requested.js npm test", "test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test", @@ -51,8 +50,6 @@ "build" ], "dependencies": { - "@babel/core": "^7.26.10", - "@babel/types": "^7.26.10", "@mongosh/arg-parser": "^3.23.0", "@mongosh/errors": "2.4.5", "@mongosh/i18n": "^2.20.0", @@ -70,10 +67,11 @@ "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@mongosh/types": "^3.14.1", "bson": "^6.10.4", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb": "^6.19.0", "prettier": "^2.8.8", - "semver": "^7.5.3" + "semver": "^7.5.3", + "@babel/core": "^7.26.10", + "@babel/types": "^7.26.10" } } diff --git a/packages/shell-api/bin/api-postprocess.ts b/packages/shell-api/scripts/api-postprocess.ts similarity index 100% rename from packages/shell-api/bin/api-postprocess.ts rename to packages/shell-api/scripts/api-postprocess.ts diff --git a/packages/shell-api/bin/report-missing-help.ts b/packages/shell-api/scripts/report-missing-help.ts similarity index 100% rename from packages/shell-api/bin/report-missing-help.ts rename to packages/shell-api/scripts/report-missing-help.ts diff --git a/packages/shell-api/bin/report-supported-api.ts b/packages/shell-api/scripts/report-supported-api.ts similarity index 100% rename from packages/shell-api/bin/report-supported-api.ts rename to packages/shell-api/scripts/report-supported-api.ts diff --git a/packages/shell-api/tsconfig-lint.json b/packages/shell-api/tsconfig-lint.json index d2adcff841..5af0d6b981 100644 --- a/packages/shell-api/tsconfig-lint.json +++ b/packages/shell-api/tsconfig-lint.json @@ -1,5 +1,5 @@ { "extends": "./tsconfig.json", - "include": ["./src/**/*", "./bin/**/*", "./test/**/*"], + "include": ["./src/**/*", "./scripts/**/*", "./test/**/*"], "exclude": ["node_modules", "dist", "lib"] } diff --git a/packages/shell-bson/.depcheckrc b/packages/shell-bson/.depcheckrc deleted file mode 100644 index 8f69b97b99..0000000000 --- a/packages/shell-bson/.depcheckrc +++ /dev/null @@ -1,16 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - sinon - - sinon-chai - - ts-sinon - - eslint-plugin-mocha - - eslint-config-mongodb-js -# needed as a peer dependency of @mongodb-js/devtools-connect - - mongodb -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/shell-bson/package.json b/packages/shell-bson/package.json index ee52a2a664..17ce34c71a 100644 --- a/packages/shell-bson/package.json +++ b/packages/shell-bson/package.json @@ -17,8 +17,7 @@ "url": "git+https://github.com/mongodb-js/mongosh.git" }, "scripts": { - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "compile": "tsc -p tsconfig.json", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", @@ -47,7 +46,6 @@ "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", "bson": "^6.10.4", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" } diff --git a/packages/shell-evaluator/.depcheckrc b/packages/shell-evaluator/.depcheckrc deleted file mode 100644 index 8721cf6363..0000000000 --- a/packages/shell-evaluator/.depcheckrc +++ /dev/null @@ -1,14 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - sinon - - sinon-chai - - ts-sinon - - eslint-plugin-mocha - - eslint-config-mongodb-js -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/shell-evaluator/package.json b/packages/shell-evaluator/package.json index ffc2f4e8f1..f0a4097319 100644 --- a/packages/shell-evaluator/package.json +++ b/packages/shell-evaluator/package.json @@ -10,8 +10,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "compile": "tsc -p tsconfig.json", "prepublish": "npm run compile", "prettier": "prettier", @@ -40,7 +39,6 @@ "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@mongosh/types": "^3.14.1", "@types/sinon-chai": "^4.0.0", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" }, diff --git a/packages/snippet-manager/.depcheckrc b/packages/snippet-manager/.depcheckrc deleted file mode 100644 index 8721cf6363..0000000000 --- a/packages/snippet-manager/.depcheckrc +++ /dev/null @@ -1,14 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - sinon - - sinon-chai - - ts-sinon - - eslint-plugin-mocha - - eslint-config-mongodb-js -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/snippet-manager/package.json b/packages/snippet-manager/package.json index f99557c9ab..c406f5a218 100644 --- a/packages/snippet-manager/package.json +++ b/packages/snippet-manager/package.json @@ -17,8 +17,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "compile": "tsc -p tsconfig.json", "prepublish": "npm run compile", "prettier": "prettier", @@ -51,7 +50,6 @@ "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/cross-spawn": "^6.0.6", "@types/tar": "^4.0.4", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "nanobus": "^4.5.0", "prettier": "^2.8.8", diff --git a/packages/types/.depcheckrc b/packages/types/.depcheckrc deleted file mode 100644 index 8f69b97b99..0000000000 --- a/packages/types/.depcheckrc +++ /dev/null @@ -1,16 +0,0 @@ -ignores: - - '@mongodb-js/eslint-config-mongosh' - - '@mongodb-js/tsconfig-mongosh' - - '@mongodb-js/prettier-config-devtools' - - '@typescript-eslint/parser' - - '@typescript-eslint/eslint-plugin' - - chai - - sinon - - sinon-chai - - ts-sinon - - eslint-plugin-mocha - - eslint-config-mongodb-js -# needed as a peer dependency of @mongodb-js/devtools-connect - - mongodb -ignore-patterns: - - .eslintrc.js \ No newline at end of file diff --git a/packages/types/package.json b/packages/types/package.json index e9c975c566..01e9e7baf7 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -18,8 +18,7 @@ "url": "git+https://github.com/mongodb-js/mongosh.git" }, "scripts": { - "check": "npm run lint && npm run depcheck", - "depcheck": "depcheck", + "check": "npm run lint", "compile": "tsc -p tsconfig.json", "eslint": "eslint", "lint": "npm run eslint . && npm run prettier -- --check .", @@ -44,7 +43,6 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb": "^6.19.0", "prettier": "^2.8.8"