Skip to content

optimal@5.0.0-alpha.3

Pre-release
Pre-release

Choose a tag to compare

@milesj milesj released this 21 Sep 00:45
· 28 commits to master since this release

5.0.0-alpha.3 - 2021-09-21

💥 Breaking

🚀 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

Note: Version bump only for package optimal