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.
Files changed (134) hide show
  1. package/CHANGELOG.md +6 -1
  2. package/LICENSE +7 -1
  3. package/dist/array/chunk.mjs +1 -1
  4. package/dist/array/compact.mjs +1 -1
  5. package/dist/array/countBy.mjs +1 -1
  6. package/dist/array/difference.mjs +1 -1
  7. package/dist/array/differenceBy.mjs +1 -1
  8. package/dist/array/differenceWith.mjs +1 -1
  9. package/dist/array/drop.mjs +1 -1
  10. package/dist/array/dropRight.mjs +1 -1
  11. package/dist/array/dropRightWhile.mjs +1 -1
  12. package/dist/array/dropWhile.mjs +1 -1
  13. package/dist/array/fill.mjs +1 -1
  14. package/dist/array/flatten.mjs +1 -1
  15. package/dist/array/flattenDeep.mjs +1 -1
  16. package/dist/array/forEachRight.mjs +1 -1
  17. package/dist/array/groupBy.mjs +1 -1
  18. package/dist/array/head.mjs +1 -1
  19. package/dist/array/index.mjs +17 -17
  20. package/dist/array/initial.mjs +1 -1
  21. package/dist/array/intersection.mjs +1 -1
  22. package/dist/array/intersectionBy.mjs +1 -1
  23. package/dist/array/intersectionWith.mjs +1 -1
  24. package/dist/array/keyBy.mjs +1 -1
  25. package/dist/array/last.mjs +1 -1
  26. package/dist/array/maxBy.mjs +1 -1
  27. package/dist/array/minBy.mjs +1 -1
  28. package/dist/array/orderBy.mjs +1 -1
  29. package/dist/array/partition.mjs +1 -1
  30. package/dist/array/sample.mjs +1 -1
  31. package/dist/array/sampleSize.mjs +1 -1
  32. package/dist/array/shuffle.mjs +1 -1
  33. package/dist/array/tail.mjs +1 -1
  34. package/dist/array/take.mjs +1 -1
  35. package/dist/array/takeRight.mjs +1 -1
  36. package/dist/array/takeRightWhile.mjs +1 -1
  37. package/dist/array/takeWhile.mjs +1 -1
  38. package/dist/array/toFilled.mjs +1 -1
  39. package/dist/array/union.mjs +1 -1
  40. package/dist/array/unionBy.mjs +1 -1
  41. package/dist/array/unionWith.mjs +1 -1
  42. package/dist/array/uniq.mjs +1 -1
  43. package/dist/array/uniqBy.mjs +1 -1
  44. package/dist/array/uniqWith.mjs +1 -1
  45. package/dist/array/unzip.mjs +1 -1
  46. package/dist/array/unzipWith.mjs +1 -1
  47. package/dist/array/without.mjs +1 -1
  48. package/dist/array/xor.mjs +1 -1
  49. package/dist/array/xorBy.mjs +1 -1
  50. package/dist/array/xorWith.mjs +1 -1
  51. package/dist/array/zip.mjs +1 -1
  52. package/dist/array/zipObject.mjs +1 -1
  53. package/dist/array/zipWith.mjs +1 -1
  54. package/dist/chunk-2MM5EJJX.mjs +21 -0
  55. package/dist/chunk-5L4VWRFX.mjs +14 -0
  56. package/dist/chunk-5L4VWRFX.mjs.map +1 -0
  57. package/dist/chunk-FUS75PJ7.mjs +1 -0
  58. package/dist/chunk-NKLIE2OI.mjs +1 -0
  59. package/dist/chunk-NKLIE2OI.mjs.map +1 -0
  60. package/dist/{chunk-4E4D3BMI.mjs → chunk-QZITBKWX.mjs} +2 -2
  61. package/dist/chunk-Y5V7UAZZ.mjs +21 -0
  62. package/dist/chunk-Y5V7UAZZ.mjs.map +1 -0
  63. package/dist/compat/index.d.mts +109 -0
  64. package/dist/compat/index.d.ts +109 -0
  65. package/dist/compat/index.js +1077 -0
  66. package/dist/compat/index.js.map +1 -0
  67. package/dist/compat/index.mjs +355 -0
  68. package/dist/compat/index.mjs.map +1 -0
  69. package/dist/error/AbortError.mjs +1 -1
  70. package/dist/error/index.mjs +1 -1
  71. package/dist/function/debounce.mjs +1 -1
  72. package/dist/function/index.mjs +4 -4
  73. package/dist/function/negate.mjs +1 -1
  74. package/dist/function/noop.mjs +1 -1
  75. package/dist/function/once.mjs +1 -1
  76. package/dist/function/throttle.mjs +1 -1
  77. package/dist/index.d.mts +1 -0
  78. package/dist/index.d.ts +1 -0
  79. package/dist/index.js +14 -5515
  80. package/dist/index.js.map +1 -1
  81. package/dist/index.mjs +89 -84
  82. package/dist/math/clamp.mjs +1 -1
  83. package/dist/math/inRange.mjs +1 -1
  84. package/dist/math/index.d.mts +1 -0
  85. package/dist/math/index.d.ts +1 -0
  86. package/dist/math/index.js +10 -2
  87. package/dist/math/index.js.map +1 -1
  88. package/dist/math/index.mjs +19 -15
  89. package/dist/math/mean.mjs +1 -1
  90. package/dist/math/meanBy.mjs +1 -1
  91. package/dist/math/random.mjs +1 -1
  92. package/dist/math/randomInt.mjs +1 -1
  93. package/dist/math/range.mjs +1 -1
  94. package/dist/math/round.mjs +1 -1
  95. package/dist/math/sum.mjs +1 -1
  96. package/dist/math/sumBy.d.mts +18 -0
  97. package/dist/math/sumBy.d.ts +18 -0
  98. package/dist/math/sumBy.js +45 -0
  99. package/dist/math/sumBy.js.map +1 -0
  100. package/dist/math/sumBy.mjs +9 -0
  101. package/dist/math/sumBy.mjs.map +1 -0
  102. package/dist/object/clone.mjs +1 -1
  103. package/dist/object/index.mjs +5 -5
  104. package/dist/object/invert.mjs +1 -1
  105. package/dist/object/omit.mjs +2 -2
  106. package/dist/object/omitBy.mjs +1 -1
  107. package/dist/object/pick.mjs +1 -1
  108. package/dist/object/pickBy.mjs +1 -1
  109. package/dist/predicate/index.mjs +7 -7
  110. package/dist/predicate/isEqual.mjs +1 -1
  111. package/dist/predicate/isNil.mjs +1 -1
  112. package/dist/predicate/isNotNil.mjs +1 -1
  113. package/dist/predicate/isNull.mjs +1 -1
  114. package/dist/predicate/isUndefined.mjs +1 -1
  115. package/dist/promise/delay.mjs +1 -1
  116. package/dist/promise/index.mjs +1 -1
  117. package/dist/string/camelCase.js +6 -5508
  118. package/dist/string/camelCase.js.map +1 -1
  119. package/dist/string/camelCase.mjs +3 -2
  120. package/dist/string/capitalize.mjs +1 -1
  121. package/dist/string/index.js +6 -5515
  122. package/dist/string/index.js.map +1 -1
  123. package/dist/string/index.mjs +3 -3
  124. package/dist/string/kebabCase.mjs +1 -1
  125. package/dist/string/lowerCase.mjs +1 -1
  126. package/dist/string/snakeCase.mjs +1 -1
  127. package/package.json +3 -5
  128. package/dist/chunk-2HIMLZE3.mjs +0 -46
  129. package/dist/chunk-TLVQSNOE.mjs +0 -1
  130. package/dist/chunk-XGCYC4YA.mjs +0 -5516
  131. package/dist/chunk-XGCYC4YA.mjs.map +0 -1
  132. /package/dist/{chunk-2HIMLZE3.mjs.map → chunk-2MM5EJJX.mjs.map} +0 -0
  133. /package/dist/{chunk-TLVQSNOE.mjs.map → chunk-FUS75PJ7.mjs.map} +0 -0
  134. /package/dist/{chunk-4E4D3BMI.mjs.map → chunk-QZITBKWX.mjs.map} +0 -0
@@ -10,12 +10,12 @@ import {
10
10
  } from "../chunk-F3WCQQET.mjs";
11
11
  import {
12
12
  camelCase
13
- } from "../chunk-XGCYC4YA.mjs";
14
- import "../chunk-WVQ7YVRK.mjs";
13
+ } from "../chunk-Y5V7UAZZ.mjs";
15
14
  import {
16
15
  capitalize
17
16
  } from "../chunk-U56ZOM7L.mjs";
18
- import "../chunk-2HIMLZE3.mjs";
17
+ import "../chunk-WVQ7YVRK.mjs";
18
+ import "../chunk-2MM5EJJX.mjs";
19
19
  export {
20
20
  camelCase,
21
21
  capitalize,
@@ -2,7 +2,7 @@ import {
2
2
  kebabCase
3
3
  } from "../chunk-EYYZQFOP.mjs";
4
4
  import "../chunk-WVQ7YVRK.mjs";
5
- import "../chunk-2HIMLZE3.mjs";
5
+ import "../chunk-2MM5EJJX.mjs";
6
6
  export {
7
7
  kebabCase
8
8
  };
@@ -2,7 +2,7 @@ import {
2
2
  lowerCase
3
3
  } from "../chunk-5IKVJGHO.mjs";
4
4
  import "../chunk-WVQ7YVRK.mjs";
5
- import "../chunk-2HIMLZE3.mjs";
5
+ import "../chunk-2MM5EJJX.mjs";
6
6
  export {
7
7
  lowerCase
8
8
  };
@@ -2,7 +2,7 @@ import {
2
2
  snakeCase
3
3
  } from "../chunk-F3WCQQET.mjs";
4
4
  import "../chunk-WVQ7YVRK.mjs";
5
- import "../chunk-2HIMLZE3.mjs";
5
+ import "../chunk-2MM5EJJX.mjs";
6
6
  export {
7
7
  snakeCase
8
8
  };
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.10.0",
4
+ "version": "1.10.1-dev.213+ca632a77",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {
@@ -10,7 +10,8 @@
10
10
  },
11
11
  "license": "MIT",
12
12
  "workspaces": [
13
- "docs"
13
+ "docs",
14
+ "benchmarks"
14
15
  ],
15
16
  "packageManager": "yarn@4.2.2",
16
17
  "exports": {
@@ -195,11 +196,9 @@
195
196
  "@babel/preset-typescript": "^7.24.1",
196
197
  "@changesets/changelog-github": "^0.5.0",
197
198
  "@changesets/cli": "^2.27.1",
198
- "@codspeed/vitest-plugin": "^3.1.0",
199
199
  "@types/babel__core": "^7",
200
200
  "@types/babel__preset-env": "^7",
201
201
  "@types/broken-link-checker": "^0",
202
- "@types/lodash": "^4",
203
202
  "@types/node": "^20.12.11",
204
203
  "@typescript-eslint/eslint-plugin": "^7.7.1",
205
204
  "@typescript-eslint/parser": "^7.7.1",
@@ -208,7 +207,6 @@
208
207
  "eslint": "^8.56.0",
209
208
  "eslint-config-prettier": "^8.5.0",
210
209
  "eslint-plugin-jsdoc": "^48.5.0",
211
- "lodash": "^4.17.21",
212
210
  "prettier": "^3.2.5",
213
211
  "tsup": "^8.1.0",
214
212
  "typescript": "^5.4.5",
@@ -1,46 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
9
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
- var __spreadValues = (a, b) => {
11
- for (var prop in b || (b = {}))
12
- if (__hasOwnProp.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- if (__getOwnPropSymbols)
15
- for (var prop of __getOwnPropSymbols(b)) {
16
- if (__propIsEnum.call(b, prop))
17
- __defNormalProp(a, prop, b[prop]);
18
- }
19
- return a;
20
- };
21
- var __commonJS = (cb, mod) => function __require() {
22
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
23
- };
24
- var __copyProps = (to, from, except, desc) => {
25
- if (from && typeof from === "object" || typeof from === "function") {
26
- for (let key of __getOwnPropNames(from))
27
- if (!__hasOwnProp.call(to, key) && key !== except)
28
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
29
- }
30
- return to;
31
- };
32
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
33
- // If the importer is in node compatibility mode or this is not an ESM
34
- // file that has been converted to a CommonJS file using a Babel-
35
- // compatible transform (i.e. "__esModule" has not been set), then set
36
- // "default" to the CommonJS "module.exports" for node compatibility.
37
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
38
- mod
39
- ));
40
-
41
- export {
42
- __spreadValues,
43
- __commonJS,
44
- __toESM
45
- };
46
- //# sourceMappingURL=chunk-2HIMLZE3.mjs.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=chunk-TLVQSNOE.mjs.map