2.0.0 - 2022-10-17
resolveDefaultImport
method: returns the resolveddefault
export from module found atfilePath
without the wrapping{ default: … }
esmRequire
: not needed anymore because this package moved to ESM andesmRequire
used CommonJS. UseresolveDefaultImport
insteadesmResolve
: not needed anymore because this method is now part ofresolveDefaultImport
- bump dependencies
- moving from Japa to the native Node.js test runner
- require Node.js v20 (or later)
- moving this package from CommonJS to ESM
1.11.1 - 2022-08-19
- export
AsyncFunction
type
- fix return type of
isAsyncFunction
1.11.0 - 2022-08-19
- bump dependencies
- move testing from AVA to Japa
- refine return type for
isAsyncFunction
1.10.1 - 2022-04-04
- bump dependencies
- change main export in
package.json
todist/index.js
1.10.0 - 2021-08-19
isNotNullish(input)
method determining whether the giveninput
is notnull
orundefined
- bump dependencies
- refined types for
isNullish
,isPromise
,isFunction
1.9.0 - 2021-04-11
- bump dependencies
- refactored the
Goodies
class to individual methods - this package now exports individual methods making the package tree-shakable and usable in bundled environments
- move test runner from
jest
toAVA
(avoiding globals and using explicit methods instead)
1.8.0 - 2021-01-05
esmRequire(input)
method requires and returns the resolved export ofinput
from ESM and CommonJS
- bump dependencies
1.7.0 - 2020-12-15
isNullish(input)
method to determine whether the giveninput
isnull
orundefined
- bump dependencies
1.6.2 - 2020-12-10
- fixed
Boolean
method return types toboolean
1.6.1 - 2020-12-10
- fixed overloaded method typings for
tap
andupon
1.6.0 - 2020-12-10
isFunction(input)
method determines whether the giveninput
is a functionesmResolve(input)
method returns the resolved export ofinput
from ESM and CommonJS
- bump dependencies
- change
main
entrypoint inpackage.json
todist
folder - move test runner from
@hapi/lab
tojest
- move assertions from
@hapi/code
tojest
1.5.1 - 2020-07-21
- fixed the GitHub Action workflow to successfully publish the package in the GitHub Package Registry
1.5.0 - 2020-07-21
ifNullish(predicate, callback)
method running thecallback
function if the givenpredicate
isundefined
ornull
- bump dependencies
- improved type definitions on
upon
for returned values allowing IntelliSense to kick in
1.4.0 - 2020-05-23
- refined typings for async and sync functions
1.3.0 - 2020-05-22
- typed
tap
function keeping the argument’s type as the return type
1.2.0 - 2020-05-12
isAsyncFunction(input)
method determining whether the giveninput
is an async function- testing against Node.js v14
- bump dependencies
- move tests back to JavaScript
tap(value, callback)
now only returns a Promise when the value is a promise or the callback is an async function. Otherwise, tap behaves synchronouslyupon(value, callback)
now only returns a Promise when the value is a promise or the callback is an async function. Otherwise, upon behaves synchronously
- testing against Node.js v13
1.1.0 - 2020-04-15
upon(value, callback)
method:upon
calls the givencallback
function with thevalue
and returns the result of the callbacktap
the value when a promise as the first argument before passing it to the callbackisPromise(input)
method: determine whether the giveninput
is a promise
- move code base to TypeScript to ship this package with typings
- add API section in Readme outlining available methods
1.0.0
release 🚀 🎉