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