Releases: dhershman1/kyanite
Releases · dhershman1/kyanite
Release list
v0.4.1
Fixed
fuzzySearchalgorithm is stable again and extremely more accurate than before- I may need to look into a better solution than I currently have for it however
v0.4.0
BREAKING CHANGES
- Renamed
getstopropsto meep the convention consistent - Renamed
includestocontainsfor strings (swapped with array) - Renamed
containstoincludesfor arrays (swapped with string) - Removed
deepClonebecauseassignultimately generates a brand new object when ran
New
- Added
joinstring function which accepts a string and an array to generate a joined string - Added
branchfunction which takes 3 functions and a value, and will run either the 2nd or 3rd function based on if the first passes - Added
apfunction which takes an array of functions to be applied to an array of data, concating the results together - Added
onfunction which takes 2 functions and 2 values, applies the 2nd function to both values and then applies the first function onto those
Improved
- Converted the function used by compact to just be
identity - Added some slight test additions to
pipe - Tweaked documentation automation to make sure the main site is always up to date
v0.3.0
Changes
findIndexreturns a maybe, so instead of a -1 if no index is found it will returnundefined
Fixes
- A few documentation fixes which also involved some missing information/categories
v0.2.2
New
- Added
encasewhich encases the provided function with try catch to safely execute the function - Added
dropwhich takes an array and drops the requested number of values from the front - Added
takewhich pulls values from an array up until the point specified (the opposite of drop) - Added
sortWithwhich takes an array of functions and goes through the array when it encounters ties with the data while sorting it
v0.2.1
New
- Added
findIndexfunction which takes a function and array and returns the first value from the array that passes the function - Added
groupByfunction which groups the values of an array into common properties of an object - Added
sortByfunction which sorts an array based on the values when ran through a function - Added
descendByfunction which accepts a function to run against values for sorting in descending order - Added
ascendByfunction which accepts a function to run against values for sorting in ascending order
v0.2.0
New
- Added
ascendfunction which can be used with sort for ascending order - Added
descendfunction which can be used with sort for descending order - Added
bothfunction which accepts 2 functions and a value, returns true if both functions pass, otherwise returns false
Improved
- Added ability to handle string numbers to
addfunction
v0.1.0
This is the official transition release from dusty-fns to kyanite rebranding.
BREAKING CHANGES (If converting from dusty-fns)
fuzzySearchparams have been swapped, so now itsfuzzySearch(needle, haystack)instead- Renamed
removeAtto justremove - Renamed
replaceAtto justupdate flattenhas been removed, consider usingconcatandconcatMapinsteaduniqnow only looks for an array, useuniqByin order to use the old functionality- Removed
clonesinceassignis essentially the same thing with more capabilities - Function params passed to
juxtshould now be contained within a single array - Changed the return of
meanso it returns 0 instead ofNaNfor bad arguments passed in isEmptynow handles values such asnull,undefined,NaN, andBooleansit will returntruefor ALL of theseemptyno longer throws an error for non "emptyables". Instead it returnsundefined
Fixed
- Addressed copy and paste errors for
prependdocs - Addressed several documentation errors
Improved
- Some more tweaks to internal documentation scripts
- Replaced
avaand converted back totape(Yay!) maxnow useslastinternally instead ofnthshould improve is seperate build size/performanceminnow usesfirstinternally instead ofnthshould improve is seperate build size/performance- Removed
functionNameinternal since it's no longer being used - Improved build size of
isEqualby removing impossible logic - Added onto
identicaldocumentation with more examples - Re-wrote
assignfor better optimization,
New
- Added
pathfunction to safely navigate objects that may or may not have properties - Added
siftfunction which works a lot likefilterbut withObjectdata types - Added
wholefunction which works a lot likeeverybut withObjectdata types - Added
anyfunction which works a lot likesomebut withObjectdata types - Added
insertfunction which inserts a data value into a specified index of an array - Added
heightfunction which works like length, however it handles object data types - Added
getsfunction which goes through an object to pull values requested in an array - Added
planfunction which takes a schema object of functions to apply to a matching object of data - Added
gtfunction which compares the passed in values to determine if one is greater than the other - Added
gtefunction which compares the passed in values to determine if one is greater than or equal to the other - Added
ltfunction which compares the passed in values to determine if one is less than the other - Added
ltefunction which compares the passed in values to determine if one is less than or equal to the other - Added
whenfunction which uses a logic function to trigger an action function if the arguments are true - Added
concatfunction which concats the values of an array to a new array - Added
concatMapfunction which applies a function to the values of an array and concats them - Added
compactfunction which takes an array and removes all falsy values from it - Added
uniqByfunction which does what the originaluniqwas built to do