diff --git a/apps/admin/package.json b/apps/admin/package.json index 0bfd91c1d..f4cdeed22 100644 --- a/apps/admin/package.json +++ b/apps/admin/package.json @@ -69,7 +69,7 @@ "clsx": "2.1.1", "geist": "1.3.1", "lucide-react": "0.500.0", - "mongoose": "8.13.2", + "mongoose": "9.3.1", "next-auth": "5.0.0-beta.25", "next-seo": "6.8.0", "next-sitemap": "4.2.3", diff --git a/apps/storefront/package.json b/apps/storefront/package.json index b588a9c02..368b6a458 100644 --- a/apps/storefront/package.json +++ b/apps/storefront/package.json @@ -77,7 +77,7 @@ "export-to-csv": "1.4.0", "lodash.debounce": "4.0.8", "lucide-react": "0.500.0", - "mongoose": "8.13.2", + "mongoose": "9.3.1", "next-auth": "5.0.0-beta.25", "next-sitemap": "4.2.3", "next": "15.4.0-canary.110", diff --git a/package.json b/package.json index 93882fb50..a9539b415 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "eslint-plugin-unused-imports": "4.1.4", "eslint": "8.57.1", "glob": "11.0.2", - "mongoose": "8.15.1", + "mongoose": "9.3.1", "prettier-eslint": "16.4.2", "prettier-plugin-tailwindcss": "0.6.12", "prettier": "3.5.3", diff --git a/packages/db/package.json b/packages/db/package.json index de144ff3a..33e565ee2 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -53,7 +53,7 @@ ], "dependencies": { "@nordcom/commerce-errors": "workspace:*", - "mongoose": "8.16.1" + "mongoose": "9.3.1" }, "devDependencies": { "@codecov/vite-plugin": "1.9.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 338887296..a2dd0cc35 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -82,8 +82,8 @@ importers: specifier: 11.0.2 version: 11.0.2 mongoose: - specifier: 8.15.1 - version: 8.15.1 + specifier: 9.3.1 + version: 9.3.1 prettier: specifier: 3.5.3 version: 3.5.3 @@ -193,8 +193,8 @@ importers: specifier: 0.500.0 version: 0.500.0(react@19.1.0) mongoose: - specifier: 8.13.2 - version: 8.13.2 + specifier: 9.3.1 + version: 9.3.1 next: specifier: 15.4.0-canary.110 version: 15.4.0-canary.110(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(babel-plugin-react-compiler@19.0.0-beta-8a03594-20241020)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.89.2) @@ -618,8 +618,8 @@ importers: specifier: 0.500.0 version: 0.500.0(react@19.1.0) mongoose: - specifier: 8.13.2 - version: 8.13.2 + specifier: 9.3.1 + version: 9.3.1 next: specifier: 15.4.0-canary.110 version: 15.4.0-canary.110(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(babel-plugin-react-compiler@19.0.0-beta-8a03594-20241020)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.89.2) @@ -793,8 +793,8 @@ importers: specifier: workspace:* version: link:../errors mongoose: - specifier: 8.16.1 - version: 8.16.1 + specifier: 9.3.1 + version: 9.3.1 devDependencies: '@codecov/vite-plugin': specifier: 1.9.1 @@ -2107,6 +2107,7 @@ packages: '@prismicio/richtext@2.1.5': resolution: {integrity: sha512-Sf6iCsciPmfK3uQeFmeY9RTRSuhrCVzyU39OkiJ1VJn8O0531pKapGoWS+5WGxouJtE5+jGqV8L+L2mKP7NkXQ==} engines: {node: '>=12.7.0'} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. '@prismicio/simulator@0.1.4': resolution: {integrity: sha512-aBDwGghM8LqXOvdbJWJScBTpY8wuVl3CyCWFqiFwqC8l5SPrQtD2CwEVX0UCB0azPlisb7l7al5Wcg2nxQ6xrQ==} @@ -2141,6 +2142,7 @@ packages: '@prismicio/types@0.2.9': resolution: {integrity: sha512-1uhHnZTiGeCi+rmO507B8jtnUTCNetdgrC5sfZEw9zsCplfgBELt0+BN1RFsXWLbZbyvR9xzHcrJ87Ykqa8JZA==} engines: {node: '>=12.7.0'} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. '@radix-ui/number@1.1.1': resolution: {integrity: sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==} @@ -3017,8 +3019,8 @@ packages: '@types/webidl-conversions@7.0.3': resolution: {integrity: sha512-CiJJvcRtIgzadHCYXw7dqEnMNRjhGZlYK05Mj9OyktqV8uVT8fD2BFOB7S1uwBE3Kj2Z+4UyPmFw/Ixgw/LAlA==} - '@types/whatwg-url@11.0.5': - resolution: {integrity: sha512-coYR071JRaHa+xoEvvYqvnIHaVqaYrLPbsufM9BF63HkwI5Lgmy2QR8Q5K/lYDYo5AK82wOvSOS0UsLTpTG7uQ==} + '@types/whatwg-url@13.0.0': + resolution: {integrity: sha512-N8WXpbE6Wgri7KUSvrmQcqrMllKZ9uxkYWMt+mCSGwNc0Hsw9VQTW7ApqI4XNrx6/SaM2QQJCzMPDEXE058s+Q==} '@types/yargs-parser@21.0.3': resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==} @@ -3258,7 +3260,7 @@ packages: '@vercel/flags@2.6.3': resolution: {integrity: sha512-knLDYS8MCc/zx4FF6KRzHQzAKdo8VQ3V0PEBI5WvRlFIhcqhcEomxHoK41/xMnNEQvUzETACHw610/i/pVwYSA==} - deprecated: This package was renamed to flags, which offers the same functionality. https://vercel.com/changelog/npm-i-flags + deprecated: This package has been renamed to flags. It offers the same functionality under a new name. Please follow the upgrade guide https://github.com/vercel/flags/blob/main/packages/flags/guides/upgrade-to-v4.md peerDependencies: '@sveltejs/kit': '*' next: '*' @@ -3759,9 +3761,9 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true - bson@6.10.4: - resolution: {integrity: sha512-WIsKqkSC0ABoBJuT1LEX+2HEvNmNKKgnTAyd0fL8qzK4SH2i9NXg+t08YtdZp/V9IZ33cxe3iV4yM0qg8lMQng==} - engines: {node: '>=16.20.1'} + bson@7.2.0: + resolution: {integrity: sha512-YCEo7KjMlbNlyHhz7zAZNDpIpQbd+wOEHJYezv0nMYTn4x31eIUM2yomNNubclAt63dObUzKHWsBLJ9QcZNSnQ==} + engines: {node: '>=20.19.0'} buffer-equal-constant-time@1.0.1: resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==} @@ -4720,25 +4722,29 @@ packages: glob@10.4.5: resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me hasBin: true glob@11.0.2: resolution: {integrity: sha512-YT7U7Vye+t5fZ/QMkBFrTJ7ZQxInIUjwyAjVj84CYXqgBdv30MFUPGnBR6sQaVq6Is15wYJUsnzTuWaGRBhBAQ==} engines: {node: 20 || >=22} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me hasBin: true glob@11.0.3: resolution: {integrity: sha512-2Nim7dha1KVkaiF4q6Dj+ngPPMdfvLJEOpZk/jKiUAkqKebpGAWQXAq9z1xu9HKu5lWfqw/FASuccEjyznjPaA==} engines: {node: 20 || >=22} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me hasBin: true glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} - deprecated: Glob versions prior to v9 are no longer supported + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me glob@9.3.5: resolution: {integrity: sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==} engines: {node: '>=16 || 14 >=14.17'} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me globals@13.24.0: resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} @@ -5272,9 +5278,9 @@ packages: jws@3.2.2: resolution: {integrity: sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==} - kareem@2.6.3: - resolution: {integrity: sha512-C3iHfuGUXK2u8/ipq9LfjFfXFxAZMQJJq7vLS45r3D9Y2xQ/m4S8zaR4zMLFWh9AsNPXmcFfUDhTEO8UIC/V6Q==} - engines: {node: '>=12.0.0'} + kareem@3.2.0: + resolution: {integrity: sha512-VS8MWZz/cT+SqBCpVfNN4zoVz5VskR3N4+sTmUXme55e9avQHntpwpNq0yjnosISXqwJ3AQVjlbI4Dyzv//JtA==} + engines: {node: '>=18.0.0'} keyv@4.5.4: resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} @@ -5664,20 +5670,21 @@ packages: module-details-from-path@1.0.4: resolution: {integrity: sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w==} - mongodb-connection-string-url@3.0.2: - resolution: {integrity: sha512-rMO7CGo/9BFwyZABcKAWL8UJwH/Kc2x0g72uhDWzG48URRax5TCIcJ7Rc3RZqffZzO/Gwff/jyKwCU9TN8gehA==} - - mongodb@6.15.0: - resolution: {integrity: sha512-ifBhQ0rRzHDzqp9jAQP6OwHSH7dbYIQjD3SbJs9YYk9AikKEettW/9s/tbSFDTpXcRbF+u1aLrhHxDFaYtZpFQ==} - engines: {node: '>=16.20.1'} - peerDependencies: - '@aws-sdk/credential-providers': ^3.188.0 - '@mongodb-js/zstd': ^1.1.0 || ^2.0.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 + mongodb-connection-string-url@7.0.1: + resolution: {integrity: sha512-h0AZ9A7IDVwwHyMxmdMXKy+9oNlF0zFoahHiX3vQ8e3KFcSP3VmsmfvtRSuLPxmyv2vjIDxqty8smTgie/SNRQ==} + engines: {node: '>=20.19.0'} + + mongodb@7.1.0: + resolution: {integrity: sha512-kMfnKunbolQYwCIyrkxNJFB4Ypy91pYqua5NargS/f8ODNSJxT03ZU3n1JqL4mCzbSih8tvmMEMLpKTT7x5gCg==} + engines: {node: '>=20.19.0'} + peerDependencies: + '@aws-sdk/credential-providers': ^3.806.0 + '@mongodb-js/zstd': ^7.0.0 + gcp-metadata: ^7.0.1 + kerberos: ^7.0.0 + mongodb-client-encryption: '>=7.0.0 <7.1.0' + snappy: ^7.3.2 + socks: ^2.8.6 peerDependenciesMeta: '@aws-sdk/credential-providers': optional: true @@ -5694,71 +5701,9 @@ packages: socks: optional: true - mongodb@6.16.0: - resolution: {integrity: sha512-D1PNcdT0y4Grhou5Zi/qgipZOYeWrhLEpk33n3nm6LGtz61jvO88WlrWCK/bigMjpnOdAUKKQwsGIl0NtWMyYw==} - engines: {node: '>=16.20.1'} - peerDependencies: - '@aws-sdk/credential-providers': ^3.188.0 - '@mongodb-js/zstd': ^1.1.0 || ^2.0.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 - - mongodb@6.17.0: - resolution: {integrity: sha512-neerUzg/8U26cgruLysKEjJvoNSXhyID3RvzvdcpsIi2COYM3FS3o9nlH7fxFtefTb942dX3W9i37oPfCVj4wA==} - engines: {node: '>=16.20.1'} - peerDependencies: - '@aws-sdk/credential-providers': ^3.188.0 - '@mongodb-js/zstd': ^1.1.0 || ^2.0.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 - - mongoose@8.13.2: - resolution: {integrity: sha512-riCBqZmNkYBWjXpM3qWLDQw7QmTKsVZDPhLXFJqC87+OjocEVpvS3dA2BPPUiLAu+m0/QmEj5pSXKhH+/DgerQ==} - engines: {node: '>=16.20.1'} - - mongoose@8.15.1: - resolution: {integrity: sha512-RhQ4DzmBi5BNGcS0w4u1vdMRIKcteXTCNzDt1j7XRcdWYBz1MjMjulBhPaeC5jBCHOD1yinuOFTTSOWLLGexWw==} - engines: {node: '>=16.20.1'} - - mongoose@8.16.1: - resolution: {integrity: sha512-Q+0TC+KLdY4SYE+u9gk9pdW1tWu/pl0jusyEkMGTgBoAbvwQdfy4f9IM8dmvCwb/blSfp7IfLkob7v76x6ZGpQ==} - engines: {node: '>=16.20.1'} + mongoose@9.3.1: + resolution: {integrity: sha512-58DuQti+LlRS74/UfWN4F3wZsC0Yr1dgTWZ2Wd3/TuSvm6rIdyAjDWbx2xGyuBooqJYdAWotVv4mQgVdivh+3Q==} + engines: {node: '>=20.19.0'} monocle-ts@2.3.13: resolution: {integrity: sha512-D5Ygd3oulEoAm3KuGO0eeJIrhFf1jlQIoEVV2DYsZUMz42j4tGxgct97Aq68+F8w4w4geEnwFa8HayTS/7lpKQ==} @@ -5769,9 +5714,9 @@ packages: resolution: {integrity: sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==} engines: {node: '>=4.0.0'} - mquery@5.0.0: - resolution: {integrity: sha512-iQMncpmEK8R8ncT8HJGsGc9Dsp8xcgYMVSbs5jgnm1lFHTZqMJTUWTDx1LBO8+mK3tPNZWFLBghQEIOULSTHZg==} - engines: {node: '>=14.0.0'} + mquery@6.0.0: + resolution: {integrity: sha512-b2KQNsmgtkscfeDgkYMcWGn9vZI9YoXh802VDEwE6qc50zxBFQ0Oo8ROkawbPAsXCY1/Z1yp0MagqsZStPWJjw==} + engines: {node: '>=20.19.0'} mri@1.2.0: resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} @@ -9724,7 +9669,7 @@ snapshots: '@types/webidl-conversions@7.0.3': {} - '@types/whatwg-url@11.0.5': + '@types/whatwg-url@13.0.0': dependencies: '@types/webidl-conversions': 7.0.3 @@ -10550,7 +10495,7 @@ snapshots: node-releases: 2.0.19 update-browserslist-db: 1.1.3(browserslist@4.25.1) - bson@6.10.4: {} + bson@7.2.0: {} buffer-equal-constant-time@1.0.1: {} @@ -12266,7 +12211,7 @@ snapshots: jwa: 1.4.2 safe-buffer: 5.2.1 - kareem@2.6.3: {} + kareem@3.2.0: {} keyv@4.5.4: dependencies: @@ -12642,36 +12587,23 @@ snapshots: module-details-from-path@1.0.4: {} - mongodb-connection-string-url@3.0.2: + mongodb-connection-string-url@7.0.1: dependencies: - '@types/whatwg-url': 11.0.5 + '@types/whatwg-url': 13.0.0 whatwg-url: 14.2.0 - mongodb@6.15.0: - dependencies: - '@mongodb-js/saslprep': 1.3.0 - bson: 6.10.4 - mongodb-connection-string-url: 3.0.2 - - mongodb@6.16.0: + mongodb@7.1.0: dependencies: '@mongodb-js/saslprep': 1.3.0 - bson: 6.10.4 - mongodb-connection-string-url: 3.0.2 + bson: 7.2.0 + mongodb-connection-string-url: 7.0.1 - mongodb@6.17.0: + mongoose@9.3.1: dependencies: - '@mongodb-js/saslprep': 1.3.0 - bson: 6.10.4 - mongodb-connection-string-url: 3.0.2 - - mongoose@8.13.2: - dependencies: - bson: 6.10.4 - kareem: 2.6.3 - mongodb: 6.15.0 + kareem: 3.2.0 + mongodb: 7.1.0 mpath: 0.9.0 - mquery: 5.0.0 + mquery: 6.0.0 ms: 2.1.3 sift: 17.1.3 transitivePeerDependencies: @@ -12682,45 +12614,6 @@ snapshots: - mongodb-client-encryption - snappy - socks - - supports-color - - mongoose@8.15.1: - dependencies: - bson: 6.10.4 - kareem: 2.6.3 - mongodb: 6.16.0 - mpath: 0.9.0 - mquery: 5.0.0 - ms: 2.1.3 - sift: 17.1.3 - transitivePeerDependencies: - - '@aws-sdk/credential-providers' - - '@mongodb-js/zstd' - - gcp-metadata - - kerberos - - mongodb-client-encryption - - snappy - - socks - - supports-color - - mongoose@8.16.1: - dependencies: - bson: 6.10.4 - kareem: 2.6.3 - mongodb: 6.17.0 - mpath: 0.9.0 - mquery: 5.0.0 - ms: 2.1.3 - sift: 17.1.3 - transitivePeerDependencies: - - '@aws-sdk/credential-providers' - - '@mongodb-js/zstd' - - gcp-metadata - - kerberos - - mongodb-client-encryption - - snappy - - socks - - supports-color monocle-ts@2.3.13(fp-ts@2.16.10): dependencies: @@ -12728,11 +12621,7 @@ snapshots: mpath@0.9.0: {} - mquery@5.0.0: - dependencies: - debug: 4.4.1 - transitivePeerDependencies: - - supports-color + mquery@6.0.0: {} mri@1.2.0: {}