@zerotal/core 1.7.3 → 1.7.4
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 +4 -0
- package/api-surface.md +10 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,8 @@ follows the Zerotal monorepo's unified versioning.
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [1.7.3] — 2026-08-20
|
|
12
|
+
|
|
11
13
|
### Fixed
|
|
12
14
|
|
|
13
15
|
- **`make:request` generates a file that compiles.** The stub imported `@zerotal/validator`,
|
|
@@ -37,6 +39,8 @@ follows the Zerotal monorepo's unified versioning.
|
|
|
37
39
|
actually installs. Each generator's own test had only checked that the output mentioned the
|
|
38
40
|
class being made, which is why none of this showed.
|
|
39
41
|
|
|
42
|
+
## [1.7.2] — 2026-08-18
|
|
43
|
+
|
|
40
44
|
### Added
|
|
41
45
|
|
|
42
46
|
- **`@zerotal/core/errors`** — a subpath for the error classes, so a module that can run in a
|
package/api-surface.md
CHANGED
|
@@ -1112,7 +1112,7 @@ type AppScopeInstaller = () => () => void
|
|
|
1112
1112
|
|
|
1113
1113
|
type ArgDef = { name: string; required?: boolean; default?: string;}
|
|
1114
1114
|
|
|
1115
|
-
type BindingToken =
|
|
1115
|
+
type BindingToken = ClassToken<T> | AbstractToken<T> | keyof ContainerBindings
|
|
1116
1116
|
|
|
1117
1117
|
type ClassRef = abstract new (...args: never[]) => unknown
|
|
1118
1118
|
|
|
@@ -1140,7 +1140,7 @@ type FileRouteResolver = (ctx: FileRouteContext) => boolean
|
|
|
1140
1140
|
|
|
1141
1141
|
type FileRoutingConfig = { [x: string]: FileRoutingEntry;}
|
|
1142
1142
|
|
|
1143
|
-
type FileRoutingEntry = string | {
|
|
1143
|
+
type FileRoutingEntry = string | { dir: string; prefix?: string; middleware?: MiddlewareInput }
|
|
1144
1144
|
|
|
1145
1145
|
type FlagDef = { name: string; short?: string; type: 'string' | 'boolean' | 'number'; description?: string; default?: unknown;}
|
|
1146
1146
|
|
|
@@ -1178,7 +1178,7 @@ type RouteTarget = string
|
|
|
1178
1178
|
|
|
1179
1179
|
type RoutingConfig = { [x: string]: RoutingEntry;}
|
|
1180
1180
|
|
|
1181
|
-
type RoutingEntry = string | {
|
|
1181
|
+
type RoutingEntry = string | { file: string; prefix?: string; middleware?: MiddlewareInput }
|
|
1182
1182
|
|
|
1183
1183
|
type SameSite = 'Strict' | 'Lax' | 'None'
|
|
1184
1184
|
|
|
@@ -2429,7 +2429,7 @@ interface RegisteredConfigValidator = {
|
|
|
2429
2429
|
validate: ConfigValidator
|
|
2430
2430
|
}
|
|
2431
2431
|
|
|
2432
|
-
type AssetLoaderKind = '
|
|
2432
|
+
type AssetLoaderKind = 'file' | 'dataurl' | 'base64' | 'text' | 'json' | 'toml'
|
|
2433
2433
|
|
|
2434
2434
|
type ConfigIssueLevel = 'error' | 'warning'
|
|
2435
2435
|
|
|
@@ -2646,7 +2646,7 @@ const t = { readonly string: () => Def<string | undefined>; readonly numbe
|
|
|
2646
2646
|
|
|
2647
2647
|
type EnvOutput = { readonly [K in keyof S]: InferDef<S[K]>; }
|
|
2648
2648
|
|
|
2649
|
-
type FieldType = 'string' | 'number' | 'boolean' | '
|
|
2649
|
+
type FieldType = 'string' | 'number' | 'boolean' | 'enum' | 'url' | 'port'
|
|
2650
2650
|
|
|
2651
2651
|
type InferDef = D extends Def<infer T> ? T : never
|
|
2652
2652
|
|
|
@@ -3197,7 +3197,7 @@ interface WebContext = {
|
|
|
3197
3197
|
view: (markup: string | { toString(): string;}, status?: number) => void
|
|
3198
3198
|
}
|
|
3199
3199
|
|
|
3200
|
-
type AnsiColor = '
|
|
3200
|
+
type AnsiColor = 'red' | 'green' | 'yellow' | 'blue' | 'cyan' | 'dim'
|
|
3201
3201
|
|
|
3202
3202
|
type Channel = 'web' | 'json' | 'cli'
|
|
3203
3203
|
|
|
@@ -3458,11 +3458,11 @@ interface LoggingConfigShape = {
|
|
|
3458
3458
|
slowQueryMs?: number
|
|
3459
3459
|
}
|
|
3460
3460
|
|
|
3461
|
-
type ChannelConfig = {
|
|
3461
|
+
type ChannelConfig = { driver: 'console'; level?: LogLevel; format?: 'json' | 'pretty' } | { driver: 'single'; level?: LogLevel; path: string } | { driver: 'daily'; level?: LogLevel; path: string; days?: number } | { driver: 'stack'; level?: LogLevel; channels: string[] } | { driver: 'null' }
|
|
3462
3462
|
|
|
3463
|
-
type LogLevel = '
|
|
3463
|
+
type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'fatal'
|
|
3464
3464
|
|
|
3465
|
-
type TableData = Record<string, unknown> |
|
|
3465
|
+
type TableData = Record<string, unknown> | ReadonlyArray<Record<string, unknown>>
|
|
3466
3466
|
|
|
3467
3467
|
## ./macros/config `(./src/macros/config.macro.ts)`
|
|
3468
3468
|
|
|
@@ -3564,7 +3564,7 @@ interface RedactGraphOptions = {
|
|
|
3564
3564
|
tooDeep: string
|
|
3565
3565
|
}
|
|
3566
3566
|
|
|
3567
|
-
type HashAlgorithm = '
|
|
3567
|
+
type HashAlgorithm = 'argon2id' | 'argon2i' | 'argon2d' | 'bcrypt'
|
|
3568
3568
|
|
|
3569
3569
|
## ./storage `(./src/storage/index.ts)`
|
|
3570
3570
|
|