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