12 lines
436 B
Markdown
12 lines
436 B
Markdown
---
|
|
"effect": patch
|
|
---
|
|
|
|
Simplify and align the default-value APIs.
|
|
|
|
`Schema.withConstructorDefault` now accepts an `Effect<T>` instead of `(o: Option<undefined>) => Option<T> | Effect<Option<T>>`.
|
|
|
|
`Schema.withDecodingDefault` / `Schema.withDecodingDefaultKey` now accept an `Effect<T>` instead of `() => T`, enabling effectful defaults.
|
|
|
|
`SchemaGetter.withDefault` follows the same change, accepting `Effect<T>` instead of `() => T`.
|