From b84242ffb9a09b8762f6a7f23cbea2c3da9e20f1 Mon Sep 17 00:00:00 2001 From: Santosh Subedi Date: Tue, 5 Mar 2024 15:29:27 +0545 Subject: [PATCH 1/5] Update mongodb dependency version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7c77df1..aba93d8 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "dependencies": { "carrier": "^0.3", "commander": "^10.0", - "mongodb": "^4.7", + "mongodb": "^6.4", "muri": "^1.3", "pino-abstract-transport": "^1.0.0" }, From 2e4dc33a97a8ad23ebf236ff3daf2fae80f0ba58 Mon Sep 17 00:00:00 2001 From: Santosh Subedi Date: Tue, 5 Mar 2024 15:29:34 +0545 Subject: [PATCH 2/5] Update MongoClient connection options --- trial/assert.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trial/assert.js b/trial/assert.js index 4023b21..6bdb9ff 100644 --- a/trial/assert.js +++ b/trial/assert.js @@ -3,7 +3,7 @@ const t = require('assert').strict async function main () { const url = process.argv.slice(2, 3)[0] - const conn = await MongoClient.connect(url, { useUnifiedTopology: true }) + const conn = await MongoClient.connect(url) const db = conn.db('admin') const logs = db.collection('logs') From 7357bfbec585665aa84f483cd8a7cddb680ad082 Mon Sep 17 00:00:00 2001 From: Santosh Subedi Date: Tue, 5 Mar 2024 15:29:40 +0545 Subject: [PATCH 3/5] Update MongoDB client version in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c47a38b..2718e73 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ const transport = pino.transport({ pino(transport) ``` -The `mongoOptions` is provided to the the standard mongodb client. All the available options are described on [its official documentation](https://mongodb.github.io/node-mongodb-native/4.1/interfaces/MongoClientOptions.html). +The `mongoOptions` is provided to the the standard mongodb client. All the available options are described on [its official documentation](https://mongodb.github.io/node-mongodb-native/6.4/interfaces/MongoClientOptions.html) Note that you may encouter missing logs in special cases: it dependes on data and mongo's version. Please checkout the [mongodb limitation](https://docs.mongodb.com/manual/reference/limits/) official documentation. For example on MongoDB 4: From 46a2b9fef31ca3eea91c8034671dfa804228f68b Mon Sep 17 00:00:00 2001 From: Santosh Subedi Date: Tue, 5 Mar 2024 21:19:55 +0545 Subject: [PATCH 4/5] Add support for Node.js version 20 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 297ada1..515e029 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: contents: read strategy: matrix: - node-version: [14, 16, 18] + node-version: [14, 16, 18, 20] os: [macos-latest, windows-latest] steps: - name: Check out repo @@ -62,7 +62,7 @@ jobs: strategy: matrix: - node-version: [14, 16, 18] + node-version: [14, 16, 18, 20] os: [ubuntu-latest] services: From 597bffeba6a331be73bc1178c85eef4fca0a6272 Mon Sep 17 00:00:00 2001 From: Santosh Subedi Date: Thu, 7 Mar 2024 16:59:42 +0545 Subject: [PATCH 5/5] Drop Node.js v14 & v16 in CI workflow --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 515e029..2cc01b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: contents: read strategy: matrix: - node-version: [14, 16, 18, 20] + node-version: [18, 20] os: [macos-latest, windows-latest] steps: - name: Check out repo @@ -62,7 +62,7 @@ jobs: strategy: matrix: - node-version: [14, 16, 18, 20] + node-version: [18, 20] os: [ubuntu-latest] services: