@classytic/mongokit 3.17.0 → 3.19.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 (32) hide show
  1. package/README.md +68 -1
  2. package/dist/PaginationEngine-4SjzfBQE.d.mts +103 -0
  3. package/dist/actions/index.d.mts +1 -1
  4. package/dist/adapter/index.mjs +1 -1
  5. package/dist/ai/index.d.mts +1 -1
  6. package/dist/better-auth/index.mjs +1 -1
  7. package/dist/create-repository-D5YX0wGs.mjs +29 -0
  8. package/dist/create-repository-K0yft2ht.d.mts +1663 -0
  9. package/dist/{index-fi91ycQc.d.mts → index-BgSBwlWu.d.mts} +1 -1
  10. package/dist/index.d.mts +11 -1665
  11. package/dist/index.mjs +5 -29
  12. package/dist/{mongooseToJsonSchema-BdQJU39w.d.mts → mongooseToJsonSchema-Bz47aMfH.d.mts} +1 -1
  13. package/dist/multi-tenant.plugin-D6lw3BsI.d.mts +487 -0
  14. package/dist/pagination/PaginationEngine.d.mts +1 -102
  15. package/dist/plugins/index.d.mts +19 -2
  16. package/dist/plugins/index.mjs +73 -2
  17. package/dist/query/primitives/coercion.d.mts +1 -1
  18. package/dist/query/primitives/indexes.d.mts +1 -1
  19. package/dist/testkit/index.d.mts +129 -0
  20. package/dist/testkit/index.mjs +139 -0
  21. package/dist/{validation-chain.plugin-DJtC0KJ-.mjs → timestamp.plugin-B1A9U-P7.mjs} +1 -1052
  22. package/dist/utils/index.d.mts +1 -1
  23. package/dist/utils/index.mjs +2 -2
  24. package/dist/{validation-chain.plugin-BpMfy18N.d.mts → validation-chain.plugin-CYOPfFGF.d.mts} +2 -486
  25. package/dist/validation-chain.plugin-DHZbpb4t.mjs +1056 -0
  26. package/package.json +16 -4
  27. /package/dist/{adapter-DYEMkLwK.mjs → adapter-BSxhT0Ip.mjs} +0 -0
  28. /package/dist/{coercion-TRMmR49h.d.mts → coercion-BxxHyLjP.d.mts} +0 -0
  29. /package/dist/{field-selection-CQW3WBiK.mjs → field-selection-d1qdRiMr.mjs} +0 -0
  30. /package/dist/{indexes-CgOF7Wjd.d.mts → indexes-3eHBWNZ2.d.mts} +0 -0
  31. /package/dist/{mongooseToJsonSchema-CBEQmeEa.mjs → mongooseToJsonSchema-ChtXSrLT.mjs} +0 -0
  32. /package/dist/{types-CU3SEDbD.d.mts → types-BA8oXjFe.d.mts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@classytic/mongokit",
3
- "version": "3.17.0",
3
+ "version": "3.19.0",
4
4
  "description": "Production-grade MongoDB repositories - smart pagination, events, and plugins. Built on @classytic/repo-core.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -55,6 +55,10 @@
55
55
  "./query/primitives/indexes": {
56
56
  "types": "./dist/query/primitives/indexes.d.mts",
57
57
  "default": "./dist/query/primitives/indexes.mjs"
58
+ },
59
+ "./testkit": {
60
+ "types": "./dist/testkit/index.d.mts",
61
+ "default": "./dist/testkit/index.mjs"
58
62
  }
59
63
  },
60
64
  "files": [
@@ -105,18 +109,25 @@
105
109
  },
106
110
  "homepage": "https://github.com/classytic/mongokit#readme",
107
111
  "peerDependencies": {
108
- "@classytic/repo-core": ">=0.6.0",
112
+ "@classytic/repo-core": ">=0.7.0",
109
113
  "better-auth": ">=1.6.0",
114
+ "mongodb-memory-server": ">=10.0.0",
110
115
  "mongoose": ">=9.4.1"
111
116
  },
112
117
  "peerDependenciesMeta": {
113
118
  "better-auth": {
114
119
  "optional": true
120
+ },
121
+ "mongodb-memory-server": {
122
+ "optional": true
115
123
  }
116
124
  },
117
125
  "engines": {
118
126
  "node": ">=22"
119
127
  },
128
+ "publishConfig": {
129
+ "access": "public"
130
+ },
120
131
  "scripts": {
121
132
  "build": "tsdown",
122
133
  "dev": "tsdown --watch",
@@ -138,7 +149,7 @@
138
149
  "publish:dry": "npm publish --dry-run --access public",
139
150
  "publish:npm": "npm publish --access public",
140
151
  "release:tag": "node -e \"require('child_process').execSync('npm run push -- v'+require('./package.json').version,{stdio:'inherit'})\"",
141
- "release": "npm run push -- main && npm run release:tag && npm publish",
152
+ "release": "npm run push -- main && npm run release:tag && npm publish --access public",
142
153
  "release:patch": "npm version patch && npm run release",
143
154
  "release:minor": "npm version minor && npm run release",
144
155
  "release:major": "npm version major && npm run release"
@@ -149,7 +160,7 @@
149
160
  "@better-auth/mongo-adapter": "^1.6.22",
150
161
  "@biomejs/biome": "^2.4.10",
151
162
  "@classytic/dev-tools": "^0.2.0",
152
- "@classytic/repo-core": "0.6.0",
163
+ "@classytic/repo-core": "^0.7.0",
153
164
  "@types/node": "^22.0.0",
154
165
  "@vitest/coverage-v8": "^4.1.4",
155
166
  "ajv": "^8.18.0",
@@ -157,6 +168,7 @@
157
168
  "better-auth": "^1.6.22",
158
169
  "dotenv": "^17.4.2",
159
170
  "knip": "^6.3.0",
171
+ "mongodb": "7.2.0",
160
172
  "mongodb-memory-server": "^10.4.3",
161
173
  "mongoose": "^9.4.1",
162
174
  "publint": "^0.3.18",