Skip to content

Releases: Hexafuchs/what.js

v1.0.1

08 Aug 11:01
dfa9e23
Compare
Choose a tag to compare

What's Changed

  • Replaced dts generator
  • Replaced node:assert with own assertion error
  • Replaced import * as with destructuring imports

On The Side

  • Updated workflows
  • Updated development packages
  • Updated configuration files

Full Changelog: v1.0.0...v1.0.1

v1.0.0

30 Jul 14:47
Compare
Choose a tag to compare

What's Changed

  • renamed isSet and isNotSet to isPresent and isNotPresent to prevent clashes with the Set data type
  • fixed bugs with isEmpty/isNotEmpty and added support for sets and maps
  • removed special treatment of arrays in isObject
  • reorganized folder structure

What's New

  • added isAccepted, isDenied, isMissing and isNumeric, which check if the value is likely meant to be interpreted, like "true" as string probably should be interpreted as boolean for config values
  • added containsValue and containsKey for objects, maps, sets, and arrays
  • added hasFunction to check if a variable has a function
  • added isSet, isMap, isDate, isRegExp, isError and isPromise (all special cases of an object)
  • added isBigInt and isNumericPrimitive to support BigInt
  • added Typescript safe guards where applicable
  • added versions of every function as Assertion, with Typescript CFA support if applicable
  • added function aliases

On The Side

  • added proper documentation
  • improved docstrings
  • 100% coverage in every category of vitest

Full Changelog: v0.1.3...v1.0.0

v0.1.3

14 Jul 15:44
Compare
Choose a tag to compare

What's Changed

  • Fixed issue with npm publish workflow

Full Changelog: v0.1.1...v0.1.3

v0.1.2

14 Jul 15:39
Compare
Choose a tag to compare

What's Changed

  • Fixed naming issue when building library

Full Changelog: v0.1.1...v0.1.2

v0.1.1

14 Jul 15:35
Compare
Choose a tag to compare

What's Changed

  • Fixed workflow for releases

Full Changelog: v0.1.0...v0.1.1

v0.1.0

14 Jul 15:27
Compare
Choose a tag to compare
  • Added isNull
  • Added isUndefined
  • Added isNumber
  • Added isString
  • Added isObject
  • Added isArray
  • Added isBoolean
  • Added isFunction
  • Added isSet
  • Added isNotSet
  • Added isEmpty
  • Added isNotEmpty

Full Changelog: https://github.com/Hexafuchs/what.js/commits/v0.1.0