optimal

Build, validate, and transform values with immutable typed schemas.

MIT License

Downloads
256.4K
Stars
17
Committers
2

Bot releases are hidden (Show)

optimal -

Published by milesj almost 5 years ago

  • docs: Update changelog. 82dc242
  • docs: Improve wording. efe4302
  • new(string): Add lowerCase(), upperCase() checks. 51e1d90
  • new(number): Add float(), int(), negative(), and positive() checks. 0283927
  • breaking: Add type casting to checked values. 6100e10
  • Run some tests in production. 719701c
  • new: Add tuple predicate and builder. (#18) 79268d0
  • breaking: Update Node requirement to v10. (#17) 01fdae3
  • breaking: Remove public checker APIs that should not be accessible. (#16) e52a873
  • new: Add factory function support to default values. 3367e6e
  • new(array,object,string): Add new sizeOf check. 3221d93

https://github.com/milesj/optimal/compare/v3.4.0...v4.0.0-0

optimal -

Published by milesj almost 5 years ago

  • docs: Update changelogs. b3bc8c1
  • new: Add never() for all builders. 84e10f9
  • types: Update CustomCallback with a struct generic. 4b225d7
  • new(bool): Add onlyFalse() and onlyTrue() methods. e4ed3bf
  • new(string): Add camelCase(), kebabCase(), pascalCase(), and snakeCase() methods. 0681970
  • deps: Update to latest. e16b507

https://github.com/milesj/optimal/compare/v3.3.0...v3.4.0

optimal -

Published by milesj almost 5 years ago

  • fix: Fix build. d4e60de
  • fix: Fix shape objects being typed as partial. f77e798
  • fix: Improved type inferrence for string and number unions. f6a9357
  • fix: Fix null and not-null types being lost. 6e48999
  • deps: Update to latest. d80c1bd
  • Update deps and add funding. c91bc73
  • ci: Migrate to GitHub actions. (#15) 6bbc1d3
  • Replace any with unknown. 0194f0f
  • Update deps. 66eac45
  • Bump lodash.defaultsdeep from 4.6.0 to 4.6.1 (#12) af62ef7
  • Merge pull request #11 from milesj/dependabot/npm_and_yarn/js-yaml-3.13.1 9ccbbd8
  • Merge pull request #10 from milesj/dependabot/npm_and_yarn/handlebars-4.1.2 8aaa6bf
  • Bump js-yaml from 3.12.2 to 3.13.1 c706c76
  • Bump handlebars from 4.1.0 to 4.1.2 d12f273

https://github.com/milesj/optimal/compare/v3.2.1...v3.3.0

optimal -

Published by milesj over 5 years ago

  • Fix build. 8b7c457
  • Update deps. 0f4ebbe

https://github.com/milesj/optimal/compare/v3.2.0...v3.2.1

optimal -

Published by milesj over 5 years ago

  • Rename noPrefix to noErrorPrefix. 6da17e1
  • Allow checkers to update the value. aa9b4b3
  • Call optimal within shapes. Add prefix option. 7f9cb8b
  • Update deps. 3ece375

https://github.com/milesj/optimal/compare/v3.1.1...v3.2.0

optimal -

Published by milesj over 5 years ago

  • docs: Fix usage example. ce7fcab
  • deps: Bump dev tools. 984a763
  • fix: Only run string match/contains when a custom value is provided. acf1213
  • Update changelog to new format. 367f3c7
  • Quick docs fix. 93f0a3b

https://github.com/milesj/optimal/compare/v3.1.0...v3.1.1

optimal -

Published by milesj over 5 years ago

  • Fix instance of in loose mode. d98e0f9

https://github.com/milesj/optimal/compare/v2.1.0...v2.1.1

optimal -

Published by milesj over 5 years ago

  • Remove docblocks. a898148
  • Update deps. 81666d9
  • Add guides. b82fe34
  • Update usage. a5b838b
  • Fix summary. b94f335
  • Start on docs. d843e17

https://github.com/milesj/optimal/compare/v2.0.0...v2.1.0

optimal -

Published by milesj over 5 years ago

  • Add Predicates type. 4b8bbed
  • Infer all types 8723546

https://github.com/milesj/optimal/compare/v2.0.0-2...v2.0.0

Package Rankings
Top 4.03% on Npmjs.org
Badges
Extracted from project README
Build Status npm version npm deps