es-toolkit 1.8.0-dev.169 → 1.9.0-dev.170
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 +9 -0
- package/dist/array/index.mjs +26 -26
- package/dist/index.mjs +48 -48
- package/dist/math/index.mjs +9 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# es-toolkit Changelog
|
|
2
2
|
|
|
3
|
+
## Version v1.9.0
|
|
4
|
+
|
|
5
|
+
Released on July 10th, 2024.
|
|
6
|
+
|
|
7
|
+
- Add support for [head](https://es-toolkit.slash.page/reference/array/head.html) and [tail](https://es-toolkit.slash.page/reference/array/tail.html). (https://github.com/toss/es-toolkit/pull/131, https://github.com/toss/es-toolkit/pull/143).
|
|
8
|
+
- Add support for [unzip](https://es-toolkit.slash.page/reference/array/unzip.html). (https://github.com/toss/es-toolkit/pull/130)
|
|
9
|
+
- 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
|
+
|
|
11
|
+
|
|
3
12
|
## Version v1.8.0
|
|
4
13
|
|
|
5
14
|
Released on July 5th, 2024.
|
package/dist/array/index.mjs
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import "../chunk-LOY6PATI.mjs";
|
|
2
|
+
import {
|
|
3
|
+
zipWith
|
|
4
|
+
} from "../chunk-4KYXHZ4R.mjs";
|
|
5
|
+
import {
|
|
6
|
+
unzip
|
|
7
|
+
} from "../chunk-UYZKMBDO.mjs";
|
|
8
|
+
import {
|
|
9
|
+
unzipWith
|
|
10
|
+
} from "../chunk-IFNXROZR.mjs";
|
|
2
11
|
import {
|
|
3
12
|
without
|
|
4
13
|
} from "../chunk-PYEYV7BY.mjs";
|
|
@@ -18,8 +27,11 @@ import {
|
|
|
18
27
|
zipObject
|
|
19
28
|
} from "../chunk-6GWEY5EL.mjs";
|
|
20
29
|
import {
|
|
21
|
-
|
|
22
|
-
} from "../chunk-
|
|
30
|
+
takeRightWhile
|
|
31
|
+
} from "../chunk-NTLX2MPV.mjs";
|
|
32
|
+
import {
|
|
33
|
+
takeWhile
|
|
34
|
+
} from "../chunk-2IXFGSUA.mjs";
|
|
23
35
|
import {
|
|
24
36
|
union
|
|
25
37
|
} from "../chunk-R6QA7PLZ.mjs";
|
|
@@ -39,19 +51,17 @@ import {
|
|
|
39
51
|
uniqWith
|
|
40
52
|
} from "../chunk-237HGSZS.mjs";
|
|
41
53
|
import {
|
|
42
|
-
|
|
43
|
-
} from "../chunk-
|
|
54
|
+
orderBy
|
|
55
|
+
} from "../chunk-7B7W36UP.mjs";
|
|
44
56
|
import {
|
|
45
|
-
|
|
46
|
-
} from "../chunk-
|
|
57
|
+
partition
|
|
58
|
+
} from "../chunk-DN3NOZ3H.mjs";
|
|
47
59
|
import {
|
|
48
60
|
sample
|
|
49
61
|
} from "../chunk-2KNLZB7V.mjs";
|
|
50
62
|
import {
|
|
51
63
|
sampleSize
|
|
52
64
|
} from "../chunk-EHSKB6DF.mjs";
|
|
53
|
-
import "../chunk-GIWAOOFY.mjs";
|
|
54
|
-
import "../chunk-SYWMYQYJ.mjs";
|
|
55
65
|
import {
|
|
56
66
|
shuffle
|
|
57
67
|
} from "../chunk-G7UQ5PUR.mjs";
|
|
@@ -65,11 +75,8 @@ import {
|
|
|
65
75
|
takeRight
|
|
66
76
|
} from "../chunk-IQLKIDXF.mjs";
|
|
67
77
|
import {
|
|
68
|
-
|
|
69
|
-
} from "../chunk-
|
|
70
|
-
import {
|
|
71
|
-
takeWhile
|
|
72
|
-
} from "../chunk-2IXFGSUA.mjs";
|
|
78
|
+
head
|
|
79
|
+
} from "../chunk-HM2JT2RX.mjs";
|
|
73
80
|
import {
|
|
74
81
|
intersection
|
|
75
82
|
} from "../chunk-FVVSE2F2.mjs";
|
|
@@ -89,11 +96,11 @@ import {
|
|
|
89
96
|
minBy
|
|
90
97
|
} from "../chunk-IJD7FE2Z.mjs";
|
|
91
98
|
import {
|
|
92
|
-
|
|
93
|
-
} from "../chunk-
|
|
99
|
+
drop
|
|
100
|
+
} from "../chunk-S3CORED5.mjs";
|
|
94
101
|
import {
|
|
95
|
-
|
|
96
|
-
} from "../chunk-
|
|
102
|
+
dropRight
|
|
103
|
+
} from "../chunk-JEKUA56R.mjs";
|
|
97
104
|
import {
|
|
98
105
|
dropRightWhile
|
|
99
106
|
} from "../chunk-JE6JKZU3.mjs";
|
|
@@ -112,9 +119,6 @@ import {
|
|
|
112
119
|
import {
|
|
113
120
|
groupBy
|
|
114
121
|
} from "../chunk-E6E4RZLN.mjs";
|
|
115
|
-
import {
|
|
116
|
-
head
|
|
117
|
-
} from "../chunk-HM2JT2RX.mjs";
|
|
118
122
|
import {
|
|
119
123
|
chunk
|
|
120
124
|
} from "../chunk-E6C5EZQA.mjs";
|
|
@@ -133,12 +137,8 @@ import {
|
|
|
133
137
|
import {
|
|
134
138
|
differenceWith
|
|
135
139
|
} from "../chunk-6NVQAHXP.mjs";
|
|
136
|
-
import
|
|
137
|
-
|
|
138
|
-
} from "../chunk-S3CORED5.mjs";
|
|
139
|
-
import {
|
|
140
|
-
dropRight
|
|
141
|
-
} from "../chunk-JEKUA56R.mjs";
|
|
140
|
+
import "../chunk-GIWAOOFY.mjs";
|
|
141
|
+
import "../chunk-SYWMYQYJ.mjs";
|
|
142
142
|
import "../chunk-2MM5EJJX.mjs";
|
|
143
143
|
export {
|
|
144
144
|
chunk,
|
package/dist/index.mjs
CHANGED
|
@@ -31,29 +31,16 @@ import {
|
|
|
31
31
|
import {
|
|
32
32
|
isUndefined
|
|
33
33
|
} from "./chunk-VH2PV426.mjs";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import {
|
|
36
|
-
inRange
|
|
37
|
-
} from "./chunk-BH6HLGBA.mjs";
|
|
38
|
-
import {
|
|
39
|
-
meanBy
|
|
40
|
-
} from "./chunk-SDIMTYZW.mjs";
|
|
41
|
-
import {
|
|
42
|
-
mean
|
|
43
|
-
} from "./chunk-LT6E4Y4Z.mjs";
|
|
44
|
-
import {
|
|
45
|
-
sum
|
|
46
|
-
} from "./chunk-NOFHNJ5C.mjs";
|
|
34
|
+
import "./chunk-LOY6PATI.mjs";
|
|
47
35
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
36
|
+
zipWith
|
|
37
|
+
} from "./chunk-4KYXHZ4R.mjs";
|
|
50
38
|
import {
|
|
51
|
-
|
|
52
|
-
} from "./chunk-
|
|
39
|
+
unzip
|
|
40
|
+
} from "./chunk-UYZKMBDO.mjs";
|
|
53
41
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-LOY6PATI.mjs";
|
|
42
|
+
unzipWith
|
|
43
|
+
} from "./chunk-IFNXROZR.mjs";
|
|
57
44
|
import {
|
|
58
45
|
without
|
|
59
46
|
} from "./chunk-PYEYV7BY.mjs";
|
|
@@ -73,8 +60,11 @@ import {
|
|
|
73
60
|
zipObject
|
|
74
61
|
} from "./chunk-6GWEY5EL.mjs";
|
|
75
62
|
import {
|
|
76
|
-
|
|
77
|
-
} from "./chunk-
|
|
63
|
+
takeRightWhile
|
|
64
|
+
} from "./chunk-NTLX2MPV.mjs";
|
|
65
|
+
import {
|
|
66
|
+
takeWhile
|
|
67
|
+
} from "./chunk-2IXFGSUA.mjs";
|
|
78
68
|
import {
|
|
79
69
|
union
|
|
80
70
|
} from "./chunk-R6QA7PLZ.mjs";
|
|
@@ -94,23 +84,17 @@ import {
|
|
|
94
84
|
uniqWith
|
|
95
85
|
} from "./chunk-237HGSZS.mjs";
|
|
96
86
|
import {
|
|
97
|
-
|
|
98
|
-
} from "./chunk-
|
|
87
|
+
orderBy
|
|
88
|
+
} from "./chunk-7B7W36UP.mjs";
|
|
99
89
|
import {
|
|
100
|
-
|
|
101
|
-
} from "./chunk-
|
|
90
|
+
partition
|
|
91
|
+
} from "./chunk-DN3NOZ3H.mjs";
|
|
102
92
|
import {
|
|
103
93
|
sample
|
|
104
94
|
} from "./chunk-2KNLZB7V.mjs";
|
|
105
95
|
import {
|
|
106
96
|
sampleSize
|
|
107
97
|
} from "./chunk-EHSKB6DF.mjs";
|
|
108
|
-
import {
|
|
109
|
-
randomInt
|
|
110
|
-
} from "./chunk-GIWAOOFY.mjs";
|
|
111
|
-
import {
|
|
112
|
-
random
|
|
113
|
-
} from "./chunk-SYWMYQYJ.mjs";
|
|
114
98
|
import {
|
|
115
99
|
shuffle
|
|
116
100
|
} from "./chunk-G7UQ5PUR.mjs";
|
|
@@ -124,11 +108,8 @@ import {
|
|
|
124
108
|
takeRight
|
|
125
109
|
} from "./chunk-IQLKIDXF.mjs";
|
|
126
110
|
import {
|
|
127
|
-
|
|
128
|
-
} from "./chunk-
|
|
129
|
-
import {
|
|
130
|
-
takeWhile
|
|
131
|
-
} from "./chunk-2IXFGSUA.mjs";
|
|
111
|
+
head
|
|
112
|
+
} from "./chunk-HM2JT2RX.mjs";
|
|
132
113
|
import {
|
|
133
114
|
intersection
|
|
134
115
|
} from "./chunk-FVVSE2F2.mjs";
|
|
@@ -148,11 +129,11 @@ import {
|
|
|
148
129
|
minBy
|
|
149
130
|
} from "./chunk-IJD7FE2Z.mjs";
|
|
150
131
|
import {
|
|
151
|
-
|
|
152
|
-
} from "./chunk-
|
|
132
|
+
drop
|
|
133
|
+
} from "./chunk-S3CORED5.mjs";
|
|
153
134
|
import {
|
|
154
|
-
|
|
155
|
-
} from "./chunk-
|
|
135
|
+
dropRight
|
|
136
|
+
} from "./chunk-JEKUA56R.mjs";
|
|
156
137
|
import {
|
|
157
138
|
dropRightWhile
|
|
158
139
|
} from "./chunk-JE6JKZU3.mjs";
|
|
@@ -171,9 +152,6 @@ import {
|
|
|
171
152
|
import {
|
|
172
153
|
groupBy
|
|
173
154
|
} from "./chunk-E6E4RZLN.mjs";
|
|
174
|
-
import {
|
|
175
|
-
head
|
|
176
|
-
} from "./chunk-HM2JT2RX.mjs";
|
|
177
155
|
import {
|
|
178
156
|
chunk
|
|
179
157
|
} from "./chunk-E6C5EZQA.mjs";
|
|
@@ -192,12 +170,34 @@ import {
|
|
|
192
170
|
import {
|
|
193
171
|
differenceWith
|
|
194
172
|
} from "./chunk-6NVQAHXP.mjs";
|
|
173
|
+
import "./chunk-TLVQSNOE.mjs";
|
|
195
174
|
import {
|
|
196
|
-
|
|
197
|
-
} from "./chunk-
|
|
175
|
+
round
|
|
176
|
+
} from "./chunk-5PMKOZ2F.mjs";
|
|
198
177
|
import {
|
|
199
|
-
|
|
200
|
-
} from "./chunk-
|
|
178
|
+
clamp
|
|
179
|
+
} from "./chunk-MLCL773E.mjs";
|
|
180
|
+
import {
|
|
181
|
+
inRange
|
|
182
|
+
} from "./chunk-BH6HLGBA.mjs";
|
|
183
|
+
import {
|
|
184
|
+
meanBy
|
|
185
|
+
} from "./chunk-SDIMTYZW.mjs";
|
|
186
|
+
import {
|
|
187
|
+
mean
|
|
188
|
+
} from "./chunk-LT6E4Y4Z.mjs";
|
|
189
|
+
import {
|
|
190
|
+
sum
|
|
191
|
+
} from "./chunk-NOFHNJ5C.mjs";
|
|
192
|
+
import {
|
|
193
|
+
randomInt
|
|
194
|
+
} from "./chunk-GIWAOOFY.mjs";
|
|
195
|
+
import {
|
|
196
|
+
random
|
|
197
|
+
} from "./chunk-SYWMYQYJ.mjs";
|
|
198
|
+
import {
|
|
199
|
+
range
|
|
200
|
+
} from "./chunk-DPH2KE6O.mjs";
|
|
201
201
|
import "./chunk-FZEZH22H.mjs";
|
|
202
202
|
import {
|
|
203
203
|
AbortError
|
package/dist/math/index.mjs
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import "../chunk-TLVQSNOE.mjs";
|
|
2
|
+
import {
|
|
3
|
+
round
|
|
4
|
+
} from "../chunk-5PMKOZ2F.mjs";
|
|
5
|
+
import {
|
|
6
|
+
clamp
|
|
7
|
+
} from "../chunk-MLCL773E.mjs";
|
|
2
8
|
import {
|
|
3
9
|
inRange
|
|
4
10
|
} from "../chunk-BH6HLGBA.mjs";
|
|
@@ -11,21 +17,15 @@ import {
|
|
|
11
17
|
import {
|
|
12
18
|
sum
|
|
13
19
|
} from "../chunk-NOFHNJ5C.mjs";
|
|
14
|
-
import {
|
|
15
|
-
range
|
|
16
|
-
} from "../chunk-DPH2KE6O.mjs";
|
|
17
|
-
import {
|
|
18
|
-
round
|
|
19
|
-
} from "../chunk-5PMKOZ2F.mjs";
|
|
20
|
-
import {
|
|
21
|
-
clamp
|
|
22
|
-
} from "../chunk-MLCL773E.mjs";
|
|
23
20
|
import {
|
|
24
21
|
randomInt
|
|
25
22
|
} from "../chunk-GIWAOOFY.mjs";
|
|
26
23
|
import {
|
|
27
24
|
random
|
|
28
25
|
} from "../chunk-SYWMYQYJ.mjs";
|
|
26
|
+
import {
|
|
27
|
+
range
|
|
28
|
+
} from "../chunk-DPH2KE6O.mjs";
|
|
29
29
|
import "../chunk-2MM5EJJX.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.9.0-dev.170+85d46286",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|