is

Type check values

MIT License

Downloads
75.8M
Stars
1.6K
Committers
52

Bot releases are visible (Hide)

is - Latest Release

Published by sindresorhus about 1 month ago

  • Fix passing in assertion message to assertArray (#210) 5565c5e

https://github.com/sindresorhus/is/compare/v7.0.0...v7.0.1

is -

Published by sindresorhus 3 months ago

Breaking

  • Require Node.js 18 0ff273f
  • Remove deprecated methods and improve Class definition (#209) 8cbcaee

Fixes

  • Fix type guard for isWhitespaceString and isEmptyStringOrWhitespace (#207) 25a3768
  • Don't depend on any Node.js types 0ff273f

https://github.com/sindresorhus/is/compare/v6.3.1...v7.0.0

is -

Published by sindresorhus 5 months ago

  • Add missing type guard for is.enumCase 0df21e4

https://github.com/sindresorhus/is/compare/v6.3.0...v6.3.1

is -

Published by sindresorhus 6 months ago

  • Support custom assertion messages (#204) f2e5834

https://github.com/sindresorhus/is/compare/v6.2.0...v6.3.0

is -

Published by sindresorhus 8 months ago

is -

Published by sindresorhus 12 months ago

  • Improve TypeScript type for isNonEmptyString() and isNonEmptyStringAndNotWhitespace() (#200) 0d4cf6f

https://github.com/sindresorhus/is/compare/v6.0.1...v6.1.0

is -

Published by sindresorhus about 1 year ago

  • directInstanceOf: Fix handling of undefined and null e7e2213

https://github.com/sindresorhus/is/compare/v6.0.0...v6.0.1

is -

Published by sindresorhus about 1 year ago

Breaking

  • Drop support for Node.js 14 (#192) e03c249
  • Changed the AssertionTypeDescription type to be a union instead of enum (#190) bd5dfda

Improvements

  • Implement named exports (#191) 5044c91
  • Rename is.domElement() to is.htmlElement() (#196) bcec30d
    • The old name still exists, but is deprecated.
  • Give better assertion messages for assert.all and assert.any (#193) 85c8992

Thanks to @bjornstar for doing most of the work for this release 🙌


https://github.com/sindresorhus/is/compare/v5.6.0...v6.0.0

is -

Published by sindresorhus about 1 year ago

is -

Published by sindresorhus over 1 year ago

  • Fix is.nonEmptyArray() type narrowing with undefined (#188) 20ad823

https://github.com/sindresorhus/is/compare/v5.5.1...v5.5.2

is -

Published by sindresorhus over 1 year ago

  • Fix type guards for assert.{truthy,falsy,nan} (#187) 9d26c02

https://github.com/sindresorhus/is/compare/v5.5.0...v5.5.1

is -

Published by sindresorhus over 1 year ago

  • Add is.positiveNumber() and is.negativeNumber() (#184) 1284da0
  • Fix type narrowing for is.nonEmptyArray() (#185) 3177d11

https://github.com/sindresorhus/is/compare/v5.4.1...v5.5.0

is -

Published by sindresorhus over 1 year ago

  • Revert exports change in package.json (#180) d1574d3
    • If you use TypeScript, make sure you have the correct config for ESM. This change will come back in the next major version.

https://github.com/sindresorhus/is/compare/v5.4.0...v5.4.1

is -

Published by sindresorhus over 1 year ago

  • Improve type guard/assertion of numericString() (#178) 888e145

https://github.com/sindresorhus/is/compare/v5.3.0...v5.4.0

is -

Published by sindresorhus about 2 years ago

  • Make nonEmptyArray() more strongly-typed 592d909

https://github.com/sindresorhus/is/compare/v5.2.0...v5.3.0

is -

Published by sindresorhus over 2 years ago

  • Improve plainObject() (#169) 45cae31

https://github.com/sindresorhus/is/compare/v5.1.0...v5.2.0

is -

Published by sindresorhus over 2 years ago

is -

Published by sindresorhus over 2 years ago

is -

Published by sindresorhus over 2 years ago

Breaking

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

Fixes

  • Fix NaN detection in .is() (#159) c408f5a

https://github.com/sindresorhus/is/compare/v4.6.0...v5.0.0

is -

Published by sindresorhus over 2 years ago