Releases: thibmaek/pure-fun
Releases · thibmaek/pure-fun
2.0.0
What's Changed
- Removes Flow + Babel in favor of Typescript 2446a8f a76106c
- Uses developit/microbundle to build modules e891c8a
- Updates jest@24 02e4742
Breaking changes
- Data modules are now lowercased:
-import { Arrays } from 'pure-fun';
+import { arrays } from 'pure-fun';
arrays/head
will now act like initial did: it returns everything but the last item in an arrayarrays/initial
will now act like head did: it returns the first elementarrays/getDuplicates
was renamed toarrays/duplicates
async/simpleFetch
was renamed toasync/fetchJSON
objects/isObject
would previously also pass on functions and classes. It now only validates if your data is a plain object literalobjects/makeIterable
was removed since it does not work with microbundle/bublé at the momentobjects/parseJSON
will now return the passed input if it is a valid JS object and not JSON where it would previously return {}
New functions
async/isPromise
: Check if your data is an async type/promisefunctions/isFunction
: Check if your data is a valid callable functionisomorphics/isIterable
: Check if your data is an iterable instancemaps/isMap
: Check if your data is a Mapsets/isSet
: Check if your data is a Setstrings/isString
: Check if your data is a valid string