chore: bumps mongoose to 7

This commit is contained in:
James
2024-02-15 13:28:07 -05:00
parent 6fd80cd16f
commit c8c393eff9
5 changed files with 65 additions and 27 deletions

View File

@@ -31,7 +31,7 @@
"bson-objectid": "2.0.4",
"deepmerge": "4.3.1",
"get-port": "5.1.1",
"mongoose": "6.12.0",
"mongoose": "7.6.8",
"mongoose-paginate-v2": "1.7.22",
"prompts": "2.4.2",
"uuid": "9.0.0"

82
pnpm-lock.yaml generated
View File

@@ -314,8 +314,8 @@ importers:
specifier: 5.1.1
version: 5.1.1
mongoose:
specifier: 6.12.0
version: 6.12.0
specifier: 7.6.8
version: 7.6.8
mongoose-paginate-v2:
specifier: 1.7.22
version: 1.7.22
@@ -1738,8 +1738,8 @@ packages:
dependencies:
'@aws-sdk/client-cognito-identity': 3.414.0
'@aws-sdk/types': 3.413.0
'@smithy/property-provider': 2.0.9
'@smithy/types': 2.3.2
'@smithy/property-provider': 2.0.12
'@smithy/types': 2.3.5
tslib: 2.6.2
transitivePeerDependencies:
- aws-crt
@@ -1750,8 +1750,8 @@ packages:
requiresBuild: true
dependencies:
'@aws-sdk/types': 3.413.0
'@smithy/property-provider': 2.0.9
'@smithy/types': 2.3.2
'@smithy/property-provider': 2.0.12
'@smithy/types': 2.3.5
tslib: 2.6.2
/@aws-sdk/credential-provider-env@3.425.0:
@@ -1841,9 +1841,9 @@ packages:
requiresBuild: true
dependencies:
'@aws-sdk/types': 3.413.0
'@smithy/property-provider': 2.0.9
'@smithy/shared-ini-file-loader': 2.0.10
'@smithy/types': 2.3.2
'@smithy/property-provider': 2.0.12
'@smithy/shared-ini-file-loader': 2.2.0
'@smithy/types': 2.3.5
tslib: 2.6.2
/@aws-sdk/credential-provider-process@3.425.0:
@@ -1891,8 +1891,8 @@ packages:
requiresBuild: true
dependencies:
'@aws-sdk/types': 3.413.0
'@smithy/property-provider': 2.0.9
'@smithy/types': 2.3.2
'@smithy/property-provider': 2.0.12
'@smithy/types': 2.3.5
tslib: 2.6.2
/@aws-sdk/credential-provider-web-identity@3.425.0:
@@ -7103,6 +7103,11 @@ packages:
dependencies:
buffer: 5.7.1
/bson@5.5.1:
resolution: {integrity: sha512-ix0EwukN2EpC0SRWIj/7B5+A6uQMQy6KMREI9qQqvgpkV2frH63T0UDVd1SYedL6dNCmDBYB3QtXi4ISk9YT+g==}
engines: {node: '>=14.20.1'}
dev: false
/buffer-crc32@0.2.13:
resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==}
dev: true
@@ -11731,7 +11736,7 @@ packages:
resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==}
engines: {node: '>= 10.13.0'}
dependencies:
'@types/node': 20.6.2
'@types/node': 20.11.17
merge-stream: 2.0.0
supports-color: 8.1.1
dev: true
@@ -12708,25 +12713,58 @@ packages:
'@mongodb-js/saslprep': 1.1.0
transitivePeerDependencies:
- aws-crt
dev: true
/mongodb@5.9.1:
resolution: {integrity: sha512-NBGA8AfJxGPeB12F73xXwozt8ZpeIPmCUeWRwl9xejozTXFes/3zaep9zhzs1B/nKKsw4P3I4iPfXl3K7s6g+Q==}
engines: {node: '>=14.20.1'}
peerDependencies:
'@aws-sdk/credential-providers': ^3.188.0
'@mongodb-js/zstd': ^1.0.0
kerberos: ^1.0.0 || ^2.0.0
mongodb-client-encryption: '>=2.3.0 <3'
snappy: ^7.2.2
peerDependenciesMeta:
'@aws-sdk/credential-providers':
optional: true
'@mongodb-js/zstd':
optional: true
kerberos:
optional: true
mongodb-client-encryption:
optional: true
snappy:
optional: true
dependencies:
bson: 5.5.1
mongodb-connection-string-url: 2.6.0
socks: 2.7.1
optionalDependencies:
'@mongodb-js/saslprep': 1.1.0
dev: false
/mongoose-paginate-v2@1.7.22:
resolution: {integrity: sha512-xW5GugkE21DJiu9e13EOxKt4ejEKQkRP/S1PkkXRjnk2rRZVKBcld1nPV+VJ/YCPfm8hb3sz9OvI7O38RmixkA==}
engines: {node: '>=4.0.0'}
dev: false
/mongoose@6.12.0:
resolution: {integrity: sha512-sd/q83C6TBRPBrrD2A/POSbA/exbCFM2WOuY7Lf2JuIJFlHFG39zYSDTTAEiYlzIfahNOLmXPxBGFxdAch41Mw==}
engines: {node: '>=12.0.0'}
/mongoose@7.6.8:
resolution: {integrity: sha512-q9zAySH+UtOK5yonWyNcLfq3PxrY6s4gdta4qNGKNOE2yTVoY9FP4hQtvWYnv4rkdk7T8QmQMC7bbhJjDxIunw==}
engines: {node: '>=14.20.1'}
dependencies:
bson: 4.7.2
bson: 5.5.1
kareem: 2.5.1
mongodb: 4.17.1
mongodb: 5.9.1
mpath: 0.9.0
mquery: 4.0.3
mquery: 5.0.0
ms: 2.1.3
sift: 16.0.1
transitivePeerDependencies:
- aws-crt
- '@aws-sdk/credential-providers'
- '@mongodb-js/zstd'
- kerberos
- mongodb-client-encryption
- snappy
- supports-color
dev: false
@@ -12735,9 +12773,9 @@ packages:
engines: {node: '>=4.0.0'}
dev: false
/mquery@4.0.3:
resolution: {integrity: sha512-J5heI+P08I6VJ2Ky3+33IpCdAvlYGTSUjwTPxkAr8i8EoduPMBX2OY/wa3IKZIQl7MU4SbFk8ndgSKyB/cl1zA==}
engines: {node: '>=12.0.0'}
/mquery@5.0.0:
resolution: {integrity: sha512-iQMncpmEK8R8ncT8HJGsGc9Dsp8xcgYMVSbs5jgnm1lFHTZqMJTUWTDx1LBO8+mK3tPNZWFLBghQEIOULSTHZg==}
engines: {node: '>=14.0.0'}
dependencies:
debug: 4.3.4(supports-color@5.5.0)
transitivePeerDependencies:

View File

@@ -26,7 +26,7 @@ export default buildConfigWithDefaults({
depth: 0,
cookies: {
secure: false,
sameSite: 'lax',
sameSite: 'Lax',
domain: undefined,
},
},

View File

@@ -18,8 +18,8 @@ const { email, password } = devUser
describe('Auth', () => {
beforeAll(async () => {
// const config = await startMemoryDB(configPromise)
payload = await getPayload({ config: configPromise })
const config = await startMemoryDB(configPromise)
payload = await getPayload({ config })
restClient = new NextRESTClient(payload.config)
})

View File

@@ -41,7 +41,7 @@
"@payloadcms/translations/api": ["./packages/translations/src/all"],
"@payloadcms/next/*": ["./packages/next/src/*"],
"@payloadcms/graphql": ["./packages/graphql/src"],
"payload-config": ["./test/_community/config.ts"]
"payload-config": ["./test/auth/config.ts"]
}
},
"exclude": ["dist", "build", "temp", "node_modules"],