Changelog
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
radashi@beta
Details
Added
-
Add
isIntString
function by @aleclarson in fa500d3 -
Add
isPlainObject
type guard by @aleclarson in #16 -
Add
round
function by @shan-shaji in #53 -
Add
mapify
function by @cimbraien in #58 -
Add
unzip
function by @aleclarson in #64 -
Add
flip
function by @aleclarson in #35 -
Add
once
function by @aleclarson in #80 -
Add
lerp
function by @aleclarson in #86 -
Add
isMap
function by @aleclarson in 4f2e48c -
Add
isRegExp
function by @aleclarson in 58e7d96 -
Add
isSet
function by @aleclarson in 73e70c1 -
Add
isWeakSet
function by @aleclarson in aacd5be -
Add
isWeakMap
function by @aleclarson in f32cfd5 -
Add
traverse
function by @aleclarson in #59 -
Add
cloneDeep
function by @aleclarson in #81 -
Add
castMapping
function by @aleclarson in #43 -
Add
clamp
function by @aleclarson in #106 -
Add
castArray
andcastArrayIfExists
by @aleclarson in #97 -
Add
castComparator
function by @aleclarson in #34 -
Add reverse argument to
castComparator
by @aleclarson in 1d7937e -
Add
isBoolean
function by @aleclarson in adc419d -
Add
noop
andalways
functions by @aleclarson in eb77c8f -
Add
similarity
function by @aleclarson in #122 -
(throttle) Add
trigger
method to ThrottleFunction by @aleclarson in #135 -
Add isResult, isResultOk, and isResultErr functions by @aleclarson in #172
-
Add
isError
function by @aleclarson in #173
Changed
-
(intersects) Let
identity
callback return any value by @aleclarson in #11 -
(unique) Let
toKey
return any kind of value by @aleclarson in #10 -
(select) Let
condition
be undefined by @aleclarson in #9 -
Replace
matchKeys
withfilterKey
by @aleclarson in #28 -
(filterKey) Accept null/undefined filter by @aleclarson in b10ad10
-
Add selectFirst by @adamhamlin in #52
-
(pick) Accept a callback for advanced picking by @aleclarson in #30
-
(mapify) Provide an index argument to the callbacks by @aleclarson in #100
-
Use native AggregateError if available by @MarlonPassos-git in #116
Fixed
-
(retry) Stop using
range()
by @aleclarson in 5d60893 -
(assign) Remove inefficiencies in loop by @aleclarson in #13
-
(set) Avoid false positive of array index in path by @aleclarson in #15
-
(shake) Stop using
Omit
on return type and givefilter
parameter a safer type by @aleclarson in #12 -
(series) Allow
items
param to be a readonly array by @aleclarson in #14 -
Copy
is-plain-obj
implementation by @aleclarson in 08a18e2 -
Avoid
isObject
for internal use by @aleclarson in 3b6a67c -
(isArray) Work with
readonly T[]
types by @aleclarson in 88c12b6 -
(keys) Improve perf by avoiding excessive array allocations by @aleclarson in #25
-
Ensure
mapValues
andgroup
work together by @aleclarson in #24 -
Use typeof in
isFunction
by @aleclarson in 6ad96f4 -
toInt
andtoFloat
should not throw on symbols by @aleclarson in cafc7fc -
(assign) Fix overriding a nested object with null by @aleclarson in #112
-
(crush) Fix handling of period-containing property names by @stefaanv in #95
-
(toggle) Use -1 as index for
toKey()
with toggleditem
by @Minhir in #167 -
(pascal) Handle camel-cased strings correctly by @MarlonPassos-git in #178
Performance
-
Avoid excessive array allocation in
fork
by @localusercamp in #33 -
Make
template
faster by @aleclarson in #32 -
(cluster) Avoid an array allocation by @aleclarson in #63
-
(replace) Avoid creating 2 intermediate arrays by @aleclarson in #61
-
(merge) Avoid arrow function in loop and avoid calling user-provided key generator more than once per item by @aleclarson in #60
-
(replaceOrAppend) Avoid creating 2 intermediate arrays by @aleclarson in #62
Types
-
Let
filterKey
acceptkey: keyof any
by @aleclarson in 73ac8bb -
Add
TryitResult<T>
type by @aleclarson in f044364 -
Add
MemoOptions<T>
type by @aleclarson in 877a1e4 -
Export
UppercaseKeys
andLowercaseKeys
types by @aleclarson in 96b28b9 -
Let
zip
accept readonly arrays by @aleclarson in f7d93cc -
Improve the
isArray
return type forunknown
input type by @aleclarson in #72 -
select
return type when no condition is defined by @aleclarson in ab76d65 -
Add
FilteredKeys
type by @aleclarson in 6a6f899 -
Improve the return type of
filterKey
by @aleclarson in bc298c6 -
Handle tuples in
isArray
return type by @aleclarson in 9257535 -
Make
select
more option-friendly by @aleclarson in c9cfcd0 -
Remove type constraint for mapped array passed to
sum
by @MarlonPassos-git in dea0f50 -
Make
assign
return type more accurate + addAssign
type by @aleclarson in #142 -
Add Ok/Err/Result/ResultPromise types by @aleclarson in #132
-
Align
isPromise
return type with its logic by @aleclarson in #175 -
Publicize the
Falsy
type by @aleclarson in 736d334
New Contributors
- @crishoj made their first contribution in #128
- @nnmrts made their first contribution in #126
- @stefaanv made their first contribution in #95
- @eumkz made their first contribution in #76
- @cimbraien made their first contribution in #58
- @shan-shaji made their first contribution in #53
- @cdreeves made their first contribution in #37
- @localusercamp made their first contribution in #33