Skip to content

Commit

Permalink
CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ikitommi committed Nov 27, 2021
1 parent 89bdfc5 commit 7b85929
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,32 @@ New optimized map-syntax to super-fast schema creation, see [README](README.md#m

Will fully replace the old map-syntax at some point.

## Swappable default registry

No need to play with Compiler options or JVM properties to swap the default registry (only if you want to get DCE on CLJS with small set of schemas). Can be disabled with new `malli.registry/mode=strict` option.

```clj
(require '[malli.core :as m]
'[malli.util :as mu]
'[malli.registry :as mr]
'[malli.generator :as mg])

;; look ma, just works
(mr/set-default-registry!
(mr/composite-registry
(m/default-schemas)
(mu/schemas)))

(mg/generate
[:merge
[:map [:x :int]]
[:map [:y :int]]])
; => {:x 0, :y 92}
```

### Public API

* configure default registry in less invasive manner, [#488](https://github.com/metosin/malli/issues/488)
* `nil` is a valid default with `mt/default-value-transformer` [#576](https://github.com/metosin/malli/issues/576)
* fixed `:schema` explain path, [#573](https://github.com/metosin/malli/issues/573)
* fixed `:enum` explain path, [#553](https://github.com/metosin/malli/issues/553)
Expand Down

0 comments on commit 7b85929

Please sign in to comment.