@classytic/repo-core 0.2.0 → 0.3.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/CHANGELOG.md +120 -0
- package/README.md +28 -7
- package/dist/errors/contract.d.mts +37 -0
- package/dist/errors/contract.mjs +75 -0
- package/dist/errors/index.d.mts +3 -2
- package/dist/errors/index.mjs +3 -1
- package/dist/errors/types.d.mts +113 -8
- package/dist/errors/types.mjs +29 -0
- package/dist/pagination/canonical.d.mts +35 -0
- package/dist/pagination/canonical.mjs +32 -0
- package/dist/pagination/index.d.mts +3 -2
- package/dist/pagination/index.mjs +2 -1
- package/dist/pagination/types.d.mts +65 -1
- package/dist/repository/base.mjs +21 -0
- package/dist/schema/field-rules.d.mts +19 -8
- package/dist/schema/field-rules.mjs +29 -9
- package/dist/schema/generator.d.mts +72 -0
- package/dist/schema/generator.mjs +16 -0
- package/dist/schema/index.d.mts +2 -1
- package/dist/schema/index.mjs +2 -1
- package/dist/schema/types.d.mts +56 -3
- package/dist/tenant/index.d.mts +3 -0
- package/dist/tenant/index.mjs +2 -0
- package/dist/tenant/resolve.d.mts +27 -0
- package/dist/tenant/resolve.mjs +69 -0
- package/dist/tenant/types.d.mts +142 -0
- package/package.json +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@classytic/repo-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Driver-agnostic repository primitives: hooks, Filter IR, operations, pagination, cache contract. Foundation for mongokit, sqlitekit, pgkit, and prismakit. Lean by design — no plugins ship here; each kit owns its own.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -62,6 +62,10 @@
|
|
|
62
62
|
"types": "./dist/testing/index.d.mts",
|
|
63
63
|
"default": "./dist/testing/index.mjs"
|
|
64
64
|
},
|
|
65
|
+
"./tenant": {
|
|
66
|
+
"types": "./dist/tenant/index.d.mts",
|
|
67
|
+
"default": "./dist/tenant/index.mjs"
|
|
68
|
+
},
|
|
65
69
|
"./lookup": {
|
|
66
70
|
"types": "./dist/lookup/index.d.mts",
|
|
67
71
|
"default": "./dist/lookup/index.mjs"
|
|
@@ -108,13 +112,17 @@
|
|
|
108
112
|
"format": "biome format src tests --write",
|
|
109
113
|
"check": "biome ci src tests --diagnostic-level=error",
|
|
110
114
|
"knip": "knip",
|
|
115
|
+
"push": "classytic-push",
|
|
111
116
|
"prepublishOnly": "npm run check && npm run build && npm run typecheck && npm test",
|
|
117
|
+
"release:tag": "node -e \"require('child_process').execSync('npm run push -- v'+require('./package.json').version,{stdio:'inherit'})\"",
|
|
118
|
+
"release": "npm run push -- main && npm run release:tag && npm publish",
|
|
112
119
|
"publish:dry": "npm publish --dry-run --access public",
|
|
113
120
|
"publish:npm": "npm publish --access public"
|
|
114
121
|
},
|
|
115
122
|
"devDependencies": {
|
|
116
123
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
117
124
|
"@biomejs/biome": "^2.4.12",
|
|
125
|
+
"@classytic/dev-tools": "^0.2.0",
|
|
118
126
|
"@types/node": "^22.0.0",
|
|
119
127
|
"@vitest/coverage-v8": "^4.1.4",
|
|
120
128
|
"knip": "^6.3.0",
|