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/headwill now act like initial did: it returns everything but the last item in an array
- arrays/initialwill now act like head did: it returns the first element
- arrays/getDuplicateswas renamed to- arrays/duplicates
- async/simpleFetchwas renamed to- async/fetchJSON
- objects/isObjectwould previously also pass on functions and classes. It now only validates if your data is a plain object literal
- objects/makeIterablewas removed since it does not work with microbundle/bublé at the moment
- objects/parseJSONwill 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/promise
- functions/isFunction: Check if your data is a valid callable function
- isomorphics/isIterable: Check if your data is an iterable instance
- maps/isMap: Check if your data is a Map
- sets/isSet: Check if your data is a Set
- strings/isString: Check if your data is a valid string