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@12.3.4 - 2025-01-26
Details
Fixed
- (reduce) Align with native reduce behavior + perf improvements by @aleclarson in #341
radashi@12.3.3 - 2025-01-11
Details
Types
- Let
mapcallback return aPromiseLikeobject by @aleclarson in #330
radashi@12.3.2 - 2025-01-10
Details
Fixed
radashi@12.3.1 - 2025-01-07
Details
Fixed
- (parallel) Avoid range error with empty array by @aleclarson in #337
radashi@12.3.0 - 2024-12-01
Details
Security
- Pin cspell version by @aleclarson in a33e5a4
Added
-
Add
signaloption toretryandparallelby @SaidbekAbdiganiev in #262 -
Add
isClassfunction by @MarlonPassos-git in #239 -
Add
isUndefinedfunction by @RobinBobin in #305 -
Add
timeoutfunction by @MarlonPassos-git in #250 -
Add
dedentfunction by @aleclarson in #120
Changed
- (parallel) Clamp the limit between 1 and array length by @MarlonPassos-git in #238
New Contributors
- @RobinBobin made their first contribution in #305
- @ilxqx made their first contribution in #277
- @SaidbekAbdiganiev made their first contribution in #262
radashi@12.2.3 - 2024-11-12
Details
Fixed
- (all) Be more lenient, reduce memory usage by @aleclarson in e6accd8
radashi@12.2.2 - 2024-11-10
Details
Types
-
Export
PromiseWithResolverstype by @aleclarson in #301 -
Improve
isEmptysignature by @MarlonPassos-git in #219 -
Improve
drawsignature for non-empty arrays by @crishoj in #153
radashi@12.2.1 - 2024-11-09
Details
Types
-
Improve signature of
shakeby @aleclarson in #293 -
mapValuesindex signature handling by @aleclarson in #297 -
Let
zipToObjectreceive readonly arrays by @aeharding in #294
New Contributors
- @aeharding made their first contribution in #294
radashi@12.2.0 - 2024-11-01
Details
Added
-
Add
isIntStringfunction by @aleclarson in fa500d3 -
Add
isPlainObjecttype guard by @aleclarson in #16 -
Add
roundfunction by @shan-shaji in #53 -
Add
mapifyfunction by @cimbraien in #58 -
Add
unzipfunction by @aleclarson in #64 -
Add
flipfunction by @aleclarson in #35 -
Add
oncefunction by @aleclarson in #80 -
Add
lerpfunction by @aleclarson in #86 -
Add
isMapfunction by @aleclarson in 4f2e48c -
Add
isRegExpfunction by @aleclarson in 58e7d96 -
Add
isSetfunction by @aleclarson in 73e70c1 -
Add
isWeakSetfunction by @aleclarson in aacd5be -
Add
isWeakMapfunction by @aleclarson in f32cfd5 -
Add
traversefunction by @aleclarson in #59 -
Add
cloneDeepfunction by @aleclarson in #81 -
Add
castMappingfunction by @aleclarson in #43 -
Add
clampfunction by @aleclarson in #106 -
Add
castArrayandcastArrayIfExistsby @aleclarson in #97 -
Add
castComparatorfunction by @aleclarson in #34 -
Add reverse argument to
castComparatorby @aleclarson in 1d7937e -
Add
isBooleanfunction by @aleclarson in adc419d -
Add
noopandalwaysfunctions by @aleclarson in eb77c8f -
Add
similarityfunction by @aleclarson in #122 -
(throttle) Add
triggermethod to ThrottleFunction by @aleclarson in #135 -
Add isResult, isResultOk, and isResultErr functions by @aleclarson in #172
-
Add
isErrorfunction by @aleclarson in #173
Changed
-
(intersects) Let
identitycallback return any value by @aleclarson in #11 -
(unique) Let
toKeyreturn any kind of value by @aleclarson in #10 -
(select) Let
conditionbe undefined by @aleclarson in #9 -
Replace
matchKeyswithfilterKeyby @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
Omiton return type and givefilterparameter a safer type by @aleclarson in #12 -
(series) Allow
itemsparam to be a readonly array by @aleclarson in #14 -
Copy
is-plain-objimplementation by @aleclarson in 08a18e2 -
Avoid
isObjectfor 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
mapValuesandgroupwork together by @aleclarson in #24 -
Use typeof in
isFunctionby @aleclarson in 6ad96f4 -
toIntandtoFloatshould 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 toggleditemby @Minhir in #167 -
(pascal) Handle camel-cased strings correctly by @MarlonPassos-git in #178
Performance
-
Avoid excessive array allocation in
forkby @localusercamp in #33 -
Make
templatefaster 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
-
(merge) Improved handling of large arrays by @Minhir in #240
Types
-
Let
filterKeyacceptkey: keyof anyby @aleclarson in 73ac8bb -
Add
TryitResult<T>type by @aleclarson in f044364 -
Add
MemoOptions<T>type by @aleclarson in 877a1e4 -
Export
UppercaseKeysandLowercaseKeystypes by @aleclarson in 96b28b9 -
Let
zipaccept readonly arrays by @aleclarson in f7d93cc -
Improve the
isArrayreturn type forunknowninput type by @aleclarson in #72 -
selectreturn type when no condition is defined by @aleclarson in ab76d65 -
Add
FilteredKeystype by @aleclarson in 6a6f899 -
Improve the return type of
filterKeyby @aleclarson in bc298c6 -
Handle tuples in
isArrayreturn type by @aleclarson in 9257535 -
Make
selectmore option-friendly by @aleclarson in c9cfcd0 -
Remove type constraint for mapped array passed to
sumby @MarlonPassos-git in dea0f50 -
Make
assignreturn type more accurate + addAssigntype by @aleclarson in #142 -
Add Ok/Err/Result/ResultPromise types by @aleclarson in #132
-
Align
isPromisereturn type with its logic by @aleclarson in #175 -
Publicize the
Falsytype by @aleclarson in 736d334 -
Avoid inferring
memoreturn type fromkeyoption by @aleclarson in #231 -
Allow readonly array in
omitfunction by @shan-shaji in #272
New Contributors
- @shan-shaji made their first contribution in #272
- @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
- @cdreeves made their first contribution in #37
- @localusercamp made their first contribution in #33