mongoose 8.12.2 → 8.13.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.
Files changed (2) hide show
  1. package/lib/mongoose.js +4 -0
  2. package/package.json +2 -2
package/lib/mongoose.js CHANGED
@@ -179,6 +179,10 @@ Mongoose.prototype.setDriver = function setDriver(driver) {
179
179
  }
180
180
  }
181
181
 
182
+ if (driver.SchemaTypes != null) {
183
+ Object.assign(mongoose.Schema.Types, driver.SchemaTypes);
184
+ }
185
+
182
186
  const Connection = driver.Connection;
183
187
  const oldDefaultConnection = _mongoose.connections[0];
184
188
  _mongoose.connections = [new Connection(_mongoose)];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mongoose",
3
3
  "description": "Mongoose MongoDB ODM",
4
- "version": "8.12.2",
4
+ "version": "8.13.0",
5
5
  "author": "Guillermo Rauch <guillermo@learnboost.com>",
6
6
  "keywords": [
7
7
  "mongodb",
@@ -22,7 +22,7 @@
22
22
  "dependencies": {
23
23
  "bson": "^6.10.3",
24
24
  "kareem": "2.6.3",
25
- "mongodb": "~6.14.0",
25
+ "mongodb": "~6.15.0",
26
26
  "mpath": "0.9.0",
27
27
  "mquery": "5.0.0",
28
28
  "ms": "2.1.3",