es-toolkit 1.35.0 → 1.36.0-dev.1215

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 (106) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/_chunk/{isPromise-ByAybB.js → isPromise-CxqI1v.js} +122 -36
  3. package/dist/_chunk/{reverseString-D-wK2p.js → reverseString-BixeGz.js} +84 -13
  4. package/dist/_chunk/toSnakeCaseKeys-DZO2eB.js +4901 -0
  5. package/dist/_chunk/{unary-BsNWRM.js → unary-EIEhcF.js} +46 -0
  6. package/dist/_chunk/{zip-_HttSl.js → zip-BJSrRi.js} +38 -57
  7. package/dist/array/index.js +55 -6
  8. package/dist/array/pullAt.d.mts +0 -2
  9. package/dist/array/pullAt.d.ts +0 -2
  10. package/dist/array/take.d.mts +1 -1
  11. package/dist/array/take.d.ts +1 -1
  12. package/dist/array/take.mjs +4 -1
  13. package/dist/array/takeRight.d.mts +1 -1
  14. package/dist/array/takeRight.d.ts +1 -1
  15. package/dist/array/takeRight.mjs +5 -2
  16. package/dist/browser.global.js +1 -1
  17. package/dist/browser.global.js.map +1 -1
  18. package/dist/compat/_internal/copyArray.mjs +12 -0
  19. package/dist/compat/_internal/mapToEntries.mjs +11 -0
  20. package/dist/compat/_internal/setToEntries.mjs +11 -0
  21. package/dist/compat/_internal/toKey.mjs +2 -2
  22. package/dist/compat/array/find.mjs +3 -3
  23. package/dist/compat/array/findLast.mjs +2 -2
  24. package/dist/compat/array/flatMap.d.mts +20 -0
  25. package/dist/compat/array/flatMap.d.ts +20 -0
  26. package/dist/compat/array/flatMap.mjs +13 -0
  27. package/dist/compat/array/forEachRight.d.mts +106 -0
  28. package/dist/compat/array/forEachRight.d.ts +106 -0
  29. package/dist/compat/array/forEachRight.mjs +21 -0
  30. package/dist/compat/array/groupBy.d.mts +55 -0
  31. package/dist/compat/array/groupBy.d.ts +55 -0
  32. package/dist/compat/array/groupBy.mjs +15 -0
  33. package/dist/compat/array/partition.d.mts +65 -0
  34. package/dist/compat/array/partition.d.ts +65 -0
  35. package/dist/compat/array/partition.mjs +24 -0
  36. package/dist/compat/array/pullAllWith.d.mts +59 -0
  37. package/dist/compat/array/pullAllWith.d.ts +59 -0
  38. package/dist/compat/array/pullAllWith.mjs +33 -0
  39. package/dist/compat/array/pullAt.d.mts +32 -0
  40. package/dist/compat/array/pullAt.d.ts +32 -0
  41. package/dist/compat/array/pullAt.mjs +34 -0
  42. package/dist/compat/compat.d.mts +310 -0
  43. package/dist/compat/compat.d.ts +310 -0
  44. package/dist/compat/compat.mjs +312 -0
  45. package/dist/compat/function/partial.d.mts +575 -0
  46. package/dist/compat/function/partial.d.ts +575 -0
  47. package/dist/compat/function/partial.mjs +8 -0
  48. package/dist/compat/function/partialRight.d.mts +651 -0
  49. package/dist/compat/function/partialRight.d.ts +651 -0
  50. package/dist/compat/function/partialRight.mjs +8 -0
  51. package/dist/compat/index.d.mts +16 -7
  52. package/dist/compat/index.d.ts +16 -7
  53. package/dist/compat/index.js +290 -3771
  54. package/dist/compat/index.mjs +19 -8
  55. package/dist/compat/object/defaults.mjs +7 -1
  56. package/dist/compat/object/forIn.d.mts +58 -0
  57. package/dist/compat/object/forIn.d.ts +58 -0
  58. package/dist/compat/object/forIn.mjs +16 -0
  59. package/dist/compat/object/forInRight.d.mts +58 -0
  60. package/dist/compat/object/forInRight.d.ts +58 -0
  61. package/dist/compat/object/forInRight.mjs +21 -0
  62. package/dist/compat/object/forOwn.d.mts +54 -0
  63. package/dist/compat/object/forOwn.d.ts +54 -0
  64. package/dist/compat/object/forOwn.mjs +19 -0
  65. package/dist/compat/object/forOwnRight.d.mts +54 -0
  66. package/dist/compat/object/forOwnRight.d.ts +54 -0
  67. package/dist/compat/object/forOwnRight.mjs +19 -0
  68. package/dist/compat/object/hasIn.d.mts +40 -0
  69. package/dist/compat/object/hasIn.d.ts +40 -0
  70. package/dist/compat/object/hasIn.mjs +34 -0
  71. package/dist/compat/object/toPairs.mjs +7 -2
  72. package/dist/compat/object/toPairsIn.mjs +7 -2
  73. package/dist/compat/string/repeat.d.mts +1 -1
  74. package/dist/compat/string/repeat.d.ts +1 -1
  75. package/dist/compat/string/repeat.mjs +12 -2
  76. package/dist/compat/string/words.d.mts +1 -1
  77. package/dist/compat/string/words.d.ts +1 -1
  78. package/dist/compat/string/words.mjs +2 -1
  79. package/dist/compat/toolkit.d.mts +9 -0
  80. package/dist/compat/toolkit.d.ts +9 -0
  81. package/dist/compat/toolkit.mjs +10 -0
  82. package/dist/compat/util/overEvery.d.mts +67 -0
  83. package/dist/compat/util/overEvery.d.ts +67 -0
  84. package/dist/compat/util/overEvery.mjs +23 -0
  85. package/dist/compat/util/overSome.d.mts +69 -0
  86. package/dist/compat/util/overSome.d.ts +69 -0
  87. package/dist/compat/util/overSome.mjs +23 -0
  88. package/dist/function/index.js +3 -5
  89. package/dist/function/partial.d.mts +3 -3
  90. package/dist/function/partial.d.ts +3 -3
  91. package/dist/function/partial.mjs +17 -19
  92. package/dist/function/partialRight.d.mts +3 -3
  93. package/dist/function/partialRight.d.ts +3 -3
  94. package/dist/function/partialRight.mjs +18 -20
  95. package/dist/function/throttle.mjs +0 -1
  96. package/dist/index.js +39 -42
  97. package/dist/object/index.js +15 -15
  98. package/dist/object/toCamelCaseKeys.mjs +3 -0
  99. package/dist/object/toSnakeCaseKeys.mjs +3 -0
  100. package/dist/predicate/index.js +4 -5
  101. package/dist/string/index.js +7 -8
  102. package/package.json +1 -1
  103. package/dist/_chunk/isPlainObject-Xaozpc.js +0 -93
  104. package/dist/_chunk/partialRight-B0_CSB.js +0 -50
  105. package/dist/_chunk/snakeCase-BtVEeB.js +0 -75
  106. package/dist/_chunk/toSnakeCaseKeys-BNpS71.js +0 -569
@@ -1,14 +1,9 @@
1
1
  export { countBy } from '../array/countBy.mjs';
2
- export { flatMap } from '../array/flatMap.mjs';
3
2
  export { flatMapDeep } from '../array/flatMapDeep.mjs';
4
- export { forEachRight } from '../array/forEachRight.mjs';
5
- export { groupBy } from '../array/groupBy.mjs';
6
3
  export { initial } from '../array/initial.mjs';
7
4
  export { isSubset } from '../array/isSubset.mjs';
8
5
  export { isSubsetWith } from '../array/isSubsetWith.mjs';
9
6
  export { keyBy } from '../array/keyBy.mjs';
10
- export { partition } from '../array/partition.mjs';
11
- export { pullAt } from '../array/pullAt.mjs';
12
7
  export { sampleSize } from '../array/sampleSize.mjs';
13
8
  export { shuffle } from '../array/shuffle.mjs';
14
9
  export { toFilled } from '../array/toFilled.mjs';
@@ -24,8 +19,6 @@ export { identity } from '../function/identity.mjs';
24
19
  export { MemoizeCache, memoize } from '../function/memoize.mjs';
25
20
  export { noop } from '../function/noop.mjs';
26
21
  export { once } from '../function/once.mjs';
27
- export { partial } from '../function/partial.mjs';
28
- export { partialRight } from '../function/partialRight.mjs';
29
22
  export { retry } from '../function/retry.mjs';
30
23
  export { ThrottledFunction } from '../function/throttle.mjs';
31
24
  export { unary } from '../function/unary.mjs';
@@ -81,10 +74,13 @@ export { find } from './array/find.mjs';
81
74
  export { findIndex } from './array/findIndex.mjs';
82
75
  export { findLast } from './array/findLast.mjs';
83
76
  export { findLastIndex } from './array/findLastIndex.mjs';
77
+ export { flatMap } from './array/flatMap.mjs';
84
78
  export { flatten } from './array/flatten.mjs';
85
79
  export { flattenDeep } from './array/flattenDeep.mjs';
86
80
  export { flattenDepth } from './array/flattenDepth.mjs';
87
81
  export { forEach as each, forEach } from './array/forEach.mjs';
82
+ export { forEachRight as eachRight, forEachRight } from './array/forEachRight.mjs';
83
+ export { groupBy } from './array/groupBy.mjs';
88
84
  export { head as first, head } from './array/head.mjs';
89
85
  export { includes } from './array/includes.mjs';
90
86
  export { indexOf } from './array/indexOf.mjs';
@@ -97,9 +93,12 @@ export { lastIndexOf } from './array/lastIndexOf.mjs';
97
93
  export { map } from './array/map.mjs';
98
94
  export { nth } from './array/nth.mjs';
99
95
  export { orderBy } from './array/orderBy.mjs';
96
+ export { partition } from './array/partition.mjs';
100
97
  export { pull } from './array/pull.mjs';
101
98
  export { pullAll } from './array/pullAll.mjs';
102
99
  export { pullAllBy } from './array/pullAllBy.mjs';
100
+ export { pullAllWith } from './array/pullAllWith.mjs';
101
+ export { pullAt } from './array/pullAt.mjs';
103
102
  export { reduce } from './array/reduce.mjs';
104
103
  export { reduceRight } from './array/reduceRight.mjs';
105
104
  export { reject } from './array/reject.mjs';
@@ -148,6 +147,8 @@ export { flow } from './function/flow.mjs';
148
147
  export { flowRight } from './function/flowRight.mjs';
149
148
  export { negate } from './function/negate.mjs';
150
149
  export { nthArg } from './function/nthArg.mjs';
150
+ export { partial } from './function/partial.mjs';
151
+ export { partialRight } from './function/partialRight.mjs';
151
152
  export { rearg } from './function/rearg.mjs';
152
153
  export { rest } from './function/rest.mjs';
153
154
  export { spread } from './function/spread.mjs';
@@ -183,11 +184,16 @@ export { cloneDeepWith } from './object/cloneDeepWith.mjs';
183
184
  export { create } from './object/create.mjs';
184
185
  export { defaults } from './object/defaults.mjs';
185
186
  export { findKey } from './object/findKey.mjs';
187
+ export { forIn } from './object/forIn.mjs';
188
+ export { forInRight } from './object/forInRight.mjs';
189
+ export { forOwn } from './object/forOwn.mjs';
190
+ export { forOwnRight } from './object/forOwnRight.mjs';
186
191
  export { fromPairs } from './object/fromPairs.mjs';
187
192
  export { functions } from './object/functions.mjs';
188
193
  export { functionsIn } from './object/functionsIn.mjs';
189
194
  export { get } from './object/get.mjs';
190
195
  export { has } from './object/has.mjs';
196
+ export { hasIn } from './object/hasIn.mjs';
191
197
  export { invertBy } from './object/invertBy.mjs';
192
198
  export { keys } from './object/keys.mjs';
193
199
  export { keysIn } from './object/keysIn.mjs';
@@ -284,6 +290,8 @@ export { method } from './util/method.mjs';
284
290
  export { methodOf } from './util/methodOf.mjs';
285
291
  export { now } from './util/now.mjs';
286
292
  export { over } from './util/over.mjs';
293
+ export { overEvery } from './util/overEvery.mjs';
294
+ export { overSome } from './util/overSome.mjs';
287
295
  export { stubArray } from './util/stubArray.mjs';
288
296
  export { stubFalse } from './util/stubFalse.mjs';
289
297
  export { stubObject } from './util/stubObject.mjs';
@@ -300,3 +308,4 @@ export { toPlainObject } from './util/toPlainObject.mjs';
300
308
  export { toSafeInteger } from './util/toSafeInteger.mjs';
301
309
  export { toString } from './util/toString.mjs';
302
310
  export { uniqueId } from './util/uniqueId.mjs';
311
+ export { toolkit as default } from './toolkit.mjs';
@@ -1,14 +1,9 @@
1
1
  export { countBy } from '../array/countBy.js';
2
- export { flatMap } from '../array/flatMap.js';
3
2
  export { flatMapDeep } from '../array/flatMapDeep.js';
4
- export { forEachRight } from '../array/forEachRight.js';
5
- export { groupBy } from '../array/groupBy.js';
6
3
  export { initial } from '../array/initial.js';
7
4
  export { isSubset } from '../array/isSubset.js';
8
5
  export { isSubsetWith } from '../array/isSubsetWith.js';
9
6
  export { keyBy } from '../array/keyBy.js';
10
- export { partition } from '../array/partition.js';
11
- export { pullAt } from '../array/pullAt.js';
12
7
  export { sampleSize } from '../array/sampleSize.js';
13
8
  export { shuffle } from '../array/shuffle.js';
14
9
  export { toFilled } from '../array/toFilled.js';
@@ -24,8 +19,6 @@ export { identity } from '../function/identity.js';
24
19
  export { MemoizeCache, memoize } from '../function/memoize.js';
25
20
  export { noop } from '../function/noop.js';
26
21
  export { once } from '../function/once.js';
27
- export { partial } from '../function/partial.js';
28
- export { partialRight } from '../function/partialRight.js';
29
22
  export { retry } from '../function/retry.js';
30
23
  export { ThrottledFunction } from '../function/throttle.js';
31
24
  export { unary } from '../function/unary.js';
@@ -81,10 +74,13 @@ export { find } from './array/find.js';
81
74
  export { findIndex } from './array/findIndex.js';
82
75
  export { findLast } from './array/findLast.js';
83
76
  export { findLastIndex } from './array/findLastIndex.js';
77
+ export { flatMap } from './array/flatMap.js';
84
78
  export { flatten } from './array/flatten.js';
85
79
  export { flattenDeep } from './array/flattenDeep.js';
86
80
  export { flattenDepth } from './array/flattenDepth.js';
87
81
  export { forEach as each, forEach } from './array/forEach.js';
82
+ export { forEachRight as eachRight, forEachRight } from './array/forEachRight.js';
83
+ export { groupBy } from './array/groupBy.js';
88
84
  export { head as first, head } from './array/head.js';
89
85
  export { includes } from './array/includes.js';
90
86
  export { indexOf } from './array/indexOf.js';
@@ -97,9 +93,12 @@ export { lastIndexOf } from './array/lastIndexOf.js';
97
93
  export { map } from './array/map.js';
98
94
  export { nth } from './array/nth.js';
99
95
  export { orderBy } from './array/orderBy.js';
96
+ export { partition } from './array/partition.js';
100
97
  export { pull } from './array/pull.js';
101
98
  export { pullAll } from './array/pullAll.js';
102
99
  export { pullAllBy } from './array/pullAllBy.js';
100
+ export { pullAllWith } from './array/pullAllWith.js';
101
+ export { pullAt } from './array/pullAt.js';
103
102
  export { reduce } from './array/reduce.js';
104
103
  export { reduceRight } from './array/reduceRight.js';
105
104
  export { reject } from './array/reject.js';
@@ -148,6 +147,8 @@ export { flow } from './function/flow.js';
148
147
  export { flowRight } from './function/flowRight.js';
149
148
  export { negate } from './function/negate.js';
150
149
  export { nthArg } from './function/nthArg.js';
150
+ export { partial } from './function/partial.js';
151
+ export { partialRight } from './function/partialRight.js';
151
152
  export { rearg } from './function/rearg.js';
152
153
  export { rest } from './function/rest.js';
153
154
  export { spread } from './function/spread.js';
@@ -183,11 +184,16 @@ export { cloneDeepWith } from './object/cloneDeepWith.js';
183
184
  export { create } from './object/create.js';
184
185
  export { defaults } from './object/defaults.js';
185
186
  export { findKey } from './object/findKey.js';
187
+ export { forIn } from './object/forIn.js';
188
+ export { forInRight } from './object/forInRight.js';
189
+ export { forOwn } from './object/forOwn.js';
190
+ export { forOwnRight } from './object/forOwnRight.js';
186
191
  export { fromPairs } from './object/fromPairs.js';
187
192
  export { functions } from './object/functions.js';
188
193
  export { functionsIn } from './object/functionsIn.js';
189
194
  export { get } from './object/get.js';
190
195
  export { has } from './object/has.js';
196
+ export { hasIn } from './object/hasIn.js';
191
197
  export { invertBy } from './object/invertBy.js';
192
198
  export { keys } from './object/keys.js';
193
199
  export { keysIn } from './object/keysIn.js';
@@ -284,6 +290,8 @@ export { method } from './util/method.js';
284
290
  export { methodOf } from './util/methodOf.js';
285
291
  export { now } from './util/now.js';
286
292
  export { over } from './util/over.js';
293
+ export { overEvery } from './util/overEvery.js';
294
+ export { overSome } from './util/overSome.js';
287
295
  export { stubArray } from './util/stubArray.js';
288
296
  export { stubFalse } from './util/stubFalse.js';
289
297
  export { stubObject } from './util/stubObject.js';
@@ -300,3 +308,4 @@ export { toPlainObject } from './util/toPlainObject.js';
300
308
  export { toSafeInteger } from './util/toSafeInteger.js';
301
309
  export { toString } from './util/toString.js';
302
310
  export { uniqueId } from './util/uniqueId.js';
311
+ export { toolkit as default } from './toolkit.js';