@kikiutils/mongoose 1.0.0 → 1.0.1
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 +3 -3
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
5
5
|
[![License][license-src]][license-href]
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
This project provides types and utilities for Mongoose v8.
|
|
8
8
|
|
|
9
9
|
- [✨ Release Notes](/CHANGELOG.md)
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ For mongoose v8 types and utils.
|
|
|
12
12
|
|
|
13
13
|
- Enhanced `toJSON` method with normalization functions:
|
|
14
14
|
- Auto-converts `_id` to `id`
|
|
15
|
-
- Removes `private` fields from the JSON output
|
|
15
|
+
- Removes `private` fields from the JSON output
|
|
16
16
|
- Converts `Decimal128` fields to strings
|
|
17
17
|
- Removes `__v` version key
|
|
18
18
|
- Commonly used schema settings for fast schema creation with `createCommonMongooseSchemas`.
|
|
@@ -63,7 +63,7 @@ pnpm i
|
|
|
63
63
|
cp .env.example .env
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
4. Set the MONGODB_URI in the .env file with your MongoDB connection string
|
|
66
|
+
4. Set the MONGODB_URI in the .env file with your MongoDB connection string
|
|
67
67
|
5. Run the example code
|
|
68
68
|
|
|
69
69
|
- If you use bun, run this command directly
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kikiutils/mongoose",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Types and utilities for Mongoose v8.",
|
|
4
5
|
"license": "MIT",
|
|
5
6
|
"author": "kiki-kanri",
|
|
6
7
|
"repository": {
|
|
@@ -17,13 +18,13 @@
|
|
|
17
18
|
"lodash-es": "^4.17.21",
|
|
18
19
|
"mongoose": "^8.4.0",
|
|
19
20
|
"mongoose-aggregate-paginate-v2": "^1.0.7",
|
|
20
|
-
"mongoose-paginate-v2": "^1.8.
|
|
21
|
+
"mongoose-paginate-v2": "^1.8.2"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
23
24
|
"@kikiutils/prettierrc": "^1.3.1",
|
|
24
25
|
"@kikiutils/tsconfigs": "^2.2.0",
|
|
25
26
|
"@types/lodash-es": "^4.17.12",
|
|
26
|
-
"@types/node": "^20.12.
|
|
27
|
+
"@types/node": "^20.12.13",
|
|
27
28
|
"changelogen": "^0.5.5",
|
|
28
29
|
"tsc-multi": "^1.1.0",
|
|
29
30
|
"typescript": "^5.4.5"
|