@tomsd/mongodbclient 4.2.3 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,10 +96,7 @@ var MClient = class {
96
96
  async read(condition = {}, opt) {
97
97
  const connection = await this.getConnected();
98
98
  try {
99
- return await connection.collection.find(
100
- condition,
101
- opt
102
- ).toArray();
99
+ return await connection.collection.find(condition, opt).toArray();
103
100
  } finally {
104
101
  await connection.client.close();
105
102
  }
@@ -70,10 +70,7 @@ var MClient = class {
70
70
  async read(condition = {}, opt) {
71
71
  const connection = await this.getConnected();
72
72
  try {
73
- return await connection.collection.find(
74
- condition,
75
- opt
76
- ).toArray();
73
+ return await connection.collection.find(condition, opt).toArray();
77
74
  } finally {
78
75
  await connection.client.close();
79
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomsd/mongodbclient",
3
- "version": "4.2.3",
3
+ "version": "4.4.0",
4
4
  "description": "It's a handy mongodb client for easy-use.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -38,19 +38,19 @@
38
38
  "url": "https://github.com/tomsdoo/mongodbclient"
39
39
  },
40
40
  "dependencies": {
41
- "mongodb": "6.19.0",
41
+ "mongodb": "7.0.0",
42
42
  "uuid": "13.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@biomejs/biome": "2.2.3",
46
- "@tomsd/md-book": "2.0.3",
47
- "@types/node": "24.3.1",
48
- "@types/uuid": "10.0.0",
49
- "dotenv": "17.2.2",
45
+ "@biomejs/biome": "2.3.4",
46
+ "@tomsd/md-book": "2.0.5",
47
+ "@types/node": "24.10.0",
48
+ "@types/uuid": "11.0.0",
49
+ "dotenv": "17.2.3",
50
50
  "husky": "9.1.7",
51
- "lint-staged": "16.1.6",
51
+ "lint-staged": "16.2.6",
52
52
  "tsup": "8.5.0",
53
- "typescript": "5.9.2",
54
- "vitest": "3.2.4"
53
+ "typescript": "5.9.3",
54
+ "vitest": "4.0.8"
55
55
  }
56
56
  }