es-toolkit 1.10.1-dev.260 → 1.11.0-dev.261
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 +33 -0
- package/dist/array/index.mjs +12 -12
- package/dist/compat/index.mjs +35 -35
- package/dist/function/index.mjs +6 -6
- package/dist/index.mjs +35 -35
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# es-toolkit Changelog
|
|
2
2
|
|
|
3
|
+
## Version v1.11.0
|
|
4
|
+
|
|
5
|
+
Released on July 18th, 2024.
|
|
6
|
+
|
|
7
|
+
### Introducing `es-toolkit/compat`
|
|
8
|
+
|
|
9
|
+
We're introducing `es-toolkit/compat`, a new module designed as a drop-in replacement for lodash. It replicates lodash's API, making it easier to switch between the two libraries.
|
|
10
|
+
|
|
11
|
+
`es-toolkit/compat` is undergoing rigorous testing using real `lodash` test cases. Initial benchmarks suggest it's typically 5% slower and increases bundle size by 10% compared to the original `es-toolkit`.
|
|
12
|
+
|
|
13
|
+
This module is intended to facilitate a smooth transition and should be replaced with the original `es-toolkit` for optimal performance once migration is complete.
|
|
14
|
+
|
|
15
|
+
For more information, see our [compatibility documentation](https://es-toolkit.slash.page/compatibility.html).
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
- Added support for [get](https://es-toolkit.slash.page/reference/compat/object/get.html) and [set](https://es-toolkit.slash.page/reference/compat/object/set.html) in our compatibility layer `es-toolkit/compat`. (https://github.com/toss/es-toolkit/pull/232, https://github.com/toss/es-toolkit/pull/223)
|
|
20
|
+
- Added support for [zipObjectDeep](https://es-toolkit.slash.page/reference/compat/array/zipObjectDeep.html) in our compatibility layer `es-toolkit/compat`. (https://github.com/toss/es-toolkit/pull/150)
|
|
21
|
+
- Added support for [flatMap](https://es-toolkit.slash.page/reference/compat/array/flatMap.html). (https://github.com/toss/es-toolkit/pull/209)
|
|
22
|
+
- Added support for [startCase](https://es-toolkit.slash.page/reference/string/startCase.html), [startsWith](https://es-toolkit.slash.page/reference/string/startsWith.html), and [endsWith](https://es-toolkit.slash.page/reference/string/endsWith.html). (https://github.com/toss/es-toolkit/pull/224).
|
|
23
|
+
- Added support for [withTimeout](https://es-toolkit.slash.page/reference/promise/withTimeout.html). (https://github.com/toss/es-toolkit/pull/210)
|
|
24
|
+
|
|
25
|
+
### Bug fixes
|
|
26
|
+
|
|
27
|
+
- Fixed `drop` and `dropRight` incorrectly accepting negative integers. (https://github.com/toss/es-toolkit/pull/218)
|
|
28
|
+
- Fixed `invert` not to invert inherited properties. (https://github.com/toss/es-toolkit/pull/221)
|
|
29
|
+
|
|
30
|
+
### Performance Improvements
|
|
31
|
+
|
|
32
|
+
- Improved performance for `dropRightWhile`. (https://github.com/toss/es-toolkit/pull/220)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
3
36
|
## Version v1.10.1
|
|
4
37
|
|
|
5
38
|
Released on July 15th, 2024.
|
package/dist/array/index.mjs
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import "../chunk-DDH7K4QM.mjs";
|
|
2
|
-
import {
|
|
3
|
-
unzipWith
|
|
4
|
-
} from "../chunk-IFNXROZR.mjs";
|
|
5
2
|
import {
|
|
6
3
|
without
|
|
7
4
|
} from "../chunk-PYEYV7BY.mjs";
|
|
@@ -23,9 +20,6 @@ import {
|
|
|
23
20
|
import {
|
|
24
21
|
zipWith
|
|
25
22
|
} from "../chunk-4KYXHZ4R.mjs";
|
|
26
|
-
import {
|
|
27
|
-
toFilled
|
|
28
|
-
} from "../chunk-OP4OAKQJ.mjs";
|
|
29
23
|
import {
|
|
30
24
|
union
|
|
31
25
|
} from "../chunk-R6QA7PLZ.mjs";
|
|
@@ -48,8 +42,8 @@ import {
|
|
|
48
42
|
unzip
|
|
49
43
|
} from "../chunk-UYZKMBDO.mjs";
|
|
50
44
|
import {
|
|
51
|
-
|
|
52
|
-
} from "../chunk-
|
|
45
|
+
unzipWith
|
|
46
|
+
} from "../chunk-IFNXROZR.mjs";
|
|
53
47
|
import {
|
|
54
48
|
sampleSize
|
|
55
49
|
} from "../chunk-EHSKB6DF.mjs";
|
|
@@ -74,8 +68,8 @@ import {
|
|
|
74
68
|
takeWhile
|
|
75
69
|
} from "../chunk-2IXFGSUA.mjs";
|
|
76
70
|
import {
|
|
77
|
-
|
|
78
|
-
} from "../chunk-
|
|
71
|
+
toFilled
|
|
72
|
+
} from "../chunk-OP4OAKQJ.mjs";
|
|
79
73
|
import {
|
|
80
74
|
intersectionWith
|
|
81
75
|
} from "../chunk-XI7KRD2C.mjs";
|
|
@@ -97,6 +91,9 @@ import {
|
|
|
97
91
|
import {
|
|
98
92
|
partition
|
|
99
93
|
} from "../chunk-DN3NOZ3H.mjs";
|
|
94
|
+
import {
|
|
95
|
+
sample
|
|
96
|
+
} from "../chunk-2KNLZB7V.mjs";
|
|
100
97
|
import {
|
|
101
98
|
flattenDeep
|
|
102
99
|
} from "../chunk-ML727RRJ.mjs";
|
|
@@ -116,8 +113,8 @@ import {
|
|
|
116
113
|
intersection
|
|
117
114
|
} from "../chunk-FVVSE2F2.mjs";
|
|
118
115
|
import {
|
|
119
|
-
|
|
120
|
-
} from "../chunk-
|
|
116
|
+
intersectionBy
|
|
117
|
+
} from "../chunk-O6UXZR3U.mjs";
|
|
121
118
|
import {
|
|
122
119
|
differenceWith
|
|
123
120
|
} from "../chunk-6NVQAHXP.mjs";
|
|
@@ -154,6 +151,9 @@ import {
|
|
|
154
151
|
import {
|
|
155
152
|
difference
|
|
156
153
|
} from "../chunk-JPUKH67K.mjs";
|
|
154
|
+
import {
|
|
155
|
+
differenceBy
|
|
156
|
+
} from "../chunk-LVWX5B43.mjs";
|
|
157
157
|
import "../chunk-424M7IR7.mjs";
|
|
158
158
|
export {
|
|
159
159
|
chunk,
|
package/dist/compat/index.mjs
CHANGED
|
@@ -84,29 +84,10 @@ import {
|
|
|
84
84
|
import {
|
|
85
85
|
round
|
|
86
86
|
} from "../chunk-5PMKOZ2F.mjs";
|
|
87
|
-
import "../chunk-236H5JZJ.mjs";
|
|
88
|
-
import {
|
|
89
|
-
debounce
|
|
90
|
-
} from "../chunk-3IP4JVLL.mjs";
|
|
91
|
-
import {
|
|
92
|
-
negate
|
|
93
|
-
} from "../chunk-BOOQBJN2.mjs";
|
|
94
|
-
import {
|
|
95
|
-
noop
|
|
96
|
-
} from "../chunk-LKXCOLNY.mjs";
|
|
97
|
-
import {
|
|
98
|
-
once
|
|
99
|
-
} from "../chunk-CMBC4MXG.mjs";
|
|
100
|
-
import {
|
|
101
|
-
throttle
|
|
102
|
-
} from "../chunk-QOJGMVVR.mjs";
|
|
103
87
|
import {
|
|
104
88
|
clamp
|
|
105
89
|
} from "../chunk-MLCL773E.mjs";
|
|
106
90
|
import "../chunk-DDH7K4QM.mjs";
|
|
107
|
-
import {
|
|
108
|
-
unzipWith
|
|
109
|
-
} from "../chunk-IFNXROZR.mjs";
|
|
110
91
|
import {
|
|
111
92
|
without
|
|
112
93
|
} from "../chunk-PYEYV7BY.mjs";
|
|
@@ -128,9 +109,6 @@ import {
|
|
|
128
109
|
import {
|
|
129
110
|
zipWith
|
|
130
111
|
} from "../chunk-4KYXHZ4R.mjs";
|
|
131
|
-
import {
|
|
132
|
-
toFilled
|
|
133
|
-
} from "../chunk-OP4OAKQJ.mjs";
|
|
134
112
|
import {
|
|
135
113
|
union
|
|
136
114
|
} from "../chunk-R6QA7PLZ.mjs";
|
|
@@ -153,8 +131,8 @@ import {
|
|
|
153
131
|
unzip
|
|
154
132
|
} from "../chunk-UYZKMBDO.mjs";
|
|
155
133
|
import {
|
|
156
|
-
|
|
157
|
-
} from "../chunk-
|
|
134
|
+
unzipWith
|
|
135
|
+
} from "../chunk-IFNXROZR.mjs";
|
|
158
136
|
import {
|
|
159
137
|
sampleSize
|
|
160
138
|
} from "../chunk-EHSKB6DF.mjs";
|
|
@@ -183,8 +161,8 @@ import {
|
|
|
183
161
|
takeWhile
|
|
184
162
|
} from "../chunk-2IXFGSUA.mjs";
|
|
185
163
|
import {
|
|
186
|
-
|
|
187
|
-
} from "../chunk-
|
|
164
|
+
toFilled
|
|
165
|
+
} from "../chunk-OP4OAKQJ.mjs";
|
|
188
166
|
import {
|
|
189
167
|
intersectionWith
|
|
190
168
|
} from "../chunk-XI7KRD2C.mjs";
|
|
@@ -206,6 +184,9 @@ import {
|
|
|
206
184
|
import {
|
|
207
185
|
partition
|
|
208
186
|
} from "../chunk-DN3NOZ3H.mjs";
|
|
187
|
+
import {
|
|
188
|
+
sample
|
|
189
|
+
} from "../chunk-2KNLZB7V.mjs";
|
|
209
190
|
import {
|
|
210
191
|
flattenDeep
|
|
211
192
|
} from "../chunk-ML727RRJ.mjs";
|
|
@@ -225,8 +206,8 @@ import {
|
|
|
225
206
|
intersection
|
|
226
207
|
} from "../chunk-FVVSE2F2.mjs";
|
|
227
208
|
import {
|
|
228
|
-
|
|
229
|
-
} from "../chunk-
|
|
209
|
+
intersectionBy
|
|
210
|
+
} from "../chunk-O6UXZR3U.mjs";
|
|
230
211
|
import {
|
|
231
212
|
differenceWith
|
|
232
213
|
} from "../chunk-6NVQAHXP.mjs";
|
|
@@ -251,13 +232,6 @@ import {
|
|
|
251
232
|
import {
|
|
252
233
|
flatten
|
|
253
234
|
} from "../chunk-33MSBDC6.mjs";
|
|
254
|
-
import "../chunk-F47GLYUU.mjs";
|
|
255
|
-
import {
|
|
256
|
-
AbortError
|
|
257
|
-
} from "../chunk-DXB7EZUQ.mjs";
|
|
258
|
-
import {
|
|
259
|
-
TimeoutError
|
|
260
|
-
} from "../chunk-KIOYQRMQ.mjs";
|
|
261
235
|
import {
|
|
262
236
|
chunk
|
|
263
237
|
} from "../chunk-E6C5EZQA.mjs";
|
|
@@ -270,6 +244,32 @@ import {
|
|
|
270
244
|
import {
|
|
271
245
|
difference
|
|
272
246
|
} from "../chunk-JPUKH67K.mjs";
|
|
247
|
+
import {
|
|
248
|
+
differenceBy
|
|
249
|
+
} from "../chunk-LVWX5B43.mjs";
|
|
250
|
+
import "../chunk-F47GLYUU.mjs";
|
|
251
|
+
import {
|
|
252
|
+
AbortError
|
|
253
|
+
} from "../chunk-DXB7EZUQ.mjs";
|
|
254
|
+
import {
|
|
255
|
+
TimeoutError
|
|
256
|
+
} from "../chunk-KIOYQRMQ.mjs";
|
|
257
|
+
import "../chunk-236H5JZJ.mjs";
|
|
258
|
+
import {
|
|
259
|
+
noop
|
|
260
|
+
} from "../chunk-LKXCOLNY.mjs";
|
|
261
|
+
import {
|
|
262
|
+
once
|
|
263
|
+
} from "../chunk-CMBC4MXG.mjs";
|
|
264
|
+
import {
|
|
265
|
+
throttle
|
|
266
|
+
} from "../chunk-QOJGMVVR.mjs";
|
|
267
|
+
import {
|
|
268
|
+
debounce
|
|
269
|
+
} from "../chunk-3IP4JVLL.mjs";
|
|
270
|
+
import {
|
|
271
|
+
negate
|
|
272
|
+
} from "../chunk-BOOQBJN2.mjs";
|
|
273
273
|
import "../chunk-424M7IR7.mjs";
|
|
274
274
|
|
|
275
275
|
// src/compat/array/chunk.ts
|
package/dist/function/index.mjs
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import "../chunk-236H5JZJ.mjs";
|
|
2
|
-
import {
|
|
3
|
-
debounce
|
|
4
|
-
} from "../chunk-3IP4JVLL.mjs";
|
|
5
|
-
import {
|
|
6
|
-
negate
|
|
7
|
-
} from "../chunk-BOOQBJN2.mjs";
|
|
8
2
|
import {
|
|
9
3
|
noop
|
|
10
4
|
} from "../chunk-LKXCOLNY.mjs";
|
|
@@ -14,6 +8,12 @@ import {
|
|
|
14
8
|
import {
|
|
15
9
|
throttle
|
|
16
10
|
} from "../chunk-QOJGMVVR.mjs";
|
|
11
|
+
import {
|
|
12
|
+
debounce
|
|
13
|
+
} from "../chunk-3IP4JVLL.mjs";
|
|
14
|
+
import {
|
|
15
|
+
negate
|
|
16
|
+
} from "../chunk-BOOQBJN2.mjs";
|
|
17
17
|
import "../chunk-424M7IR7.mjs";
|
|
18
18
|
export {
|
|
19
19
|
debounce,
|
package/dist/index.mjs
CHANGED
|
@@ -84,29 +84,10 @@ import {
|
|
|
84
84
|
import {
|
|
85
85
|
round
|
|
86
86
|
} from "./chunk-5PMKOZ2F.mjs";
|
|
87
|
-
import "./chunk-236H5JZJ.mjs";
|
|
88
|
-
import {
|
|
89
|
-
debounce
|
|
90
|
-
} from "./chunk-3IP4JVLL.mjs";
|
|
91
|
-
import {
|
|
92
|
-
negate
|
|
93
|
-
} from "./chunk-BOOQBJN2.mjs";
|
|
94
|
-
import {
|
|
95
|
-
noop
|
|
96
|
-
} from "./chunk-LKXCOLNY.mjs";
|
|
97
|
-
import {
|
|
98
|
-
once
|
|
99
|
-
} from "./chunk-CMBC4MXG.mjs";
|
|
100
|
-
import {
|
|
101
|
-
throttle
|
|
102
|
-
} from "./chunk-QOJGMVVR.mjs";
|
|
103
87
|
import {
|
|
104
88
|
clamp
|
|
105
89
|
} from "./chunk-MLCL773E.mjs";
|
|
106
90
|
import "./chunk-DDH7K4QM.mjs";
|
|
107
|
-
import {
|
|
108
|
-
unzipWith
|
|
109
|
-
} from "./chunk-IFNXROZR.mjs";
|
|
110
91
|
import {
|
|
111
92
|
without
|
|
112
93
|
} from "./chunk-PYEYV7BY.mjs";
|
|
@@ -128,9 +109,6 @@ import {
|
|
|
128
109
|
import {
|
|
129
110
|
zipWith
|
|
130
111
|
} from "./chunk-4KYXHZ4R.mjs";
|
|
131
|
-
import {
|
|
132
|
-
toFilled
|
|
133
|
-
} from "./chunk-OP4OAKQJ.mjs";
|
|
134
112
|
import {
|
|
135
113
|
union
|
|
136
114
|
} from "./chunk-R6QA7PLZ.mjs";
|
|
@@ -153,8 +131,8 @@ import {
|
|
|
153
131
|
unzip
|
|
154
132
|
} from "./chunk-UYZKMBDO.mjs";
|
|
155
133
|
import {
|
|
156
|
-
|
|
157
|
-
} from "./chunk-
|
|
134
|
+
unzipWith
|
|
135
|
+
} from "./chunk-IFNXROZR.mjs";
|
|
158
136
|
import {
|
|
159
137
|
sampleSize
|
|
160
138
|
} from "./chunk-EHSKB6DF.mjs";
|
|
@@ -183,8 +161,8 @@ import {
|
|
|
183
161
|
takeWhile
|
|
184
162
|
} from "./chunk-2IXFGSUA.mjs";
|
|
185
163
|
import {
|
|
186
|
-
|
|
187
|
-
} from "./chunk-
|
|
164
|
+
toFilled
|
|
165
|
+
} from "./chunk-OP4OAKQJ.mjs";
|
|
188
166
|
import {
|
|
189
167
|
intersectionWith
|
|
190
168
|
} from "./chunk-XI7KRD2C.mjs";
|
|
@@ -206,6 +184,9 @@ import {
|
|
|
206
184
|
import {
|
|
207
185
|
partition
|
|
208
186
|
} from "./chunk-DN3NOZ3H.mjs";
|
|
187
|
+
import {
|
|
188
|
+
sample
|
|
189
|
+
} from "./chunk-2KNLZB7V.mjs";
|
|
209
190
|
import {
|
|
210
191
|
flattenDeep
|
|
211
192
|
} from "./chunk-ML727RRJ.mjs";
|
|
@@ -225,8 +206,8 @@ import {
|
|
|
225
206
|
intersection
|
|
226
207
|
} from "./chunk-FVVSE2F2.mjs";
|
|
227
208
|
import {
|
|
228
|
-
|
|
229
|
-
} from "./chunk-
|
|
209
|
+
intersectionBy
|
|
210
|
+
} from "./chunk-O6UXZR3U.mjs";
|
|
230
211
|
import {
|
|
231
212
|
differenceWith
|
|
232
213
|
} from "./chunk-6NVQAHXP.mjs";
|
|
@@ -251,13 +232,6 @@ import {
|
|
|
251
232
|
import {
|
|
252
233
|
flatten
|
|
253
234
|
} from "./chunk-33MSBDC6.mjs";
|
|
254
|
-
import "./chunk-F47GLYUU.mjs";
|
|
255
|
-
import {
|
|
256
|
-
AbortError
|
|
257
|
-
} from "./chunk-DXB7EZUQ.mjs";
|
|
258
|
-
import {
|
|
259
|
-
TimeoutError
|
|
260
|
-
} from "./chunk-KIOYQRMQ.mjs";
|
|
261
235
|
import {
|
|
262
236
|
chunk
|
|
263
237
|
} from "./chunk-E6C5EZQA.mjs";
|
|
@@ -270,6 +244,32 @@ import {
|
|
|
270
244
|
import {
|
|
271
245
|
difference
|
|
272
246
|
} from "./chunk-JPUKH67K.mjs";
|
|
247
|
+
import {
|
|
248
|
+
differenceBy
|
|
249
|
+
} from "./chunk-LVWX5B43.mjs";
|
|
250
|
+
import "./chunk-F47GLYUU.mjs";
|
|
251
|
+
import {
|
|
252
|
+
AbortError
|
|
253
|
+
} from "./chunk-DXB7EZUQ.mjs";
|
|
254
|
+
import {
|
|
255
|
+
TimeoutError
|
|
256
|
+
} from "./chunk-KIOYQRMQ.mjs";
|
|
257
|
+
import "./chunk-236H5JZJ.mjs";
|
|
258
|
+
import {
|
|
259
|
+
noop
|
|
260
|
+
} from "./chunk-LKXCOLNY.mjs";
|
|
261
|
+
import {
|
|
262
|
+
once
|
|
263
|
+
} from "./chunk-CMBC4MXG.mjs";
|
|
264
|
+
import {
|
|
265
|
+
throttle
|
|
266
|
+
} from "./chunk-QOJGMVVR.mjs";
|
|
267
|
+
import {
|
|
268
|
+
debounce
|
|
269
|
+
} from "./chunk-3IP4JVLL.mjs";
|
|
270
|
+
import {
|
|
271
|
+
negate
|
|
272
|
+
} from "./chunk-BOOQBJN2.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.11.0-dev.261+cd60ee8f",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|