@kysera/soft-delete 0.8.1 → 0.8.2
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/README.md +0 -4
- package/dist/schema.d.ts +1 -0
- package/dist/schema.js +1 -1
- package/dist/schema.js.map +1 -1
- package/package.json +5 -5
- package/src/schema.ts +4 -1
package/README.md
CHANGED
package/dist/schema.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ declare const SoftDeleteOptionsSchema: z.ZodObject<{
|
|
|
31
31
|
deletedAtColumn: z.ZodOptional<z.ZodString>;
|
|
32
32
|
includeDeleted: z.ZodOptional<z.ZodBoolean>;
|
|
33
33
|
tables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
|
+
excludeTables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
35
|
primaryKeyColumn: z.ZodOptional<z.ZodString>;
|
|
35
36
|
}, z.core.$strip>;
|
|
36
37
|
/**
|
package/dist/schema.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {z}from'zod';var o=z.object({deletedAtColumn:z.string().optional(),includeDeleted:z.boolean().optional(),tables:z.array(z.string()).optional(),primaryKeyColumn:z.string().optional()});export{o as SoftDeleteOptionsSchema};//# sourceMappingURL=schema.js.map
|
|
1
|
+
import {z}from'zod';var o=z.object({deletedAtColumn:z.string().optional(),includeDeleted:z.boolean().optional(),tables:z.array(z.string()).optional(),excludeTables:z.array(z.string()).optional(),primaryKeyColumn:z.string().optional()});export{o as SoftDeleteOptionsSchema};//# sourceMappingURL=schema.js.map
|
|
2
2
|
//# sourceMappingURL=schema.js.map
|
package/dist/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/schema.ts"],"names":["SoftDeleteOptionsSchema","z"],"mappings":"oBA6BO,IAAMA,EAA0BC,CAAAA,CAAE,MAAA,CAAO,CAC9C,eAAA,CAAiBA,
|
|
1
|
+
{"version":3,"sources":["../src/schema.ts"],"names":["SoftDeleteOptionsSchema","z"],"mappings":"oBA6BO,IAAMA,EAA0BC,CAAAA,CAAE,MAAA,CAAO,CAC9C,eAAA,CAAiBA,CAAAA,CAAE,QAAO,CAAE,QAAA,GAC5B,cAAA,CAAgBA,CAAAA,CAAE,SAAQ,CAAE,QAAA,GAC5B,MAAA,CAAQA,CAAAA,CAAE,MAAMA,CAAAA,CAAE,MAAA,EAAQ,CAAA,CAAE,QAAA,GAC5B,aAAA,CAAeA,CAAAA,CAAE,MAAMA,CAAAA,CAAE,MAAA,EAAQ,CAAA,CAAE,QAAA,GACnC,gBAAA,CAAkBA,CAAAA,CAAE,QAAO,CAAE,QAAA,EAG/B,CAAC","file":"schema.js","sourcesContent":["/**\n * Zod schemas for soft-delete plugin configuration.\n * This file is separate from the main index to allow the package to work without Zod installed.\n * Only import this file if you need Zod validation (e.g., for CLI or configuration validation).\n *\n * @packageDocumentation\n */\n\nimport { z } from 'zod'\n\n/**\n * Zod schema for SoftDeleteOptions\n * Used for validation and configuration in the kysera-cli\n *\n * @example\n * ```typescript\n * import { SoftDeleteOptionsSchema } from '@kysera/soft-delete/schema'\n *\n * const result = SoftDeleteOptionsSchema.safeParse({\n * deletedAtColumn: 'deleted_at',\n * includeDeleted: false,\n * tables: ['users', 'posts']\n * })\n *\n * if (result.success) {\n * console.log('Valid options:', result.data)\n * }\n * ```\n */\nexport const SoftDeleteOptionsSchema = z.object({\n deletedAtColumn: z.string().optional(),\n includeDeleted: z.boolean().optional(),\n tables: z.array(z.string()).optional(),\n excludeTables: z.array(z.string()).optional(),\n primaryKeyColumn: z.string().optional(),\n // Note: logger is not validated as it's a function interface\n // CLI tools should handle logger separately\n})\n\n/**\n * Type inferred from SoftDeleteOptionsSchema\n */\nexport type SoftDeleteOptionsSchemaType = z.infer<typeof SoftDeleteOptionsSchema>\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kysera/soft-delete",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "Soft delete plugin for Kysely repositories",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"src"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kysera/core": "0.8.
|
|
23
|
+
"@kysera/core": "0.8.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/better-sqlite3": "^7.6.13",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"typescript": "^5.9.3",
|
|
33
33
|
"vitest": "^4.0.16",
|
|
34
34
|
"zod": "^4.2.1",
|
|
35
|
-
"@kysera/
|
|
36
|
-
"@kysera/
|
|
35
|
+
"@kysera/repository": "0.8.2",
|
|
36
|
+
"@kysera/dal": "0.8.2"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"kysely": ">=0.28.8",
|
|
40
40
|
"zod": "^4.2.1",
|
|
41
|
-
"@kysera/executor": "0.8.
|
|
41
|
+
"@kysera/executor": "0.8.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"zod": {
|
package/src/schema.ts
CHANGED
|
@@ -31,7 +31,10 @@ export const SoftDeleteOptionsSchema = z.object({
|
|
|
31
31
|
deletedAtColumn: z.string().optional(),
|
|
32
32
|
includeDeleted: z.boolean().optional(),
|
|
33
33
|
tables: z.array(z.string()).optional(),
|
|
34
|
-
|
|
34
|
+
excludeTables: z.array(z.string()).optional(),
|
|
35
|
+
primaryKeyColumn: z.string().optional(),
|
|
36
|
+
// Note: logger is not validated as it's a function interface
|
|
37
|
+
// CLI tools should handle logger separately
|
|
35
38
|
})
|
|
36
39
|
|
|
37
40
|
/**
|