es-toolkit 1.50.0-dev.2064 → 1.51.0-dev.2065
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +82 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,87 @@
|
|
|
1
1
|
# es-toolkit Changelog
|
|
2
2
|
|
|
3
|
+
## Version v1.51.0
|
|
4
|
+
|
|
5
|
+
Released on August 17th, 2026.
|
|
6
|
+
|
|
7
|
+
- Added the `es-toolkit/bigint` entrypoint: `bigint` counterparts of the math
|
|
8
|
+
functions (`sum`, `sumBy`, `max`, `min`, `maxBy`, `minBy`, `clamp`, `inRange`,
|
|
9
|
+
`median`, `medianBy`, `percentile`, `range`, `rangeRight`), kept separate so
|
|
10
|
+
the `number` implementations stay unchanged. ([#1966])
|
|
11
|
+
- Added `dedent`, which removes common leading whitespace from template strings. ([#1679])
|
|
12
|
+
- Added `deepFreeze` for recursively freezing objects. ([#1680])
|
|
13
|
+
- Added `mapValuesAsync` and `mapKeysAsync`. ([#1544])
|
|
14
|
+
- Added `toPascalCaseKeys`, `toKebabCaseKeys`, and `toConstantCaseKeys`,
|
|
15
|
+
completing the object key casing family. ([#1984])
|
|
16
|
+
- Exported the `ToCamelCaseKeys`, `ToPascalCaseKeys`, `ToSnakeCaseKeys`,
|
|
17
|
+
`ToKebabCaseKeys`, and `ToConstantCaseKeys` types. ([#1651])
|
|
18
|
+
- Added a `preserveArrays` option to `flattenObject`. ([#974])
|
|
19
|
+
|
|
20
|
+
- Fixed `retry` to pass the last error to the `delay` callback ([#1759]) and to
|
|
21
|
+
throw the last attempt's error without applying a final delay ([#1901]).
|
|
22
|
+
- Fixed `mergeWith` and `toMerged` to handle mixed array/object types
|
|
23
|
+
consistently with `merge`. ([#2026])
|
|
24
|
+
- Fixed `pullAt` to remove the correct elements with negative indices. ([#1613])
|
|
25
|
+
- Fixed `at`, `pullAt`, `orderBy`, and `sortBy` to accept readonly arrays. ([#2016])
|
|
26
|
+
- Moved `limitAsync` from the array to the promise category. ([#2022])
|
|
27
|
+
- Included the NOTICE file in the published npm and JSR packages. ([#2020])
|
|
28
|
+
|
|
29
|
+
The following bring `es-toolkit/compat` closer to Lodash. Behavior for the affected
|
|
30
|
+
edge cases now matches Lodash, so results may differ if you relied on the previous output.
|
|
31
|
+
|
|
32
|
+
- Added `entries` and `entriesIn`. ([#1874])
|
|
33
|
+
- Fixed `compat/isMatch` and `compat/isMatchWith` to handle object source
|
|
34
|
+
patterns against primitive and non-plain-object targets like Lodash. ([#1432])
|
|
35
|
+
- Fixed `compat/set` to block `constructor.prototype` paths, preventing
|
|
36
|
+
prototype pollution. ([#1904])
|
|
37
|
+
- Fixed `compat/find` to respect array-like `length` ([#1958]) and to convert
|
|
38
|
+
`fromIndex` to an integer ([#1961]), and `compat/indexOf` to convert
|
|
39
|
+
`fromIndex` to an integer when searching for `NaN` ([#1951]).
|
|
40
|
+
- Fixed `compat/orderBy` to resolve unresolved deep paths and nullish elements
|
|
41
|
+
to `undefined` ([#2010]), to exclude the `length` property from array-like
|
|
42
|
+
values ([#2002]), and to read the criterion property from primitive values ([#1903]).
|
|
43
|
+
- Fixed `compat/toPath` to split unquoted dotted keys inside brackets. ([#1899])
|
|
44
|
+
- Fixed `compat/omit` to treat a key array as a single deep path. ([#1902])
|
|
45
|
+
- Fixed `compat/map` to make the iteratee optional with an identity default. ([#1928])
|
|
46
|
+
- Fixed `compat/size` to count combined Unicode symbols as single characters. ([#1900])
|
|
47
|
+
- Fixed `compat/intersectionBy` to support number, object, and nullish iteratee
|
|
48
|
+
shorthands ([#1993]), and `compat/intersectionWith` to apply the comparator
|
|
49
|
+
when deduplicating the first array ([#1953]).
|
|
50
|
+
- Fixed `compat/difference`, `compat/differenceBy`, `compat/uniqBy`, and
|
|
51
|
+
`compat/unionBy` to normalize `-0` to `0`. ([#2007])
|
|
52
|
+
- Fixed `compat/maxBy` and `compat/minBy` to skip nullish iteratee values ([#1927]),
|
|
53
|
+
and `compat/meanBy` to skip `undefined` values when averaging ([#1978]).
|
|
54
|
+
- Fixed `compat/some`, `compat/template` ([#2009]), and `compat/fill` ([#1952])
|
|
55
|
+
to gate guard handling with `isIterateeCall`.
|
|
56
|
+
- Fixed `compat/iteratee` to treat a boolean as a property shorthand. ([#1941])
|
|
57
|
+
- Fixed `compat/reverse` to support array-like objects and `arguments`. ([#2008])
|
|
58
|
+
- Fixed `compat/toArray` to convert non-array-like iterables. ([#1999])
|
|
59
|
+
- Fixed `compat/toString` to render nested nullish values like Lodash. ([#1992])
|
|
60
|
+
- Fixed `compat/zipObject` to treat `null` keys and values as empty arrays. ([#2005])
|
|
61
|
+
- Fixed `compat/sampleSize` to clamp the default size to the collection length. ([#2003])
|
|
62
|
+
- Fixed `compat/takeWhile`, `compat/takeRightWhile`, and `compat/uniqBy` to
|
|
63
|
+
support string inputs. ([#2004])
|
|
64
|
+
- Fixed `compat/chunk` to return an empty array for an empty collection with an
|
|
65
|
+
`Infinity` size. ([#1995])
|
|
66
|
+
- Fixed `compat/lastIndexOf` to read holes in sparse arrays as `undefined`. ([#1977])
|
|
67
|
+
- Fixed `compat/last` to return `undefined` for empty array-like inputs. ([#1954])
|
|
68
|
+
- Fixed `compat/pullAll` to return the array as-is when `values` is nullish. ([#1962])
|
|
69
|
+
|
|
70
|
+
- Added a browser compatibility test suite. ([#2012])
|
|
71
|
+
- Improved documentation, JSDoc accuracy, tests, and internal refactoring across
|
|
72
|
+
`compat` and the docs site. ([#1622], [#1789], [#1824], [#1844], [#1849],
|
|
73
|
+
[#1854], [#1855], [#1859], [#1860], [#1868], [#1871], [#1887], [#1898],
|
|
74
|
+
[#1933], [#1939], [#1947], [#1950], [#1955], [#1956], [#1957], [#1960],
|
|
75
|
+
[#1963], [#1964], [#1968], [#1969], [#1970], [#1972], [#1979], [#1985],
|
|
76
|
+
[#2000], [#2001], [#2021], [#2025], [#2027])
|
|
77
|
+
|
|
78
|
+
We sincerely thank @Antoliny0919, @D-Sketon, @kojesung, @chuenchen309,
|
|
79
|
+
@mariazuheros, @DongEun02, @raon0211, @sukvvon, @racgoo, @dayongkr, @Kropiunig,
|
|
80
|
+
@ssi02014, @sarathfrancis90, @mym0404, @mlnwns, @kdelay, @gwagjiug, @dohwi,
|
|
81
|
+
@blro0319, @benedictleejh, @amir-rezaei, @ianzone, @sen2y, @rossyman,
|
|
82
|
+
@eunwoo-levi, @ramong26, @Gdm0714, and everyone else who contributed.
|
|
83
|
+
We appreciate your great efforts!
|
|
84
|
+
|
|
3
85
|
## Version v1.50.0
|
|
4
86
|
|
|
5
87
|
Released on July 24th, 2026.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-toolkit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.51.0-dev.2065+5dc4477f",
|
|
4
4
|
"description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
|
|
5
5
|
"homepage": "https://es-toolkit.dev",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|