ow

Function argument validation for humans

MIT License

Downloads
3.4M
Stars
3.8K
Committers
38

Bot releases are visible (Hide)

ow - Latest Release

Published by sindresorhus over 1 year ago

ow -

Published by sindresorhus about 2 years ago

  • Reduce dependency tree (#244) 4b926e8

https://github.com/sindresorhus/ow/compare/v1.0.0...v1.1.0

ow -

Published by sindresorhus about 2 years ago

  • Backport: Reduce dependency tree efe9efd

https://github.com/sindresorhus/ow/compare/v0.28.1...v0.28.2

ow -

Published by sindresorhus over 2 years ago

Breaking

  • Require Node.js 14 (#238) 391fc91
  • Require TypeScript 4.7 (if you're using TypeScript) (#238) 391fc91
  • This package is now pure ESM. Please read this.

Improvements

  • Add string.nonBlank (#227) 96207f0

Fixes

  • Throw the correct error when second argument to ow is undefined (#239) 147b479
  • Fix ow.number message when NaN is encountered (#232) 8b6a208

https://github.com/sindresorhus/ow/compare/v0.28.1...v1.0.0

ow -

Published by sindresorhus about 3 years ago

  • Fix input type on some methods and add AssertingValidator (#224) 4d3b55f

https://github.com/sindresorhus/ow/compare/v0.28.0...v0.28.1

ow -

Published by sindresorhus about 3 years ago

ow -

Published by sindresorhus over 3 years ago

  • Remove unnecessary stack reference for ow.array.ofType (#216) a87c6f0

https://github.com/sindresorhus/ow/compare/v0.26.0...v0.27.0

ow -

Published by sindresorhus over 3 years ago

  • Avoid stack inference for set, map, and object validators (#214) 4aeaf1c

https://github.com/sindresorhus/ow/compare/v0.25.0...v0.26.0

ow -

Published by sindresorhus over 3 years ago

  • Avoid unnecessary inference of stack for label (#213) 6075739
ow -

Published by sindresorhus over 3 years ago

ow -

Published by sindresorhus over 3 years ago

Breaking

  • Require Node.js 12 b2e7b9b

Improvements

  • Add ow.bigint (#212) 0441b98

https://github.com/sindresorhus/ow/compare/v0.23.1...v0.24.0

ow -

Published by sindresorhus over 3 years ago

  • Fix ow.object to return ArgumentError when null or undefined is passed (#211) 2ad149b

https://github.com/sindresorhus/ow/compare/v0.23.0...v0.23.1

ow -

Published by sindresorhus over 3 years ago

  • Add array.exactShape predicate (#187) dbef144
  • Fix performance regression (#199) 4e3340a

https://github.com/sindresorhus/ow/compare/v0.22.0...v0.23.0

ow -

Published by sindresorhus almost 4 years ago

  • Add multiple error reporting (#192) f467ee9

https://github.com/sindresorhus/ow/compare/v0.21.0...v0.22.0

ow -

Published by sindresorhus almost 4 years ago

  • Add TypeScript asserts annotations (#194) 66a4228

https://github.com/sindresorhus/ow/compare/v0.20.0...v0.21.0

ow -

Published by sindresorhus almost 4 years ago

Breaking

CommonJS users needs to change their import:

-const ow = require('ow')
+const {default: ow} = require('ow')

Improvements

  • Stop bundling e48b550
    This fixes a lot of issues. See the commit.

https://github.com/sindresorhus/ow/compare/v0.19.0...v0.20.0

ow -

Published by sindresorhus almost 4 years ago

  • Allow potentially undefined functions to be checked (#184) 06b98a5

https://github.com/sindresorhus/ow/compare/v0.18.0...v0.19.0

ow -

Published by sindresorhus about 4 years ago

Improvements

  • Add the ability to provide custom messages (#177) 57a1f5b

Fixes

  • Fix for static type error for ow.object.valuesOfType() (#185) b3c5fbd

https://github.com/sindresorhus/ow/compare/v0.17.0...v0.18.0

ow -

Published by sindresorhus over 4 years ago

  • Add ArrayBufferPredicate, DataViewPredicate, TypedArrayPredicate (#173) f010b90

https://github.com/sindresorhus/ow/compare/v0.16.0...v0.17.0

ow -

Published by sindresorhus over 4 years ago

Breaking

  • Require Node.js 10 5568d9f

Enhancements

  • Export ArgumentError 952390a
  • Allow using ow.any with ow.array.ofType ec59a5c

Fixes

  • Fix usage in the browser when using Webpack 0c0f64b

https://github.com/sindresorhus/ow/compare/v0.15.1...v0.16.0

Package Rankings
Top 0.84% on Npmjs.org
Badges
Extracted from project README
Coverage Status