Skip to content

Commit 94b7166

Browse files
ulrichstarkDABH
andauthored
Fix incorrect name of dbName option; drop support for EOL Mongo and Node Versions (#329)
* Fix incorrect name of dbName option * https://chatgpt.com/share/68433bae-c2b0-8011-be2c-547b3a40877e * add .editorconfig that matches ident style of this repo * revert last change to ci.yml * drop mongo v4 that's unsupported on latest github ubuntu runner * add newer version of node and mongo to test matrix * Update ci.yml --------- Co-authored-by: David Hyde <[email protected]>
1 parent 51823a2 commit 94b7166

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# EditorConfig is awesome: https://editorconfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ jobs:
1616
strategy:
1717
matrix:
1818
node:
19-
- 16
20-
- 18
2119
- 20
20+
- 22
21+
- 24
2222
mongo:
23-
- v6.0-latest
24-
- v5.0-latest
25-
- v4.4-latest
23+
- v7.0-latest
24+
- v8.0-latest
2625
steps:
2726
- uses: actions/checkout@v4
2827
- uses: actions/setup-node@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The MongoDB transport takes the following options. Only option `db` is required:
5656
| Option | Description |
5757
| ------ | :----------------------------------------------- |
5858
| db | **REQUIRED**. MongoDB connection uri, pre-connected `MongoClient` object or promise which resolves to a pre-connected `MongoClient` object. |
59-
| dbname | The database name to connect to, defaults to DB name based on connection URI if not provided, ignored if using a pre-connected connection. |
59+
| dbName | The database name to connect to, defaults to DB name based on connection URI if not provided, ignored if using a pre-connected connection. |
6060
| options| MongoDB connection parameters.<br/>Defaults to `{maxPoolSize: 2}`). |
6161
| collection | The name of the collection you want to store log messages in.<br/>Defaults to `log`. |
6262
| level | Level of messages that this transport should log.<br/>Defaults to `info`. |

0 commit comments

Comments
 (0)