es-toolkit 1.23.0-dev.740 → 1.23.0-dev.741

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.
@@ -2,14 +2,7 @@ import { isPlainObject } from './isPlainObject.mjs';
2
2
  import { getSymbols } from '../compat/_internal/getSymbols.mjs';
3
3
  import { getTag } from '../compat/_internal/getTag.mjs';
4
4
  import { functionTag, regexpTag, symbolTag, dateTag, booleanTag, numberTag, stringTag, objectTag, errorTag, dataViewTag, arrayBufferTag, float64ArrayTag, float32ArrayTag, bigInt64ArrayTag, int32ArrayTag, int16ArrayTag, int8ArrayTag, bigUint64ArrayTag, uint32ArrayTag, uint16ArrayTag, uint8ClampedArrayTag, uint8ArrayTag, arrayTag, setTag, mapTag, argumentsTag } from '../compat/_internal/tags.mjs';
5
- import '../function/partial.mjs';
6
- import '../function/partialRight.mjs';
7
- import '../string/deburr.mjs';
8
5
  import { eq } from '../compat/util/eq.mjs';
9
- import '../compat/function/bind.mjs';
10
- import '../compat/function/bindKey.mjs';
11
- import '../compat/function/curry.mjs';
12
- import '../compat/function/curryRight.mjs';
13
6
 
14
7
  function isEqualWith(a, b, areValuesEqual) {
15
8
  return isEqualWithImpl(a, b, undefined, undefined, undefined, undefined, areValuesEqual);
@@ -2,8 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const pad = require('../_chunk/pad-Bgd7Ah.js');
6
- const deburr = require('../_chunk/deburr-BPmkoM.js');
5
+ const pad = require('../_chunk/pad-BWiShN.js');
7
6
 
8
7
  function startCase(str) {
9
8
  const words = pad.getWords(str.trim());
@@ -21,6 +20,7 @@ function startCase(str) {
21
20
  exports.camelCase = pad.camelCase;
22
21
  exports.capitalize = pad.capitalize;
23
22
  exports.constantCase = pad.constantCase;
23
+ exports.deburr = pad.deburr;
24
24
  exports.escape = pad.escape;
25
25
  exports.escapeRegExp = pad.escapeRegExp;
26
26
  exports.kebabCase = pad.kebabCase;
@@ -35,5 +35,4 @@ exports.trimStart = pad.trimStart;
35
35
  exports.unescape = pad.unescape;
36
36
  exports.upperCase = pad.upperCase;
37
37
  exports.upperFirst = pad.upperFirst;
38
- exports.deburr = deburr.deburr;
39
38
  exports.startCase = startCase;
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.23.0-dev.740+6a954df0",
4
+ "version": "1.23.0-dev.741+b8e3cbd0",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {
@@ -217,12 +217,12 @@
217
217
  "@changesets/cli": "^2.27.1",
218
218
  "@eslint/js": "^9.9.0",
219
219
  "@rollup/plugin-terser": "^0.4.4",
220
- "@rollup/plugin-typescript": "^11.1.6",
220
+ "@rollup/plugin-typescript": "^12.1.0",
221
221
  "@trivago/prettier-plugin-sort-imports": "^4.3.0",
222
222
  "@types/broken-link-checker": "^0",
223
223
  "@types/eslint": "^9",
224
- "@types/jscodeshift": "^0.11.11",
225
- "@types/node": "^20.12.11",
224
+ "@types/jscodeshift": "^0.12.0",
225
+ "@types/node": "^22.7.4",
226
226
  "@types/tar": "^6.1.13",
227
227
  "@vitest/coverage-istanbul": "^2.1.2",
228
228
  "@vue/compiler-sfc": "^3.5.10",
@@ -1,47 +0,0 @@
1
- 'use strict';
2
-
3
- const deburrMap = new Map(Object.entries({
4
- Æ: 'Ae',
5
- Ð: 'D',
6
- Ø: 'O',
7
- Þ: 'Th',
8
- ß: 'ss',
9
- æ: 'ae',
10
- ð: 'd',
11
- ø: 'o',
12
- þ: 'th',
13
- Đ: 'D',
14
- đ: 'd',
15
- Ħ: 'H',
16
- ħ: 'h',
17
- ı: 'i',
18
- IJ: 'IJ',
19
- ij: 'ij',
20
- ĸ: 'k',
21
- Ŀ: 'L',
22
- ŀ: 'l',
23
- Ł: 'L',
24
- ł: 'l',
25
- ʼn: "'n",
26
- Ŋ: 'N',
27
- ŋ: 'n',
28
- Œ: 'Oe',
29
- œ: 'oe',
30
- Ŧ: 'T',
31
- ŧ: 't',
32
- ſ: 's',
33
- }));
34
- function deburr(str) {
35
- str = str.normalize('NFD');
36
- let result = '';
37
- for (let i = 0; i < str.length; i++) {
38
- const char = str[i];
39
- if ((char >= '\u0300' && char <= '\u036f') || (char >= '\ufe20' && char <= '\ufe23')) {
40
- continue;
41
- }
42
- result += deburrMap.get(char) ?? char;
43
- }
44
- return result;
45
- }
46
-
47
- exports.deburr = deburr;
@@ -1,53 +0,0 @@
1
- 'use strict';
2
-
3
- function noop() { }
4
-
5
- function partial(func, ...partialArgs) {
6
- return function (...providedArgs) {
7
- const args = [];
8
- let startIndex = 0;
9
- for (let i = 0; i < partialArgs.length; i++) {
10
- const arg = partialArgs[i];
11
- if (arg === partial.placeholder) {
12
- args.push(providedArgs[startIndex++]);
13
- }
14
- else {
15
- args.push(arg);
16
- }
17
- }
18
- for (let i = startIndex; i < providedArgs.length; i++) {
19
- args.push(providedArgs[i]);
20
- }
21
- return func.apply(this, args);
22
- };
23
- }
24
- const partialPlaceholder = Symbol('partial.placeholder');
25
- partial.placeholder = partialPlaceholder;
26
-
27
- function partialRight(func, ...partialArgs) {
28
- return function (...providedArgs) {
29
- const placeholderLength = partialArgs.filter(arg => arg === partialRightPlaceholder).length;
30
- const rangeLength = Math.max(providedArgs.length - placeholderLength, 0);
31
- const args = [];
32
- let providedIndex = 0;
33
- for (let i = 0; i < rangeLength; i++) {
34
- args.push(providedArgs[providedIndex++]);
35
- }
36
- for (let i = 0; i < partialArgs.length; i++) {
37
- const arg = partialArgs[i];
38
- if (arg === partialRight.placeholder) {
39
- args.push(providedArgs[providedIndex++]);
40
- }
41
- else {
42
- args.push(arg);
43
- }
44
- }
45
- return func.apply(this, args);
46
- };
47
- }
48
- const partialRightPlaceholder = Symbol('partialRight.placeholder');
49
- partialRight.placeholder = partialRightPlaceholder;
50
-
51
- exports.noop = noop;
52
- exports.partial = partial;
53
- exports.partialRight = partialRight;