@zerotal/tenancy 1.9.0 → 1.10.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/api-surface.md CHANGED
@@ -278,10 +278,10 @@ interface MultiDbTenant = {
278
278
  }
279
279
 
280
280
  interface TenancyConfigShape = {
281
- connect?: (tenant: MultiDbTenant) => SQLInstance
281
+ connect?: ((tenant: MultiDbTenant) => SQLInstance) | undefined
282
282
  resolvers: TenantResolver[]
283
283
  strategy: TenancyStrategy
284
- tenantColumn?: string
284
+ tenantColumn?: string | undefined
285
285
  }
286
286
 
287
287
  interface TenantManagerOptions = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerotal/tenancy",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "license": "MIT",
5
5
  "maturity": "stable",
6
6
  "private": false,
@@ -30,8 +30,8 @@
30
30
  "typecheck": "tsc --noEmit"
31
31
  },
32
32
  "dependencies": {
33
- "@zerotal/core": "1.9.0",
34
- "@zerotal/orm": "1.9.0"
33
+ "@zerotal/core": "1.10.0",
34
+ "@zerotal/orm": "1.10.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "typescript": "^5.8.0"
package/src/types.ts CHANGED
@@ -84,7 +84,7 @@ export interface TenancyConfigShape {
84
84
  * Column name used for tenant scoping in the single-database strategy.
85
85
  * Default: 'tenant_id'.
86
86
  */
87
- tenantColumn?: string;
87
+ tenantColumn?: string | undefined;
88
88
 
89
89
  /**
90
90
  * **Multi-database strategy only — required.** Opens (or returns) the database
@@ -95,5 +95,5 @@ export interface TenancyConfigShape {
95
95
  * @example
96
96
  * connect: (tenant) => new SQL(`file:./storage/tenants/${tenant.database}`),
97
97
  */
98
- connect?: (tenant: MultiDbTenant) => SQLInstance;
98
+ connect?: ((tenant: MultiDbTenant) => SQLInstance) | undefined;
99
99
  }