@kysera/rls 0.8.2 → 0.8.3

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 (2) hide show
  1. package/dist/index.d.ts +17 -3
  2. package/package.json +11 -6
package/dist/index.d.ts CHANGED
@@ -719,13 +719,27 @@ interface RLSPluginOptions<DB = unknown> {
719
719
  * Note: 'schema' and 'onViolation' are not included as they are complex runtime objects.
720
720
  */
721
721
  declare const RLSPluginOptionsSchema: z.ZodObject<{
722
- excludeTables: z.ZodOptional<z.ZodArray<z.ZodString>>;
723
- bypassRoles: z.ZodOptional<z.ZodArray<z.ZodString>>;
722
+ excludeTables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
723
+ bypassRoles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
724
724
  requireContext: z.ZodOptional<z.ZodBoolean>;
725
725
  allowUnfilteredQueries: z.ZodOptional<z.ZodBoolean>;
726
726
  auditDecisions: z.ZodOptional<z.ZodBoolean>;
727
727
  primaryKeyColumn: z.ZodOptional<z.ZodString>;
728
- }, z.core.$strip>;
728
+ }, "strip", z.ZodTypeAny, {
729
+ excludeTables?: string[] | undefined;
730
+ bypassRoles?: string[] | undefined;
731
+ requireContext?: boolean | undefined;
732
+ allowUnfilteredQueries?: boolean | undefined;
733
+ auditDecisions?: boolean | undefined;
734
+ primaryKeyColumn?: string | undefined;
735
+ }, {
736
+ excludeTables?: string[] | undefined;
737
+ bypassRoles?: string[] | undefined;
738
+ requireContext?: boolean | undefined;
739
+ allowUnfilteredQueries?: boolean | undefined;
740
+ auditDecisions?: boolean | undefined;
741
+ primaryKeyColumn?: string | undefined;
742
+ }>;
729
743
  /**
730
744
  * Create RLS plugin for Kysera
731
745
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kysera/rls",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Row-Level Security plugin for Kysely - declarative policies, query transformation, native RLS support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,8 +21,9 @@
21
21
  ],
22
22
  "peerDependencies": {
23
23
  "kysely": ">=0.28.8",
24
- "@kysera/executor": "0.8.2",
25
- "@kysera/repository": "0.8.2"
24
+ "zod": ">=3.0.0",
25
+ "@kysera/executor": "0.8.3",
26
+ "@kysera/repository": "0.8.3"
26
27
  },
27
28
  "peerDependenciesMeta": {
28
29
  "@kysera/executor": {
@@ -30,10 +31,13 @@
30
31
  },
31
32
  "@kysera/repository": {
32
33
  "optional": true
34
+ },
35
+ "zod": {
36
+ "optional": false
33
37
  }
34
38
  },
35
39
  "dependencies": {
36
- "@kysera/core": "0.8.2"
40
+ "@kysera/core": "0.8.3"
37
41
  },
38
42
  "devDependencies": {
39
43
  "@types/better-sqlite3": "^7.6.13",
@@ -47,8 +51,9 @@
47
51
  "tsup": "^8.5.1",
48
52
  "typescript": "^5.9.3",
49
53
  "vitest": "^4.0.16",
50
- "@kysera/repository": "0.8.2",
51
- "@kysera/executor": "0.8.2"
54
+ "zod": "^3.24.2",
55
+ "@kysera/executor": "0.8.3",
56
+ "@kysera/repository": "0.8.3"
52
57
  },
53
58
  "keywords": [
54
59
  "kysely",