es-toolkit 1.10.0 → 1.10.1-dev.213
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 +6 -1
- package/LICENSE +7 -1
- package/dist/array/chunk.mjs +1 -1
- package/dist/array/compact.mjs +1 -1
- package/dist/array/countBy.mjs +1 -1
- package/dist/array/difference.mjs +1 -1
- package/dist/array/differenceBy.mjs +1 -1
- package/dist/array/differenceWith.mjs +1 -1
- package/dist/array/drop.mjs +1 -1
- package/dist/array/dropRight.mjs +1 -1
- package/dist/array/dropRightWhile.mjs +1 -1
- package/dist/array/dropWhile.mjs +1 -1
- package/dist/array/fill.mjs +1 -1
- package/dist/array/flatten.mjs +1 -1
- package/dist/array/flattenDeep.mjs +1 -1
- package/dist/array/forEachRight.mjs +1 -1
- package/dist/array/groupBy.mjs +1 -1
- package/dist/array/head.mjs +1 -1
- package/dist/array/index.mjs +17 -17
- package/dist/array/initial.mjs +1 -1
- package/dist/array/intersection.mjs +1 -1
- package/dist/array/intersectionBy.mjs +1 -1
- package/dist/array/intersectionWith.mjs +1 -1
- package/dist/array/keyBy.mjs +1 -1
- package/dist/array/last.mjs +1 -1
- package/dist/array/maxBy.mjs +1 -1
- package/dist/array/minBy.mjs +1 -1
- package/dist/array/orderBy.mjs +1 -1
- package/dist/array/partition.mjs +1 -1
- package/dist/array/sample.mjs +1 -1
- package/dist/array/sampleSize.mjs +1 -1
- package/dist/array/shuffle.mjs +1 -1
- package/dist/array/tail.mjs +1 -1
- package/dist/array/take.mjs +1 -1
- package/dist/array/takeRight.mjs +1 -1
- package/dist/array/takeRightWhile.mjs +1 -1
- package/dist/array/takeWhile.mjs +1 -1
- package/dist/array/toFilled.mjs +1 -1
- package/dist/array/union.mjs +1 -1
- package/dist/array/unionBy.mjs +1 -1
- package/dist/array/unionWith.mjs +1 -1
- package/dist/array/uniq.mjs +1 -1
- package/dist/array/uniqBy.mjs +1 -1
- package/dist/array/uniqWith.mjs +1 -1
- package/dist/array/unzip.mjs +1 -1
- package/dist/array/unzipWith.mjs +1 -1
- package/dist/array/without.mjs +1 -1
- package/dist/array/xor.mjs +1 -1
- package/dist/array/xorBy.mjs +1 -1
- package/dist/array/xorWith.mjs +1 -1
- package/dist/array/zip.mjs +1 -1
- package/dist/array/zipObject.mjs +1 -1
- package/dist/array/zipWith.mjs +1 -1
- package/dist/chunk-2MM5EJJX.mjs +21 -0
- package/dist/chunk-5L4VWRFX.mjs +14 -0
- package/dist/chunk-5L4VWRFX.mjs.map +1 -0
- package/dist/chunk-FUS75PJ7.mjs +1 -0
- package/dist/chunk-NKLIE2OI.mjs +1 -0
- package/dist/chunk-NKLIE2OI.mjs.map +1 -0
- package/dist/{chunk-4E4D3BMI.mjs → chunk-QZITBKWX.mjs} +2 -2
- package/dist/chunk-Y5V7UAZZ.mjs +21 -0
- package/dist/chunk-Y5V7UAZZ.mjs.map +1 -0
- package/dist/compat/index.d.mts +109 -0
- package/dist/compat/index.d.ts +109 -0
- package/dist/compat/index.js +1077 -0
- package/dist/compat/index.js.map +1 -0
- package/dist/compat/index.mjs +355 -0
- package/dist/compat/index.mjs.map +1 -0
- package/dist/error/AbortError.mjs +1 -1
- package/dist/error/index.mjs +1 -1
- package/dist/function/debounce.mjs +1 -1
- package/dist/function/index.mjs +4 -4
- package/dist/function/negate.mjs +1 -1
- package/dist/function/noop.mjs +1 -1
- package/dist/function/once.mjs +1 -1
- package/dist/function/throttle.mjs +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14 -5515
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +89 -84
- package/dist/math/clamp.mjs +1 -1
- package/dist/math/inRange.mjs +1 -1
- package/dist/math/index.d.mts +1 -0
- package/dist/math/index.d.ts +1 -0
- package/dist/math/index.js +10 -2
- package/dist/math/index.js.map +1 -1
- package/dist/math/index.mjs +19 -15
- package/dist/math/mean.mjs +1 -1
- package/dist/math/meanBy.mjs +1 -1
- package/dist/math/random.mjs +1 -1
- package/dist/math/randomInt.mjs +1 -1
- package/dist/math/range.mjs +1 -1
- package/dist/math/round.mjs +1 -1
- package/dist/math/sum.mjs +1 -1
- package/dist/math/sumBy.d.mts +18 -0
- package/dist/math/sumBy.d.ts +18 -0
- package/dist/math/sumBy.js +45 -0
- package/dist/math/sumBy.js.map +1 -0
- package/dist/math/sumBy.mjs +9 -0
- package/dist/math/sumBy.mjs.map +1 -0
- package/dist/object/clone.mjs +1 -1
- package/dist/object/index.mjs +5 -5
- package/dist/object/invert.mjs +1 -1
- package/dist/object/omit.mjs +2 -2
- package/dist/object/omitBy.mjs +1 -1
- package/dist/object/pick.mjs +1 -1
- package/dist/object/pickBy.mjs +1 -1
- package/dist/predicate/index.mjs +7 -7
- package/dist/predicate/isEqual.mjs +1 -1
- package/dist/predicate/isNil.mjs +1 -1
- package/dist/predicate/isNotNil.mjs +1 -1
- package/dist/predicate/isNull.mjs +1 -1
- package/dist/predicate/isUndefined.mjs +1 -1
- package/dist/promise/delay.mjs +1 -1
- package/dist/promise/index.mjs +1 -1
- package/dist/string/camelCase.js +6 -5508
- package/dist/string/camelCase.js.map +1 -1
- package/dist/string/camelCase.mjs +3 -2
- package/dist/string/capitalize.mjs +1 -1
- package/dist/string/index.js +6 -5515
- package/dist/string/index.js.map +1 -1
- package/dist/string/index.mjs +3 -3
- package/dist/string/kebabCase.mjs +1 -1
- package/dist/string/lowerCase.mjs +1 -1
- package/dist/string/snakeCase.mjs +1 -1
- package/package.json +3 -5
- package/dist/chunk-2HIMLZE3.mjs +0 -46
- package/dist/chunk-TLVQSNOE.mjs +0 -1
- package/dist/chunk-XGCYC4YA.mjs +0 -5516
- package/dist/chunk-XGCYC4YA.mjs.map +0 -1
- /package/dist/{chunk-2HIMLZE3.mjs.map → chunk-2MM5EJJX.mjs.map} +0 -0
- /package/dist/{chunk-TLVQSNOE.mjs.map → chunk-FUS75PJ7.mjs.map} +0 -0
- /package/dist/{chunk-4E4D3BMI.mjs.map → chunk-QZITBKWX.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
# es-toolkit Changelog
|
|
2
2
|
|
|
3
|
+
## Version v1.10.1
|
|
4
|
+
|
|
5
|
+
Released on July 15th, 2024.
|
|
6
|
+
|
|
7
|
+
- Fixed [camelCase](https://es-toolkit.slash.page/reference/string/camelCase.html) using `capitalize` from incorrect import. ([8dda135](https://github.com/toss/es-toolkit/commit/8dda135fa339ae4953908a74b2e6eeca9f163a20))
|
|
8
|
+
|
|
3
9
|
## Version v1.10.0
|
|
4
10
|
|
|
5
11
|
Released on July 14th, 2024.
|
|
6
12
|
|
|
7
13
|
### Features
|
|
8
14
|
|
|
9
|
-
|
|
10
15
|
- Add support for [capitalize](https://es-toolkit.slash.page/reference/string/capitalize.html), [snakeCase](https://es-toolkit.slash.page/reference/string/snakeCase.html), [kebabCase](https://es-toolkit.slash.page/reference/string/kebabCase.html), [camelCase](https://es-toolkit.slash.page/reference/string/camelCase.html) and [lowerCase](https://es-toolkit.slash.page/reference/string/lowerCase.html). (https://github.com/toss/es-toolkit/pull/152, https://github.com/toss/es-toolkit/pull/161, https://github.com/toss/es-toolkit/pull/162, https://github.com/toss/es-toolkit/pull/166, [21d6530](https://github.com/toss/es-toolkit/commit/21d6530e16471d596410d57d59fd3ced8fc5569f)).
|
|
11
16
|
- Add support for [negate](https://es-toolkit.slash.page/reference/function/negate.html). (https://github.com/toss/es-toolkit/pull/177)
|
|
12
17
|
- Add support for [isEqual](https://es-toolkit.slash.page/reference/predicate/isEqual.html). (https://github.com/toss/es-toolkit/pull/174)
|
package/LICENSE
CHANGED
|
@@ -18,4 +18,10 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
Some of the test code in this software comes from the lodash library (https://github.com/lodash/lodash).
|
|
26
|
+
|
|
27
|
+
The copyright for this imported test code from lodash is owned by the JS Foundation and other contributors <https://js.foundation/>.
|
package/dist/array/chunk.mjs
CHANGED
package/dist/array/compact.mjs
CHANGED
package/dist/array/countBy.mjs
CHANGED
package/dist/array/drop.mjs
CHANGED
package/dist/array/dropRight.mjs
CHANGED
package/dist/array/dropWhile.mjs
CHANGED
package/dist/array/fill.mjs
CHANGED
package/dist/array/flatten.mjs
CHANGED
package/dist/array/groupBy.mjs
CHANGED
package/dist/array/head.mjs
CHANGED
package/dist/array/index.mjs
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import "../chunk-2MRZANXZ.mjs";
|
|
2
|
-
import {
|
|
3
|
-
xor
|
|
4
|
-
} from "../chunk-L7FQX5MN.mjs";
|
|
5
2
|
import {
|
|
6
3
|
xorBy
|
|
7
4
|
} from "../chunk-Q47NGNXT.mjs";
|
|
@@ -17,9 +14,6 @@ import {
|
|
|
17
14
|
import {
|
|
18
15
|
zipWith
|
|
19
16
|
} from "../chunk-4KYXHZ4R.mjs";
|
|
20
|
-
import {
|
|
21
|
-
unionBy
|
|
22
|
-
} from "../chunk-NFS7RWWE.mjs";
|
|
23
17
|
import {
|
|
24
18
|
unionWith
|
|
25
19
|
} from "../chunk-2ZCITDMK.mjs";
|
|
@@ -39,8 +33,8 @@ import {
|
|
|
39
33
|
without
|
|
40
34
|
} from "../chunk-PYEYV7BY.mjs";
|
|
41
35
|
import {
|
|
42
|
-
|
|
43
|
-
} from "../chunk-
|
|
36
|
+
xor
|
|
37
|
+
} from "../chunk-L7FQX5MN.mjs";
|
|
44
38
|
import {
|
|
45
39
|
tail
|
|
46
40
|
} from "../chunk-OF6NM4G7.mjs";
|
|
@@ -66,8 +60,8 @@ import {
|
|
|
66
60
|
uniq
|
|
67
61
|
} from "../chunk-DVK2N4KC.mjs";
|
|
68
62
|
import {
|
|
69
|
-
|
|
70
|
-
} from "../chunk-
|
|
63
|
+
unionBy
|
|
64
|
+
} from "../chunk-NFS7RWWE.mjs";
|
|
71
65
|
import {
|
|
72
66
|
last
|
|
73
67
|
} from "../chunk-KPBQ7OUY.mjs";
|
|
@@ -89,9 +83,11 @@ import {
|
|
|
89
83
|
import {
|
|
90
84
|
sampleSize
|
|
91
85
|
} from "../chunk-EHSKB6DF.mjs";
|
|
86
|
+
import "../chunk-GIWAOOFY.mjs";
|
|
87
|
+
import "../chunk-SYWMYQYJ.mjs";
|
|
92
88
|
import {
|
|
93
|
-
|
|
94
|
-
} from "../chunk-
|
|
89
|
+
shuffle
|
|
90
|
+
} from "../chunk-G7UQ5PUR.mjs";
|
|
95
91
|
import {
|
|
96
92
|
groupBy
|
|
97
93
|
} from "../chunk-E6E4RZLN.mjs";
|
|
@@ -111,8 +107,8 @@ import {
|
|
|
111
107
|
intersectionWith
|
|
112
108
|
} from "../chunk-XI7KRD2C.mjs";
|
|
113
109
|
import {
|
|
114
|
-
|
|
115
|
-
} from "../chunk-
|
|
110
|
+
keyBy
|
|
111
|
+
} from "../chunk-AJKZMN2V.mjs";
|
|
116
112
|
import {
|
|
117
113
|
drop
|
|
118
114
|
} from "../chunk-S3CORED5.mjs";
|
|
@@ -134,6 +130,9 @@ import {
|
|
|
134
130
|
import {
|
|
135
131
|
flatten
|
|
136
132
|
} from "../chunk-33MSBDC6.mjs";
|
|
133
|
+
import {
|
|
134
|
+
forEachRight
|
|
135
|
+
} from "../chunk-IEA53J7P.mjs";
|
|
137
136
|
import {
|
|
138
137
|
chunk
|
|
139
138
|
} from "../chunk-E6C5EZQA.mjs";
|
|
@@ -149,9 +148,10 @@ import {
|
|
|
149
148
|
import {
|
|
150
149
|
differenceBy
|
|
151
150
|
} from "../chunk-LVWX5B43.mjs";
|
|
152
|
-
import
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
import {
|
|
152
|
+
differenceWith
|
|
153
|
+
} from "../chunk-6NVQAHXP.mjs";
|
|
154
|
+
import "../chunk-2MM5EJJX.mjs";
|
|
155
155
|
export {
|
|
156
156
|
chunk,
|
|
157
157
|
compact,
|
package/dist/array/initial.mjs
CHANGED
package/dist/array/keyBy.mjs
CHANGED
package/dist/array/last.mjs
CHANGED
package/dist/array/maxBy.mjs
CHANGED
package/dist/array/minBy.mjs
CHANGED
package/dist/array/orderBy.mjs
CHANGED
package/dist/array/partition.mjs
CHANGED
package/dist/array/sample.mjs
CHANGED
package/dist/array/shuffle.mjs
CHANGED
package/dist/array/tail.mjs
CHANGED
package/dist/array/take.mjs
CHANGED
package/dist/array/takeRight.mjs
CHANGED
package/dist/array/takeWhile.mjs
CHANGED
package/dist/array/toFilled.mjs
CHANGED
package/dist/array/union.mjs
CHANGED
package/dist/array/unionBy.mjs
CHANGED
package/dist/array/unionWith.mjs
CHANGED
package/dist/array/uniq.mjs
CHANGED
package/dist/array/uniqBy.mjs
CHANGED
package/dist/array/uniqWith.mjs
CHANGED
package/dist/array/unzip.mjs
CHANGED
package/dist/array/unzipWith.mjs
CHANGED
package/dist/array/without.mjs
CHANGED
package/dist/array/xor.mjs
CHANGED
package/dist/array/xorBy.mjs
CHANGED
package/dist/array/xorWith.mjs
CHANGED
package/dist/array/zip.mjs
CHANGED
package/dist/array/zipObject.mjs
CHANGED
package/dist/array/zipWith.mjs
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
__spreadValues
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=chunk-2MM5EJJX.mjs.map
|