Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to MongoDB 6.4 #160

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
contents: read
strategy:
matrix:
node-version: [14, 16, 18]
node-version: [18, 20]
os: [macos-latest, windows-latest]
steps:
- name: Check out repo
Expand All @@ -62,7 +62,7 @@ jobs:

strategy:
matrix:
node-version: [14, 16, 18]
node-version: [18, 20]
os: [ubuntu-latest]

services:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion trial/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
Loading