es-toolkit 1.2.2-dev.72 → 1.3.0-dev.73
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 +12 -0
- package/dist/array/index.mjs +22 -22
- package/dist/function/index.mjs +3 -3
- package/dist/index.mjs +38 -38
- package/dist/math/index.mjs +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# es-toolkit Changelog
|
|
2
2
|
|
|
3
|
+
## Version v1.3.0
|
|
4
|
+
|
|
5
|
+
Released on June 14th, 2024.
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- Add support for using AbortSignals to cancel `debounce`d functions. (https://github.com/toss/es-toolkit/pull/45)
|
|
10
|
+
|
|
11
|
+
### Performance Optimizations
|
|
12
|
+
|
|
13
|
+
- Optimize the time complexity of `intersection`. (https://github.com/toss/es-toolkit/pull/47)
|
|
14
|
+
|
|
3
15
|
## Version v1.2.2
|
|
4
16
|
|
|
5
17
|
Released on June 13th, 2024.
|
package/dist/array/index.mjs
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import "../chunk-EJGAXTF7.mjs";
|
|
2
|
-
import {
|
|
3
|
-
uniqBy
|
|
4
|
-
} from "../chunk-ASFOKYTY.mjs";
|
|
5
2
|
import {
|
|
6
3
|
xor
|
|
7
4
|
} from "../chunk-WXIBCOES.mjs";
|
|
@@ -17,15 +14,6 @@ import {
|
|
|
17
14
|
import {
|
|
18
15
|
zipWith
|
|
19
16
|
} from "../chunk-T5FDOBCA.mjs";
|
|
20
|
-
import {
|
|
21
|
-
shuffle
|
|
22
|
-
} from "../chunk-DPLJQQFX.mjs";
|
|
23
|
-
import {
|
|
24
|
-
take
|
|
25
|
-
} from "../chunk-ME352XO7.mjs";
|
|
26
|
-
import {
|
|
27
|
-
takeRight
|
|
28
|
-
} from "../chunk-XDKEPIUV.mjs";
|
|
29
17
|
import {
|
|
30
18
|
takeRightWhile
|
|
31
19
|
} from "../chunk-NTLX2MPV.mjs";
|
|
@@ -35,21 +23,21 @@ import {
|
|
|
35
23
|
import {
|
|
36
24
|
union
|
|
37
25
|
} from "../chunk-DAJZ3JCI.mjs";
|
|
38
|
-
import {
|
|
39
|
-
uniq
|
|
40
|
-
} from "../chunk-XFCW7XJ4.mjs";
|
|
41
26
|
import {
|
|
42
27
|
unionBy
|
|
43
28
|
} from "../chunk-JBDGK6X4.mjs";
|
|
44
29
|
import {
|
|
45
30
|
unionWith
|
|
46
31
|
} from "../chunk-3KHI4I2X.mjs";
|
|
32
|
+
import {
|
|
33
|
+
uniq
|
|
34
|
+
} from "../chunk-XFCW7XJ4.mjs";
|
|
35
|
+
import {
|
|
36
|
+
uniqBy
|
|
37
|
+
} from "../chunk-ASFOKYTY.mjs";
|
|
47
38
|
import {
|
|
48
39
|
uniqWith
|
|
49
40
|
} from "../chunk-2PFDLYQC.mjs";
|
|
50
|
-
import {
|
|
51
|
-
groupBy
|
|
52
|
-
} from "../chunk-LWXZFXY5.mjs";
|
|
53
41
|
import {
|
|
54
42
|
intersection
|
|
55
43
|
} from "../chunk-PYLGHB3F.mjs";
|
|
@@ -66,11 +54,14 @@ import {
|
|
|
66
54
|
sample
|
|
67
55
|
} from "../chunk-DOOIIHT3.mjs";
|
|
68
56
|
import {
|
|
69
|
-
|
|
70
|
-
} from "../chunk-
|
|
57
|
+
shuffle
|
|
58
|
+
} from "../chunk-DPLJQQFX.mjs";
|
|
71
59
|
import {
|
|
72
|
-
|
|
73
|
-
} from "../chunk-
|
|
60
|
+
take
|
|
61
|
+
} from "../chunk-ME352XO7.mjs";
|
|
62
|
+
import {
|
|
63
|
+
takeRight
|
|
64
|
+
} from "../chunk-XDKEPIUV.mjs";
|
|
74
65
|
import {
|
|
75
66
|
differenceBy
|
|
76
67
|
} from "../chunk-LVWX5B43.mjs";
|
|
@@ -89,6 +80,15 @@ import {
|
|
|
89
80
|
import {
|
|
90
81
|
dropWhile
|
|
91
82
|
} from "../chunk-VNMVP3DL.mjs";
|
|
83
|
+
import {
|
|
84
|
+
groupBy
|
|
85
|
+
} from "../chunk-LWXZFXY5.mjs";
|
|
86
|
+
import {
|
|
87
|
+
chunk
|
|
88
|
+
} from "../chunk-E6C5EZQA.mjs";
|
|
89
|
+
import {
|
|
90
|
+
difference
|
|
91
|
+
} from "../chunk-M7UI5ETO.mjs";
|
|
92
92
|
import "../chunk-2MM5EJJX.mjs";
|
|
93
93
|
export {
|
|
94
94
|
chunk,
|
package/dist/function/index.mjs
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import "../chunk-N6EM6ETS.mjs";
|
|
2
|
-
import {
|
|
3
|
-
throttle
|
|
4
|
-
} from "../chunk-XLO3QZVY.mjs";
|
|
5
2
|
import {
|
|
6
3
|
debounce
|
|
7
4
|
} from "../chunk-GOXQV6DX.mjs";
|
|
@@ -11,6 +8,9 @@ import {
|
|
|
11
8
|
import {
|
|
12
9
|
once
|
|
13
10
|
} from "../chunk-UFAA5WKR.mjs";
|
|
11
|
+
import {
|
|
12
|
+
throttle
|
|
13
|
+
} from "../chunk-XLO3QZVY.mjs";
|
|
14
14
|
import "../chunk-2MM5EJJX.mjs";
|
|
15
15
|
export {
|
|
16
16
|
debounce,
|
package/dist/index.mjs
CHANGED
|
@@ -29,32 +29,16 @@ import {
|
|
|
29
29
|
isNil
|
|
30
30
|
} from "./chunk-OHQAR5AU.mjs";
|
|
31
31
|
import "./chunk-IJLQVGW4.mjs";
|
|
32
|
+
import {
|
|
33
|
+
sum
|
|
34
|
+
} from "./chunk-7OU22ENP.mjs";
|
|
32
35
|
import {
|
|
33
36
|
clamp
|
|
34
37
|
} from "./chunk-MLCL773E.mjs";
|
|
35
38
|
import {
|
|
36
39
|
round
|
|
37
40
|
} from "./chunk-V7E5DGZP.mjs";
|
|
38
|
-
import {
|
|
39
|
-
sum
|
|
40
|
-
} from "./chunk-7OU22ENP.mjs";
|
|
41
|
-
import "./chunk-N6EM6ETS.mjs";
|
|
42
|
-
import {
|
|
43
|
-
throttle
|
|
44
|
-
} from "./chunk-XLO3QZVY.mjs";
|
|
45
|
-
import {
|
|
46
|
-
debounce
|
|
47
|
-
} from "./chunk-GOXQV6DX.mjs";
|
|
48
|
-
import {
|
|
49
|
-
noop
|
|
50
|
-
} from "./chunk-LKXCOLNY.mjs";
|
|
51
|
-
import {
|
|
52
|
-
once
|
|
53
|
-
} from "./chunk-UFAA5WKR.mjs";
|
|
54
41
|
import "./chunk-EJGAXTF7.mjs";
|
|
55
|
-
import {
|
|
56
|
-
uniqBy
|
|
57
|
-
} from "./chunk-ASFOKYTY.mjs";
|
|
58
42
|
import {
|
|
59
43
|
xor
|
|
60
44
|
} from "./chunk-WXIBCOES.mjs";
|
|
@@ -70,15 +54,6 @@ import {
|
|
|
70
54
|
import {
|
|
71
55
|
zipWith
|
|
72
56
|
} from "./chunk-T5FDOBCA.mjs";
|
|
73
|
-
import {
|
|
74
|
-
shuffle
|
|
75
|
-
} from "./chunk-DPLJQQFX.mjs";
|
|
76
|
-
import {
|
|
77
|
-
take
|
|
78
|
-
} from "./chunk-ME352XO7.mjs";
|
|
79
|
-
import {
|
|
80
|
-
takeRight
|
|
81
|
-
} from "./chunk-XDKEPIUV.mjs";
|
|
82
57
|
import {
|
|
83
58
|
takeRightWhile
|
|
84
59
|
} from "./chunk-NTLX2MPV.mjs";
|
|
@@ -88,21 +63,21 @@ import {
|
|
|
88
63
|
import {
|
|
89
64
|
union
|
|
90
65
|
} from "./chunk-DAJZ3JCI.mjs";
|
|
91
|
-
import {
|
|
92
|
-
uniq
|
|
93
|
-
} from "./chunk-XFCW7XJ4.mjs";
|
|
94
66
|
import {
|
|
95
67
|
unionBy
|
|
96
68
|
} from "./chunk-JBDGK6X4.mjs";
|
|
97
69
|
import {
|
|
98
70
|
unionWith
|
|
99
71
|
} from "./chunk-3KHI4I2X.mjs";
|
|
72
|
+
import {
|
|
73
|
+
uniq
|
|
74
|
+
} from "./chunk-XFCW7XJ4.mjs";
|
|
75
|
+
import {
|
|
76
|
+
uniqBy
|
|
77
|
+
} from "./chunk-ASFOKYTY.mjs";
|
|
100
78
|
import {
|
|
101
79
|
uniqWith
|
|
102
80
|
} from "./chunk-2PFDLYQC.mjs";
|
|
103
|
-
import {
|
|
104
|
-
groupBy
|
|
105
|
-
} from "./chunk-LWXZFXY5.mjs";
|
|
106
81
|
import {
|
|
107
82
|
intersection
|
|
108
83
|
} from "./chunk-PYLGHB3F.mjs";
|
|
@@ -119,11 +94,14 @@ import {
|
|
|
119
94
|
sample
|
|
120
95
|
} from "./chunk-DOOIIHT3.mjs";
|
|
121
96
|
import {
|
|
122
|
-
|
|
123
|
-
} from "./chunk-
|
|
97
|
+
shuffle
|
|
98
|
+
} from "./chunk-DPLJQQFX.mjs";
|
|
124
99
|
import {
|
|
125
|
-
|
|
126
|
-
} from "./chunk-
|
|
100
|
+
take
|
|
101
|
+
} from "./chunk-ME352XO7.mjs";
|
|
102
|
+
import {
|
|
103
|
+
takeRight
|
|
104
|
+
} from "./chunk-XDKEPIUV.mjs";
|
|
127
105
|
import {
|
|
128
106
|
differenceBy
|
|
129
107
|
} from "./chunk-LVWX5B43.mjs";
|
|
@@ -142,6 +120,28 @@ import {
|
|
|
142
120
|
import {
|
|
143
121
|
dropWhile
|
|
144
122
|
} from "./chunk-VNMVP3DL.mjs";
|
|
123
|
+
import {
|
|
124
|
+
groupBy
|
|
125
|
+
} from "./chunk-LWXZFXY5.mjs";
|
|
126
|
+
import "./chunk-N6EM6ETS.mjs";
|
|
127
|
+
import {
|
|
128
|
+
debounce
|
|
129
|
+
} from "./chunk-GOXQV6DX.mjs";
|
|
130
|
+
import {
|
|
131
|
+
noop
|
|
132
|
+
} from "./chunk-LKXCOLNY.mjs";
|
|
133
|
+
import {
|
|
134
|
+
once
|
|
135
|
+
} from "./chunk-UFAA5WKR.mjs";
|
|
136
|
+
import {
|
|
137
|
+
throttle
|
|
138
|
+
} from "./chunk-XLO3QZVY.mjs";
|
|
139
|
+
import {
|
|
140
|
+
chunk
|
|
141
|
+
} from "./chunk-E6C5EZQA.mjs";
|
|
142
|
+
import {
|
|
143
|
+
difference
|
|
144
|
+
} from "./chunk-M7UI5ETO.mjs";
|
|
145
145
|
import "./chunk-2MM5EJJX.mjs";
|
|
146
146
|
export {
|
|
147
147
|
chunk,
|
package/dist/math/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../chunk-IJLQVGW4.mjs";
|
|
2
|
+
import {
|
|
3
|
+
sum
|
|
4
|
+
} from "../chunk-7OU22ENP.mjs";
|
|
2
5
|
import {
|
|
3
6
|
clamp
|
|
4
7
|
} from "../chunk-MLCL773E.mjs";
|
|
5
8
|
import {
|
|
6
9
|
round
|
|
7
10
|
} from "../chunk-V7E5DGZP.mjs";
|
|
8
|
-
import {
|
|
9
|
-
sum
|
|
10
|
-
} from "../chunk-7OU22ENP.mjs";
|
|
11
11
|
import "../chunk-2MM5EJJX.mjs";
|
|
12
12
|
export {
|
|
13
13
|
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.3.0-dev.73+74ceaf47",
|
|
5
5
|
"workspaces": [
|
|
6
6
|
"docs"
|
|
7
7
|
],
|