From d1d1ee66bddf155f8709e6f39d7a31aff387cc71 Mon Sep 17 00:00:00 2001 From: Icebob Date: Mon, 1 Apr 2024 21:39:22 +0200 Subject: [PATCH] upgrade mongodb adapter to 6.5.0 (breaking) --- docs/README.md | 4 +- docs/adapters/MongoDB.md | 4 +- examples/global-pool/index.js | 2 +- examples/multi-tenants/index.js | 4 +- examples/multi-tenants/plenty.js | 2 +- examples/simple/index.js | 25 +- package-lock.json | 400 ++++++++++++++++++++++--------- package.json | 2 +- src/adapters/mongodb.js | 8 +- test/integration/index.spec.js | 22 +- 10 files changed, 315 insertions(+), 158 deletions(-) diff --git a/docs/README.md b/docs/README.md index 6506401..78b2646 100644 --- a/docs/README.md +++ b/docs/README.md @@ -2298,7 +2298,7 @@ module.exports = { { type: "MongoDB", options: { - uri: "mongodb://localhost:27017/moleculer-demo", + uri: "mongodb://127.0.0.1:27017/moleculer-demo", collection: `posts-${tenantId}` } } @@ -2341,7 +2341,7 @@ module.exports = { { type: "MongoDB", options: { - uri: `mongodb://localhost:27017/moleculer-demo--${tenantId}`, + uri: `mongodb://127.0.0.1:27017/moleculer-demo--${tenantId}`, collection: `posts` } } diff --git a/docs/adapters/MongoDB.md b/docs/adapters/MongoDB.md index 5f94abd..597c0d3 100644 --- a/docs/adapters/MongoDB.md +++ b/docs/adapters/MongoDB.md @@ -11,7 +11,7 @@ npm install mongodb@^4.1.4 ## Usage ### Use the default localhost URI -If you not define any options, the adapter uses the `"mongodb://localhost:27017"` connection string. +If you not define any options, the adapter uses the `"mongodb://127.0.0.1:27017"` connection string. ```js // posts.service.js @@ -52,7 +52,7 @@ module.exports = { ## Options | Property | Type | Default | Description | | -------- | ---- | ------- | ----------- | -| `uri` | `String` | `"mongodb://localhost:27017"` | MongoDB connection URI. | +| `uri` | `String` | `"mongodb://127.0.0.1:27017"` | MongoDB connection URI. | | `mongoClientOptions` | `Object` | `null` | Available options: https://mongodb.github.io/node-mongodb-native/4.1/interfaces/MongoClientOptions.html | | `dbOptions` | `Object` | `null` | Available options: https://mongodb.github.io/node-mongodb-native/4.1/interfaces/DbOptions.html | diff --git a/examples/global-pool/index.js b/examples/global-pool/index.js index 141c39a..29a7cbb 100644 --- a/examples/global-pool/index.js +++ b/examples/global-pool/index.js @@ -16,7 +16,7 @@ const broker = new ServiceBroker(); const adapter = { type: "MongoDB", - options: "mongodb://localhost:27017/example-pool" + options: "mongodb://127.0.0.1:27017/example-pool" }; const fields = { diff --git a/examples/multi-tenants/index.js b/examples/multi-tenants/index.js index 27afd46..69b6222 100644 --- a/examples/multi-tenants/index.js +++ b/examples/multi-tenants/index.js @@ -36,7 +36,7 @@ broker.createService({ //type: "MongoDB", type: "Knex", options: { - //uri: "mongodb://localhost:27017", + //uri: "mongodb://127.0.0.1:27017", //dbName: "tenants", //collection: "posts", tableName: "tenant_posts", @@ -89,7 +89,7 @@ broker.createService({ //type: "MongoDB", type: "Knex", options: { - //uri: "mongodb://localhost:27017", + //uri: "mongodb://127.0.0.1:27017", //dbName: `tenant-posts-${tenantId}`, //collection: `posts` diff --git a/examples/multi-tenants/plenty.js b/examples/multi-tenants/plenty.js index c3c19cf..901ce25 100644 --- a/examples/multi-tenants/plenty.js +++ b/examples/multi-tenants/plenty.js @@ -53,7 +53,7 @@ const svc = broker.createService({ { type: "MongoDB", options: { - uri: "mongodb://localhost:27017", + uri: "mongodb://127.0.0.1:27017", dbName: `tenant-posts`, collection: `posts-${tenantId}` } diff --git a/examples/simple/index.js b/examples/simple/index.js index 94115df..dbc249d 100644 --- a/examples/simple/index.js +++ b/examples/simple/index.js @@ -51,7 +51,7 @@ broker.createService({ mixins: [ DbService({ adapter: { - type: "Knex", + /*type: "Knex", options: { knex: { client: "sqlite3", @@ -59,12 +59,8 @@ broker.createService({ filename: ":memory:" } } - } - //type: "MongoDB" - }, - - createActions: { - remove: false + }*/ + type: "MongoDB" } }) ], @@ -96,21 +92,6 @@ broker.createService({ } }, - actions: { - remove: { - rest: { - method: "DELETE", - path: "/:id" - }, - params: { - id: { type: "string" } - }, - async handler(ctx) { - console.log("Do something"); - } - } - }, - async started() { const adapter = await this.getAdapter(); if (adapter.createTable) await adapter.createTable(); diff --git a/package-lock.json b/package-lock.json index 2d30db6..18ce0b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,7 +34,7 @@ "moleculer": "^0.14.32", "moleculer-repl": "^0.7.4", "moleculer-web": "^0.10.7", - "mongodb": "^4.17.2", + "mongodb": "^6.5.0", "mysql": "^2.18.1", "mysql2": "^3.9.3", "nedb": "^1.8.0", @@ -81,6 +81,7 @@ "integrity": "sha512-IzSgsrxUcsrejQbPVilIKy16kAT52EwB6zSaI+M3xxIhKh5+aldEyvI+z6erM7TCLB2BJsFrtHjp6/4/sr+3dA==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-crypto/util": "^3.0.0", "@aws-sdk/types": "^3.222.0", @@ -92,7 +93,8 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true, - "optional": true + "optional": true, + "peer": true }, "node_modules/@aws-crypto/ie11-detection": { "version": "3.0.0", @@ -100,6 +102,7 @@ "integrity": "sha512-341lBBkiY1DfDNKai/wXM3aujNBkXR7tq1URPQDL9wi3AUbI80NR74uF1TXHMm7po1AcnFk8iu2S2IeU/+/A+Q==", "dev": true, "optional": true, + "peer": true, "dependencies": { "tslib": "^1.11.1" } @@ -109,7 +112,8 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true, - "optional": true + "optional": true, + "peer": true }, "node_modules/@aws-crypto/sha256-browser": { "version": "3.0.0", @@ -117,6 +121,7 @@ "integrity": "sha512-8VLmW2B+gjFbU5uMeqtQM6Nj0/F1bro80xQXCW6CQBWgosFWXTx77aeOF5CAIAmbOK64SdMBJdNr6J41yP5mvQ==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-crypto/ie11-detection": "^3.0.0", "@aws-crypto/sha256-js": "^3.0.0", @@ -133,7 +138,8 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true, - "optional": true + "optional": true, + "peer": true }, "node_modules/@aws-crypto/sha256-js": { "version": "3.0.0", @@ -141,6 +147,7 @@ "integrity": "sha512-PnNN7os0+yd1XvXAy23CFOmTbMaDxgxXtTKHybrJ39Y8kGzBATgBFibWJKH6BhytLI/Zyszs87xCOBNyBig6vQ==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-crypto/util": "^3.0.0", "@aws-sdk/types": "^3.222.0", @@ -152,7 +159,8 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true, - "optional": true + "optional": true, + "peer": true }, "node_modules/@aws-crypto/supports-web-crypto": { "version": "3.0.0", @@ -160,6 +168,7 @@ "integrity": "sha512-06hBdMwUAb2WFTuGG73LSC0wfPu93xWwo5vL2et9eymgmu3Id5vFAHBbajVWiGhPO37qcsdCap/FqXvJGJWPIg==", "dev": true, "optional": true, + "peer": true, "dependencies": { "tslib": "^1.11.1" } @@ -169,7 +178,8 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true, - "optional": true + "optional": true, + "peer": true }, "node_modules/@aws-crypto/util": { "version": "3.0.0", @@ -177,6 +187,7 @@ "integrity": "sha512-2OJlpeJpCR48CC8r+uKVChzs9Iungj9wkZrl8Z041DWEWvyIHILYKCPNzJghKsivj+S3mLo6BVc7mBNzdxA46w==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "^3.222.0", "@aws-sdk/util-utf8-browser": "^3.0.0", @@ -188,7 +199,8 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true, - "optional": true + "optional": true, + "peer": true }, "node_modules/@aws-sdk/client-cognito-identity": { "version": "3.449.0", @@ -196,6 +208,7 @@ "integrity": "sha512-tpBNOZMIV4v4zdbKBz561XPWoamlM+05fgrSNnV4Q004dl2bydvFCE50QkfUcpJsF3d4oMq6OtpNustF+irxTA==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", @@ -247,6 +260,7 @@ "integrity": "sha512-HFTlFbf9jwp5BJkXbMKlEwk6oGC7AVYaPEkaNk77kzZ8RGoqVSAqe0HL74DACcJUpMD/VWYX7pfWq/Wm+2B79g==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", @@ -295,6 +309,7 @@ "integrity": "sha512-iKh5Es9tyY+Ch17bvMubW67ydW4X3Buy9vwTIqpmXlnXEfbvjZRwycjWK2MO/P1Su3wjA14zNBq2ifNWFxkwFA==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", @@ -347,6 +362,7 @@ "integrity": "sha512-6GYLElUG1QTOdmXG8zXa+Ull9IUeSeItKDYHKzHYfIkbsagMfYlf7wm9XIYlatjtgodNfZ3gPHAJfRyPmwKrsg==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/smithy-client": "^2.1.12", "tslib": "^2.5.0" @@ -361,6 +377,7 @@ "integrity": "sha512-S8+QHo7EWXswwibE6OfF1o90x7toeJF3/eDpCBqTnQwyaEPggs7BNZAml5zxRMHXJUbE8nZ2gImwrKgmCiNjOw==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/client-cognito-identity": "3.449.0", "@aws-sdk/types": "3.449.0", @@ -378,6 +395,7 @@ "integrity": "sha512-SwO9XQcBoyA0XrsSmgnMqCnR99wIyp+BjGhvzDU+Wetib7QPt++E2slJkLM/iCNc6YiqiHZtHsvXapSV7RzBJw==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.449.0", "@smithy/property-provider": "^2.0.0", @@ -394,6 +412,7 @@ "integrity": "sha512-oIcww6Xsyux3LZVQr89Ps2FkULwCe3ZDUxzlyQNGD7gsMxJRD/fUBffpv+7ZmXUVoN8ZthlxuPwjpP568JVBJw==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.449.0", "@smithy/fetch-http-handler": "^2.2.4", @@ -415,6 +434,7 @@ "integrity": "sha512-C2pMYysIfbRBR4Q+Aj7J0cRsKY/X2cOnrggrWzsEUJK3EJ1aHwrzm3HI0VM5DttJyya5hE4tZ/H1VX3zNGUtKA==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/credential-provider-env": "3.449.0", "@aws-sdk/credential-provider-process": "3.449.0", @@ -437,6 +457,7 @@ "integrity": "sha512-cCsqMqL8vmHADwIHCmTWDB4vr5fCXb4PZn3njbA/PIA92xL4S7hRmYi/1ll0CMd+fks+t/h+s+PIhFGo54C7cA==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/credential-provider-env": "3.449.0", "@aws-sdk/credential-provider-ini": "3.449.0", @@ -460,6 +481,7 @@ "integrity": "sha512-IofhAgpwdSnaEg9H0dhydac07GCQ55Mc5oRzdzp/tm0Rl0MqnGdIvN8wYsxAeVhEi9pBSNla4eRiTu3LY6Z5+A==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.449.0", "@smithy/property-provider": "^2.0.0", @@ -477,6 +499,7 @@ "integrity": "sha512-Lfhh38rOjFAZBjZZJ2ehve+X048xxr+hTr+ntGOKady1GAH6W1U5UGNYuD9fr5vFaQQtAcNLKkUui+TnmJ4z/w==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/client-sso": "3.449.0", "@aws-sdk/token-providers": "3.449.0", @@ -496,6 +519,7 @@ "integrity": "sha512-BdqATzdqg39z2VXnEH7I6dzuX/Di6F/4C8FyiiJYx2+VciYdqt6GPprlpGdpngtWct/f8pA/LxQysNBVuwU/RA==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.449.0", "@smithy/property-provider": "^2.0.0", @@ -512,6 +536,7 @@ "integrity": "sha512-vC9jQsQy4QAy8dJntCg1i6JdRdteKa8EzPJJ5THVA/QaxuMXiLZPYEJs8udN+cwG4ZoLUDs73BBNgGBc4K8yRw==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/client-cognito-identity": "3.449.0", "@aws-sdk/client-sso": "3.449.0", @@ -540,6 +565,7 @@ "integrity": "sha512-uO7ao5eFhqEEPk8uqkhNhYqqJPPv/+i2aLchvSYrviDcmcbz9HURc8j+Q9WkmIj3jf0hjAJ9UVMQggBUfoLEgg==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.449.0", "@smithy/protocol-http": "^3.0.8", @@ -556,6 +582,7 @@ "integrity": "sha512-YwmPLuSx5Zjdnloxr7bArT2KgF+VvlSe5+p5T/woZWEQgINRaCLdvDB37p7x/LlHrxxZRmk20MaFwSKlJU85qQ==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.449.0", "@smithy/types": "^2.4.0", @@ -571,6 +598,7 @@ "integrity": "sha512-8kWxxpPBHwFUADf8JaZsUbJ+FtS3K9MGQpMx0AZhh3P9xLaoh602CL0y0+UEEdb2uh6FJJjQiIk4eQXEolhG6Q==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.449.0", "@smithy/protocol-http": "^3.0.8", @@ -587,6 +615,7 @@ "integrity": "sha512-a+mknJkS9jDiDoHg2sFW24B0f6MgT2zs/oF6zMFvVmImvUHjbhSgBzYStE+Phl/uM1zwp1lJfbuO+I+5tVwZEw==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/middleware-signing": "3.449.0", "@aws-sdk/types": "3.449.0", @@ -603,6 +632,7 @@ "integrity": "sha512-L33efrgdDDY3myjLwraeS2tzUlebaZL6WS7ooACsOwkB9mRs6UQRpSpT90HbcSAjwLaa+xGqaxTA0biAuRjT5A==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.449.0", "@smithy/property-provider": "^2.0.0", @@ -622,6 +652,7 @@ "integrity": "sha512-0cRptIhIthxUYadrgb5FmcTgGhPIeXnFATBILaa2gA/ivfVY/CiqMAvOvLHxtBAYNK8/VXM9DFL5TfOt8mF2UQ==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.449.0", "@aws-sdk/util-endpoints": "3.449.0", @@ -639,6 +670,7 @@ "integrity": "sha512-xpjRjCZW+CDFdcMmmhIYg81ST5UAnJh61IHziQEk0FXONrg4kjyYPZAOjEdzXQ+HxJQuGQLKPhRdzxmQnbX7pg==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/node-config-provider": "^2.1.3", "@smithy/types": "^2.4.0", @@ -656,6 +688,7 @@ "integrity": "sha512-Tgu6Z/l75uFuNQpKIidbn1gc5bI7OKmGdH5+E/ZAc58XYvxYs9N77HjhrhAGvYQEnXY6gRm26/WSeHAAh5wlgQ==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", @@ -705,6 +738,7 @@ "integrity": "sha512-tSQPAvknheB6XnRoc+AuEgdzn2KhY447hddeVW0Mbg8Yl9es4u4TKVINloKDEyUrCKhB/1f93Hb5uJkPe/e/Ww==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -719,6 +753,7 @@ "integrity": "sha512-hWGM/e+BnbCExXLaIEa6gRb0JW3+XGfcHgRqWkAxsKCaxQuXVIPUA3HyifimxTZDKmTbGZcyWfxCnKGS7I19rw==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.449.0", "@smithy/util-endpoints": "^1.0.2", @@ -734,6 +769,7 @@ "integrity": "sha512-qo2t/vBTnoXpjKxlsC2e1gBrRm80M3bId27r0BRB2VniSSe7bL1mmzM+/HFtujm0iAxtPM+aLEflLJlJeDPg0w==", "dev": true, "optional": true, + "peer": true, "dependencies": { "tslib": "^2.5.0" }, @@ -747,6 +783,7 @@ "integrity": "sha512-MUQ8YIVZNZZso5w1qlatHu9c1JKYvdjlAugzKhj7npgV4U8D9RBOJUd2Ct8meXPaH4DTfW1qohPlZu/fWWqNVQ==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.449.0", "@smithy/types": "^2.4.0", @@ -760,6 +797,7 @@ "integrity": "sha512-PFMnFMSQTdhMAS63anMFFkzz56kWKcjGscgl0bBheEaxo8zgfLf1AAdFuBM+Ob2KYXeMezUbxYu9zOC/0S2hvw==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.449.0", "@smithy/node-config-provider": "^2.1.3", @@ -784,6 +822,7 @@ "integrity": "sha512-UvFa/vR+e19XookZF8RzFZBrw2EUkQWxiBW0yYQAhvk3C+QVGl0H3ouca8LDBlBfQKXwmW3huo/59H8rwb1wJw==", "dev": true, "optional": true, + "peer": true, "dependencies": { "tslib": "^2.3.1" } @@ -2427,11 +2466,10 @@ "dev": true }, "node_modules/@mongodb-js/saslprep": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.1.1.tgz", - "integrity": "sha512-t7c5K033joZZMspnHg/gWPE4kandgc2OxE74aYOtGKfgB9VPuVJPix0H6fhmm2erj5PBJ21mqcx34lpIGtUCsQ==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.1.5.tgz", + "integrity": "sha512-XLNOMH66KhJzUJNwT/qlMnS4WsNDWD5ASdyaSH3EtK+F4r/CFGa3jT4GNi4mfOitGvWXtdLgQJkQjxSVrio+jA==", "dev": true, - "optional": true, "dependencies": { "sparse-bitfield": "^3.0.3" } @@ -2781,6 +2819,7 @@ "integrity": "sha512-YIJyefe1mi3GxKdZxEBEuzYOeQ9xpYfqnFmWzojCssRAuR7ycxwpoRQgp965vuW426xUAQhCV5rCaWElQ7XsaA==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -2795,6 +2834,7 @@ "integrity": "sha512-iQ8Q8ojqiPqRKdybDI1g7HvG8EcnekRnH3DYeNTrT26vDuPq2nomyMCc0DZnPW+uAUcLCGZpAmGTAvEOYX55wA==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/node-config-provider": "^2.1.4", "@smithy/types": "^2.4.0", @@ -2812,6 +2852,7 @@ "integrity": "sha512-amqeueHM3i02S6z35WlXp7gejBnRloT5ctR/mQLlg/6LWGd70Avc2epzuuWtCptNg2ak5/yODD1fAVs9NPCyqg==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/node-config-provider": "^2.1.4", "@smithy/property-provider": "^2.0.13", @@ -2829,6 +2870,7 @@ "integrity": "sha512-ZZQLzHBJkbiAAdj2C5K+lBlYp/XJ+eH2uy+jgJgYIFW/o5AM59Hlj7zyI44/ZTDIQWmBxb3EFv/c5t44V8/g8A==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@aws-crypto/crc32": "3.0.0", "@smithy/types": "^2.4.0", @@ -2842,6 +2884,7 @@ "integrity": "sha512-m9yoTx+64XRSpCzWArOpvHeAuVfI2LFz2hDzgzjzCLlN8IIwzkFaCav5ShsYxx4iu9sXp09+on0a5VROY9+MFQ==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/protocol-http": "^3.0.8", "@smithy/querystring-builder": "^2.0.12", @@ -2856,6 +2899,7 @@ "integrity": "sha512-eS2Q4IE2AZDfrfpXma49M2H1NVcs7VFg2KZ5hndQZibCmFJehS9CjjwIu0aWC61p4sEB7jWXw70bzOllyQU6GQ==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.4.0", "@smithy/util-buffer-from": "^2.0.0", @@ -2872,6 +2916,7 @@ "integrity": "sha512-p5Y+iMHV3SoEpy3VSR7mifbreHQwVSvHSAz/m4GdoXfOzKzaYC8hYv10Ks7Deblkf7lhas8U+lAp9ThbBM+ZXA==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -2883,6 +2928,7 @@ "integrity": "sha512-z3PjFjMyZNI98JFRJi/U0nGoLWMSJlDjAW4QUX2WNZLas5C0CmVV6LJ01JI0k90l7FvpmixjWxPFmENSClQ7ug==", "dev": true, "optional": true, + "peer": true, "dependencies": { "tslib": "^2.5.0" }, @@ -2896,6 +2942,7 @@ "integrity": "sha512-poUNgKTw9XwPXfX9nEHpVgrMNVpaSMZbshqvPxFVoalF4wp6kRzYKOfdesSVectlQ51VtigoLfbXcdyPwvxgTg==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/protocol-http": "^3.0.8", "@smithy/types": "^2.4.0", @@ -2911,6 +2958,7 @@ "integrity": "sha512-eRhI0mI9tnkpmLwJbprV+MdlPyOMe8tFtVrNFMUlgOQrJeYv5AD5UFRn/KhgNX1vO1pVgpPtD9R+cRuFhj/lIQ==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/middleware-serde": "^2.0.12", "@smithy/node-config-provider": "^2.1.4", @@ -2930,6 +2978,7 @@ "integrity": "sha512-VMS1GHxLpRnuLHrPTj/nb9aD99jJsNzWX07F00fIuV9lkz3lWP7RUM7P1aitm0+4YfhShPn+Wri8/CuoqPOziA==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/node-config-provider": "^2.1.4", "@smithy/protocol-http": "^3.0.8", @@ -2950,6 +2999,7 @@ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", "dev": true, "optional": true, + "peer": true, "bin": { "uuid": "dist/bin/uuid" } @@ -2960,6 +3010,7 @@ "integrity": "sha512-IBeco157lIScecq2Z+n0gq56i4MTnfKxS7rbfrAORveDJgnbBAaEQgYqMqp/cYqKrpvEXcyTjwKHrBjCCIZh2A==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -2974,6 +3025,7 @@ "integrity": "sha512-YSvNZeOKWLJ0M/ycxwDIe2Ztkp6Qixmcml1ggsSv2fdHKGkBPhGrX5tMzPGMI1yyx55UEYBi2OB4s+RriXX48A==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -2988,6 +3040,7 @@ "integrity": "sha512-kROLnHFatpimtmZ8YefsRRb5OJ8LVIVNhUWp67KHL4D2Vjd+WpIHMzWtkLLV4p0qXpY+IxmwcL2d2XMPn8ppsQ==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/property-provider": "^2.0.13", "@smithy/shared-ini-file-loader": "^2.2.3", @@ -3004,6 +3057,7 @@ "integrity": "sha512-KZylM7Wff/So5SmCiwg2kQNXJ+RXgz34wkxS7WNwIUXuZrZZpY/jKJCK+ZaGyuESDu3TxcaY+zeYGJmnFKbQsA==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/abort-controller": "^2.0.12", "@smithy/protocol-http": "^3.0.8", @@ -3021,6 +3075,7 @@ "integrity": "sha512-VJqUf2CbsQX6uUiC5dUPuoEATuFjkbkW3lJHbRnpk9EDC9X+iKqhfTK+WP+lve5EQ9TcCI1Q6R7hrg41FyC54w==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -3035,6 +3090,7 @@ "integrity": "sha512-SHJvYeWq8q0FK8xHk+xjV9dzDUDjFMT+G1pZbV+XB6OVoac/FSVshlMNPeUJ8AmSkcDKHRu5vASnRqZHgD3qhw==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -3049,6 +3105,7 @@ "integrity": "sha512-cDbF07IuCjiN8CdGvPzfJjXIrmDSelScRfyJYrYBNBbKl2+k7QD/KqiHhtRyEKgID5mmEVrV6KE6L/iPJ98sFw==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.4.0", "@smithy/util-uri-escape": "^2.0.0", @@ -3064,6 +3121,7 @@ "integrity": "sha512-fytyTcXaMzPBuNtPlhj5v6dbl4bJAnwKZFyyItAGt4Tgm9HFPZNo7a9r1SKPr/qdxUEBzvL9Rh+B9SkTX3kFxg==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -3078,6 +3136,7 @@ "integrity": "sha512-M0SeJnEgD2ywJyV99Fb1yKFzmxDe9JfpJiYTVSRMyRLc467BPU0qsuuDPzMCdB1mU8M8u1rVOdkqdoyFN8UFTw==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.4.0" }, @@ -3091,6 +3150,7 @@ "integrity": "sha512-VDyhCNycPbNkPidMnBgYQeSwJkoATRFm5VrveVqIPAjsdGutf7yZpPycuDWW9bRFnuuwaBhCC0pA7KCH0+2wrg==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -3105,6 +3165,7 @@ "integrity": "sha512-ZUU8gGlDVFyU3tM9tCEbq2FxHtyfX2qYBUKoIGH23GSxbC4+Ld/HeFL2EZYIFrYwoOuPBO30+g3fAohOP9Ax3Q==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/eventstream-codec": "^2.0.12", "@smithy/is-array-buffer": "^2.0.0", @@ -3125,6 +3186,7 @@ "integrity": "sha512-SMiflchpKadmyvjWPTVwBKjDcEigRHkiUjtzLBlTp9dEp2FmbCjpyc95BNvUdOGOMcPCIkoQQGeabo6avIZNiw==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/middleware-stack": "^2.0.6", "@smithy/types": "^2.4.0", @@ -3141,6 +3203,7 @@ "integrity": "sha512-iH1Xz68FWlmBJ9vvYeHifVMWJf82ONx+OybPW8ZGf5wnEv2S0UXcU4zwlwJkRXuLKpcSLHrraHbn2ucdVXLb4g==", "dev": true, "optional": true, + "peer": true, "dependencies": { "tslib": "^2.5.0" }, @@ -3154,6 +3217,7 @@ "integrity": "sha512-qgkW2mZqRvlNUcBkxYB/gYacRaAdck77Dk3/g2iw0S9F0EYthIS3loGfly8AwoWpIvHKhkTsCXXQfzksgZ4zIA==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/querystring-parser": "^2.0.12", "@smithy/types": "^2.4.0", @@ -3166,6 +3230,7 @@ "integrity": "sha512-DlI6XFYDMsIVN+GH9JtcRp3j02JEVuWIn/QOZisVzpIAprdsxGveFed0bjbMRCqmIFe8uetn5rxzNrBtIGrPIQ==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/util-buffer-from": "^2.0.0", "tslib": "^2.5.0" @@ -3180,6 +3245,7 @@ "integrity": "sha512-JdDuS4ircJt+FDnaQj88TzZY3+njZ6O+D3uakS32f2VNnDo3vyEuNdBOh/oFd8Df1zSZOuH1HEChk2AOYDezZg==", "dev": true, "optional": true, + "peer": true, "dependencies": { "tslib": "^2.5.0" } @@ -3190,6 +3256,7 @@ "integrity": "sha512-/li0/kj/y3fQ3vyzn36NTLGmUwAICb7Jbe/CsWCktW363gh1MOcpEcSO3mJ344Gv2dqz8YJCLQpb6hju/0qOWw==", "dev": true, "optional": true, + "peer": true, "dependencies": { "tslib": "^2.5.0" }, @@ -3203,6 +3270,7 @@ "integrity": "sha512-/YNnLoHsR+4W4Vf2wL5lGv0ksg8Bmk3GEGxn2vEQt52AQaPSCuaO5PM5VM7lP1K9qHRKHwrPGktqVoAHKWHxzw==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/is-array-buffer": "^2.0.0", "tslib": "^2.5.0" @@ -3217,6 +3285,7 @@ "integrity": "sha512-xCQ6UapcIWKxXHEU4Mcs2s7LcFQRiU3XEluM2WcCjjBtQkUN71Tb+ydGmJFPxMUrW/GWMgQEEGipLym4XG0jZg==", "dev": true, "optional": true, + "peer": true, "dependencies": { "tslib": "^2.5.0" }, @@ -3230,6 +3299,7 @@ "integrity": "sha512-Dok3alNbkKI3MGTiW9zYGY/1gmU0MgrUMk0aRuNOeypY1TuKJ4NuNAbq5dv1GnWvYeFzWk4j0FMIwpJLF8DVmg==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/property-provider": "^2.0.13", "@smithy/smithy-client": "^2.1.14", @@ -3247,6 +3317,7 @@ "integrity": "sha512-f5wM/SbjvDTCXxk//od43hhnEPItdZB3ByAqbpz5dkum/vLQe2hFRvMNbpt7UA4htQTrbUmLWJatUmvGQEFypg==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/config-resolver": "^2.0.17", "@smithy/credential-provider-imds": "^2.1.0", @@ -3266,6 +3337,7 @@ "integrity": "sha512-rMYXLMdAMVbJAEHhNlCSJsAxo3NG3lcPja7WmesjAbNrMSyYZ6FnHHTy8kzRhddn4eAtLvPBSO6LiBB21gCoHQ==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/node-config-provider": "^2.1.4", "@smithy/types": "^2.4.0", @@ -3281,6 +3353,7 @@ "integrity": "sha512-c5xY+NUnFqG6d7HFh1IFfrm3mGl29lC+vF+geHv4ToiuJCBmIfzx6IeHLg+OgRdPFKDXIw6pvi+p3CsscaMcMA==", "dev": true, "optional": true, + "peer": true, "dependencies": { "tslib": "^2.5.0" }, @@ -3294,6 +3367,7 @@ "integrity": "sha512-1lyT3TcaMJQe+OFfVI+TlomDkPuVzb27NZYdYtmSTltVmLaUjdCyt4KE+OH1CnhZKsz4/cdCL420Lg9UH5Z2Mw==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -3308,6 +3382,7 @@ "integrity": "sha512-x3t1+MQAJ6QONk3GTbJNcugCFDVJ+Bkro5YqQQK1EyVesajNDqxFtCx9WdOFNGm/Cbm7tUdwVEmfKQOJoU2Vtw==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/service-error-classification": "^2.0.5", "@smithy/types": "^2.4.0", @@ -3323,6 +3398,7 @@ "integrity": "sha512-2kwTRyOKJcRFeO1LX4Qn1vniEyU1urMG1DfomTpiOLTFS0iV3dsqNvYNltvTbmzZd9u0f15H96l38QP8dsKF1w==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/fetch-http-handler": "^2.2.5", "@smithy/node-http-handler": "^2.1.8", @@ -3343,6 +3419,7 @@ "integrity": "sha512-ebkxsqinSdEooQduuk9CbKcI+wheijxEb3utGXkCoYQkJnwTnLbH1JXGimJtUkQwNQbsbuYwG2+aFVyZf5TLaw==", "dev": true, "optional": true, + "peer": true, "dependencies": { "tslib": "^2.5.0" }, @@ -3356,6 +3433,7 @@ "integrity": "sha512-qOiVORSPm6Ce4/Yu6hbSgNHABLP2VMv8QOC3tTDNHHlWY19pPyc++fBTbZPtx6egPXi4HQxKDnMxVxpbtX2GoA==", "dev": true, "optional": true, + "peer": true, "dependencies": { "@smithy/util-buffer-from": "^2.0.0", "tslib": "^2.5.0" @@ -3603,18 +3681,17 @@ "dev": true }, "node_modules/@types/webidl-conversions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.0.tgz", - "integrity": "sha512-xTE1E+YF4aWPJJeUzaZI5DRntlkY3+BCVJi0axFptnjGmAoWxkyREIh/XMrfxVLejwQxMCfDXdICo0VLxThrog==", + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.3.tgz", + "integrity": "sha512-CiJJvcRtIgzadHCYXw7dqEnMNRjhGZlYK05Mj9OyktqV8uVT8fD2BFOB7S1uwBE3Kj2Z+4UyPmFw/Ixgw/LAlA==", "dev": true }, "node_modules/@types/whatwg-url": { - "version": "8.2.2", - "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.2.tgz", - "integrity": "sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA==", + "version": "11.0.4", + "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-11.0.4.tgz", + "integrity": "sha512-lXCmTWSHJvf0TRSO58nm978b8HJ/EdsSsEKLd3ODHFjo+3VGAyyTp4v50nWvwtzBxSMQrVOK7tcuN0zGPLICMw==", "dev": true, "dependencies": { - "@types/node": "*", "@types/webidl-conversions": "*" } }, @@ -4377,7 +4454,8 @@ "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==", "dev": true, - "optional": true + "optional": true, + "peer": true }, "node_modules/boxen": { "version": "7.0.0", @@ -4551,15 +4629,12 @@ } }, "node_modules/bson": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/bson/-/bson-4.7.2.tgz", - "integrity": "sha512-Ry9wCtIZ5kGqkJoi6aD8KjxFZEx78guTQDnpXWiNthsxzrxAK/i8E6pCHAIZTbaEFWcOCvbecMukfK7XUvyLpQ==", + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/bson/-/bson-6.5.0.tgz", + "integrity": "sha512-DXf1BTAS8vKyR90BO4x5v3rKVarmkdkzwOrnYDFdjAY694ILNDkmA3uRh1xXJEl+C1DAh8XCvAQ+Gh3kzubtpg==", "dev": true, - "dependencies": { - "buffer": "^5.6.0" - }, "engines": { - "node": ">=6.9.0" + "node": ">=16.20.1" } }, "node_modules/buffer": { @@ -6416,6 +6491,7 @@ } ], "optional": true, + "peer": true, "dependencies": { "strnum": "^1.0.5" }, @@ -8915,8 +8991,7 @@ "version": "1.5.0", "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", - "dev": true, - "optional": true + "dev": true }, "node_modules/merge-stream": { "version": "2.0.0", @@ -9379,31 +9454,59 @@ } }, "node_modules/mongodb": { - "version": "4.17.2", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.17.2.tgz", - "integrity": "sha512-mLV7SEiov2LHleRJPMPrK2PMyhXFZt2UQLC4VD4pnth3jMjYKHhtqfwwkkvS/NXuo/Fp3vbhaNcXrIDaLRb9Tg==", + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.5.0.tgz", + "integrity": "sha512-Fozq68InT+JKABGLqctgtb8P56pRrJFkbhW0ux+x1mdHeyinor8oNzJqwLjV/t5X5nJGfTlluxfyMnOXNggIUA==", "dev": true, "dependencies": { - "bson": "^4.7.2", - "mongodb-connection-string-url": "^2.6.0", - "socks": "^2.7.1" + "@mongodb-js/saslprep": "^1.1.5", + "bson": "^6.4.0", + "mongodb-connection-string-url": "^3.0.0" }, "engines": { - "node": ">=12.9.0" + "node": ">=16.20.1" }, - "optionalDependencies": { - "@aws-sdk/credential-providers": "^3.186.0", - "@mongodb-js/saslprep": "^1.1.0" + "peerDependencies": { + "@aws-sdk/credential-providers": "^3.188.0", + "@mongodb-js/zstd": "^1.1.0", + "gcp-metadata": "^5.2.0", + "kerberos": "^2.0.1", + "mongodb-client-encryption": ">=6.0.0 <7", + "snappy": "^7.2.2", + "socks": "^2.7.1" + }, + "peerDependenciesMeta": { + "@aws-sdk/credential-providers": { + "optional": true + }, + "@mongodb-js/zstd": { + "optional": true + }, + "gcp-metadata": { + "optional": true + }, + "kerberos": { + "optional": true + }, + "mongodb-client-encryption": { + "optional": true + }, + "snappy": { + "optional": true + }, + "socks": { + "optional": true + } } }, "node_modules/mongodb-connection-string-url": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.6.0.tgz", - "integrity": "sha512-WvTZlI9ab0QYtTYnuMLgobULWhokRjtC7db9LtcVfJ+Hsnyr5eo6ZtNAt3Ly24XZScGMelOcGtm7lSn0332tPQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-3.0.0.tgz", + "integrity": "sha512-t1Vf+m1I5hC2M5RJx/7AtxgABy1cZmIPQRMXw+gEIPn/cZNF3Oiy+l0UIypUwVB5trcWHq3crg2g3uAR9aAwsQ==", "dev": true, "dependencies": { - "@types/whatwg-url": "^8.2.1", - "whatwg-url": "^11.0.0" + "@types/whatwg-url": "^11.0.2", + "whatwg-url": "^13.0.0" } }, "node_modules/mri": { @@ -11211,9 +11314,9 @@ } }, "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, "engines": { "node": ">=6" @@ -12310,7 +12413,6 @@ "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", "integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==", "dev": true, - "optional": true, "dependencies": { "memory-pager": "^1.0.2" } @@ -12829,7 +12931,8 @@ "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==", "dev": true, - "optional": true + "optional": true, + "peer": true }, "node_modules/supports-color": { "version": "5.5.0", @@ -13210,15 +13313,15 @@ } }, "node_modules/tr46": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", - "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-4.1.1.tgz", + "integrity": "sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==", "dev": true, "dependencies": { - "punycode": "^2.1.1" + "punycode": "^2.3.0" }, "engines": { - "node": ">=12" + "node": ">=14" } }, "node_modules/tslib": { @@ -13609,16 +13712,16 @@ } }, "node_modules/whatwg-url": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", - "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-13.0.0.tgz", + "integrity": "sha512-9WWbymnqj57+XEuqADHrCJ2eSXzn8WXIW/YSGaZtb2WKAInQ6CHfaUUcTyyver0p8BDg5StLQq8h1vtZuwmOig==", "dev": true, "dependencies": { - "tr46": "^3.0.0", + "tr46": "^4.1.1", "webidl-conversions": "^7.0.0" }, "engines": { - "node": ">=12" + "node": ">=16" } }, "node_modules/which": { @@ -13954,6 +14057,7 @@ "integrity": "sha512-IzSgsrxUcsrejQbPVilIKy16kAT52EwB6zSaI+M3xxIhKh5+aldEyvI+z6erM7TCLB2BJsFrtHjp6/4/sr+3dA==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-crypto/util": "^3.0.0", "@aws-sdk/types": "^3.222.0", @@ -13965,7 +14069,8 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true, - "optional": true + "optional": true, + "peer": true } } }, @@ -13975,6 +14080,7 @@ "integrity": "sha512-341lBBkiY1DfDNKai/wXM3aujNBkXR7tq1URPQDL9wi3AUbI80NR74uF1TXHMm7po1AcnFk8iu2S2IeU/+/A+Q==", "dev": true, "optional": true, + "peer": true, "requires": { "tslib": "^1.11.1" }, @@ -13984,7 +14090,8 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true, - "optional": true + "optional": true, + "peer": true } } }, @@ -13994,6 +14101,7 @@ "integrity": "sha512-8VLmW2B+gjFbU5uMeqtQM6Nj0/F1bro80xQXCW6CQBWgosFWXTx77aeOF5CAIAmbOK64SdMBJdNr6J41yP5mvQ==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-crypto/ie11-detection": "^3.0.0", "@aws-crypto/sha256-js": "^3.0.0", @@ -14010,7 +14118,8 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true, - "optional": true + "optional": true, + "peer": true } } }, @@ -14020,6 +14129,7 @@ "integrity": "sha512-PnNN7os0+yd1XvXAy23CFOmTbMaDxgxXtTKHybrJ39Y8kGzBATgBFibWJKH6BhytLI/Zyszs87xCOBNyBig6vQ==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-crypto/util": "^3.0.0", "@aws-sdk/types": "^3.222.0", @@ -14031,7 +14141,8 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true, - "optional": true + "optional": true, + "peer": true } } }, @@ -14041,6 +14152,7 @@ "integrity": "sha512-06hBdMwUAb2WFTuGG73LSC0wfPu93xWwo5vL2et9eymgmu3Id5vFAHBbajVWiGhPO37qcsdCap/FqXvJGJWPIg==", "dev": true, "optional": true, + "peer": true, "requires": { "tslib": "^1.11.1" }, @@ -14050,7 +14162,8 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true, - "optional": true + "optional": true, + "peer": true } } }, @@ -14060,6 +14173,7 @@ "integrity": "sha512-2OJlpeJpCR48CC8r+uKVChzs9Iungj9wkZrl8Z041DWEWvyIHILYKCPNzJghKsivj+S3mLo6BVc7mBNzdxA46w==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/types": "^3.222.0", "@aws-sdk/util-utf8-browser": "^3.0.0", @@ -14071,7 +14185,8 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true, - "optional": true + "optional": true, + "peer": true } } }, @@ -14081,6 +14196,7 @@ "integrity": "sha512-tpBNOZMIV4v4zdbKBz561XPWoamlM+05fgrSNnV4Q004dl2bydvFCE50QkfUcpJsF3d4oMq6OtpNustF+irxTA==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", @@ -14129,6 +14245,7 @@ "integrity": "sha512-HFTlFbf9jwp5BJkXbMKlEwk6oGC7AVYaPEkaNk77kzZ8RGoqVSAqe0HL74DACcJUpMD/VWYX7pfWq/Wm+2B79g==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", @@ -14174,6 +14291,7 @@ "integrity": "sha512-iKh5Es9tyY+Ch17bvMubW67ydW4X3Buy9vwTIqpmXlnXEfbvjZRwycjWK2MO/P1Su3wjA14zNBq2ifNWFxkwFA==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", @@ -14223,6 +14341,7 @@ "integrity": "sha512-6GYLElUG1QTOdmXG8zXa+Ull9IUeSeItKDYHKzHYfIkbsagMfYlf7wm9XIYlatjtgodNfZ3gPHAJfRyPmwKrsg==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/smithy-client": "^2.1.12", "tslib": "^2.5.0" @@ -14234,6 +14353,7 @@ "integrity": "sha512-S8+QHo7EWXswwibE6OfF1o90x7toeJF3/eDpCBqTnQwyaEPggs7BNZAml5zxRMHXJUbE8nZ2gImwrKgmCiNjOw==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/client-cognito-identity": "3.449.0", "@aws-sdk/types": "3.449.0", @@ -14248,6 +14368,7 @@ "integrity": "sha512-SwO9XQcBoyA0XrsSmgnMqCnR99wIyp+BjGhvzDU+Wetib7QPt++E2slJkLM/iCNc6YiqiHZtHsvXapSV7RzBJw==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/types": "3.449.0", "@smithy/property-provider": "^2.0.0", @@ -14261,6 +14382,7 @@ "integrity": "sha512-oIcww6Xsyux3LZVQr89Ps2FkULwCe3ZDUxzlyQNGD7gsMxJRD/fUBffpv+7ZmXUVoN8ZthlxuPwjpP568JVBJw==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/types": "3.449.0", "@smithy/fetch-http-handler": "^2.2.4", @@ -14279,6 +14401,7 @@ "integrity": "sha512-C2pMYysIfbRBR4Q+Aj7J0cRsKY/X2cOnrggrWzsEUJK3EJ1aHwrzm3HI0VM5DttJyya5hE4tZ/H1VX3zNGUtKA==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/credential-provider-env": "3.449.0", "@aws-sdk/credential-provider-process": "3.449.0", @@ -14298,6 +14421,7 @@ "integrity": "sha512-cCsqMqL8vmHADwIHCmTWDB4vr5fCXb4PZn3njbA/PIA92xL4S7hRmYi/1ll0CMd+fks+t/h+s+PIhFGo54C7cA==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/credential-provider-env": "3.449.0", "@aws-sdk/credential-provider-ini": "3.449.0", @@ -14318,6 +14442,7 @@ "integrity": "sha512-IofhAgpwdSnaEg9H0dhydac07GCQ55Mc5oRzdzp/tm0Rl0MqnGdIvN8wYsxAeVhEi9pBSNla4eRiTu3LY6Z5+A==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/types": "3.449.0", "@smithy/property-provider": "^2.0.0", @@ -14332,6 +14457,7 @@ "integrity": "sha512-Lfhh38rOjFAZBjZZJ2ehve+X048xxr+hTr+ntGOKady1GAH6W1U5UGNYuD9fr5vFaQQtAcNLKkUui+TnmJ4z/w==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/client-sso": "3.449.0", "@aws-sdk/token-providers": "3.449.0", @@ -14348,6 +14474,7 @@ "integrity": "sha512-BdqATzdqg39z2VXnEH7I6dzuX/Di6F/4C8FyiiJYx2+VciYdqt6GPprlpGdpngtWct/f8pA/LxQysNBVuwU/RA==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/types": "3.449.0", "@smithy/property-provider": "^2.0.0", @@ -14361,6 +14488,7 @@ "integrity": "sha512-vC9jQsQy4QAy8dJntCg1i6JdRdteKa8EzPJJ5THVA/QaxuMXiLZPYEJs8udN+cwG4ZoLUDs73BBNgGBc4K8yRw==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/client-cognito-identity": "3.449.0", "@aws-sdk/client-sso": "3.449.0", @@ -14386,6 +14514,7 @@ "integrity": "sha512-uO7ao5eFhqEEPk8uqkhNhYqqJPPv/+i2aLchvSYrviDcmcbz9HURc8j+Q9WkmIj3jf0hjAJ9UVMQggBUfoLEgg==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/types": "3.449.0", "@smithy/protocol-http": "^3.0.8", @@ -14399,6 +14528,7 @@ "integrity": "sha512-YwmPLuSx5Zjdnloxr7bArT2KgF+VvlSe5+p5T/woZWEQgINRaCLdvDB37p7x/LlHrxxZRmk20MaFwSKlJU85qQ==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/types": "3.449.0", "@smithy/types": "^2.4.0", @@ -14411,6 +14541,7 @@ "integrity": "sha512-8kWxxpPBHwFUADf8JaZsUbJ+FtS3K9MGQpMx0AZhh3P9xLaoh602CL0y0+UEEdb2uh6FJJjQiIk4eQXEolhG6Q==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/types": "3.449.0", "@smithy/protocol-http": "^3.0.8", @@ -14424,6 +14555,7 @@ "integrity": "sha512-a+mknJkS9jDiDoHg2sFW24B0f6MgT2zs/oF6zMFvVmImvUHjbhSgBzYStE+Phl/uM1zwp1lJfbuO+I+5tVwZEw==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/middleware-signing": "3.449.0", "@aws-sdk/types": "3.449.0", @@ -14437,6 +14569,7 @@ "integrity": "sha512-L33efrgdDDY3myjLwraeS2tzUlebaZL6WS7ooACsOwkB9mRs6UQRpSpT90HbcSAjwLaa+xGqaxTA0biAuRjT5A==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/types": "3.449.0", "@smithy/property-provider": "^2.0.0", @@ -14453,6 +14586,7 @@ "integrity": "sha512-0cRptIhIthxUYadrgb5FmcTgGhPIeXnFATBILaa2gA/ivfVY/CiqMAvOvLHxtBAYNK8/VXM9DFL5TfOt8mF2UQ==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/types": "3.449.0", "@aws-sdk/util-endpoints": "3.449.0", @@ -14467,6 +14601,7 @@ "integrity": "sha512-xpjRjCZW+CDFdcMmmhIYg81ST5UAnJh61IHziQEk0FXONrg4kjyYPZAOjEdzXQ+HxJQuGQLKPhRdzxmQnbX7pg==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/node-config-provider": "^2.1.3", "@smithy/types": "^2.4.0", @@ -14481,6 +14616,7 @@ "integrity": "sha512-Tgu6Z/l75uFuNQpKIidbn1gc5bI7OKmGdH5+E/ZAc58XYvxYs9N77HjhrhAGvYQEnXY6gRm26/WSeHAAh5wlgQ==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", @@ -14527,6 +14663,7 @@ "integrity": "sha512-tSQPAvknheB6XnRoc+AuEgdzn2KhY447hddeVW0Mbg8Yl9es4u4TKVINloKDEyUrCKhB/1f93Hb5uJkPe/e/Ww==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -14538,6 +14675,7 @@ "integrity": "sha512-hWGM/e+BnbCExXLaIEa6gRb0JW3+XGfcHgRqWkAxsKCaxQuXVIPUA3HyifimxTZDKmTbGZcyWfxCnKGS7I19rw==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/types": "3.449.0", "@smithy/util-endpoints": "^1.0.2", @@ -14550,6 +14688,7 @@ "integrity": "sha512-qo2t/vBTnoXpjKxlsC2e1gBrRm80M3bId27r0BRB2VniSSe7bL1mmzM+/HFtujm0iAxtPM+aLEflLJlJeDPg0w==", "dev": true, "optional": true, + "peer": true, "requires": { "tslib": "^2.5.0" } @@ -14560,6 +14699,7 @@ "integrity": "sha512-MUQ8YIVZNZZso5w1qlatHu9c1JKYvdjlAugzKhj7npgV4U8D9RBOJUd2Ct8meXPaH4DTfW1qohPlZu/fWWqNVQ==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/types": "3.449.0", "@smithy/types": "^2.4.0", @@ -14573,6 +14713,7 @@ "integrity": "sha512-PFMnFMSQTdhMAS63anMFFkzz56kWKcjGscgl0bBheEaxo8zgfLf1AAdFuBM+Ob2KYXeMezUbxYu9zOC/0S2hvw==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-sdk/types": "3.449.0", "@smithy/node-config-provider": "^2.1.3", @@ -14586,6 +14727,7 @@ "integrity": "sha512-UvFa/vR+e19XookZF8RzFZBrw2EUkQWxiBW0yYQAhvk3C+QVGl0H3ouca8LDBlBfQKXwmW3huo/59H8rwb1wJw==", "dev": true, "optional": true, + "peer": true, "requires": { "tslib": "^2.3.1" } @@ -15878,11 +16020,10 @@ "dev": true }, "@mongodb-js/saslprep": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.1.1.tgz", - "integrity": "sha512-t7c5K033joZZMspnHg/gWPE4kandgc2OxE74aYOtGKfgB9VPuVJPix0H6fhmm2erj5PBJ21mqcx34lpIGtUCsQ==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.1.5.tgz", + "integrity": "sha512-XLNOMH66KhJzUJNwT/qlMnS4WsNDWD5ASdyaSH3EtK+F4r/CFGa3jT4GNi4mfOitGvWXtdLgQJkQjxSVrio+jA==", "dev": true, - "optional": true, "requires": { "sparse-bitfield": "^3.0.3" } @@ -16143,6 +16284,7 @@ "integrity": "sha512-YIJyefe1mi3GxKdZxEBEuzYOeQ9xpYfqnFmWzojCssRAuR7ycxwpoRQgp965vuW426xUAQhCV5rCaWElQ7XsaA==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -16154,6 +16296,7 @@ "integrity": "sha512-iQ8Q8ojqiPqRKdybDI1g7HvG8EcnekRnH3DYeNTrT26vDuPq2nomyMCc0DZnPW+uAUcLCGZpAmGTAvEOYX55wA==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/node-config-provider": "^2.1.4", "@smithy/types": "^2.4.0", @@ -16168,6 +16311,7 @@ "integrity": "sha512-amqeueHM3i02S6z35WlXp7gejBnRloT5ctR/mQLlg/6LWGd70Avc2epzuuWtCptNg2ak5/yODD1fAVs9NPCyqg==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/node-config-provider": "^2.1.4", "@smithy/property-provider": "^2.0.13", @@ -16182,6 +16326,7 @@ "integrity": "sha512-ZZQLzHBJkbiAAdj2C5K+lBlYp/XJ+eH2uy+jgJgYIFW/o5AM59Hlj7zyI44/ZTDIQWmBxb3EFv/c5t44V8/g8A==", "dev": true, "optional": true, + "peer": true, "requires": { "@aws-crypto/crc32": "3.0.0", "@smithy/types": "^2.4.0", @@ -16195,6 +16340,7 @@ "integrity": "sha512-m9yoTx+64XRSpCzWArOpvHeAuVfI2LFz2hDzgzjzCLlN8IIwzkFaCav5ShsYxx4iu9sXp09+on0a5VROY9+MFQ==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/protocol-http": "^3.0.8", "@smithy/querystring-builder": "^2.0.12", @@ -16209,6 +16355,7 @@ "integrity": "sha512-eS2Q4IE2AZDfrfpXma49M2H1NVcs7VFg2KZ5hndQZibCmFJehS9CjjwIu0aWC61p4sEB7jWXw70bzOllyQU6GQ==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/types": "^2.4.0", "@smithy/util-buffer-from": "^2.0.0", @@ -16222,6 +16369,7 @@ "integrity": "sha512-p5Y+iMHV3SoEpy3VSR7mifbreHQwVSvHSAz/m4GdoXfOzKzaYC8hYv10Ks7Deblkf7lhas8U+lAp9ThbBM+ZXA==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -16233,6 +16381,7 @@ "integrity": "sha512-z3PjFjMyZNI98JFRJi/U0nGoLWMSJlDjAW4QUX2WNZLas5C0CmVV6LJ01JI0k90l7FvpmixjWxPFmENSClQ7ug==", "dev": true, "optional": true, + "peer": true, "requires": { "tslib": "^2.5.0" } @@ -16243,6 +16392,7 @@ "integrity": "sha512-poUNgKTw9XwPXfX9nEHpVgrMNVpaSMZbshqvPxFVoalF4wp6kRzYKOfdesSVectlQ51VtigoLfbXcdyPwvxgTg==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/protocol-http": "^3.0.8", "@smithy/types": "^2.4.0", @@ -16255,6 +16405,7 @@ "integrity": "sha512-eRhI0mI9tnkpmLwJbprV+MdlPyOMe8tFtVrNFMUlgOQrJeYv5AD5UFRn/KhgNX1vO1pVgpPtD9R+cRuFhj/lIQ==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/middleware-serde": "^2.0.12", "@smithy/node-config-provider": "^2.1.4", @@ -16271,6 +16422,7 @@ "integrity": "sha512-VMS1GHxLpRnuLHrPTj/nb9aD99jJsNzWX07F00fIuV9lkz3lWP7RUM7P1aitm0+4YfhShPn+Wri8/CuoqPOziA==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/node-config-provider": "^2.1.4", "@smithy/protocol-http": "^3.0.8", @@ -16287,7 +16439,8 @@ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", "dev": true, - "optional": true + "optional": true, + "peer": true } } }, @@ -16297,6 +16450,7 @@ "integrity": "sha512-IBeco157lIScecq2Z+n0gq56i4MTnfKxS7rbfrAORveDJgnbBAaEQgYqMqp/cYqKrpvEXcyTjwKHrBjCCIZh2A==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -16308,6 +16462,7 @@ "integrity": "sha512-YSvNZeOKWLJ0M/ycxwDIe2Ztkp6Qixmcml1ggsSv2fdHKGkBPhGrX5tMzPGMI1yyx55UEYBi2OB4s+RriXX48A==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -16319,6 +16474,7 @@ "integrity": "sha512-kROLnHFatpimtmZ8YefsRRb5OJ8LVIVNhUWp67KHL4D2Vjd+WpIHMzWtkLLV4p0qXpY+IxmwcL2d2XMPn8ppsQ==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/property-provider": "^2.0.13", "@smithy/shared-ini-file-loader": "^2.2.3", @@ -16332,6 +16488,7 @@ "integrity": "sha512-KZylM7Wff/So5SmCiwg2kQNXJ+RXgz34wkxS7WNwIUXuZrZZpY/jKJCK+ZaGyuESDu3TxcaY+zeYGJmnFKbQsA==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/abort-controller": "^2.0.12", "@smithy/protocol-http": "^3.0.8", @@ -16346,6 +16503,7 @@ "integrity": "sha512-VJqUf2CbsQX6uUiC5dUPuoEATuFjkbkW3lJHbRnpk9EDC9X+iKqhfTK+WP+lve5EQ9TcCI1Q6R7hrg41FyC54w==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -16357,6 +16515,7 @@ "integrity": "sha512-SHJvYeWq8q0FK8xHk+xjV9dzDUDjFMT+G1pZbV+XB6OVoac/FSVshlMNPeUJ8AmSkcDKHRu5vASnRqZHgD3qhw==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -16368,6 +16527,7 @@ "integrity": "sha512-cDbF07IuCjiN8CdGvPzfJjXIrmDSelScRfyJYrYBNBbKl2+k7QD/KqiHhtRyEKgID5mmEVrV6KE6L/iPJ98sFw==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/types": "^2.4.0", "@smithy/util-uri-escape": "^2.0.0", @@ -16380,6 +16540,7 @@ "integrity": "sha512-fytyTcXaMzPBuNtPlhj5v6dbl4bJAnwKZFyyItAGt4Tgm9HFPZNo7a9r1SKPr/qdxUEBzvL9Rh+B9SkTX3kFxg==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -16391,6 +16552,7 @@ "integrity": "sha512-M0SeJnEgD2ywJyV99Fb1yKFzmxDe9JfpJiYTVSRMyRLc467BPU0qsuuDPzMCdB1mU8M8u1rVOdkqdoyFN8UFTw==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/types": "^2.4.0" } @@ -16401,6 +16563,7 @@ "integrity": "sha512-VDyhCNycPbNkPidMnBgYQeSwJkoATRFm5VrveVqIPAjsdGutf7yZpPycuDWW9bRFnuuwaBhCC0pA7KCH0+2wrg==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -16412,6 +16575,7 @@ "integrity": "sha512-ZUU8gGlDVFyU3tM9tCEbq2FxHtyfX2qYBUKoIGH23GSxbC4+Ld/HeFL2EZYIFrYwoOuPBO30+g3fAohOP9Ax3Q==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/eventstream-codec": "^2.0.12", "@smithy/is-array-buffer": "^2.0.0", @@ -16429,6 +16593,7 @@ "integrity": "sha512-SMiflchpKadmyvjWPTVwBKjDcEigRHkiUjtzLBlTp9dEp2FmbCjpyc95BNvUdOGOMcPCIkoQQGeabo6avIZNiw==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/middleware-stack": "^2.0.6", "@smithy/types": "^2.4.0", @@ -16442,6 +16607,7 @@ "integrity": "sha512-iH1Xz68FWlmBJ9vvYeHifVMWJf82ONx+OybPW8ZGf5wnEv2S0UXcU4zwlwJkRXuLKpcSLHrraHbn2ucdVXLb4g==", "dev": true, "optional": true, + "peer": true, "requires": { "tslib": "^2.5.0" } @@ -16452,6 +16618,7 @@ "integrity": "sha512-qgkW2mZqRvlNUcBkxYB/gYacRaAdck77Dk3/g2iw0S9F0EYthIS3loGfly8AwoWpIvHKhkTsCXXQfzksgZ4zIA==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/querystring-parser": "^2.0.12", "@smithy/types": "^2.4.0", @@ -16464,6 +16631,7 @@ "integrity": "sha512-DlI6XFYDMsIVN+GH9JtcRp3j02JEVuWIn/QOZisVzpIAprdsxGveFed0bjbMRCqmIFe8uetn5rxzNrBtIGrPIQ==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/util-buffer-from": "^2.0.0", "tslib": "^2.5.0" @@ -16475,6 +16643,7 @@ "integrity": "sha512-JdDuS4ircJt+FDnaQj88TzZY3+njZ6O+D3uakS32f2VNnDo3vyEuNdBOh/oFd8Df1zSZOuH1HEChk2AOYDezZg==", "dev": true, "optional": true, + "peer": true, "requires": { "tslib": "^2.5.0" } @@ -16485,6 +16654,7 @@ "integrity": "sha512-/li0/kj/y3fQ3vyzn36NTLGmUwAICb7Jbe/CsWCktW363gh1MOcpEcSO3mJ344Gv2dqz8YJCLQpb6hju/0qOWw==", "dev": true, "optional": true, + "peer": true, "requires": { "tslib": "^2.5.0" } @@ -16495,6 +16665,7 @@ "integrity": "sha512-/YNnLoHsR+4W4Vf2wL5lGv0ksg8Bmk3GEGxn2vEQt52AQaPSCuaO5PM5VM7lP1K9qHRKHwrPGktqVoAHKWHxzw==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/is-array-buffer": "^2.0.0", "tslib": "^2.5.0" @@ -16506,6 +16677,7 @@ "integrity": "sha512-xCQ6UapcIWKxXHEU4Mcs2s7LcFQRiU3XEluM2WcCjjBtQkUN71Tb+ydGmJFPxMUrW/GWMgQEEGipLym4XG0jZg==", "dev": true, "optional": true, + "peer": true, "requires": { "tslib": "^2.5.0" } @@ -16516,6 +16688,7 @@ "integrity": "sha512-Dok3alNbkKI3MGTiW9zYGY/1gmU0MgrUMk0aRuNOeypY1TuKJ4NuNAbq5dv1GnWvYeFzWk4j0FMIwpJLF8DVmg==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/property-provider": "^2.0.13", "@smithy/smithy-client": "^2.1.14", @@ -16530,6 +16703,7 @@ "integrity": "sha512-f5wM/SbjvDTCXxk//od43hhnEPItdZB3ByAqbpz5dkum/vLQe2hFRvMNbpt7UA4htQTrbUmLWJatUmvGQEFypg==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/config-resolver": "^2.0.17", "@smithy/credential-provider-imds": "^2.1.0", @@ -16546,6 +16720,7 @@ "integrity": "sha512-rMYXLMdAMVbJAEHhNlCSJsAxo3NG3lcPja7WmesjAbNrMSyYZ6FnHHTy8kzRhddn4eAtLvPBSO6LiBB21gCoHQ==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/node-config-provider": "^2.1.4", "@smithy/types": "^2.4.0", @@ -16558,6 +16733,7 @@ "integrity": "sha512-c5xY+NUnFqG6d7HFh1IFfrm3mGl29lC+vF+geHv4ToiuJCBmIfzx6IeHLg+OgRdPFKDXIw6pvi+p3CsscaMcMA==", "dev": true, "optional": true, + "peer": true, "requires": { "tslib": "^2.5.0" } @@ -16568,6 +16744,7 @@ "integrity": "sha512-1lyT3TcaMJQe+OFfVI+TlomDkPuVzb27NZYdYtmSTltVmLaUjdCyt4KE+OH1CnhZKsz4/cdCL420Lg9UH5Z2Mw==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/types": "^2.4.0", "tslib": "^2.5.0" @@ -16579,6 +16756,7 @@ "integrity": "sha512-x3t1+MQAJ6QONk3GTbJNcugCFDVJ+Bkro5YqQQK1EyVesajNDqxFtCx9WdOFNGm/Cbm7tUdwVEmfKQOJoU2Vtw==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/service-error-classification": "^2.0.5", "@smithy/types": "^2.4.0", @@ -16591,6 +16769,7 @@ "integrity": "sha512-2kwTRyOKJcRFeO1LX4Qn1vniEyU1urMG1DfomTpiOLTFS0iV3dsqNvYNltvTbmzZd9u0f15H96l38QP8dsKF1w==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/fetch-http-handler": "^2.2.5", "@smithy/node-http-handler": "^2.1.8", @@ -16608,6 +16787,7 @@ "integrity": "sha512-ebkxsqinSdEooQduuk9CbKcI+wheijxEb3utGXkCoYQkJnwTnLbH1JXGimJtUkQwNQbsbuYwG2+aFVyZf5TLaw==", "dev": true, "optional": true, + "peer": true, "requires": { "tslib": "^2.5.0" } @@ -16618,6 +16798,7 @@ "integrity": "sha512-qOiVORSPm6Ce4/Yu6hbSgNHABLP2VMv8QOC3tTDNHHlWY19pPyc++fBTbZPtx6egPXi4HQxKDnMxVxpbtX2GoA==", "dev": true, "optional": true, + "peer": true, "requires": { "@smithy/util-buffer-from": "^2.0.0", "tslib": "^2.5.0" @@ -16847,18 +17028,17 @@ "dev": true }, "@types/webidl-conversions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.0.tgz", - "integrity": "sha512-xTE1E+YF4aWPJJeUzaZI5DRntlkY3+BCVJi0axFptnjGmAoWxkyREIh/XMrfxVLejwQxMCfDXdICo0VLxThrog==", + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.3.tgz", + "integrity": "sha512-CiJJvcRtIgzadHCYXw7dqEnMNRjhGZlYK05Mj9OyktqV8uVT8fD2BFOB7S1uwBE3Kj2Z+4UyPmFw/Ixgw/LAlA==", "dev": true }, "@types/whatwg-url": { - "version": "8.2.2", - "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.2.tgz", - "integrity": "sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA==", + "version": "11.0.4", + "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-11.0.4.tgz", + "integrity": "sha512-lXCmTWSHJvf0TRSO58nm978b8HJ/EdsSsEKLd3ODHFjo+3VGAyyTp4v50nWvwtzBxSMQrVOK7tcuN0zGPLICMw==", "dev": true, "requires": { - "@types/node": "*", "@types/webidl-conversions": "*" } }, @@ -17467,7 +17647,8 @@ "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==", "dev": true, - "optional": true + "optional": true, + "peer": true }, "boxen": { "version": "7.0.0", @@ -17578,13 +17759,10 @@ } }, "bson": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/bson/-/bson-4.7.2.tgz", - "integrity": "sha512-Ry9wCtIZ5kGqkJoi6aD8KjxFZEx78guTQDnpXWiNthsxzrxAK/i8E6pCHAIZTbaEFWcOCvbecMukfK7XUvyLpQ==", - "dev": true, - "requires": { - "buffer": "^5.6.0" - } + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/bson/-/bson-6.5.0.tgz", + "integrity": "sha512-DXf1BTAS8vKyR90BO4x5v3rKVarmkdkzwOrnYDFdjAY694ILNDkmA3uRh1xXJEl+C1DAh8XCvAQ+Gh3kzubtpg==", + "dev": true }, "buffer": { "version": "5.7.1", @@ -18994,6 +19172,7 @@ "integrity": "sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==", "dev": true, "optional": true, + "peer": true, "requires": { "strnum": "^1.0.5" } @@ -20891,8 +21070,7 @@ "version": "1.5.0", "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", - "dev": true, - "optional": true + "dev": true }, "merge-stream": { "version": "2.0.0", @@ -21170,26 +21348,24 @@ } }, "mongodb": { - "version": "4.17.2", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.17.2.tgz", - "integrity": "sha512-mLV7SEiov2LHleRJPMPrK2PMyhXFZt2UQLC4VD4pnth3jMjYKHhtqfwwkkvS/NXuo/Fp3vbhaNcXrIDaLRb9Tg==", + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.5.0.tgz", + "integrity": "sha512-Fozq68InT+JKABGLqctgtb8P56pRrJFkbhW0ux+x1mdHeyinor8oNzJqwLjV/t5X5nJGfTlluxfyMnOXNggIUA==", "dev": true, "requires": { - "@aws-sdk/credential-providers": "^3.186.0", - "@mongodb-js/saslprep": "^1.1.0", - "bson": "^4.7.2", - "mongodb-connection-string-url": "^2.6.0", - "socks": "^2.7.1" + "@mongodb-js/saslprep": "^1.1.5", + "bson": "^6.4.0", + "mongodb-connection-string-url": "^3.0.0" } }, "mongodb-connection-string-url": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.6.0.tgz", - "integrity": "sha512-WvTZlI9ab0QYtTYnuMLgobULWhokRjtC7db9LtcVfJ+Hsnyr5eo6ZtNAt3Ly24XZScGMelOcGtm7lSn0332tPQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-3.0.0.tgz", + "integrity": "sha512-t1Vf+m1I5hC2M5RJx/7AtxgABy1cZmIPQRMXw+gEIPn/cZNF3Oiy+l0UIypUwVB5trcWHq3crg2g3uAR9aAwsQ==", "dev": true, "requires": { - "@types/whatwg-url": "^8.2.1", - "whatwg-url": "^11.0.0" + "@types/whatwg-url": "^11.0.2", + "whatwg-url": "^13.0.0" } }, "mri": { @@ -22547,9 +22723,9 @@ } }, "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true }, "pupa": { @@ -23321,7 +23497,6 @@ "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", "integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==", "dev": true, - "optional": true, "requires": { "memory-pager": "^1.0.2" } @@ -23730,7 +23905,8 @@ "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==", "dev": true, - "optional": true + "optional": true, + "peer": true }, "supports-color": { "version": "5.5.0", @@ -24034,12 +24210,12 @@ } }, "tr46": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", - "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-4.1.1.tgz", + "integrity": "sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==", "dev": true, "requires": { - "punycode": "^2.1.1" + "punycode": "^2.3.0" } }, "tslib": { @@ -24336,12 +24512,12 @@ "dev": true }, "whatwg-url": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", - "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-13.0.0.tgz", + "integrity": "sha512-9WWbymnqj57+XEuqADHrCJ2eSXzn8WXIW/YSGaZtb2WKAInQ6CHfaUUcTyyver0p8BDg5StLQq8h1vtZuwmOig==", "dev": true, "requires": { - "tr46": "^3.0.0", + "tr46": "^4.1.1", "webidl-conversions": "^7.0.0" } }, diff --git a/package.json b/package.json index 1bf267f..6868a94 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "moleculer": "^0.14.32", "moleculer-repl": "^0.7.4", "moleculer-web": "^0.10.7", - "mongodb": "^4.17.2", + "mongodb": "^6.5.0", "mysql": "^2.18.1", "mysql2": "^3.9.3", "nedb": "^1.8.0", diff --git a/src/adapters/mongodb.js b/src/adapters/mongodb.js index 211fc84..73ffc43 100644 --- a/src/adapters/mongodb.js +++ b/src/adapters/mongodb.js @@ -62,14 +62,14 @@ class MongoDBAdapter extends BaseAdapter { ); } - this.checkClientLibVersion("mongodb", "^4.0.0"); + this.checkClientLibVersion("mongodb", "^6.0.0"); } /** * Connect adapter to database */ async connect() { - const uri = this.opts.uri || "mongodb://localhost:27017"; + const uri = this.opts.uri || "mongodb://127.0.0.1:27017"; this.storeKey = `mongodb|${uri}`; this.client = this.getClientFromGlobalStore(this.storeKey); @@ -286,7 +286,7 @@ class MongoDBAdapter extends BaseAdapter { raw ? changes : { $set: changes }, { returnDocument: "after" } ); - return res.value; + return res; } /** @@ -323,7 +323,7 @@ class MongoDBAdapter extends BaseAdapter { entity, { returnDocument: "after" } ); - return res.value; + return res; } /** diff --git a/test/integration/index.spec.js b/test/integration/index.spec.js index bd4226b..1439c0c 100644 --- a/test/integration/index.spec.js +++ b/test/integration/index.spec.js @@ -115,10 +115,10 @@ if (process.env.GITHUB_ACTIONS_CI) { } else { // Local development tests Adapters = [ - { + /*{ type: "NeDB" - } /*, - { type: "MongoDB", options: { dbName: "db_int_test" } }, + } ,*/ + { type: "MongoDB", options: { dbName: "db_int_test" } } /*, { name: "Knex-SQLite", type: "Knex", @@ -230,15 +230,15 @@ describe("Integration tests", () => { getAdapter.IdColumnType = ["Knex"].includes(adapter.type) ? "integer" : "string"; describe(`Adapter: ${adapter.name || adapter.type}`, () => { - // describe("Test adapter", () => AdapterTests(getAdapter, adapter.type)); - // describe("Test methods", () => MethodTests(getAdapter, adapter.type)); - // describe("Test scopes", () => ScopeTests(getAdapter, adapter.type)); + describe("Test adapter", () => AdapterTests(getAdapter, adapter.type)); + describe("Test methods", () => MethodTests(getAdapter, adapter.type)); + describe("Test scopes", () => ScopeTests(getAdapter, adapter.type)); describe("Test actions", () => ActionsTests(getAdapter, adapter.type)); - //describe("Test transformations", () => TransformTests(getAdapter, adapter.type)); - //describe("Test populating", () => PopulateTests(getAdapter, adapter.type)); - //describe("Test Validations", () => ValidationTests(getAdapter, adapter.type)); - // describe("Test REST", () => RESTTests(getAdapter, adapter.type)); - // describe("Test Tenants", () => TenantTests(getAdapter, adapter.type)); + describe("Test transformations", () => TransformTests(getAdapter, adapter.type)); + describe("Test populating", () => PopulateTests(getAdapter, adapter.type)); + describe("Test Validations", () => ValidationTests(getAdapter, adapter.type)); + describe("Test REST", () => RESTTests(getAdapter, adapter.type)); + describe("Test Tenants", () => TenantTests(getAdapter, adapter.type)); }); } });