es-toolkit 1.11.0-dev.264 → 1.12.0-dev.265
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 +7 -0
- package/dist/array/index.mjs +19 -19
- package/dist/compat/index.mjs +26 -26
- package/dist/function/index.mjs +3 -3
- package/dist/index.mjs +26 -26
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# es-toolkit Changelog
|
|
2
2
|
|
|
3
|
+
## Version v1.12.0
|
|
4
|
+
|
|
5
|
+
Released on July 19th, 2024.
|
|
6
|
+
|
|
7
|
+
- Fixed a bug where `es-toolkit/compat` was not available in modern Node.js environments.
|
|
8
|
+
- Added support for [max](https://es-toolkit.slash.page/reference/compat/math/max.html) and [min](https://es-toolkit.slash.page/reference/compat/math/min.html) in our compatibility layer `es-toolkit/compat`. ([e1e6e38](https://github.com/toss/es-toolkit/commit/e1e6e38206750fb90f5b99cace9196635288e21c))
|
|
9
|
+
|
|
3
10
|
## Version v1.11.0
|
|
4
11
|
|
|
5
12
|
Released on July 18th, 2024.
|
package/dist/array/index.mjs
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import "../chunk-DDH7K4QM.mjs";
|
|
2
|
+
import {
|
|
3
|
+
without
|
|
4
|
+
} from "../chunk-PYEYV7BY.mjs";
|
|
2
5
|
import {
|
|
3
6
|
xor
|
|
4
7
|
} from "../chunk-L7FQX5MN.mjs";
|
|
@@ -17,12 +20,18 @@ import {
|
|
|
17
20
|
import {
|
|
18
21
|
zipWith
|
|
19
22
|
} from "../chunk-4KYXHZ4R.mjs";
|
|
23
|
+
import {
|
|
24
|
+
union
|
|
25
|
+
} from "../chunk-R6QA7PLZ.mjs";
|
|
20
26
|
import {
|
|
21
27
|
unionBy
|
|
22
28
|
} from "../chunk-NFS7RWWE.mjs";
|
|
23
29
|
import {
|
|
24
30
|
unionWith
|
|
25
31
|
} from "../chunk-2ZCITDMK.mjs";
|
|
32
|
+
import {
|
|
33
|
+
uniq
|
|
34
|
+
} from "../chunk-DVK2N4KC.mjs";
|
|
26
35
|
import {
|
|
27
36
|
uniqBy
|
|
28
37
|
} from "../chunk-B4COTK4K.mjs";
|
|
@@ -36,8 +45,10 @@ import {
|
|
|
36
45
|
unzipWith
|
|
37
46
|
} from "../chunk-IFNXROZR.mjs";
|
|
38
47
|
import {
|
|
39
|
-
|
|
40
|
-
} from "../chunk-
|
|
48
|
+
sampleSize
|
|
49
|
+
} from "../chunk-EHSKB6DF.mjs";
|
|
50
|
+
import "../chunk-GIWAOOFY.mjs";
|
|
51
|
+
import "../chunk-SYWMYQYJ.mjs";
|
|
41
52
|
import {
|
|
42
53
|
shuffle
|
|
43
54
|
} from "../chunk-G7UQ5PUR.mjs";
|
|
@@ -60,11 +71,8 @@ import {
|
|
|
60
71
|
toFilled
|
|
61
72
|
} from "../chunk-OP4OAKQJ.mjs";
|
|
62
73
|
import {
|
|
63
|
-
|
|
64
|
-
} from "../chunk-
|
|
65
|
-
import {
|
|
66
|
-
uniq
|
|
67
|
-
} from "../chunk-DVK2N4KC.mjs";
|
|
74
|
+
intersectionWith
|
|
75
|
+
} from "../chunk-XI7KRD2C.mjs";
|
|
68
76
|
import {
|
|
69
77
|
keyBy
|
|
70
78
|
} from "../chunk-AJKZMN2V.mjs";
|
|
@@ -87,10 +95,8 @@ import {
|
|
|
87
95
|
sample
|
|
88
96
|
} from "../chunk-2KNLZB7V.mjs";
|
|
89
97
|
import {
|
|
90
|
-
|
|
91
|
-
} from "../chunk-
|
|
92
|
-
import "../chunk-GIWAOOFY.mjs";
|
|
93
|
-
import "../chunk-SYWMYQYJ.mjs";
|
|
98
|
+
flattenDeep
|
|
99
|
+
} from "../chunk-ML727RRJ.mjs";
|
|
94
100
|
import {
|
|
95
101
|
forEachRight
|
|
96
102
|
} from "../chunk-IEA53J7P.mjs";
|
|
@@ -110,8 +116,8 @@ import {
|
|
|
110
116
|
intersectionBy
|
|
111
117
|
} from "../chunk-O6UXZR3U.mjs";
|
|
112
118
|
import {
|
|
113
|
-
|
|
114
|
-
} from "../chunk-
|
|
119
|
+
differenceWith
|
|
120
|
+
} from "../chunk-6NVQAHXP.mjs";
|
|
115
121
|
import {
|
|
116
122
|
drop
|
|
117
123
|
} from "../chunk-3EZAFZG3.mjs";
|
|
@@ -130,9 +136,6 @@ import {
|
|
|
130
136
|
import {
|
|
131
137
|
flatMap
|
|
132
138
|
} from "../chunk-UY76KTPE.mjs";
|
|
133
|
-
import {
|
|
134
|
-
flattenDeep
|
|
135
|
-
} from "../chunk-ML727RRJ.mjs";
|
|
136
139
|
import {
|
|
137
140
|
flatten
|
|
138
141
|
} from "../chunk-33MSBDC6.mjs";
|
|
@@ -151,9 +154,6 @@ import {
|
|
|
151
154
|
import {
|
|
152
155
|
differenceBy
|
|
153
156
|
} from "../chunk-LVWX5B43.mjs";
|
|
154
|
-
import {
|
|
155
|
-
differenceWith
|
|
156
|
-
} from "../chunk-6NVQAHXP.mjs";
|
|
157
157
|
import "../chunk-424M7IR7.mjs";
|
|
158
158
|
export {
|
|
159
159
|
chunk,
|
package/dist/compat/index.mjs
CHANGED
|
@@ -88,6 +88,9 @@ import {
|
|
|
88
88
|
clamp
|
|
89
89
|
} from "../chunk-MLCL773E.mjs";
|
|
90
90
|
import "../chunk-DDH7K4QM.mjs";
|
|
91
|
+
import {
|
|
92
|
+
without
|
|
93
|
+
} from "../chunk-PYEYV7BY.mjs";
|
|
91
94
|
import {
|
|
92
95
|
xor
|
|
93
96
|
} from "../chunk-L7FQX5MN.mjs";
|
|
@@ -106,12 +109,18 @@ import {
|
|
|
106
109
|
import {
|
|
107
110
|
zipWith
|
|
108
111
|
} from "../chunk-4KYXHZ4R.mjs";
|
|
112
|
+
import {
|
|
113
|
+
union
|
|
114
|
+
} from "../chunk-R6QA7PLZ.mjs";
|
|
109
115
|
import {
|
|
110
116
|
unionBy
|
|
111
117
|
} from "../chunk-NFS7RWWE.mjs";
|
|
112
118
|
import {
|
|
113
119
|
unionWith
|
|
114
120
|
} from "../chunk-2ZCITDMK.mjs";
|
|
121
|
+
import {
|
|
122
|
+
uniq
|
|
123
|
+
} from "../chunk-DVK2N4KC.mjs";
|
|
115
124
|
import {
|
|
116
125
|
uniqBy
|
|
117
126
|
} from "../chunk-B4COTK4K.mjs";
|
|
@@ -125,8 +134,14 @@ import {
|
|
|
125
134
|
unzipWith
|
|
126
135
|
} from "../chunk-IFNXROZR.mjs";
|
|
127
136
|
import {
|
|
128
|
-
|
|
129
|
-
} from "../chunk-
|
|
137
|
+
sampleSize
|
|
138
|
+
} from "../chunk-EHSKB6DF.mjs";
|
|
139
|
+
import {
|
|
140
|
+
randomInt
|
|
141
|
+
} from "../chunk-GIWAOOFY.mjs";
|
|
142
|
+
import {
|
|
143
|
+
random
|
|
144
|
+
} from "../chunk-SYWMYQYJ.mjs";
|
|
130
145
|
import {
|
|
131
146
|
shuffle
|
|
132
147
|
} from "../chunk-G7UQ5PUR.mjs";
|
|
@@ -149,11 +164,8 @@ import {
|
|
|
149
164
|
toFilled
|
|
150
165
|
} from "../chunk-OP4OAKQJ.mjs";
|
|
151
166
|
import {
|
|
152
|
-
|
|
153
|
-
} from "../chunk-
|
|
154
|
-
import {
|
|
155
|
-
uniq
|
|
156
|
-
} from "../chunk-DVK2N4KC.mjs";
|
|
167
|
+
intersectionWith
|
|
168
|
+
} from "../chunk-XI7KRD2C.mjs";
|
|
157
169
|
import {
|
|
158
170
|
keyBy
|
|
159
171
|
} from "../chunk-AJKZMN2V.mjs";
|
|
@@ -176,14 +188,8 @@ import {
|
|
|
176
188
|
sample
|
|
177
189
|
} from "../chunk-2KNLZB7V.mjs";
|
|
178
190
|
import {
|
|
179
|
-
|
|
180
|
-
} from "../chunk-
|
|
181
|
-
import {
|
|
182
|
-
randomInt
|
|
183
|
-
} from "../chunk-GIWAOOFY.mjs";
|
|
184
|
-
import {
|
|
185
|
-
random
|
|
186
|
-
} from "../chunk-SYWMYQYJ.mjs";
|
|
191
|
+
flattenDeep
|
|
192
|
+
} from "../chunk-ML727RRJ.mjs";
|
|
187
193
|
import {
|
|
188
194
|
forEachRight
|
|
189
195
|
} from "../chunk-IEA53J7P.mjs";
|
|
@@ -203,8 +209,8 @@ import {
|
|
|
203
209
|
intersectionBy
|
|
204
210
|
} from "../chunk-O6UXZR3U.mjs";
|
|
205
211
|
import {
|
|
206
|
-
|
|
207
|
-
} from "../chunk-
|
|
212
|
+
differenceWith
|
|
213
|
+
} from "../chunk-6NVQAHXP.mjs";
|
|
208
214
|
import {
|
|
209
215
|
drop
|
|
210
216
|
} from "../chunk-3EZAFZG3.mjs";
|
|
@@ -223,9 +229,6 @@ import {
|
|
|
223
229
|
import {
|
|
224
230
|
flatMap
|
|
225
231
|
} from "../chunk-UY76KTPE.mjs";
|
|
226
|
-
import {
|
|
227
|
-
flattenDeep
|
|
228
|
-
} from "../chunk-ML727RRJ.mjs";
|
|
229
232
|
import {
|
|
230
233
|
flatten
|
|
231
234
|
} from "../chunk-33MSBDC6.mjs";
|
|
@@ -244,9 +247,6 @@ import {
|
|
|
244
247
|
import {
|
|
245
248
|
differenceBy
|
|
246
249
|
} from "../chunk-LVWX5B43.mjs";
|
|
247
|
-
import {
|
|
248
|
-
differenceWith
|
|
249
|
-
} from "../chunk-6NVQAHXP.mjs";
|
|
250
250
|
import "../chunk-F47GLYUU.mjs";
|
|
251
251
|
import {
|
|
252
252
|
AbortError
|
|
@@ -255,6 +255,9 @@ import {
|
|
|
255
255
|
TimeoutError
|
|
256
256
|
} from "../chunk-KIOYQRMQ.mjs";
|
|
257
257
|
import "../chunk-236H5JZJ.mjs";
|
|
258
|
+
import {
|
|
259
|
+
noop
|
|
260
|
+
} from "../chunk-LKXCOLNY.mjs";
|
|
258
261
|
import {
|
|
259
262
|
once
|
|
260
263
|
} from "../chunk-CMBC4MXG.mjs";
|
|
@@ -267,9 +270,6 @@ import {
|
|
|
267
270
|
import {
|
|
268
271
|
negate
|
|
269
272
|
} from "../chunk-BOOQBJN2.mjs";
|
|
270
|
-
import {
|
|
271
|
-
noop
|
|
272
|
-
} from "../chunk-LKXCOLNY.mjs";
|
|
273
273
|
import "../chunk-424M7IR7.mjs";
|
|
274
274
|
|
|
275
275
|
// src/compat/array/chunk.ts
|
package/dist/function/index.mjs
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import "../chunk-236H5JZJ.mjs";
|
|
2
|
+
import {
|
|
3
|
+
noop
|
|
4
|
+
} from "../chunk-LKXCOLNY.mjs";
|
|
2
5
|
import {
|
|
3
6
|
once
|
|
4
7
|
} from "../chunk-CMBC4MXG.mjs";
|
|
@@ -11,9 +14,6 @@ import {
|
|
|
11
14
|
import {
|
|
12
15
|
negate
|
|
13
16
|
} from "../chunk-BOOQBJN2.mjs";
|
|
14
|
-
import {
|
|
15
|
-
noop
|
|
16
|
-
} from "../chunk-LKXCOLNY.mjs";
|
|
17
17
|
import "../chunk-424M7IR7.mjs";
|
|
18
18
|
export {
|
|
19
19
|
debounce,
|
package/dist/index.mjs
CHANGED
|
@@ -88,6 +88,9 @@ import {
|
|
|
88
88
|
clamp
|
|
89
89
|
} from "./chunk-MLCL773E.mjs";
|
|
90
90
|
import "./chunk-DDH7K4QM.mjs";
|
|
91
|
+
import {
|
|
92
|
+
without
|
|
93
|
+
} from "./chunk-PYEYV7BY.mjs";
|
|
91
94
|
import {
|
|
92
95
|
xor
|
|
93
96
|
} from "./chunk-L7FQX5MN.mjs";
|
|
@@ -106,12 +109,18 @@ import {
|
|
|
106
109
|
import {
|
|
107
110
|
zipWith
|
|
108
111
|
} from "./chunk-4KYXHZ4R.mjs";
|
|
112
|
+
import {
|
|
113
|
+
union
|
|
114
|
+
} from "./chunk-R6QA7PLZ.mjs";
|
|
109
115
|
import {
|
|
110
116
|
unionBy
|
|
111
117
|
} from "./chunk-NFS7RWWE.mjs";
|
|
112
118
|
import {
|
|
113
119
|
unionWith
|
|
114
120
|
} from "./chunk-2ZCITDMK.mjs";
|
|
121
|
+
import {
|
|
122
|
+
uniq
|
|
123
|
+
} from "./chunk-DVK2N4KC.mjs";
|
|
115
124
|
import {
|
|
116
125
|
uniqBy
|
|
117
126
|
} from "./chunk-B4COTK4K.mjs";
|
|
@@ -125,8 +134,14 @@ import {
|
|
|
125
134
|
unzipWith
|
|
126
135
|
} from "./chunk-IFNXROZR.mjs";
|
|
127
136
|
import {
|
|
128
|
-
|
|
129
|
-
} from "./chunk-
|
|
137
|
+
sampleSize
|
|
138
|
+
} from "./chunk-EHSKB6DF.mjs";
|
|
139
|
+
import {
|
|
140
|
+
randomInt
|
|
141
|
+
} from "./chunk-GIWAOOFY.mjs";
|
|
142
|
+
import {
|
|
143
|
+
random
|
|
144
|
+
} from "./chunk-SYWMYQYJ.mjs";
|
|
130
145
|
import {
|
|
131
146
|
shuffle
|
|
132
147
|
} from "./chunk-G7UQ5PUR.mjs";
|
|
@@ -149,11 +164,8 @@ import {
|
|
|
149
164
|
toFilled
|
|
150
165
|
} from "./chunk-OP4OAKQJ.mjs";
|
|
151
166
|
import {
|
|
152
|
-
|
|
153
|
-
} from "./chunk-
|
|
154
|
-
import {
|
|
155
|
-
uniq
|
|
156
|
-
} from "./chunk-DVK2N4KC.mjs";
|
|
167
|
+
intersectionWith
|
|
168
|
+
} from "./chunk-XI7KRD2C.mjs";
|
|
157
169
|
import {
|
|
158
170
|
keyBy
|
|
159
171
|
} from "./chunk-AJKZMN2V.mjs";
|
|
@@ -176,14 +188,8 @@ import {
|
|
|
176
188
|
sample
|
|
177
189
|
} from "./chunk-2KNLZB7V.mjs";
|
|
178
190
|
import {
|
|
179
|
-
|
|
180
|
-
} from "./chunk-
|
|
181
|
-
import {
|
|
182
|
-
randomInt
|
|
183
|
-
} from "./chunk-GIWAOOFY.mjs";
|
|
184
|
-
import {
|
|
185
|
-
random
|
|
186
|
-
} from "./chunk-SYWMYQYJ.mjs";
|
|
191
|
+
flattenDeep
|
|
192
|
+
} from "./chunk-ML727RRJ.mjs";
|
|
187
193
|
import {
|
|
188
194
|
forEachRight
|
|
189
195
|
} from "./chunk-IEA53J7P.mjs";
|
|
@@ -203,8 +209,8 @@ import {
|
|
|
203
209
|
intersectionBy
|
|
204
210
|
} from "./chunk-O6UXZR3U.mjs";
|
|
205
211
|
import {
|
|
206
|
-
|
|
207
|
-
} from "./chunk-
|
|
212
|
+
differenceWith
|
|
213
|
+
} from "./chunk-6NVQAHXP.mjs";
|
|
208
214
|
import {
|
|
209
215
|
drop
|
|
210
216
|
} from "./chunk-3EZAFZG3.mjs";
|
|
@@ -223,9 +229,6 @@ import {
|
|
|
223
229
|
import {
|
|
224
230
|
flatMap
|
|
225
231
|
} from "./chunk-UY76KTPE.mjs";
|
|
226
|
-
import {
|
|
227
|
-
flattenDeep
|
|
228
|
-
} from "./chunk-ML727RRJ.mjs";
|
|
229
232
|
import {
|
|
230
233
|
flatten
|
|
231
234
|
} from "./chunk-33MSBDC6.mjs";
|
|
@@ -244,9 +247,6 @@ import {
|
|
|
244
247
|
import {
|
|
245
248
|
differenceBy
|
|
246
249
|
} from "./chunk-LVWX5B43.mjs";
|
|
247
|
-
import {
|
|
248
|
-
differenceWith
|
|
249
|
-
} from "./chunk-6NVQAHXP.mjs";
|
|
250
250
|
import "./chunk-F47GLYUU.mjs";
|
|
251
251
|
import {
|
|
252
252
|
AbortError
|
|
@@ -255,6 +255,9 @@ import {
|
|
|
255
255
|
TimeoutError
|
|
256
256
|
} from "./chunk-KIOYQRMQ.mjs";
|
|
257
257
|
import "./chunk-236H5JZJ.mjs";
|
|
258
|
+
import {
|
|
259
|
+
noop
|
|
260
|
+
} from "./chunk-LKXCOLNY.mjs";
|
|
258
261
|
import {
|
|
259
262
|
once
|
|
260
263
|
} from "./chunk-CMBC4MXG.mjs";
|
|
@@ -267,9 +270,6 @@ import {
|
|
|
267
270
|
import {
|
|
268
271
|
negate
|
|
269
272
|
} from "./chunk-BOOQBJN2.mjs";
|
|
270
|
-
import {
|
|
271
|
-
noop
|
|
272
|
-
} from "./chunk-LKXCOLNY.mjs";
|
|
273
273
|
import "./chunk-424M7IR7.mjs";
|
|
274
274
|
export {
|
|
275
275
|
AbortError,
|
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.12.0-dev.265+14c0ad30",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|