es-toolkit 1.9.0-dev.201 → 1.10.0-dev.202
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 +22 -1
- package/dist/array/index.mjs +33 -33
- package/dist/function/index.mjs +6 -6
- package/dist/index.mjs +65 -65
- package/dist/math/index.mjs +8 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# es-toolkit Changelog
|
|
2
2
|
|
|
3
|
+
## Version v1.10.0
|
|
4
|
+
|
|
5
|
+
Released on July 14th, 2024.
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
- Add support for [capitalize](https://es-toolkit.slash.page/reference/string/capitalize.html), [snakeCase](https://es-toolkit.slash.page/reference/string/snakeCase.html), [kebabCase](https://es-toolkit.slash.page/reference/string/kebabCase.html), [camelCase](https://es-toolkit.slash.page/reference/string/camelCase.html) and [lowerCase](https://es-toolkit.slash.page/reference/string/lowerCase.html). (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](https://github.com/toss/es-toolkit/commit/21d6530e16471d596410d57d59fd3ced8fc5569f)).
|
|
11
|
+
- Add support for [negate](https://es-toolkit.slash.page/reference/function/negate.html). (https://github.com/toss/es-toolkit/pull/177)
|
|
12
|
+
- Add support for [isEqual](https://es-toolkit.slash.page/reference/predicate/isEqual.html). (https://github.com/toss/es-toolkit/pull/174)
|
|
13
|
+
- Add support for [clone](https://es-toolkit.slash.page/reference/object/clone.html). (https://github.com/toss/es-toolkit/pull/155)
|
|
14
|
+
- Add support for [toFilled](https://es-toolkit.slash.page/reference/array/toFilled.html). (https://github.com/toss/es-toolkit/pull/154)
|
|
15
|
+
- Add support for [initial](https://es-toolkit.slash.page/reference/array/initial.html) and [last](https://es-toolkit.slash.page/reference/array/last.html). (https://github.com/toss/es-toolkit/pull/188, https://github.com/toss/es-toolkit/pull/149)
|
|
16
|
+
- Add support for [flattenDeep](https://es-toolkit.slash.page/reference/array/flattenDeep.html). (https://github.com/toss/es-toolkit/pull/160)
|
|
17
|
+
|
|
18
|
+
### Performance Improvements
|
|
19
|
+
|
|
20
|
+
- Optimize the performance of [isNil](https://es-toolkit.slash.page/reference/predicate/isNil.html) by simplifying its check. ([489ac76](https://github.com/toss/es-toolkit/commit/489ac76fc62f97cbfa3ca9eec2e0a4c03c4f5b1c))
|
|
21
|
+
- Optimize the performance of [sum](https://es-toolkit.slash.page/reference/array/sum.html). (https://github.com/toss/es-toolkit/pull/155)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
3
25
|
## Version v1.9.0
|
|
4
26
|
|
|
5
27
|
Released on July 10th, 2024.
|
|
@@ -8,7 +30,6 @@ Released on July 10th, 2024.
|
|
|
8
30
|
- Add support for [unzip](https://es-toolkit.slash.page/reference/array/unzip.html). (https://github.com/toss/es-toolkit/pull/130)
|
|
9
31
|
- Add support for [flatten](https://es-toolkit.slash.page/reference/array/flatten.html), which is six times faster than `Array#flat`. (https://github.com/toss/es-toolkit/pull/147)
|
|
10
32
|
|
|
11
|
-
|
|
12
33
|
## Version v1.8.0
|
|
13
34
|
|
|
14
35
|
Released on July 5th, 2024.
|
package/dist/array/index.mjs
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import "../chunk-2MRZANXZ.mjs";
|
|
2
|
-
import {
|
|
3
|
-
xor
|
|
4
|
-
} from "../chunk-L7FQX5MN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
xorBy
|
|
7
|
-
} from "../chunk-Q47NGNXT.mjs";
|
|
8
2
|
import {
|
|
9
3
|
xorWith
|
|
10
4
|
} from "../chunk-QRSJBBFY.mjs";
|
|
@@ -17,18 +11,9 @@ import {
|
|
|
17
11
|
import {
|
|
18
12
|
zipWith
|
|
19
13
|
} from "../chunk-4KYXHZ4R.mjs";
|
|
20
|
-
import {
|
|
21
|
-
unionBy
|
|
22
|
-
} from "../chunk-NFS7RWWE.mjs";
|
|
23
|
-
import {
|
|
24
|
-
unionWith
|
|
25
|
-
} from "../chunk-2ZCITDMK.mjs";
|
|
26
14
|
import {
|
|
27
15
|
uniqBy
|
|
28
16
|
} from "../chunk-OXAZEEGP.mjs";
|
|
29
|
-
import {
|
|
30
|
-
uniqWith
|
|
31
|
-
} from "../chunk-237HGSZS.mjs";
|
|
32
17
|
import {
|
|
33
18
|
unzip
|
|
34
19
|
} from "../chunk-UYZKMBDO.mjs";
|
|
@@ -39,11 +24,11 @@ import {
|
|
|
39
24
|
without
|
|
40
25
|
} from "../chunk-PYEYV7BY.mjs";
|
|
41
26
|
import {
|
|
42
|
-
|
|
43
|
-
} from "../chunk-
|
|
27
|
+
xor
|
|
28
|
+
} from "../chunk-L7FQX5MN.mjs";
|
|
44
29
|
import {
|
|
45
|
-
|
|
46
|
-
} from "../chunk-
|
|
30
|
+
xorBy
|
|
31
|
+
} from "../chunk-Q47NGNXT.mjs";
|
|
47
32
|
import {
|
|
48
33
|
take
|
|
49
34
|
} from "../chunk-ME352XO7.mjs";
|
|
@@ -66,11 +51,14 @@ import {
|
|
|
66
51
|
uniq
|
|
67
52
|
} from "../chunk-DVK2N4KC.mjs";
|
|
68
53
|
import {
|
|
69
|
-
|
|
70
|
-
} from "../chunk-
|
|
54
|
+
unionBy
|
|
55
|
+
} from "../chunk-NFS7RWWE.mjs";
|
|
71
56
|
import {
|
|
72
|
-
|
|
73
|
-
} from "../chunk-
|
|
57
|
+
unionWith
|
|
58
|
+
} from "../chunk-2ZCITDMK.mjs";
|
|
59
|
+
import {
|
|
60
|
+
uniqWith
|
|
61
|
+
} from "../chunk-237HGSZS.mjs";
|
|
74
62
|
import {
|
|
75
63
|
maxBy
|
|
76
64
|
} from "../chunk-OOKNBU4V.mjs";
|
|
@@ -89,12 +77,14 @@ import {
|
|
|
89
77
|
import {
|
|
90
78
|
sampleSize
|
|
91
79
|
} from "../chunk-EHSKB6DF.mjs";
|
|
80
|
+
import "../chunk-GIWAOOFY.mjs";
|
|
81
|
+
import "../chunk-SYWMYQYJ.mjs";
|
|
92
82
|
import {
|
|
93
|
-
|
|
94
|
-
} from "../chunk-
|
|
83
|
+
shuffle
|
|
84
|
+
} from "../chunk-G7UQ5PUR.mjs";
|
|
95
85
|
import {
|
|
96
|
-
|
|
97
|
-
} from "../chunk-
|
|
86
|
+
tail
|
|
87
|
+
} from "../chunk-OF6NM4G7.mjs";
|
|
98
88
|
import {
|
|
99
89
|
head
|
|
100
90
|
} from "../chunk-HM2JT2RX.mjs";
|
|
@@ -111,11 +101,11 @@ import {
|
|
|
111
101
|
intersectionWith
|
|
112
102
|
} from "../chunk-XI7KRD2C.mjs";
|
|
113
103
|
import {
|
|
114
|
-
|
|
115
|
-
} from "../chunk-
|
|
104
|
+
keyBy
|
|
105
|
+
} from "../chunk-AJKZMN2V.mjs";
|
|
116
106
|
import {
|
|
117
|
-
|
|
118
|
-
} from "../chunk-
|
|
107
|
+
last
|
|
108
|
+
} from "../chunk-KPBQ7OUY.mjs";
|
|
119
109
|
import {
|
|
120
110
|
dropRight
|
|
121
111
|
} from "../chunk-JEKUA56R.mjs";
|
|
@@ -134,6 +124,12 @@ import {
|
|
|
134
124
|
import {
|
|
135
125
|
flatten
|
|
136
126
|
} from "../chunk-33MSBDC6.mjs";
|
|
127
|
+
import {
|
|
128
|
+
forEachRight
|
|
129
|
+
} from "../chunk-IEA53J7P.mjs";
|
|
130
|
+
import {
|
|
131
|
+
groupBy
|
|
132
|
+
} from "../chunk-E6E4RZLN.mjs";
|
|
137
133
|
import {
|
|
138
134
|
chunk
|
|
139
135
|
} from "../chunk-E6C5EZQA.mjs";
|
|
@@ -149,8 +145,12 @@ import {
|
|
|
149
145
|
import {
|
|
150
146
|
differenceBy
|
|
151
147
|
} from "../chunk-LVWX5B43.mjs";
|
|
152
|
-
import
|
|
153
|
-
|
|
148
|
+
import {
|
|
149
|
+
differenceWith
|
|
150
|
+
} from "../chunk-6NVQAHXP.mjs";
|
|
151
|
+
import {
|
|
152
|
+
drop
|
|
153
|
+
} from "../chunk-S3CORED5.mjs";
|
|
154
154
|
import "../chunk-2HIMLZE3.mjs";
|
|
155
155
|
export {
|
|
156
156
|
chunk,
|
package/dist/function/index.mjs
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import "../chunk-236H5JZJ.mjs";
|
|
2
|
-
import {
|
|
3
|
-
noop
|
|
4
|
-
} from "../chunk-LKXCOLNY.mjs";
|
|
5
|
-
import {
|
|
6
|
-
once
|
|
7
|
-
} from "../chunk-CMBC4MXG.mjs";
|
|
8
2
|
import {
|
|
9
3
|
throttle
|
|
10
4
|
} from "../chunk-QOJGMVVR.mjs";
|
|
@@ -14,6 +8,12 @@ import {
|
|
|
14
8
|
import {
|
|
15
9
|
negate
|
|
16
10
|
} from "../chunk-BOOQBJN2.mjs";
|
|
11
|
+
import {
|
|
12
|
+
noop
|
|
13
|
+
} from "../chunk-LKXCOLNY.mjs";
|
|
14
|
+
import {
|
|
15
|
+
once
|
|
16
|
+
} from "../chunk-CMBC4MXG.mjs";
|
|
17
17
|
import "../chunk-2HIMLZE3.mjs";
|
|
18
18
|
export {
|
|
19
19
|
debounce,
|
package/dist/index.mjs
CHANGED
|
@@ -54,13 +54,29 @@ import {
|
|
|
54
54
|
import {
|
|
55
55
|
clone
|
|
56
56
|
} from "./chunk-U4JGKZ56.mjs";
|
|
57
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-TLVQSNOE.mjs";
|
|
58
58
|
import {
|
|
59
|
-
|
|
60
|
-
} from "./chunk-
|
|
59
|
+
meanBy
|
|
60
|
+
} from "./chunk-IZAD2S7R.mjs";
|
|
61
61
|
import {
|
|
62
|
-
|
|
63
|
-
} from "./chunk-
|
|
62
|
+
range
|
|
63
|
+
} from "./chunk-DPH2KE6O.mjs";
|
|
64
|
+
import {
|
|
65
|
+
round
|
|
66
|
+
} from "./chunk-5PMKOZ2F.mjs";
|
|
67
|
+
import {
|
|
68
|
+
clamp
|
|
69
|
+
} from "./chunk-MLCL773E.mjs";
|
|
70
|
+
import {
|
|
71
|
+
inRange
|
|
72
|
+
} from "./chunk-BH6HLGBA.mjs";
|
|
73
|
+
import {
|
|
74
|
+
mean
|
|
75
|
+
} from "./chunk-GDC64SYJ.mjs";
|
|
76
|
+
import {
|
|
77
|
+
sum
|
|
78
|
+
} from "./chunk-2SLTL4KL.mjs";
|
|
79
|
+
import "./chunk-2MRZANXZ.mjs";
|
|
64
80
|
import {
|
|
65
81
|
xorWith
|
|
66
82
|
} from "./chunk-QRSJBBFY.mjs";
|
|
@@ -73,18 +89,9 @@ import {
|
|
|
73
89
|
import {
|
|
74
90
|
zipWith
|
|
75
91
|
} from "./chunk-4KYXHZ4R.mjs";
|
|
76
|
-
import {
|
|
77
|
-
unionBy
|
|
78
|
-
} from "./chunk-NFS7RWWE.mjs";
|
|
79
|
-
import {
|
|
80
|
-
unionWith
|
|
81
|
-
} from "./chunk-2ZCITDMK.mjs";
|
|
82
92
|
import {
|
|
83
93
|
uniqBy
|
|
84
94
|
} from "./chunk-OXAZEEGP.mjs";
|
|
85
|
-
import {
|
|
86
|
-
uniqWith
|
|
87
|
-
} from "./chunk-237HGSZS.mjs";
|
|
88
95
|
import {
|
|
89
96
|
unzip
|
|
90
97
|
} from "./chunk-UYZKMBDO.mjs";
|
|
@@ -95,11 +102,11 @@ import {
|
|
|
95
102
|
without
|
|
96
103
|
} from "./chunk-PYEYV7BY.mjs";
|
|
97
104
|
import {
|
|
98
|
-
|
|
99
|
-
} from "./chunk-
|
|
105
|
+
xor
|
|
106
|
+
} from "./chunk-L7FQX5MN.mjs";
|
|
100
107
|
import {
|
|
101
|
-
|
|
102
|
-
} from "./chunk-
|
|
108
|
+
xorBy
|
|
109
|
+
} from "./chunk-Q47NGNXT.mjs";
|
|
103
110
|
import {
|
|
104
111
|
take
|
|
105
112
|
} from "./chunk-ME352XO7.mjs";
|
|
@@ -122,11 +129,14 @@ import {
|
|
|
122
129
|
uniq
|
|
123
130
|
} from "./chunk-DVK2N4KC.mjs";
|
|
124
131
|
import {
|
|
125
|
-
|
|
126
|
-
} from "./chunk-
|
|
132
|
+
unionBy
|
|
133
|
+
} from "./chunk-NFS7RWWE.mjs";
|
|
127
134
|
import {
|
|
128
|
-
|
|
129
|
-
} from "./chunk-
|
|
135
|
+
unionWith
|
|
136
|
+
} from "./chunk-2ZCITDMK.mjs";
|
|
137
|
+
import {
|
|
138
|
+
uniqWith
|
|
139
|
+
} from "./chunk-237HGSZS.mjs";
|
|
130
140
|
import {
|
|
131
141
|
maxBy
|
|
132
142
|
} from "./chunk-OOKNBU4V.mjs";
|
|
@@ -146,11 +156,17 @@ import {
|
|
|
146
156
|
sampleSize
|
|
147
157
|
} from "./chunk-EHSKB6DF.mjs";
|
|
148
158
|
import {
|
|
149
|
-
|
|
150
|
-
} from "./chunk-
|
|
159
|
+
randomInt
|
|
160
|
+
} from "./chunk-GIWAOOFY.mjs";
|
|
151
161
|
import {
|
|
152
|
-
|
|
153
|
-
} from "./chunk-
|
|
162
|
+
random
|
|
163
|
+
} from "./chunk-SYWMYQYJ.mjs";
|
|
164
|
+
import {
|
|
165
|
+
shuffle
|
|
166
|
+
} from "./chunk-G7UQ5PUR.mjs";
|
|
167
|
+
import {
|
|
168
|
+
tail
|
|
169
|
+
} from "./chunk-OF6NM4G7.mjs";
|
|
154
170
|
import {
|
|
155
171
|
head
|
|
156
172
|
} from "./chunk-HM2JT2RX.mjs";
|
|
@@ -167,11 +183,11 @@ import {
|
|
|
167
183
|
intersectionWith
|
|
168
184
|
} from "./chunk-XI7KRD2C.mjs";
|
|
169
185
|
import {
|
|
170
|
-
|
|
171
|
-
} from "./chunk-
|
|
186
|
+
keyBy
|
|
187
|
+
} from "./chunk-AJKZMN2V.mjs";
|
|
172
188
|
import {
|
|
173
|
-
|
|
174
|
-
} from "./chunk-
|
|
189
|
+
last
|
|
190
|
+
} from "./chunk-KPBQ7OUY.mjs";
|
|
175
191
|
import {
|
|
176
192
|
dropRight
|
|
177
193
|
} from "./chunk-JEKUA56R.mjs";
|
|
@@ -190,6 +206,12 @@ import {
|
|
|
190
206
|
import {
|
|
191
207
|
flatten
|
|
192
208
|
} from "./chunk-33MSBDC6.mjs";
|
|
209
|
+
import {
|
|
210
|
+
forEachRight
|
|
211
|
+
} from "./chunk-IEA53J7P.mjs";
|
|
212
|
+
import {
|
|
213
|
+
groupBy
|
|
214
|
+
} from "./chunk-E6E4RZLN.mjs";
|
|
193
215
|
import {
|
|
194
216
|
chunk
|
|
195
217
|
} from "./chunk-E6C5EZQA.mjs";
|
|
@@ -205,13 +227,17 @@ import {
|
|
|
205
227
|
import {
|
|
206
228
|
differenceBy
|
|
207
229
|
} from "./chunk-LVWX5B43.mjs";
|
|
208
|
-
import "./chunk-236H5JZJ.mjs";
|
|
209
230
|
import {
|
|
210
|
-
|
|
211
|
-
} from "./chunk-
|
|
231
|
+
differenceWith
|
|
232
|
+
} from "./chunk-6NVQAHXP.mjs";
|
|
212
233
|
import {
|
|
213
|
-
|
|
214
|
-
} from "./chunk-
|
|
234
|
+
drop
|
|
235
|
+
} from "./chunk-S3CORED5.mjs";
|
|
236
|
+
import "./chunk-FZEZH22H.mjs";
|
|
237
|
+
import {
|
|
238
|
+
AbortError
|
|
239
|
+
} from "./chunk-DXB7EZUQ.mjs";
|
|
240
|
+
import "./chunk-236H5JZJ.mjs";
|
|
215
241
|
import {
|
|
216
242
|
throttle
|
|
217
243
|
} from "./chunk-QOJGMVVR.mjs";
|
|
@@ -221,38 +247,12 @@ import {
|
|
|
221
247
|
import {
|
|
222
248
|
negate
|
|
223
249
|
} from "./chunk-BOOQBJN2.mjs";
|
|
224
|
-
import "./chunk-FZEZH22H.mjs";
|
|
225
250
|
import {
|
|
226
|
-
|
|
227
|
-
} from "./chunk-
|
|
228
|
-
import "./chunk-TLVQSNOE.mjs";
|
|
229
|
-
import {
|
|
230
|
-
randomInt
|
|
231
|
-
} from "./chunk-GIWAOOFY.mjs";
|
|
232
|
-
import {
|
|
233
|
-
random
|
|
234
|
-
} from "./chunk-SYWMYQYJ.mjs";
|
|
235
|
-
import {
|
|
236
|
-
range
|
|
237
|
-
} from "./chunk-DPH2KE6O.mjs";
|
|
238
|
-
import {
|
|
239
|
-
round
|
|
240
|
-
} from "./chunk-5PMKOZ2F.mjs";
|
|
241
|
-
import {
|
|
242
|
-
clamp
|
|
243
|
-
} from "./chunk-MLCL773E.mjs";
|
|
244
|
-
import {
|
|
245
|
-
inRange
|
|
246
|
-
} from "./chunk-BH6HLGBA.mjs";
|
|
247
|
-
import {
|
|
248
|
-
meanBy
|
|
249
|
-
} from "./chunk-IZAD2S7R.mjs";
|
|
250
|
-
import {
|
|
251
|
-
mean
|
|
252
|
-
} from "./chunk-GDC64SYJ.mjs";
|
|
251
|
+
noop
|
|
252
|
+
} from "./chunk-LKXCOLNY.mjs";
|
|
253
253
|
import {
|
|
254
|
-
|
|
255
|
-
} from "./chunk-
|
|
254
|
+
once
|
|
255
|
+
} from "./chunk-CMBC4MXG.mjs";
|
|
256
256
|
import "./chunk-2HIMLZE3.mjs";
|
|
257
257
|
export {
|
|
258
258
|
AbortError,
|
package/dist/math/index.mjs
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import "../chunk-TLVQSNOE.mjs";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import {
|
|
6
|
-
random
|
|
7
|
-
} from "../chunk-SYWMYQYJ.mjs";
|
|
3
|
+
meanBy
|
|
4
|
+
} from "../chunk-IZAD2S7R.mjs";
|
|
8
5
|
import {
|
|
9
6
|
range
|
|
10
7
|
} from "../chunk-DPH2KE6O.mjs";
|
|
@@ -17,15 +14,18 @@ import {
|
|
|
17
14
|
import {
|
|
18
15
|
inRange
|
|
19
16
|
} from "../chunk-BH6HLGBA.mjs";
|
|
20
|
-
import {
|
|
21
|
-
meanBy
|
|
22
|
-
} from "../chunk-IZAD2S7R.mjs";
|
|
23
17
|
import {
|
|
24
18
|
mean
|
|
25
19
|
} from "../chunk-GDC64SYJ.mjs";
|
|
26
20
|
import {
|
|
27
21
|
sum
|
|
28
22
|
} from "../chunk-2SLTL4KL.mjs";
|
|
23
|
+
import {
|
|
24
|
+
randomInt
|
|
25
|
+
} from "../chunk-GIWAOOFY.mjs";
|
|
26
|
+
import {
|
|
27
|
+
random
|
|
28
|
+
} from "../chunk-SYWMYQYJ.mjs";
|
|
29
29
|
import "../chunk-2HIMLZE3.mjs";
|
|
30
30
|
export {
|
|
31
31
|
clamp,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-toolkit",
|
|
3
3
|
"description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.10.0-dev.202+ba35a8da",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|