@clipboard-health/config
Advanced tools
Comparing version 0.2.1 to 0.3.0
{ | ||
"name": "@clipboard-health/config", | ||
"description": "Type-safe static configuration management: a pure function to resolve, validate against a Zod schema, and freeze configuration values.", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"dependencies": { | ||
@@ -6,0 +6,0 @@ "decamelize": "5.0.1", |
@@ -61,5 +61,3 @@ # @clipboard-health/config <!-- omit from toc --> | ||
* Note that `z.coerce.boolean()` coerces any truthy value to `true`. To restrict to `"true" | | ||
* "false"`, use the | ||
* {@link https://github.com/ClipboardHealth/core-utils/blob/main/packages/contract-core/src/lib/schemas/booleanString.ts | ||
* `booleanString` schema} from `@clipboard-health/contract-core`. | ||
* "false"`, use the `booleanString` schema from `@clipboard-health/contract-core`. | ||
* 2. The resulting configuration is deeply frozen and will throw a runtime error if you attempt to | ||
@@ -66,0 +64,0 @@ * modify it. The actual return type is `ReadonlyDeep<SchemaT>`, but the library returns a |
@@ -26,5 +26,3 @@ import { type ConfigParams } from "./types"; | ||
* Note that `z.coerce.boolean()` coerces any truthy value to `true`. To restrict to `"true" | | ||
* "false"`, use the | ||
* {@link https://github.com/ClipboardHealth/core-utils/blob/main/packages/contract-core/src/lib/schemas/booleanString.ts | ||
* `booleanString` schema} from `@clipboard-health/contract-core`. | ||
* "false"`, use the `booleanString` schema from `@clipboard-health/contract-core`. | ||
* 2. The resulting configuration is deeply frozen and will throw a runtime error if you attempt to | ||
@@ -31,0 +29,0 @@ * modify it. The actual return type is `ReadonlyDeep<SchemaT>`, but the library returns a |
@@ -34,5 +34,3 @@ "use strict"; | ||
* Note that `z.coerce.boolean()` coerces any truthy value to `true`. To restrict to `"true" | | ||
* "false"`, use the | ||
* {@link https://github.com/ClipboardHealth/core-utils/blob/main/packages/contract-core/src/lib/schemas/booleanString.ts | ||
* `booleanString` schema} from `@clipboard-health/contract-core`. | ||
* "false"`, use the `booleanString` schema from `@clipboard-health/contract-core`. | ||
* 2. The resulting configuration is deeply frozen and will throw a runtime error if you attempt to | ||
@@ -39,0 +37,0 @@ * modify it. The actual return type is `ReadonlyDeep<SchemaT>`, but the library returns a |
Sorry, the diff of this file is not supported yet
21038
256
167