mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 12:05:41 +03:00
132 lines
5.8 KiB
Markdown
132 lines
5.8 KiB
Markdown
# es-toolkit Changelog
|
|
|
|
## Version v1.7.1
|
|
|
|
Released on July 3rd, 2024.
|
|
|
|
- Add support for [unzipWith](https://es-toolkit.slash.page/reference/array/unzipWith.html). (https://github.com/toss/es-toolkit/pull/113)
|
|
- Add support for [forEachRight](https://es-toolkit.slash.page/reference/array/forEachRight.html). (https://github.com/toss/es-toolkit/pull/119)
|
|
- Add support for [countBy](https://es-toolkit.slash.page/reference/array/countBy.html). (https://github.com/toss/es-toolkit/pull/117)
|
|
- Add support for [without](https://es-toolkit.slash.page/reference/array/without.html). (https://github.com/toss/es-toolkit/pull/115)
|
|
- Add support for [fill](https://es-toolkit.slash.page/reference/array/fill.html). (https://github.com/toss/es-toolkit/pull/109)
|
|
- Add support for [sampleSize](https://es-toolkit.slash.page/reference/array/sampleSize.html). (https://github.com/toss/es-toolkit/pull/101)
|
|
- Add support for [meanBy](https://es-toolkit.slash.page/reference/math/meanBy.html). (https://github.com/toss/es-toolkit/pull/104)
|
|
- Accept number and symbol keys in [keyBy](https://es-toolkit.slash.page/reference/array/keyBy.html) and [groupBy](https://es-toolkit.slash.page/reference/array/groupBy.html) (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](https://jsr.io/@es-toolkit/es-toolkit).
|
|
|
|
## Version v1.6.0
|
|
|
|
Released on June 30th, 2024.
|
|
|
|
### Features
|
|
|
|
- Add support for [keyBy](https://es-toolkit.slash.page/reference/array/keyBy.html). (https://github.com/toss/es-toolkit/pull/93).
|
|
- Add support for [zipObject](https://es-toolkit.slash.page/reference/array/zipObject.html). (https://github.com/toss/es-toolkit/pull/92).
|
|
- Add support for [compact](https://es-toolkit.slash.page/reference/array/compact.html). ([60ae59b](https://github.com/toss/es-toolkit/commit/60ae59bcfee69992e5447322e1da9cb7631c5745))
|
|
- Add support for [mean](https://es-toolkit.slash.page/reference/math/mean.html). ([715bc60](https://github.com/toss/es-toolkit/commit/715bc60b26bb24ad490b8befe16204050699f0c0))
|
|
|
|
## Version v1.5.0
|
|
|
|
Released on June 28th, 2024.
|
|
|
|
### Features
|
|
|
|
- Add support for [range](https://es-toolkit.slash.page/reference/math/range.html). (https://github.com/toss/es-toolkit/pull/77, [2db11d8](https://github.com/toss/es-toolkit/commit/2db11d8882f6d7b0b53271c76f4c5007b6a9181e)).
|
|
- Add support for [minBy](https://es-toolkit.slash.page/reference/math/minBy.html) (https://github.com/toss/es-toolkit/pull/71).
|
|
- Add support for [maxBy](https://es-toolkit.slash.page/reference/math/maxBy.html) (https://github.com/toss/es-toolkit/pull/64).
|
|
|
|
### Bug fixes
|
|
|
|
- Enforce stricter argument types in `pickBy` and `omitBy`. (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 as `precision`. (https://github.com/toss/es-toolkit/pull/79)
|
|
|
|
## Version v1.4.0
|
|
|
|
Released on June 15th, 2024.
|
|
|
|
### Features
|
|
|
|
- Add support for [random](https://es-toolkit.slash.page/reference/math/random.html). (https://github.com/toss/es-toolkit/pull/53)
|
|
- Add support for [randomInt](https://es-toolkit.slash.page/reference/math/randomInt.html). ([99a34e4](https://github.com/toss/es-toolkit/commit/99a34e4e9944c1b843e9d97dff0b5ff4e5eec260))
|
|
- Add support for using AbortSignals to cancel the `Promise` returned by `delay`. (https://github.com/toss/es-toolkit/pull/52)
|
|
|
|
### Performance Optimizations
|
|
|
|
- Optimized `uniqBy`. ([60e7974](https://github.com/toss/es-toolkit/commit/60e79741271e645bfa551f708466e43b136f69b1))
|
|
|
|
## 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](https://github.com/toss/es-toolkit/commit/e595e5e017e1f2cb138b1ad3d708635efc5e289e))
|
|
- 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` and `pick` 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. (https://github.com/toss/es-toolkit/commit/678028dd3d60509b99dfec47aed7f1088140d19d)
|
|
|
|
### Performance Improvements
|
|
|
|
- Optimized the `difference` and `differenceBy` 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.
|