2.0.0 - 2022-10-08
classNames
: returns the class names of the giveninput
and all parent classes
- bump deps
- require Node.js v14, drop support for Node.js v10 and v12
1.10.0 - 2022-04-25
isClassInstance
- bump deps
1.9.0 - 2021-12-01
- export
Class
andConstructor
types
- bump deps
- use UVU and c8 for testing instead of jest
1.8.0 - 2021-10-29
- add
isNotConstructor
method
- revert TypeScript typings for the
isClass
method to the old handling
1.7.0 - 2021-10-18
- add
isConstructor
method as an alias forisClass
- revert TypeScript typings for the
isClass
method to the old handling
1.6.0 - 2021-10-18
- refined TypeScript typings for classes checking for a specific constructor
- bump dependencies
1.5.0 - 2021-08-22
- refined TypeScript types narrowing the inputs
- bump dependencies
- moved the code to the dedicated functions without the extra class handler
1.4.0 - 2021-01-07
className(input)
method: returns the class name of the given input. Throws if the input is not a class constructor
- bump dependencies
- change
main
entrypoint inpackage.json
todist
folder - move test runner from
@hapi/lab
tojest
- move assertions from
@hapi/code
tojest
- remove
index.js
file which acted as a middleman to export fromdist
folder
1.3.0 - 2020-06-09
isSubclassOf
method: determine whether a given class is subclassing (even in chain) a base class- Usage:
isSubclassOf(ClassToCheck, Base)
- Usage:
- bump dependencies
1.2.0 - 2020-04-14
- link
types
inpackage.json
1.1.0 - 2020-04-14
isFunction(input)
method determining whether the giveninput
is a function
- refine code examples in Readme
- move code base to TypeScript to ship this package with typings
- add API section in Readme outlining available methods
1.0.0
release 🚀 🎉