es-toolkit 1.29.0-dev.940 → 1.29.0-dev.941

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.
@@ -68,7 +68,6 @@ export { timeout } from '../promise/timeout.mjs';
68
68
  export { withTimeout } from '../promise/withTimeout.mjs';
69
69
  export { capitalize } from '../string/capitalize.mjs';
70
70
  export { constantCase } from '../string/constantCase.mjs';
71
- export { deburr } from '../string/deburr.mjs';
72
71
  export { escapeRegExp } from '../string/escapeRegExp.mjs';
73
72
  export { lowerFirst } from '../string/lowerFirst.mjs';
74
73
  export { pascalCase } from '../string/pascalCase.mjs';
@@ -206,6 +205,7 @@ export { isWeakSet } from './predicate/isWeakSet.mjs';
206
205
  export { matches } from './predicate/matches.mjs';
207
206
  export { matchesProperty } from './predicate/matchesProperty.mjs';
208
207
  export { camelCase } from './string/camelCase.mjs';
208
+ export { deburr } from './string/deburr.mjs';
209
209
  export { endsWith } from './string/endsWith.mjs';
210
210
  export { escape } from './string/escape.mjs';
211
211
  export { kebabCase } from './string/kebabCase.mjs';
@@ -68,7 +68,6 @@ export { timeout } from '../promise/timeout.js';
68
68
  export { withTimeout } from '../promise/withTimeout.js';
69
69
  export { capitalize } from '../string/capitalize.js';
70
70
  export { constantCase } from '../string/constantCase.js';
71
- export { deburr } from '../string/deburr.js';
72
71
  export { escapeRegExp } from '../string/escapeRegExp.js';
73
72
  export { lowerFirst } from '../string/lowerFirst.js';
74
73
  export { pascalCase } from '../string/pascalCase.js';
@@ -206,6 +205,7 @@ export { isWeakSet } from './predicate/isWeakSet.js';
206
205
  export { matches } from './predicate/matches.js';
207
206
  export { matchesProperty } from './predicate/matchesProperty.js';
208
207
  export { camelCase } from './string/camelCase.js';
208
+ export { deburr } from './string/deburr.js';
209
209
  export { endsWith } from './string/endsWith.js';
210
210
  export { escape } from './string/escape.js';
211
211
  export { kebabCase } from './string/kebabCase.js';
@@ -2511,6 +2511,10 @@ function camelCase(str) {
2511
2511
  return upperFirst.camelCase(normalizeForCase(str));
2512
2512
  }
2513
2513
 
2514
+ function deburr(str) {
2515
+ return upperFirst.deburr(toString(str));
2516
+ }
2517
+
2514
2518
  function endsWith(str, target, position = str.length) {
2515
2519
  return str.endsWith(target, position);
2516
2520
  }
@@ -2956,7 +2960,6 @@ exports.isNull = isWeakSet$1.isNull;
2956
2960
  exports.isUndefined = isWeakSet$1.isUndefined;
2957
2961
  exports.capitalize = upperFirst.capitalize;
2958
2962
  exports.constantCase = upperFirst.constantCase;
2959
- exports.deburr = upperFirst.deburr;
2960
2963
  exports.escapeRegExp = upperFirst.escapeRegExp;
2961
2964
  exports.lowerFirst = upperFirst.lowerFirst;
2962
2965
  exports.pascalCase = upperFirst.pascalCase;
@@ -2985,6 +2988,7 @@ exports.constant = constant;
2985
2988
  exports.curry = curry;
2986
2989
  exports.curryRight = curryRight;
2987
2990
  exports.debounce = debounce;
2991
+ exports.deburr = deburr;
2988
2992
  exports.defaultTo = defaultTo;
2989
2993
  exports.defaults = defaults;
2990
2994
  exports.defer = defer;
@@ -69,7 +69,7 @@ export { timeout } from '../promise/timeout.mjs';
69
69
  export { withTimeout } from '../promise/withTimeout.mjs';
70
70
  export { capitalize } from '../string/capitalize.mjs';
71
71
  export { constantCase } from '../string/constantCase.mjs';
72
- export { deburr } from '../string/deburr.mjs';
72
+ import '../string/deburr.mjs';
73
73
  export { escapeRegExp } from '../string/escapeRegExp.mjs';
74
74
  export { lowerFirst } from '../string/lowerFirst.mjs';
75
75
  export { pascalCase } from '../string/pascalCase.mjs';
@@ -206,6 +206,7 @@ export { isWeakSet } from './predicate/isWeakSet.mjs';
206
206
  export { matches } from './predicate/matches.mjs';
207
207
  export { matchesProperty } from './predicate/matchesProperty.mjs';
208
208
  export { camelCase } from './string/camelCase.mjs';
209
+ export { deburr } from './string/deburr.mjs';
209
210
  export { endsWith } from './string/endsWith.mjs';
210
211
  export { escape } from './string/escape.mjs';
211
212
  export { kebabCase } from './string/kebabCase.mjs';
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Converts a string by replacing special characters and diacritical marks with their ASCII equivalents.
3
+ * For example, "Crème brûlée" becomes "Creme brulee".
4
+ *
5
+ * @param {string} str - The input string to be deburred.
6
+ * @returns {string} - The deburred string with special characters replaced by their ASCII equivalents.
7
+ *
8
+ * @example
9
+ * // Basic usage:
10
+ * deburr('Æthelred') // returns 'Aethelred'
11
+ *
12
+ * @example
13
+ * // Handling diacritical marks:
14
+ * deburr('München') // returns 'Munchen'
15
+ *
16
+ * @example
17
+ * // Special characters:
18
+ * deburr('Crème brûlée') // returns 'Creme brulee'
19
+ */
20
+ declare function deburr(str?: string): string;
21
+
22
+ export { deburr };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Converts a string by replacing special characters and diacritical marks with their ASCII equivalents.
3
+ * For example, "Crème brûlée" becomes "Creme brulee".
4
+ *
5
+ * @param {string} str - The input string to be deburred.
6
+ * @returns {string} - The deburred string with special characters replaced by their ASCII equivalents.
7
+ *
8
+ * @example
9
+ * // Basic usage:
10
+ * deburr('Æthelred') // returns 'Aethelred'
11
+ *
12
+ * @example
13
+ * // Handling diacritical marks:
14
+ * deburr('München') // returns 'Munchen'
15
+ *
16
+ * @example
17
+ * // Special characters:
18
+ * deburr('Crème brûlée') // returns 'Creme brulee'
19
+ */
20
+ declare function deburr(str?: string): string;
21
+
22
+ export { deburr };
@@ -0,0 +1,8 @@
1
+ import { deburr as deburr$1 } from '../../string/deburr.mjs';
2
+ import { toString } from '../util/toString.mjs';
3
+
4
+ function deburr(str) {
5
+ return deburr$1(toString(str));
6
+ }
7
+
8
+ export { deburr };
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.29.0-dev.940+ceb75130",
4
+ "version": "1.29.0-dev.941+26e68dde",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {