@classytic/mongokit 3.29.0 → 3.31.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 (40) hide show
  1. package/README.md +43 -0
  2. package/dist/{PaginationEngine-CczbvCAq.mjs → PaginationEngine-CuONvwCM.mjs} +21 -1
  3. package/dist/{create-repository-D4ZU94b3.d.mts → Repository-BAzymuOz.d.mts} +31 -58
  4. package/dist/{Repository-DThvFCaV.mjs → Repository-BQ3FEnOa.mjs} +352 -56
  5. package/dist/actions/index.d.mts +1 -1
  6. package/dist/actions/index.mjs +1 -1
  7. package/dist/adapter/index.mjs +1 -1
  8. package/dist/{adapter-CLvUHiTW.mjs → adapter-BitHg-CN.mjs} +1 -1
  9. package/dist/ai/index.d.mts +1 -1
  10. package/dist/better-auth/index.d.mts +13 -0
  11. package/dist/better-auth/index.mjs +76 -6
  12. package/dist/{create-repository-uhKt_oUT.mjs → create-repository-BOTVMsIg.mjs} +3 -2
  13. package/dist/create-repository-mEdfH9sz.d.mts +54 -0
  14. package/dist/{index-DceInCTX.d.mts → index-Beyr1r4d.d.mts} +1 -1
  15. package/dist/index.d.mts +305 -43
  16. package/dist/index.mjs +118 -11
  17. package/dist/kernel-conformance/index.d.mts +217 -0
  18. package/dist/kernel-conformance/index.mjs +603 -0
  19. package/dist/method-registry.plugin-DblM7V6j.mjs +112 -0
  20. package/dist/model-registry-ClKtWiHa.mjs +67 -0
  21. package/dist/{mongooseToJsonSchema-CByt1VhQ.mjs → mongooseToJsonSchema-DKbnKduN.mjs} +14 -3
  22. package/dist/{multi-tenant.plugin-DVyVGREb.d.mts → multi-tenant.plugin-2VtSSm1Y.d.mts} +1 -1
  23. package/dist/{operations-C8IcCHF9.d.mts → operations-CuzX9m2Z.d.mts} +42 -3
  24. package/dist/outbox/index.d.mts +63 -0
  25. package/dist/outbox/index.mjs +239 -0
  26. package/dist/pagination/PaginationEngine.mjs +1 -1
  27. package/dist/{plugin-options-vFufQZMZ.d.mts → plugin-options-BsFH0sTi.d.mts} +1 -1
  28. package/dist/plugins/index.d.mts +4 -4
  29. package/dist/plugins/index.mjs +3 -2
  30. package/dist/{repository-DCHRWRXw.d.mts → repository-Q16ErTu8.d.mts} +19 -1
  31. package/dist/testkit/index.d.mts +8 -1
  32. package/dist/testkit/index.mjs +1 -1
  33. package/dist/{timestamp.plugin-CFL6LlYZ.mjs → timestamp.plugin-i9Qxm6kn.mjs} +32 -143
  34. package/dist/{to-plain-DkF5px0R.d.mts → to-plain-BuX1RUZV.d.mts} +12 -4
  35. package/dist/{update-CI2NdAW6.mjs → update-DAO5STDv.mjs} +62 -7
  36. package/dist/utils/index.d.mts +2 -2
  37. package/dist/utils/index.mjs +1 -1
  38. package/dist/{validation-chain.plugin-BLecaKa0.d.mts → validation-chain.plugin-BSshLJTA.d.mts} +3 -3
  39. package/dist/{validation-chain.plugin-CwOcUJC1.mjs → validation-chain.plugin-CpcB6dOd.mjs} +4 -3
  40. package/package.json +193 -187
package/package.json CHANGED
@@ -1,187 +1,193 @@
1
- {
2
- "name": "@classytic/mongokit",
3
- "version": "3.29.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
- "TRADEMARK.md"
73
- ],
74
- "keywords": [
75
- "mongodb",
76
- "mongoose",
77
- "repository",
78
- "repository-pattern",
79
- "data-access",
80
- "pagination",
81
- "cursor-pagination",
82
- "infinite-scroll",
83
- "offset-pagination",
84
- "keyset-pagination",
85
- "caching",
86
- "redis",
87
- "cache",
88
- "multi-tenant",
89
- "multi-tenancy",
90
- "vector-search",
91
- "embeddings",
92
- "atlas-search",
93
- "observability",
94
- "event-driven",
95
- "plugin-based",
96
- "zero-dependencies",
97
- "express",
98
- "fastify",
99
- "nestjs",
100
- "nextjs",
101
- "typescript"
102
- ],
103
- "author": "Classytic <classytic.dev@gmail.com> (https://github.com/classytic)",
104
- "contributors": [
105
- "Sadman Chowdhury (https://github.com/siam923)"
106
- ],
107
- "license": "MIT",
108
- "repository": {
109
- "type": "git",
110
- "url": "git+https://github.com/classytic/mongokit.git"
111
- },
112
- "bugs": {
113
- "url": "https://github.com/classytic/mongokit/issues"
114
- },
115
- "homepage": "https://github.com/classytic/mongokit#readme",
116
- "peerDependencies": {
117
- "@classytic/repo-core": ">=0.19.0",
118
- "mongodb-memory-server": ">=10.4.3",
119
- "mongoose": ">=9.4.1"
120
- },
121
- "peerDependenciesMeta": {
122
- "mongodb-memory-server": {
123
- "optional": true
124
- }
125
- },
126
- "engines": {
127
- "node": ">=22"
128
- },
129
- "publishConfig": {
130
- "access": "public"
131
- },
132
- "scripts": {
133
- "build": "tsdown",
134
- "dev": "tsdown --watch",
135
- "test": "vitest run --project unit --project integration",
136
- "test:unit": "vitest run --project unit",
137
- "test:integration": "vitest run --project integration",
138
- "test:e2e": "vitest run --project e2e",
139
- "test:all": "vitest run --project unit --project integration --project e2e",
140
- "test:watch": "vitest --project unit --project integration",
141
- "test:coverage": "vitest run --coverage",
142
- "typecheck": "tsc --noEmit",
143
- "typecheck:tests": "tsc --noEmit -p tsconfig.tests.json",
144
- "lint": "biome check src/",
145
- "lint:fix": "biome check src/ --write",
146
- "lint:package": "publint && attw --pack . --profile esm-only",
147
- "format": "biome format src/ --write",
148
- "check": "biome ci src/ --diagnostic-level=error",
149
- "check:dead-code": "knip",
150
- "ci": "npm run check && npm run typecheck && npm run typecheck:tests && npm run build && npm run lint:package && npm run check:dead-code && npm test",
151
- "push": "classytic-push",
152
- "prepublishOnly": "npm run ci",
153
- "publish:dry": "npm publish --dry-run --access public",
154
- "publish:npm": "npm publish --access public",
155
- "release:tag": "node -e \"require('child_process').execSync('npm run push -- v'+require('./package.json').version,{stdio:'inherit'})\"",
156
- "release": "npm run push -- main && npm run release:tag && npm publish --access public",
157
- "release:patch": "npm version patch && npm run release",
158
- "release:minor": "npm version minor && npm run release",
159
- "release:major": "npm version major && npm run release"
160
- },
161
- "devDependencies": {
162
- "@arethetypeswrong/cli": "^0.18.2",
163
- "@better-auth/api-key": "^1.6.22",
164
- "@better-auth/mongo-adapter": "^1.6.22",
165
- "@biomejs/biome": "^2.4.10",
166
- "@classytic/dev-tools": "^0.2.0",
167
- "@classytic/repo-core": "^0.19.0",
168
- "@types/node": "^22.0.0",
169
- "@vitest/coverage-v8": "^4.1.4",
170
- "ajv": "^8.18.0",
171
- "ajv-formats": "^3.0.1",
172
- "better-auth": "^1.6.23",
173
- "dotenv": "^17.4.2",
174
- "knip": "^6.3.0",
175
- "mongodb": "7.2.0",
176
- "mongodb-memory-server": "^10.4.3",
177
- "mongoose": "^9.4.1",
178
- "publint": "^0.3.18",
179
- "tsdown": "^0.22.5",
180
- "typescript": "~5.9.0",
181
- "vitest": "^4.1.4"
182
- },
183
- "overrides": {
184
- "mongodb": "7.2.0",
185
- "bson": "7.2.0"
186
- }
187
- }
1
+ {
2
+ "name": "@classytic/mongokit",
3
+ "version": "3.31.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
+ "./outbox": {
44
+ "types": "./dist/outbox/index.d.mts",
45
+ "default": "./dist/outbox/index.mjs"
46
+ },
47
+ "./lock": {
48
+ "types": "./dist/lock/index.d.mts",
49
+ "default": "./dist/lock/index.mjs"
50
+ },
51
+ "./usage": {
52
+ "types": "./dist/usage/index.d.mts",
53
+ "default": "./dist/usage/index.mjs"
54
+ },
55
+ "./query/primitives/geo": {
56
+ "types": "./dist/query/primitives/geo.d.mts",
57
+ "default": "./dist/query/primitives/geo.mjs"
58
+ },
59
+ "./query/primitives/coercion": {
60
+ "types": "./dist/query/primitives/coercion.d.mts",
61
+ "default": "./dist/query/primitives/coercion.mjs"
62
+ },
63
+ "./query/primitives/indexes": {
64
+ "types": "./dist/query/primitives/indexes.d.mts",
65
+ "default": "./dist/query/primitives/indexes.mjs"
66
+ },
67
+ "./testkit": {
68
+ "types": "./dist/testkit/index.d.mts",
69
+ "default": "./dist/testkit/index.mjs"
70
+ },
71
+ "./kernel-conformance": {
72
+ "types": "./dist/kernel-conformance/index.d.mts",
73
+ "default": "./dist/kernel-conformance/index.mjs"
74
+ }
75
+ },
76
+ "files": [
77
+ "dist",
78
+ "README.md",
79
+ "LICENSE",
80
+ "TRADEMARK.md"
81
+ ],
82
+ "keywords": [
83
+ "mongodb",
84
+ "mongoose",
85
+ "repository",
86
+ "repository-pattern",
87
+ "data-access",
88
+ "pagination",
89
+ "cursor-pagination",
90
+ "infinite-scroll",
91
+ "offset-pagination",
92
+ "keyset-pagination",
93
+ "caching",
94
+ "redis",
95
+ "cache",
96
+ "multi-tenant",
97
+ "multi-tenancy",
98
+ "vector-search",
99
+ "embeddings",
100
+ "atlas-search",
101
+ "observability",
102
+ "event-driven",
103
+ "plugin-based",
104
+ "zero-dependencies",
105
+ "express",
106
+ "fastify",
107
+ "nestjs",
108
+ "nextjs",
109
+ "typescript"
110
+ ],
111
+ "author": "Classytic <classytic.dev@gmail.com> (https://github.com/classytic)",
112
+ "contributors": [
113
+ "Sadman Chowdhury (https://github.com/siam923)"
114
+ ],
115
+ "license": "MIT",
116
+ "repository": {
117
+ "type": "git",
118
+ "url": "git+https://github.com/classytic/mongokit.git"
119
+ },
120
+ "bugs": {
121
+ "url": "https://github.com/classytic/mongokit/issues"
122
+ },
123
+ "homepage": "https://github.com/classytic/mongokit#readme",
124
+ "peerDependencies": {
125
+ "@classytic/repo-core": ">=0.20.0",
126
+ "mongodb-memory-server": ">=10.4.3",
127
+ "mongoose": ">=9.4.1"
128
+ },
129
+ "peerDependenciesMeta": {
130
+ "mongodb-memory-server": {
131
+ "optional": true
132
+ }
133
+ },
134
+ "engines": {
135
+ "node": ">=22"
136
+ },
137
+ "publishConfig": {
138
+ "access": "public"
139
+ },
140
+ "scripts": {
141
+ "build": "tsdown",
142
+ "dev": "tsdown --watch",
143
+ "test": "vitest run --project unit --project integration",
144
+ "test:unit": "vitest run --project unit",
145
+ "test:integration": "vitest run --project integration",
146
+ "test:e2e": "vitest run --project e2e",
147
+ "test:all": "vitest run --project unit --project integration --project e2e",
148
+ "test:watch": "vitest --project unit --project integration",
149
+ "test:coverage": "vitest run --coverage",
150
+ "typecheck": "tsc --noEmit",
151
+ "typecheck:tests": "tsc --noEmit -p tsconfig.tests.json",
152
+ "lint": "biome check src/",
153
+ "lint:fix": "biome check src/ --write",
154
+ "check:exports": "node scripts/check-exports.mjs",
155
+ "lint:package": "npm run check:exports && publint && attw --pack . --profile esm-only",
156
+ "format": "biome format src/ --write",
157
+ "check": "biome ci src/ --diagnostic-level=error",
158
+ "check:dead-code": "knip",
159
+ "ci": "npm run check && npm run typecheck && npm run typecheck:tests && npm run build && npm run lint:package && npm run check:dead-code && npm run check:forgotten-exports && npm test",
160
+ "push": "classytic-push",
161
+ "prepublishOnly": "npm run ci",
162
+ "publish:dry": "npm publish --dry-run --access public",
163
+ "publish:npm": "npm publish --access public",
164
+ "release:tag": "node -e \"require('child_process').execSync('npm run push -- v'+require('./package.json').version,{stdio:'inherit'})\"",
165
+ "release": "npm run push -- main && npm run release:tag && npm publish --access public",
166
+ "release:patch": "npm version patch && npm run release",
167
+ "release:minor": "npm version minor && npm run release",
168
+ "release:major": "npm version major && npm run release",
169
+ "check:forgotten-exports": "node scripts/check-forgotten-exports.mjs"
170
+ },
171
+ "devDependencies": {
172
+ "@arethetypeswrong/cli": "^0.18.2",
173
+ "@better-auth/api-key": "^1.6.22",
174
+ "@better-auth/mongo-adapter": "^1.6.22",
175
+ "@biomejs/biome": "^2.4.10",
176
+ "@classytic/dev-tools": "^0.2.0",
177
+ "@classytic/repo-core": "^0.21.0",
178
+ "@types/node": "^22.0.0",
179
+ "@vitest/coverage-v8": "^4.1.4",
180
+ "ajv": "^8.18.0",
181
+ "ajv-formats": "^3.0.1",
182
+ "better-auth": "^1.6.23",
183
+ "dotenv": "^17.4.2",
184
+ "knip": "^6.31.0",
185
+ "mongodb": "^7.5.0",
186
+ "mongodb-memory-server": "^10.4.3",
187
+ "mongoose": "^9.9.1",
188
+ "publint": "^0.3.18",
189
+ "tsdown": "^0.22.14",
190
+ "typescript": "~5.9.0",
191
+ "vitest": "^4.1.4"
192
+ }
193
+ }