mongoose 8.19.0 → 8.19.2
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.
- package/README.md +22 -0
- package/dist/browser.umd.js +1 -1
- package/lib/connection.js +4 -0
- package/lib/helpers/query/castUpdate.js +7 -2
- package/lib/helpers/setDefaultsOnInsert.js +59 -30
- package/lib/helpers/update/castArrayFilters.js +3 -4
- package/lib/helpers/update/decorateUpdateWithVersionKey.js +19 -10
- package/lib/helpers/updateValidators.js +0 -4
- package/lib/schema/map.js +9 -5
- package/lib/schema/subdocument.js +7 -0
- package/lib/schemaType.js +3 -0
- package/lib/types/array/methods/index.js +1 -1
- package/lib/types/map.js +60 -8
- package/lib/types/subdocument.js +32 -4
- package/package.json +6 -6
- package/types/query.d.ts +3 -27
- package/deno.lock +0 -53
package/README.md
CHANGED
|
@@ -42,10 +42,32 @@ View all 400+ [contributors](https://github.com/Automattic/mongoose/graphs/contr
|
|
|
42
42
|
|
|
43
43
|
First install [Node.js](http://nodejs.org/) and [MongoDB](https://www.mongodb.org/downloads). Then:
|
|
44
44
|
|
|
45
|
+
Then install the `mongoose` package using your preferred package manager:
|
|
46
|
+
|
|
47
|
+
### Using npm
|
|
48
|
+
|
|
45
49
|
```sh
|
|
46
50
|
npm install mongoose
|
|
47
51
|
```
|
|
48
52
|
|
|
53
|
+
### Using pnpm
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
pnpm add mongoose
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Using Yarn
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
yarn add mongoose
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Using Bun
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
bun add mongoose
|
|
69
|
+
```
|
|
70
|
+
|
|
49
71
|
Mongoose 6.8.0 also includes alpha support for [Deno](https://deno.land/).
|
|
50
72
|
|
|
51
73
|
## Importing
|