From af9df885501d048c6a0e3962a0279735aba57ba4 Mon Sep 17 00:00:00 2001 From: Abenet Tamiru Date: Fri, 15 Mar 2024 10:45:23 +0100 Subject: [PATCH] feat(testing-mongoose): update mongodb-memory-server version --- .github/workflows/build.yml | 2 +- packages/orm/testing-mongoose/package.json | 2 +- yarn.lock | 170 ++++++++++++++------- 3 files changed, 113 insertions(+), 61 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9d7bdaabafc..7db7fac6161 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -154,7 +154,7 @@ jobs: - name: Run build run: yarn tsc --build - name: Run test - run: yarn test:orm --since origin/production + run: yarn test:orm test-graphql: runs-on: ubuntu-latest diff --git a/packages/orm/testing-mongoose/package.json b/packages/orm/testing-mongoose/package.json index 4b5bbf98c60..177f513a6d3 100644 --- a/packages/orm/testing-mongoose/package.json +++ b/packages/orm/testing-mongoose/package.json @@ -17,7 +17,7 @@ "build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json" }, "dependencies": { - "mongodb-memory-server": "^8.16.0", + "mongodb-memory-server": "^8.16.0 || ^9.1.7", "semver": "^7.6.0", "tslib": "2.6.1" }, diff --git a/yarn.lock b/yarn.lock index a8934e7d0dd..a7eb7f433a1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8166,7 +8166,7 @@ __metadata: barrelsby: "npm:^2.8.1" eslint: "npm:^8.57.0" jest: "npm:^29.7.0" - mongodb-memory-server: "npm:^8.16.0" + mongodb-memory-server: "npm:^8.16.0 || ^9.1.7" semver: "npm:^7.6.0" tslib: "npm:2.6.1" peerDependencies: @@ -11042,12 +11042,12 @@ __metadata: languageName: node linkType: hard -"async-mutex@npm:^0.3.2": - version: 0.3.2 - resolution: "async-mutex@npm:0.3.2" +"async-mutex@npm:^0.4.0": + version: 0.4.1 + resolution: "async-mutex@npm:0.4.1" dependencies: - tslib: "npm:^2.3.1" - checksum: 10/cf0b02f7f916d202a727e15a64d51110c3258a719588ca263875024172aa9368efa5dbec6dc4f4fd10e35744e238e1075306a93ce86549de642d5f7d0c06bc23 + tslib: "npm:^2.4.0" + checksum: 10/7e9f77b112b8545beb6612493fae4a8d9d1d6c3f24fc22f4d6d05ce96d1e8d326ac3e743a804cc6d7bf24e7ef0267afb65bb127f99b2e433609684b38933ff1c languageName: node linkType: hard @@ -11217,6 +11217,13 @@ __metadata: languageName: node linkType: hard +"b4a@npm:^1.6.4": + version: 1.6.6 + resolution: "b4a@npm:1.6.6" + checksum: 10/6154a36bd78b53ecd2843a829352532a1bf9fc8081dab339ba06ca3c9ffcf25d340c3b18fe4ba0fc17a546a54c1ed814cea92cd6b895f6bd2837ca4ee0fc9f52 + languageName: node + linkType: hard + "babel-jest@npm:^29.7.0": version: 29.7.0 resolution: "babel-jest@npm:29.7.0" @@ -11359,6 +11366,13 @@ __metadata: languageName: node linkType: hard +"bare-events@npm:^2.2.0": + version: 2.2.1 + resolution: "bare-events@npm:2.2.1" + checksum: 10/a2c96a638e5a049960e42660320bcd9e3c5e83da2072e4c05080661219eae744931751be86c814590dcce5107c30cbb60dc2d15097b1b14e2f42db1cd9b80898 + languageName: node + linkType: hard + "barrelsby@npm:^2.8.1": version: 2.8.1 resolution: "barrelsby@npm:2.8.1" @@ -11711,6 +11725,13 @@ __metadata: languageName: node linkType: hard +"bson@npm:^5.5.0": + version: 5.5.1 + resolution: "bson@npm:5.5.1" + checksum: 10/4f72f0e68694cf422e990d301594e1eb81300ad7bd547244bbd5c2d12ec721cf4765a254376dd21e922b0ac8b5f89549d37423bdea11d5e645afbd37b433dc90 + languageName: node + linkType: hard + "buffer-crc32@npm:^0.2.1, buffer-crc32@npm:^0.2.13, buffer-crc32@npm:~0.2.3": version: 0.2.13 resolution: "buffer-crc32@npm:0.2.13" @@ -15741,6 +15762,13 @@ __metadata: languageName: node linkType: hard +"fast-fifo@npm:^1.1.0, fast-fifo@npm:^1.2.0": + version: 1.3.2 + resolution: "fast-fifo@npm:1.3.2" + checksum: 10/6bfcba3e4df5af7be3332703b69a7898a8ed7020837ec4395bb341bd96cc3a6d86c3f6071dd98da289618cf2234c70d84b2a6f09a33dd6f988b1ff60d8e54275 + languageName: node + linkType: hard + "fast-glob@npm:^2.0.2": version: 2.2.7 resolution: "fast-glob@npm:2.2.7" @@ -16192,13 +16220,13 @@ __metadata: languageName: node linkType: hard -"follow-redirects@npm:^1.15.2": - version: 1.15.3 - resolution: "follow-redirects@npm:1.15.3" +"follow-redirects@npm:^1.15.3, follow-redirects@npm:^1.15.6": + version: 1.15.6 + resolution: "follow-redirects@npm:1.15.6" peerDependenciesMeta: debug: optional: true - checksum: 10/60d98693f4976892f8c654b16ef6d1803887a951898857ab0cdc009570b1c06314ad499505b7a040ac5b98144939f8597766e5e6a6859c0945d157b473aa6f5f + checksum: 10/70c7612c4cab18e546e36b991bbf8009a1a41cf85354afe04b113d1117569abf760269409cb3eb842d9f7b03d62826687086b081c566ea7b1e6613cf29030bf7 languageName: node linkType: hard @@ -16212,16 +16240,6 @@ __metadata: languageName: node linkType: hard -"follow-redirects@npm:^1.15.6": - version: 1.15.6 - resolution: "follow-redirects@npm:1.15.6" - peerDependenciesMeta: - debug: - optional: true - checksum: 10/70c7612c4cab18e546e36b991bbf8009a1a41cf85354afe04b113d1117569abf760269409cb3eb842d9f7b03d62826687086b081c566ea7b1e6613cf29030bf7 - languageName: node - linkType: hard - "for-each@npm:^0.3.3": version: 0.3.3 resolution: "for-each@npm:0.3.3" @@ -16761,7 +16779,7 @@ __metadata: languageName: node linkType: hard -"get-port@npm:5.1.1, get-port@npm:^5.1.1": +"get-port@npm:5.1.1": version: 5.1.1 resolution: "get-port@npm:5.1.1" checksum: 10/0162663ffe5c09e748cd79d97b74cd70e5a5c84b760a475ce5767b357fb2a57cb821cee412d646aa8a156ed39b78aab88974eddaa9e5ee926173c036c0713787 @@ -17957,7 +17975,7 @@ __metadata: languageName: node linkType: hard -"https-proxy-agent@npm:^5.0.0, https-proxy-agent@npm:^5.0.1": +"https-proxy-agent@npm:^5.0.0": version: 5.0.1 resolution: "https-proxy-agent@npm:5.0.1" dependencies: @@ -17967,7 +17985,7 @@ __metadata: languageName: node linkType: hard -"https-proxy-agent@npm:^7.0.0": +"https-proxy-agent@npm:^7.0.0, https-proxy-agent@npm:^7.0.2": version: 7.0.4 resolution: "https-proxy-agent@npm:7.0.4" dependencies: @@ -21793,15 +21811,6 @@ __metadata: languageName: node linkType: hard -"md5-file@npm:^5.0.0": - version: 5.0.0 - resolution: "md5-file@npm:5.0.0" - bin: - md5-file: cli.js - checksum: 10/c606a00ff58adf5428e8e2f36d86e5d3c7029f9688126faca302cd83b5e92cac183a62e1d1f05fae7c2614e80f993326fd0a8d6a3a913c41ec7ea0eefc25aa76 - languageName: node - linkType: hard - "mdast-util-find-and-replace@npm:^1.1.0": version: 1.1.1 resolution: "mdast-util-find-and-replace@npm:1.1.1" @@ -22606,36 +22615,33 @@ __metadata: languageName: node linkType: hard -"mongodb-memory-server-core@npm:8.16.0": - version: 8.16.0 - resolution: "mongodb-memory-server-core@npm:8.16.0" +"mongodb-memory-server-core@npm:9.1.7": + version: 9.1.7 + resolution: "mongodb-memory-server-core@npm:9.1.7" dependencies: - async-mutex: "npm:^0.3.2" + async-mutex: "npm:^0.4.0" camelcase: "npm:^6.3.0" debug: "npm:^4.3.4" find-cache-dir: "npm:^3.3.2" - follow-redirects: "npm:^1.15.2" - get-port: "npm:^5.1.1" - https-proxy-agent: "npm:^5.0.1" - md5-file: "npm:^5.0.0" - mongodb: "npm:^4.16.0" + follow-redirects: "npm:^1.15.3" + https-proxy-agent: "npm:^7.0.2" + mongodb: "npm:^5.9.1" new-find-package-json: "npm:^2.0.0" semver: "npm:^7.5.4" - tar-stream: "npm:^2.1.4" - tslib: "npm:^2.6.1" - uuid: "npm:^9.0.0" + tar-stream: "npm:^3.0.0" + tslib: "npm:^2.6.2" yauzl: "npm:^2.10.0" - checksum: 10/0de3ee7fb77314b101b1c293b0183f6f0b3a2aa1c46c28c94a31b2b0dbaf0539c9c548c26f78b9ed03259a81d44bf6fd57cf7d8674924b2d224a00910854ba41 + checksum: 10/54f1a68748ab75b6a6efabf9c1076c3cbb764a066169d5ed8c7391864ac2a43e9dab9fbbfd5d269cf5ecde44f9313c5d76f086ae1224df044a31f23bdafbaab6 languageName: node linkType: hard -"mongodb-memory-server@npm:^8.16.0": - version: 8.16.0 - resolution: "mongodb-memory-server@npm:8.16.0" +"mongodb-memory-server@npm:^8.16.0 || ^9.1.7": + version: 9.1.7 + resolution: "mongodb-memory-server@npm:9.1.7" dependencies: - mongodb-memory-server-core: "npm:8.16.0" - tslib: "npm:^2.6.1" - checksum: 10/c1bd0c6fc836ef0e82b555bfd220dd50f0f258f53d90df12c1a7e6d0ce18d2da46d9c7c5d2d2b11b77228103aa74d92293019225b16ac216b6b021ef2778e04e + mongodb-memory-server-core: "npm:9.1.7" + tslib: "npm:^2.6.2" + checksum: 10/0ec66767c39e7d09f9e232a39ceef54be15f748ef1e6c7c046bb4debbef7f75b2f8cbaec544363dc2b49c4ee68f06d17208b47c78497f370b965a5dba7aef000 languageName: node linkType: hard @@ -22689,21 +22695,35 @@ __metadata: languageName: node linkType: hard -"mongodb@npm:^4.16.0": - version: 4.17.1 - resolution: "mongodb@npm:4.17.1" +"mongodb@npm:^5.9.1": + version: 5.9.2 + resolution: "mongodb@npm:5.9.2" dependencies: - "@aws-sdk/credential-providers": "npm:^3.186.0" "@mongodb-js/saslprep": "npm:^1.1.0" - bson: "npm:^4.7.2" + bson: "npm:^5.5.0" mongodb-connection-string-url: "npm:^2.6.0" socks: "npm:^2.7.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 dependenciesMeta: + "@mongodb-js/saslprep": + optional: true + peerDependenciesMeta: "@aws-sdk/credential-providers": optional: true - "@mongodb-js/saslprep": + "@mongodb-js/zstd": + optional: true + kerberos: optional: true - checksum: 10/2ce62912ab36885e927c109a699568174cc61025bc03e2d5c22e6070aaec967b2364d4b9d42c9131531c2547416b57d14952c50235d43fa66e76a6fbe4c96c37 + mongodb-client-encryption: + optional: true + snappy: + optional: true + checksum: 10/f80ccd8a55a1bdb2513db98e97f723b7c67b1b0dd94ff254930b8fd9b1f4efbf66ceff191748aaf8b0b5331d381497c39857b3380bf013de1f9148a7f9220336 languageName: node linkType: hard @@ -25519,6 +25539,13 @@ __metadata: languageName: node linkType: hard +"queue-tick@npm:^1.0.1": + version: 1.0.1 + resolution: "queue-tick@npm:1.0.1" + checksum: 10/f447926c513b64a857906f017a3b350f7d11277e3c8d2a21a42b7998fa1a613d7a829091e12d142bb668905c8f68d8103416c7197856efb0c72fa835b8e254b5 + languageName: node + linkType: hard + "quick-lru@npm:^4.0.1": version: 4.0.1 resolution: "quick-lru@npm:4.0.1" @@ -27840,6 +27867,20 @@ __metadata: languageName: node linkType: hard +"streamx@npm:^2.15.0": + version: 2.16.1 + resolution: "streamx@npm:2.16.1" + dependencies: + bare-events: "npm:^2.2.0" + fast-fifo: "npm:^1.1.0" + queue-tick: "npm:^1.0.1" + dependenciesMeta: + bare-events: + optional: true + checksum: 10/f6d0899adf089385d9c58a630fc705dc6c3931b18181c32860e5013955a339a3b763a4df62168f37c7fc56b1f7bb2a38db989fa9df487995278cb5d46f248da6 + languageName: node + linkType: hard + "strftime@npm:~0.9.2": version: 0.9.2 resolution: "strftime@npm:0.9.2" @@ -28327,6 +28368,17 @@ __metadata: languageName: node linkType: hard +"tar-stream@npm:^3.0.0": + version: 3.1.7 + resolution: "tar-stream@npm:3.1.7" + dependencies: + b4a: "npm:^1.6.4" + fast-fifo: "npm:^1.2.0" + streamx: "npm:^2.15.0" + checksum: 10/b21a82705a72792544697c410451a4846af1f744176feb0ff11a7c3dd0896961552e3def5e1c9a6bbee4f0ae298b8252a1f4c9381e9f991553b9e4847976f05c + languageName: node + linkType: hard + "tar@npm:6.1.11, tar@npm:^6.0.2, tar@npm:^6.1.11, tar@npm:^6.1.2": version: 6.1.11 resolution: "tar@npm:6.1.11" @@ -28877,7 +28929,7 @@ __metadata: languageName: node linkType: hard -"tslib@npm:2.6.2, tslib@npm:^2.0.0, tslib@npm:^2.0.1, tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.3.0, tslib@npm:^2.3.1, tslib@npm:^2.4.0, tslib@npm:^2.5.0, tslib@npm:^2.6.1, tslib@npm:^2.6.2": +"tslib@npm:2.6.2, tslib@npm:^2.0.0, tslib@npm:^2.0.1, tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.3.0, tslib@npm:^2.3.1, tslib@npm:^2.4.0, tslib@npm:^2.5.0, tslib@npm:^2.6.2": version: 2.6.2 resolution: "tslib@npm:2.6.2" checksum: 10/bd26c22d36736513980091a1e356378e8b662ded04204453d353a7f34a4c21ed0afc59b5f90719d4ba756e581a162ecbf93118dc9c6be5acf70aa309188166ca