@voltro/plugin-multitenancy 0.87.0 → 0.88.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/dist/guard.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Schema as e } from "effect";
2
- //#region src/guard.ts
2
+ // src/guard.ts
3
3
  var t = class extends e.TaggedError()("TenantMismatch", {
4
4
  inputTenantId: e.String,
5
5
  subjectTenantId: e.String
@@ -9,5 +9,4 @@ var t = class extends e.TaggedError()("TenantMismatch", {
9
9
  subjectTenantId: n.tenantId ?? ""
10
10
  });
11
11
  };
12
- //#endregion
13
12
  export { t as TenantMismatch, n as assertOwnTenant };
package/dist/mixin.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineMixin as e, reference as t, requireTenants as n } from "@voltro/database";
2
2
  import { audit as r } from "@voltro/plugin-audit/mixin";
3
- //#region src/mixin.ts
3
+ // src/mixin.ts
4
4
  var i = (i) => e({
5
5
  id: "voltro/tenant",
6
6
  requires: [r()],
@@ -11,5 +11,4 @@ var i = (i) => e({
11
11
  beforeInsert: () => "tenant.beforeInsert: stamp tenantId from ctx.subject.tenantId"
12
12
  }
13
13
  });
14
- //#endregion
15
14
  export { i as tenant };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/plugin-multitenancy",
3
- "version": "0.87.0",
3
+ "version": "0.88.0",
4
4
  "description": "Multi-tenancy plugin — ships the `tenant()` schema mixin (auto-scopes reads, fills tenantId on inserts) plus the `assertOwnTenant` write-guard and `TenantMismatch` typed error.",
5
5
  "keywords": [
6
6
  "voltro",
@@ -43,12 +43,12 @@
43
43
  "node": ">=24.0.0"
44
44
  },
45
45
  "dependencies": {
46
- "@voltro/database": "0.87.0",
47
- "@voltro/plugin-audit": "0.87.0",
48
- "@voltro/protocol": "0.87.0"
46
+ "@voltro/database": "0.88.0",
47
+ "@voltro/plugin-audit": "0.88.0",
48
+ "@voltro/protocol": "0.88.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "effect": "4.0.1"
51
+ "effect": "4.1.0"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"