es-toolkit 1.17.0-dev.570 → 1.18.0-dev.571
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 +7 -0
- package/dist/_chunk/{zipWith-CaTQLt.js → zipWith-CYaH1Y.js} +0 -5
- package/dist/array/index.d.mts +0 -1
- package/dist/array/index.d.ts +0 -1
- package/dist/array/index.js +1 -2
- package/dist/array/index.mjs +0 -1
- package/dist/browser.global.js.map +1 -1
- package/dist/compat/index.d.mts +3 -3
- package/dist/compat/index.d.ts +3 -3
- package/dist/compat/index.js +32 -28
- package/dist/compat/index.mjs +3 -3
- package/dist/function/spread.d.mts +1 -1
- package/dist/function/spread.d.ts +1 -1
- package/dist/index.d.mts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -2
- package/dist/index.mjs +0 -1
- package/package.json +1 -1
- /package/dist/{array → compat/array}/join.d.mts +0 -0
- /package/dist/{array → compat/array}/join.d.ts +0 -0
- /package/dist/{array → compat/array}/join.mjs +0 -0
- /package/dist/compat/{string → math}/parseInt.d.mts +0 -0
- /package/dist/compat/{string → math}/parseInt.d.ts +0 -0
- /package/dist/compat/{string → math}/parseInt.mjs +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# es-toolkit Changelog
|
|
2
2
|
|
|
3
|
+
## Version v1.18.0
|
|
4
|
+
|
|
5
|
+
Released on September 12th, 2024.
|
|
6
|
+
|
|
7
|
+
- Added support for [isObject](https://es-toolkit.slash.page/reference/compat/predicate/isObject.html), [findLastIndex](https://es-toolkit.slash.page/reference/compat/array/findLastIndex.html), [parseInt](https://es-toolkit.slash.page/reference/compat/math/parseInt.html), [rearg](https://es-toolkit.slash.page/reference/compat/function/rearg.html), [conforms](https://es-toolkit.slash.page/reference/compat/predicate/conforms.html), [conformsTo](https://es-toolkit.slash.page/reference/compat/predicate/conformsTo.html), [bindKey](https://es-toolkit.slash.page/reference/compat/function/bindKey.html), [some](https://es-toolkit.slash.page/reference/compat/array/some.html), [fromPairs](https://es-toolkit.slash.page/reference/compat/object/fromPairs.html), [isArrayLikeObject](https://es-toolkit.slash.page/reference/compat/predicate/isArrayLikeObject.html), [escapeRegExp](https://es-toolkit.slash.page/reference/string/escapeRegExp.html), [sortBy](https://es-toolkit.slash.page/reference/array/sortBy.html), [isWeakSet](https://es-toolkit.slash.page/reference/predicate/isWeakSet.html), [isWeakMap](https://es-toolkit.slash.page/reference/predicate/isWeakMap.html), [flatMapDeep](https://es-toolkit.slash.page/reference/array/flatMapDeep.html), [escape](https://es-toolkit.slash.page/reference/string/escape.html), [unescape](https://es-toolkit.slash.page/reference/string/unescape.html), [repeat](https://es-toolkit.slash.page/reference/compat/string/repeat.html), [pad](https://es-toolkit.slash.page/reference/compat/string/pad.html), [join](https://es-toolkit.slash.page/reference/compat/array/join.html), and [spread](https://es-toolkit.slash.page/reference/compat/function/spread.html).
|
|
8
|
+
- Improved performance for [deburr](https://es-toolkit.slash.page/reference/string/deburr.html).
|
|
9
|
+
|
|
3
10
|
## Version v1.17.0
|
|
4
11
|
|
|
5
12
|
Released on August 31st, 2024.
|
|
@@ -184,10 +184,6 @@ function isSubset(superset, subset) {
|
|
|
184
184
|
return difference(subset, superset).length === 0;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
function join(array, separator = ',') {
|
|
188
|
-
return array.join(separator);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
187
|
function keyBy(arr, getKeyFromItem) {
|
|
192
188
|
const result = {};
|
|
193
189
|
for (const item of arr) {
|
|
@@ -480,7 +476,6 @@ exports.intersection = intersection;
|
|
|
480
476
|
exports.intersectionBy = intersectionBy;
|
|
481
477
|
exports.intersectionWith = intersectionWith;
|
|
482
478
|
exports.isSubset = isSubset;
|
|
483
|
-
exports.join = join;
|
|
484
479
|
exports.keyBy = keyBy;
|
|
485
480
|
exports.last = last;
|
|
486
481
|
exports.maxBy = maxBy;
|
package/dist/array/index.d.mts
CHANGED
|
@@ -22,7 +22,6 @@ export { intersection } from './intersection.mjs';
|
|
|
22
22
|
export { intersectionBy } from './intersectionBy.mjs';
|
|
23
23
|
export { intersectionWith } from './intersectionWith.mjs';
|
|
24
24
|
export { isSubset } from './isSubset.mjs';
|
|
25
|
-
export { join } from './join.mjs';
|
|
26
25
|
export { keyBy } from './keyBy.mjs';
|
|
27
26
|
export { last } from './last.mjs';
|
|
28
27
|
export { maxBy } from './maxBy.mjs';
|
package/dist/array/index.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export { intersection } from './intersection.js';
|
|
|
22
22
|
export { intersectionBy } from './intersectionBy.js';
|
|
23
23
|
export { intersectionWith } from './intersectionWith.js';
|
|
24
24
|
export { isSubset } from './isSubset.js';
|
|
25
|
-
export { join } from './join.js';
|
|
26
25
|
export { keyBy } from './keyBy.js';
|
|
27
26
|
export { last } from './last.js';
|
|
28
27
|
export { maxBy } from './maxBy.js';
|
package/dist/array/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const zipWith = require('../_chunk/zipWith-
|
|
5
|
+
const zipWith = require('../_chunk/zipWith-CYaH1Y.js');
|
|
6
6
|
|
|
7
7
|
function compareValues(a, b, order) {
|
|
8
8
|
if (a < b) {
|
|
@@ -60,7 +60,6 @@ exports.intersection = zipWith.intersection;
|
|
|
60
60
|
exports.intersectionBy = zipWith.intersectionBy;
|
|
61
61
|
exports.intersectionWith = zipWith.intersectionWith;
|
|
62
62
|
exports.isSubset = zipWith.isSubset;
|
|
63
|
-
exports.join = zipWith.join;
|
|
64
63
|
exports.keyBy = zipWith.keyBy;
|
|
65
64
|
exports.last = zipWith.last;
|
|
66
65
|
exports.maxBy = zipWith.maxBy;
|
package/dist/array/index.mjs
CHANGED
|
@@ -22,7 +22,6 @@ export { intersection } from './intersection.mjs';
|
|
|
22
22
|
export { intersectionBy } from './intersectionBy.mjs';
|
|
23
23
|
export { intersectionWith } from './intersectionWith.mjs';
|
|
24
24
|
export { isSubset } from './isSubset.mjs';
|
|
25
|
-
export { join } from './join.mjs';
|
|
26
25
|
export { keyBy } from './keyBy.mjs';
|
|
27
26
|
export { last } from './last.mjs';
|
|
28
27
|
export { maxBy } from './maxBy.mjs';
|