mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-24 11:45:26 +03:00
9.1 KiB
9.1 KiB
es-toolkit Changelog
Version v1.10.1
Released on July 15th, 2024.
Version v1.10.0
Released on July 14th, 2024.
Features
- Add support for capitalize, snakeCase, kebabCase, camelCase and lowerCase. (https://github.com/toss/es-toolkit/pull/152, https://github.com/toss/es-toolkit/pull/161, https://github.com/toss/es-toolkit/pull/162, https://github.com/toss/es-toolkit/pull/166, 21d6530).
- Add support for negate. (https://github.com/toss/es-toolkit/pull/177)
- Add support for isEqual. (https://github.com/toss/es-toolkit/pull/174)
- Add support for clone. (https://github.com/toss/es-toolkit/pull/155)
- Add support for toFilled. (https://github.com/toss/es-toolkit/pull/154)
- Add support for initial and last. (https://github.com/toss/es-toolkit/pull/188, https://github.com/toss/es-toolkit/pull/149)
- Add support for flattenDeep. (https://github.com/toss/es-toolkit/pull/160)
Performance Improvements
- Optimize the performance of isNil by simplifying its check. (489ac76)
- Optimize the performance of sum. (https://github.com/toss/es-toolkit/pull/155)
Version v1.9.0
Released on July 10th, 2024.
- Add support for head and tail. (https://github.com/toss/es-toolkit/pull/131, https://github.com/toss/es-toolkit/pull/143).
- Add support for unzip. (https://github.com/toss/es-toolkit/pull/130)
- Add support for flatten, which is six times faster than
Array#flat
. (https://github.com/toss/es-toolkit/pull/147)
Version v1.8.0
Released on July 5th, 2024.
- Add support for orderBy. (https://github.com/toss/es-toolkit/pull/123)
- Add support for invert. (https://github.com/toss/es-toolkit/pull/125)
- Add support for inRange. (https://github.com/toss/es-toolkit/pull/124)
Version v1.7.1
Released on July 3rd, 2024.
- Add support for unzipWith. (https://github.com/toss/es-toolkit/pull/113)
- Add support for forEachRight. (https://github.com/toss/es-toolkit/pull/119)
- Add support for countBy. (https://github.com/toss/es-toolkit/pull/117)
- Add support for without. (https://github.com/toss/es-toolkit/pull/115)
- Add support for fill. (https://github.com/toss/es-toolkit/pull/109)
- Add support for sampleSize. (https://github.com/toss/es-toolkit/pull/101)
- Add support for meanBy. (https://github.com/toss/es-toolkit/pull/104)
- Accept number and symbol keys in keyBy and groupBy (https://github.com/toss/es-toolkit/pull/98, https://github.com/toss/es-toolkit/pull/99)
Version v1.6.1
Released on June 30th, 2024.
- Publish package on JSR.
Version v1.6.0
Released on June 30th, 2024.
Features
- Add support for keyBy. (https://github.com/toss/es-toolkit/pull/93).
- Add support for zipObject. (https://github.com/toss/es-toolkit/pull/92).
- Add support for compact. (60ae59b)
- Add support for mean. (715bc60)
Version v1.5.0
Released on June 28th, 2024.
Features
- Add support for range. (https://github.com/toss/es-toolkit/pull/77, 2db11d8).
- Add support for minBy (https://github.com/toss/es-toolkit/pull/71).
- Add support for maxBy (https://github.com/toss/es-toolkit/pull/64).
Bug fixes
- Enforce stricter argument types in
pickBy
andomitBy
. (https://github.com/toss/es-toolkit/pull/60) - Fix a bug in
difference
where one array parameter was not readonly. (https://github.com/toss/es-toolkit/pull/83) - Fix a bug in
round
where it incorrectly accepts floating-point numbers asprecision
. (https://github.com/toss/es-toolkit/pull/79)
Version v1.4.0
Released on June 15th, 2024.
Features
- Add support for random. (https://github.com/toss/es-toolkit/pull/53)
- Add support for randomInt. (99a34e4)
- Add support for using AbortSignals to cancel the
Promise
returned bydelay
. (https://github.com/toss/es-toolkit/pull/52)
Performance Optimizations
- Optimized
uniqBy
. (60e7974)
Version v1.3.1
Released on June 15th, 2024.
- Fixed a bug in
dropWhile
where it incorrectly returned the entire array when no elements matched the predicate. (https://github.com/toss/es-toolkit/pull/49)
Version v1.3.0
Released on June 14th, 2024.
Features
- Add support for using AbortSignals to cancel
debounce
d functions. (https://github.com/toss/es-toolkit/pull/45)
Performance Optimizations
- Optimize the time complexity of
intersection
. (https://github.com/toss/es-toolkit/pull/47)
Version v1.2.2
Released on June 13th, 2024.
- Add support for
readonly
arrays in array utilities. (https://github.com/toss/es-toolkit/pull/32, e595e5e) - Optimize the time complexity of
uniq
. (https://github.com/toss/es-toolkit/pull/40) - Optimize the time complexity of
intersectionBy
. (https://github.com/toss/es-toolkit/pull/44)
Version v1.2.1
Released on June 13th, 2024.
- Ensure that the
omit
andpick
functions only accept plain JavaScript objects as arguments. (https://github.com/toss/es-toolkit/pull/35)
Version v1.2.0
Released on June 8th, 2024.
Features
- Added the
noop
function. (678028dd3d
)
Performance Improvements
- Optimized the
difference
anddifferenceBy
functions for better performance with large arrays. (https://github.com/toss/es-toolkit/pull/27, https://github.com/toss/es-toolkit/pull/28)
Bug fixes
- Fixed
shuffle
to ensure it does not modify the original array. (https://github.com/toss/es-toolkit/pull/29)
Version v1.1.0
Released on June 5th, 2024.
- Support passing arguments to throttled and debounced functions. (https://github.com/toss/es-toolkit/pull/26)
Version v1.0.4
Released on June 4th, 2024.
- Provide correct type declarations for ECMAScript Modules. (https://github.com/toss/es-toolkit/pull/21)
Version v1.0.3
Released on June 3rd, 2024.
- Provide correct types for
"module": "Node"
,"Node10"
, and"Node16"
. (https://github.com/toss/es-toolkit/pull/16)
Version v1.0.2
Initial release. Released on May 31th, 2024.