Skip to content

Latest commit

 

History

History
117 lines (69 loc) · 2.85 KB

CHANGELOG.md

File metadata and controls

117 lines (69 loc) · 2.85 KB

Changelog

2.0.0 - 2022-10-08

Added

  • classNames: returns the class names of the given input and all parent classes

Updated

  • bump deps

Breaking Changes

  • require Node.js v14, drop support for Node.js v10 and v12

1.10.0 - 2022-04-25

Added

  • isClassInstance

Updated

  • bump deps

1.9.0 - 2021-12-01

Added

  • export Class and Constructor types

Updated

  • bump deps
  • use UVU and c8 for testing instead of jest

1.8.0 - 2021-10-29

Added

  • add isNotConstructor method

Updated

  • revert TypeScript typings for the isClass method to the old handling

1.7.0 - 2021-10-18

Added

  • add isConstructor method as an alias for isClass

Updated

  • revert TypeScript typings for the isClass method to the old handling

1.6.0 - 2021-10-18

Added

  • refined TypeScript typings for classes checking for a specific constructor

Updated

  • bump dependencies

1.5.0 - 2021-08-22

Added

  • refined TypeScript types narrowing the inputs

Updated

  • bump dependencies
  • moved the code to the dedicated functions without the extra class handler

1.4.0 - 2021-01-07

Added

  • className(input) method: returns the class name of the given input. Throws if the input is not a class constructor

Updated

  • bump dependencies
  • change main entrypoint in package.json to dist folder
  • move test runner from @hapi/lab to jest
  • move assertions from @hapi/code to jest

Removed

  • remove index.js file which acted as a middleman to export from dist folder

1.3.0 - 2020-06-09

Added

  • isSubclassOf method: determine whether a given class is subclassing (even in chain) a base class
    • Usage: isSubclassOf(ClassToCheck, Base)

Updated

  • bump dependencies

1.2.0 - 2020-04-14

Added

  • link types in package.json

1.1.0 - 2020-04-14

Added

  • isFunction(input) method determining whether the given input is a function

Updated

  • 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 - 2020-02-15

Added

  • 1.0.0 release 🚀 🎉