@classytic/mongokit 3.21.0 → 3.22.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.
- package/dist/{PaginationEngine-DYpOD2wY.d.mts → PaginationEngine-CYRTLW6s.d.mts} +1 -1
- package/dist/{Repository-dbbgOGjK.mjs → Repository-CaDAJY98.mjs} +100 -14
- package/dist/actions/index.d.mts +1 -1
- package/dist/ai/index.d.mts +1 -1
- package/dist/better-auth/index.mjs +1 -1
- package/dist/{create-repository-CJATiAKX.mjs → create-repository-BFVYm48p.mjs} +2 -2
- package/dist/{create-repository-0TkQhcv-.d.mts → create-repository-DXa3nMG6.d.mts} +95 -4
- package/dist/{index-Cg3SWugF.d.mts → index-CENL7LRb.d.mts} +1 -1
- package/dist/index.d.mts +8 -8
- package/dist/index.mjs +6 -6
- package/dist/{memory-cache-DI1jb4dz.mjs → memory-cache-D3wyN_2w.mjs} +32 -1
- package/dist/{mongooseToJsonSchema-D2CyAMIC.d.mts → mongooseToJsonSchema-ChFKfZts.d.mts} +31 -2
- package/dist/{multi-tenant.plugin-CTsWz0XK.d.mts → multi-tenant.plugin-CFzMOuZP.d.mts} +1 -1
- package/dist/pagination/PaginationEngine.d.mts +1 -1
- package/dist/plugins/index.d.mts +4 -4
- package/dist/plugins/index.mjs +3 -3
- package/dist/testkit/index.d.mts +1 -1
- package/dist/testkit/index.mjs +1 -1
- package/dist/{timestamp.plugin-nG9Z1JEk.mjs → timestamp.plugin-Ch0O6DPX.mjs} +1 -1
- package/dist/{types-DNFMofHy.d.mts → types-BnRqAJVa.d.mts} +8 -0
- package/dist/usage/index.d.mts +23 -0
- package/dist/usage/index.mjs +67 -0
- package/dist/utils/index.d.mts +2 -2
- package/dist/utils/index.mjs +2 -2
- package/dist/{validation-chain.plugin-buy3uvyk.d.mts → validation-chain.plugin-DDQeEyk5.d.mts} +63 -2
- package/dist/{validation-chain.plugin-Dn_wZYLA.mjs → validation-chain.plugin-RxOzGuQy.mjs} +221 -2
- package/package.json +178 -184
package/package.json
CHANGED
|
@@ -1,184 +1,178 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@classytic/mongokit",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "Production-grade MongoDB repositories - smart pagination, events, and plugins. Built on @classytic/repo-core.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"sideEffects": false,
|
|
7
|
-
"main": "./dist/index.mjs",
|
|
8
|
-
"module": "./dist/index.mjs",
|
|
9
|
-
"types": "./dist/index.d.mts",
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"types": "./dist/index.d.mts",
|
|
13
|
-
"default": "./dist/index.mjs"
|
|
14
|
-
},
|
|
15
|
-
"./pagination": {
|
|
16
|
-
"types": "./dist/pagination/PaginationEngine.d.mts",
|
|
17
|
-
"default": "./dist/pagination/PaginationEngine.mjs"
|
|
18
|
-
},
|
|
19
|
-
"./plugins": {
|
|
20
|
-
"types": "./dist/plugins/index.d.mts",
|
|
21
|
-
"default": "./dist/plugins/index.mjs"
|
|
22
|
-
},
|
|
23
|
-
"./utils": {
|
|
24
|
-
"types": "./dist/utils/index.d.mts",
|
|
25
|
-
"default": "./dist/utils/index.mjs"
|
|
26
|
-
},
|
|
27
|
-
"./actions": {
|
|
28
|
-
"types": "./dist/actions/index.d.mts",
|
|
29
|
-
"default": "./dist/actions/index.mjs"
|
|
30
|
-
},
|
|
31
|
-
"./ai": {
|
|
32
|
-
"types": "./dist/ai/index.d.mts",
|
|
33
|
-
"default": "./dist/ai/index.mjs"
|
|
34
|
-
},
|
|
35
|
-
"./adapter": {
|
|
36
|
-
"types": "./dist/adapter/index.d.mts",
|
|
37
|
-
"default": "./dist/adapter/index.mjs"
|
|
38
|
-
},
|
|
39
|
-
"./better-auth": {
|
|
40
|
-
"types": "./dist/better-auth/index.d.mts",
|
|
41
|
-
"default": "./dist/better-auth/index.mjs"
|
|
42
|
-
},
|
|
43
|
-
"./lock": {
|
|
44
|
-
"types": "./dist/lock/index.d.mts",
|
|
45
|
-
"default": "./dist/lock/index.mjs"
|
|
46
|
-
},
|
|
47
|
-
"./
|
|
48
|
-
"types": "./dist/
|
|
49
|
-
"default": "./dist/
|
|
50
|
-
},
|
|
51
|
-
"./query/primitives/
|
|
52
|
-
"types": "./dist/query/primitives/
|
|
53
|
-
"default": "./dist/query/primitives/
|
|
54
|
-
},
|
|
55
|
-
"./query/primitives/
|
|
56
|
-
"types": "./dist/query/primitives/
|
|
57
|
-
"default": "./dist/query/primitives/
|
|
58
|
-
},
|
|
59
|
-
"./
|
|
60
|
-
"types": "./dist/
|
|
61
|
-
"default": "./dist/
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"
|
|
101
|
-
],
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
},
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"test": "vitest run --
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
"@
|
|
160
|
-
"@
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
},
|
|
180
|
-
"overrides": {
|
|
181
|
-
"mongodb": "7.2.0",
|
|
182
|
-
"bson": "7.2.0"
|
|
183
|
-
}
|
|
184
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@classytic/mongokit",
|
|
3
|
+
"version": "3.22.0",
|
|
4
|
+
"description": "Production-grade MongoDB repositories - smart pagination, events, and plugins. Built on @classytic/repo-core.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"main": "./dist/index.mjs",
|
|
8
|
+
"module": "./dist/index.mjs",
|
|
9
|
+
"types": "./dist/index.d.mts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.mts",
|
|
13
|
+
"default": "./dist/index.mjs"
|
|
14
|
+
},
|
|
15
|
+
"./pagination": {
|
|
16
|
+
"types": "./dist/pagination/PaginationEngine.d.mts",
|
|
17
|
+
"default": "./dist/pagination/PaginationEngine.mjs"
|
|
18
|
+
},
|
|
19
|
+
"./plugins": {
|
|
20
|
+
"types": "./dist/plugins/index.d.mts",
|
|
21
|
+
"default": "./dist/plugins/index.mjs"
|
|
22
|
+
},
|
|
23
|
+
"./utils": {
|
|
24
|
+
"types": "./dist/utils/index.d.mts",
|
|
25
|
+
"default": "./dist/utils/index.mjs"
|
|
26
|
+
},
|
|
27
|
+
"./actions": {
|
|
28
|
+
"types": "./dist/actions/index.d.mts",
|
|
29
|
+
"default": "./dist/actions/index.mjs"
|
|
30
|
+
},
|
|
31
|
+
"./ai": {
|
|
32
|
+
"types": "./dist/ai/index.d.mts",
|
|
33
|
+
"default": "./dist/ai/index.mjs"
|
|
34
|
+
},
|
|
35
|
+
"./adapter": {
|
|
36
|
+
"types": "./dist/adapter/index.d.mts",
|
|
37
|
+
"default": "./dist/adapter/index.mjs"
|
|
38
|
+
},
|
|
39
|
+
"./better-auth": {
|
|
40
|
+
"types": "./dist/better-auth/index.d.mts",
|
|
41
|
+
"default": "./dist/better-auth/index.mjs"
|
|
42
|
+
},
|
|
43
|
+
"./lock": {
|
|
44
|
+
"types": "./dist/lock/index.d.mts",
|
|
45
|
+
"default": "./dist/lock/index.mjs"
|
|
46
|
+
},
|
|
47
|
+
"./usage": {
|
|
48
|
+
"types": "./dist/usage/index.d.mts",
|
|
49
|
+
"default": "./dist/usage/index.mjs"
|
|
50
|
+
},
|
|
51
|
+
"./query/primitives/geo": {
|
|
52
|
+
"types": "./dist/query/primitives/geo.d.mts",
|
|
53
|
+
"default": "./dist/query/primitives/geo.mjs"
|
|
54
|
+
},
|
|
55
|
+
"./query/primitives/coercion": {
|
|
56
|
+
"types": "./dist/query/primitives/coercion.d.mts",
|
|
57
|
+
"default": "./dist/query/primitives/coercion.mjs"
|
|
58
|
+
},
|
|
59
|
+
"./query/primitives/indexes": {
|
|
60
|
+
"types": "./dist/query/primitives/indexes.d.mts",
|
|
61
|
+
"default": "./dist/query/primitives/indexes.mjs"
|
|
62
|
+
},
|
|
63
|
+
"./testkit": {
|
|
64
|
+
"types": "./dist/testkit/index.d.mts",
|
|
65
|
+
"default": "./dist/testkit/index.mjs"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"files": [
|
|
69
|
+
"dist",
|
|
70
|
+
"README.md",
|
|
71
|
+
"LICENSE"
|
|
72
|
+
],
|
|
73
|
+
"keywords": [
|
|
74
|
+
"mongodb",
|
|
75
|
+
"mongoose",
|
|
76
|
+
"repository",
|
|
77
|
+
"repository-pattern",
|
|
78
|
+
"data-access",
|
|
79
|
+
"pagination",
|
|
80
|
+
"cursor-pagination",
|
|
81
|
+
"infinite-scroll",
|
|
82
|
+
"offset-pagination",
|
|
83
|
+
"keyset-pagination",
|
|
84
|
+
"caching",
|
|
85
|
+
"redis",
|
|
86
|
+
"cache",
|
|
87
|
+
"multi-tenant",
|
|
88
|
+
"multi-tenancy",
|
|
89
|
+
"vector-search",
|
|
90
|
+
"embeddings",
|
|
91
|
+
"atlas-search",
|
|
92
|
+
"observability",
|
|
93
|
+
"event-driven",
|
|
94
|
+
"plugin-based",
|
|
95
|
+
"zero-dependencies",
|
|
96
|
+
"express",
|
|
97
|
+
"fastify",
|
|
98
|
+
"nestjs",
|
|
99
|
+
"nextjs",
|
|
100
|
+
"typescript"
|
|
101
|
+
],
|
|
102
|
+
"author": "Classytic <classytic.dev@gmail.com> (https://github.com/classytic)",
|
|
103
|
+
"contributors": [
|
|
104
|
+
"Sadman Chowdhury (https://github.com/siam923)"
|
|
105
|
+
],
|
|
106
|
+
"license": "MIT",
|
|
107
|
+
"repository": {
|
|
108
|
+
"type": "git",
|
|
109
|
+
"url": "git+https://github.com/classytic/mongokit.git"
|
|
110
|
+
},
|
|
111
|
+
"bugs": {
|
|
112
|
+
"url": "https://github.com/classytic/mongokit/issues"
|
|
113
|
+
},
|
|
114
|
+
"homepage": "https://github.com/classytic/mongokit#readme",
|
|
115
|
+
"peerDependencies": {
|
|
116
|
+
"@classytic/repo-core": ">=0.13.0",
|
|
117
|
+
"mongoose": ">=9.4.1"
|
|
118
|
+
},
|
|
119
|
+
"engines": {
|
|
120
|
+
"node": ">=22"
|
|
121
|
+
},
|
|
122
|
+
"publishConfig": {
|
|
123
|
+
"access": "public"
|
|
124
|
+
},
|
|
125
|
+
"scripts": {
|
|
126
|
+
"build": "tsdown",
|
|
127
|
+
"dev": "tsdown --watch",
|
|
128
|
+
"test": "vitest run --project unit --project integration",
|
|
129
|
+
"test:unit": "vitest run --project unit",
|
|
130
|
+
"test:integration": "vitest run --project integration",
|
|
131
|
+
"test:e2e": "vitest run --project e2e",
|
|
132
|
+
"test:all": "vitest run --project unit --project integration --project e2e",
|
|
133
|
+
"test:watch": "vitest --project unit --project integration",
|
|
134
|
+
"test:coverage": "vitest run --coverage",
|
|
135
|
+
"typecheck": "tsc --noEmit",
|
|
136
|
+
"typecheck:tests": "tsc --noEmit -p tsconfig.tests.json",
|
|
137
|
+
"lint": "biome check src/",
|
|
138
|
+
"lint:fix": "biome check src/ --write",
|
|
139
|
+
"lint:package": "publint && attw --pack . --profile esm-only",
|
|
140
|
+
"format": "biome format src/ --write",
|
|
141
|
+
"check": "biome ci src/ --diagnostic-level=error",
|
|
142
|
+
"push": "classytic-push",
|
|
143
|
+
"prepublishOnly": "npm run check && npm run build && npm run lint:package && npm run typecheck && npm run typecheck:tests && npm test",
|
|
144
|
+
"publish:dry": "npm publish --dry-run --access public",
|
|
145
|
+
"publish:npm": "npm publish --access public",
|
|
146
|
+
"release:tag": "node -e \"require('child_process').execSync('npm run push -- v'+require('./package.json').version,{stdio:'inherit'})\"",
|
|
147
|
+
"release": "npm run push -- main && npm run release:tag && npm publish --access public",
|
|
148
|
+
"release:patch": "npm version patch && npm run release",
|
|
149
|
+
"release:minor": "npm version minor && npm run release",
|
|
150
|
+
"release:major": "npm version major && npm run release"
|
|
151
|
+
},
|
|
152
|
+
"devDependencies": {
|
|
153
|
+
"@arethetypeswrong/cli": "^0.18.2",
|
|
154
|
+
"@better-auth/api-key": "^1.6.22",
|
|
155
|
+
"@better-auth/mongo-adapter": "^1.6.22",
|
|
156
|
+
"@biomejs/biome": "^2.4.10",
|
|
157
|
+
"@classytic/dev-tools": "^0.2.0",
|
|
158
|
+
"@classytic/repo-core": "^0.13.0",
|
|
159
|
+
"@types/node": "^22.0.0",
|
|
160
|
+
"@vitest/coverage-v8": "^4.1.4",
|
|
161
|
+
"ajv": "^8.18.0",
|
|
162
|
+
"ajv-formats": "^3.0.1",
|
|
163
|
+
"better-auth": "^1.6.23",
|
|
164
|
+
"dotenv": "^17.4.2",
|
|
165
|
+
"knip": "^6.3.0",
|
|
166
|
+
"mongodb": "7.2.0",
|
|
167
|
+
"mongodb-memory-server": "^10.4.3",
|
|
168
|
+
"mongoose": "^9.4.1",
|
|
169
|
+
"publint": "^0.3.18",
|
|
170
|
+
"tsdown": "^0.22.5",
|
|
171
|
+
"typescript": "^7.0.2",
|
|
172
|
+
"vitest": "^4.1.4"
|
|
173
|
+
},
|
|
174
|
+
"overrides": {
|
|
175
|
+
"mongodb": "7.2.0",
|
|
176
|
+
"bson": "7.2.0"
|
|
177
|
+
}
|
|
178
|
+
}
|