mongo-type-safe 1.0.0 → 1.0.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 +1 -1
- package/package.json +19 -3
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ A type-safe MongoDB wrapper for Node.js using Zod schemas and TypeScript. Get co
|
|
|
8
8
|
|
|
9
9
|
- **Type-safe CRUD**: Compile-time type checking for all MongoDB operations
|
|
10
10
|
- **Zod integration**: Use your Zod schemas as the single source of truth
|
|
11
|
-
- **
|
|
11
|
+
- **With runtime validation**: Enforces schema correctness at both compile-time and runtime using Zod.
|
|
12
12
|
- **Familiar API**: Mirrors the official MongoDB Node.js driver
|
|
13
13
|
|
|
14
14
|
---
|
package/package.json
CHANGED
|
@@ -1,20 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mongo-type-safe",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "jest",
|
|
8
8
|
"build": "tsc"
|
|
9
9
|
},
|
|
10
|
-
"keywords": [
|
|
10
|
+
"keywords": [
|
|
11
|
+
"mongodb",
|
|
12
|
+
"typescript",
|
|
13
|
+
"zod",
|
|
14
|
+
"schema",
|
|
15
|
+
"safe",
|
|
16
|
+
"validation",
|
|
17
|
+
"runtime",
|
|
18
|
+
"type-safe"
|
|
19
|
+
],
|
|
11
20
|
"author": "Marko Scekic",
|
|
12
21
|
"license": "MIT",
|
|
13
|
-
"description": "Type-safe wrapper
|
|
22
|
+
"description": "Type-safe MongoDB wrapper with Zod validation at runtime and compile-time.",
|
|
14
23
|
"dependencies": {
|
|
15
24
|
"mongodb": "^6.17.0",
|
|
16
25
|
"zod": "^3.25.75"
|
|
17
26
|
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "https://github.com/sceka/mongo-type-safe"
|
|
30
|
+
},
|
|
31
|
+
"bugs": {
|
|
32
|
+
"url": "https://github.com/sceka/mongo-type-safe/issues"
|
|
33
|
+
},
|
|
18
34
|
"devDependencies": {
|
|
19
35
|
"@types/jest": "^30.0.0",
|
|
20
36
|
"@types/node": "^24.0.10",
|