@zerotal/tenancy 1.8.1 → 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/CHANGELOG.md +10 -0
- package/api-surface.md +2 -2
- package/package.json +3 -3
- package/src/types.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,16 @@ follows the Zerotal monorepo's unified versioning.
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [1.9.0] — 2026-08-29
|
|
12
|
+
|
|
13
|
+
### Documented
|
|
14
|
+
|
|
15
|
+
- **Every promised export is documented.** The `docs-coverage` gate reads `maturity: stable` as a
|
|
16
|
+
promise about a package's exports, and measures how much of that promise is written down. It
|
|
17
|
+
was 798 gaps across the suite; it is now zero. This package's share is covered on its own
|
|
18
|
+
pages — types named, options shapes described, and the decisions behind them recorded where
|
|
19
|
+
somebody looking for them will find them.
|
|
20
|
+
|
|
11
21
|
## [1.5.0] — 2026-08-15
|
|
12
22
|
|
|
13
23
|
### Added
|
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.
|
|
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.
|
|
34
|
-
"@zerotal/orm": "1.
|
|
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
|
}
|