optimal@5.0.0-alpha.3
Pre-release
Pre-release
·
28 commits
to master
since this release
5.0.0-alpha.3 - 2021-09-21
💥 Breaking
- Implement an immutable API. (#37) (d1f12ba), closes #37
- Migrate to ESM only. (5a7b10a)
- Rework optimal() API. (e1edef8)
🚀 Updates
- Add default value callbacks for lazy init. (89115c0)
- Add lazy() schema. (0fca859)
- Add new Infer type. (b0c42db)
- Add when() criteria. (8ffb9c8)
- Added keysOf() to objects. (186d509)
- Collect all errors instead of failing on the first. (#38) (61ce05f), closes #38
🐞 Fixes
- Allow empty strings for oneOf(). (67fddaf)
- Pass path to custom callbacks. (fa2800a)
- Remove default value from shape(). (96905e2)
- Remove default value from tuple(). (97ec98b)
- Remove schemas from union() call. (c71191e)
- Switch to any function for consumers. (628e513)
⚙️ Types
- Improve deep partial. (f36807b)
- Update of to use generics for value. (a582bf6)
- Update schema validation to use unknown. (72269c4)
- Update to use Required. (cdce9b7)
- Use new 'abstract new' constructor type. (a2a1e4f)
📦 Dependencies
- [packemon] Update to v1.5. (06bea75)
🛠 Internals
- Add Lerna for releasing. (afa13e4)
- Remove DEV checks. (4887f65)
- Revert esm migration. (ec46014)
- Switch to a monorepo. (#36) (52b7140), closes #36
Note: Version bump only for package optimal