toolbox-x 1.2.1 → 2.0.0

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 (126) hide show
  1. package/dist/{Color-Dsut0Bex.d.cts → Color-B8MR8Vp0.d.cts} +1 -1
  2. package/dist/{Color-DCfoQk_-.d.mts → Color-D2MfZx7L.d.mts} +1 -1
  3. package/dist/{Stylog-DXZtHAbp.d.mts → Stylog-CSbLtqrZ.d.mts} +5 -5
  4. package/dist/{Stylog-TyLCTRtT.d.cts → Stylog-DF0CWtZb.d.cts} +5 -5
  5. package/dist/{area-CvSC96va.d.mts → area-C4tDXnGC.d.mts} +3 -3
  6. package/dist/{area-CcRQ6TfR.d.cts → area-CMJZ0gVm.d.cts} +3 -3
  7. package/dist/{array-B6jWzJ4F.d.mts → array-26Vs2HCs.d.mts} +1 -1
  8. package/dist/{array-CqDu610k.d.cts → array-DJAq9Qj8.d.cts} +1 -1
  9. package/dist/{basics-K8BDSYD6.cjs → basics-CJmdhXoo.cjs} +567 -14
  10. package/dist/{basics-1_M7UvCn.mjs → basics-CebgkY-n.mjs} +449 -16
  11. package/dist/{basics-KobRNhV-.d.cts → basics-Cis9Ej6c.d.mts} +5 -5
  12. package/dist/{basics-V5M2oltn.d.mts → basics-D4yU0NQ_.d.cts} +5 -5
  13. package/dist/{case-uKFzt5TY.cjs → case-Bd7QLHYw.cjs} +3 -3
  14. package/dist/{case-KdrBKjjK.d.mts → case-ChRzRBnY.d.mts} +12 -12
  15. package/dist/{case-BQwn5N-k.mjs → case-DBC4Rj0h.mjs} +3 -3
  16. package/dist/{case--Vjea9DS.d.cts → case-DkYSKSeV.d.cts} +12 -12
  17. package/dist/change-case.cjs +1 -1
  18. package/dist/change-case.d.cts +1 -1
  19. package/dist/change-case.d.mts +1 -1
  20. package/dist/change-case.mjs +1 -1
  21. package/dist/colors.d.cts +2 -2
  22. package/dist/colors.d.mts +2 -2
  23. package/dist/constants.d.cts +1 -1
  24. package/dist/constants.d.mts +1 -1
  25. package/dist/converter.cjs +2 -2
  26. package/dist/converter.d.cts +2 -2
  27. package/dist/converter.d.mts +2 -2
  28. package/dist/converter.mjs +2 -2
  29. package/dist/date.cjs +10 -10
  30. package/dist/date.d.cts +4 -4
  31. package/dist/date.d.mts +4 -4
  32. package/dist/date.mjs +10 -10
  33. package/dist/dom.cjs +5 -6
  34. package/dist/dom.d.cts +3 -3
  35. package/dist/dom.d.mts +3 -3
  36. package/dist/dom.mjs +4 -5
  37. package/dist/{form-DoQGMTOc.d.mts → form-Cp1OyCRI.d.cts} +2 -2
  38. package/dist/{form-mP-nl8EC.d.cts → form-DPdS2AhM.d.mts} +2 -2
  39. package/dist/guards-B2s2wlVN.mjs +425 -0
  40. package/dist/{guards-C0smSAKC.mjs → guards-BK1QuvFZ.mjs} +2 -2
  41. package/dist/{guards-ClGDJrQp.cjs → guards-Bsh6Bfdq.cjs} +2 -2
  42. package/dist/{guards-0VjySrPM.cjs → guards-DMJcjPDt.cjs} +279 -3
  43. package/dist/guards.cjs +9 -8
  44. package/dist/guards.d.cts +6 -5
  45. package/dist/guards.d.mts +6 -5
  46. package/dist/guards.mjs +5 -5
  47. package/dist/{hash-BcoFHSu1.d.cts → hash-DfhOK0Fi.d.mts} +1 -1
  48. package/dist/{hash-GYRx2ee_.d.mts → hash-IdZN0mIe.d.cts} +1 -1
  49. package/dist/hash.cjs +8 -8
  50. package/dist/hash.d.cts +8 -8
  51. package/dist/hash.d.mts +8 -8
  52. package/dist/hash.mjs +4 -5
  53. package/dist/{http-status-xrlR-LlB.d.mts → http-status-B-yBZr-J.d.mts} +1 -1
  54. package/dist/{http-status-C0DOpCDf.d.cts → http-status-Dq_hoSG6.d.cts} +1 -1
  55. package/dist/http-status.cjs +4 -4
  56. package/dist/http-status.d.cts +6 -6
  57. package/dist/http-status.d.mts +6 -6
  58. package/dist/http-status.mjs +4 -4
  59. package/dist/index-C5FoCCbF.d.cts +292 -0
  60. package/dist/index-CIJWxnDS.d.mts +292 -0
  61. package/dist/index.cjs +67 -248
  62. package/dist/index.d.cts +25 -280
  63. package/dist/index.d.mts +25 -280
  64. package/dist/index.mjs +11 -194
  65. package/dist/{object-ChFVh95z.d.cts → object-X5fSMx-I.d.cts} +13 -1
  66. package/dist/{object-ChFVh95z.d.mts → object-X5fSMx-I.d.mts} +13 -1
  67. package/dist/{objectify-DEnFpPt1.mjs → objectify-CQa8gQib.mjs} +3 -4
  68. package/dist/{objectify-DewBSJP_.cjs → objectify-xQvZS3UI.cjs} +5 -6
  69. package/dist/paginator.d.cts +1 -1
  70. package/dist/paginator.d.mts +1 -1
  71. package/dist/{parse-DovagZFA.cjs → parse-DT7jbWx7.cjs} +3 -3
  72. package/dist/{parse-BhZ6-tKg.mjs → parse-erxBG2hd.mjs} +3 -3
  73. package/dist/{pluralizer-CdG-VJ6t.d.cts → pluralizer-B8vuljyy.d.cts} +1 -1
  74. package/dist/{pluralizer-D2Lh8CdU.d.mts → pluralizer-DOdDskzF.d.mts} +1 -1
  75. package/dist/pluralizer.cjs +6 -6
  76. package/dist/pluralizer.d.cts +6 -6
  77. package/dist/pluralizer.d.mts +6 -6
  78. package/dist/pluralizer.mjs +6 -6
  79. package/dist/{specials-Cye93-uo.mjs → specials-Hq5Ncd6y.mjs} +2 -2
  80. package/dist/{specials-BM6cx43o.cjs → specials-dkYP1Nh2.cjs} +2 -2
  81. package/dist/{string-CkwTVFeL.d.mts → string-C51m7T6d.d.mts} +4 -2
  82. package/dist/{string-Dq2b8rcN.d.cts → string-CO7HP50i.d.cts} +4 -2
  83. package/dist/stylog.cjs +5 -5
  84. package/dist/stylog.d.cts +2 -2
  85. package/dist/stylog.d.mts +2 -2
  86. package/dist/stylog.mjs +5 -5
  87. package/dist/types/array.d.cts +1 -1
  88. package/dist/types/array.d.mts +1 -1
  89. package/dist/types/colors.d.cts +1 -1
  90. package/dist/types/colors.d.mts +1 -1
  91. package/dist/types/converter.d.cts +1 -1
  92. package/dist/types/converter.d.mts +1 -1
  93. package/dist/types/date.d.cts +1 -1
  94. package/dist/types/date.d.mts +1 -1
  95. package/dist/types/form.d.cts +1 -1
  96. package/dist/types/form.d.mts +1 -1
  97. package/dist/types/hash.d.cts +1 -1
  98. package/dist/types/hash.d.mts +1 -1
  99. package/dist/types/http-status.d.cts +1 -1
  100. package/dist/types/http-status.d.mts +1 -1
  101. package/dist/types/index.d.cts +2 -2
  102. package/dist/types/index.d.mts +2 -2
  103. package/dist/types/number.d.cts +1 -1
  104. package/dist/types/number.d.mts +1 -1
  105. package/dist/types/object.d.cts +2 -2
  106. package/dist/types/object.d.mts +2 -2
  107. package/dist/types/pluralizer.d.cts +1 -1
  108. package/dist/types/pluralizer.d.mts +1 -1
  109. package/dist/types/string.d.cts +2 -2
  110. package/dist/types/string.d.mts +2 -2
  111. package/dist/types/stylog.d.cts +1 -1
  112. package/dist/types/stylog.d.mts +1 -1
  113. package/dist/types/utils.d.cts +1 -1
  114. package/dist/types/utils.d.mts +1 -1
  115. package/dist/{utilities-CzyXCRHM.cjs → utilities-CWV1GPGY.cjs} +1 -1
  116. package/dist/{utilities-B9axOvOX.mjs → utilities-DPscNbS1.mjs} +1 -1
  117. package/dist/{uuid-DgTBxcVu.d.cts → uuid-BUI3Jt8n.d.cts} +3 -3
  118. package/dist/{uuid-Yc3Uu8qr.d.mts → uuid-mEiy14sf.d.mts} +3 -3
  119. package/dist/verbalizer.cjs +3 -3
  120. package/dist/verbalizer.d.cts +3 -3
  121. package/dist/verbalizer.d.mts +3 -3
  122. package/dist/verbalizer.mjs +3 -3
  123. package/package.json +7 -6
  124. package/dist/guards-DeO4ukiK.mjs +0 -221
  125. package/dist/utils-BxguWSoa.cjs +0 -568
  126. package/dist/utils-DXovsTKs.mjs +0 -449
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { B as TitleCase, I as SentenceCase, L as SnakeCase, M as PascalSnakeCase, N as PathCase, T as DotCase, V as TrainCase, f as CamelCase, g as ConstantCase, j as PascalCase, k as KebabCase, m as CaseFormat, p as CapitalizeOptions, z as StringCaseOptions } from "./string-CkwTVFeL.mjs";
17
+ import { A as KebabCase, B as StringCaseOptions, E as DotCase, H as TrainCase, L as SentenceCase, M as PascalCase, N as PascalSnakeCase, P as PathCase, R as SnakeCase, V as TitleCase, _ as ConstantCase, h as CaseFormat, m as CapitalizeOptions, p as CamelCase, u as $WidenEmpty } from "./string-C51m7T6d.mjs";
18
18
 
19
19
  //#region src/string/case.d.ts
20
20
  /**
@@ -124,7 +124,7 @@ declare function capitalizeString(string: string, options?: CapitalizeOptions):
124
124
  * @param del Additional delimiter characters to recognize.
125
125
  * @returns The `camelCase` formatted string.
126
126
  */
127
- declare function toCamelCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): CamelCase<Str, Del>;
127
+ declare function toCamelCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<CamelCase<Str, Del>>;
128
128
  /**
129
129
  * * Converts a string into `PascalCase`, using the optional custom delimiters in addition to the default delimiters.
130
130
  *
@@ -145,7 +145,7 @@ declare function toCamelCase<Str extends string, Del extends string = ''>(str: S
145
145
  * @param del Additional delimiter characters to recognize.
146
146
  * @returns The `PascalCase` formatted string.
147
147
  */
148
- declare function toPascalCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): PascalCase<Str, Del>;
148
+ declare function toPascalCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<PascalCase<Str, Del>>;
149
149
  /**
150
150
  * * Converts a string into `snake_case`, using the optional custom delimiters in addition to the default delimiters.
151
151
  *
@@ -165,7 +165,7 @@ declare function toPascalCase<Str extends string, Del extends string = ''>(str:
165
165
  * @param del Additional delimiter characters to recognize.
166
166
  * @returns The `snake_case` formatted string.
167
167
  */
168
- declare function toSnakeCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): SnakeCase<Str, Del>;
168
+ declare function toSnakeCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<SnakeCase<Str, Del>>;
169
169
  /**
170
170
  * * Converts a string into `kebab-case`, using the optional custom delimiters in addition to the default delimiters.
171
171
  *
@@ -185,7 +185,7 @@ declare function toSnakeCase<Str extends string, Del extends string = ''>(str: S
185
185
  * @param del Additional delimiter characters to recognize.
186
186
  * @returns The `kebab-case` formatted string.
187
187
  */
188
- declare function toKebabCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): KebabCase<Str, Del>;
188
+ declare function toKebabCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<KebabCase<Str, Del>>;
189
189
  /**
190
190
  * * Converts a string into `Train-Case`, using the optional custom delimiters in addition to the default delimiters.
191
191
  *
@@ -204,7 +204,7 @@ declare function toKebabCase<Str extends string, Del extends string = ''>(str: S
204
204
  * @param del Additional delimiter characters to recognize.
205
205
  * @returns The `Train-Case` formatted string.
206
206
  */
207
- declare function toTrainCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): TrainCase<Str, Del>;
207
+ declare function toTrainCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<TrainCase<Str, Del>>;
208
208
  /**
209
209
  * * Converts a string into `dot.case`, using the optional custom delimiters in addition to the default delimiters.
210
210
  *
@@ -223,7 +223,7 @@ declare function toTrainCase<Str extends string, Del extends string = ''>(str: S
223
223
  * @param del Additional delimiter characters to recognize.
224
224
  * @returns The `dot.case` formatted string.
225
225
  */
226
- declare function toDotCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): DotCase<Str, Del>;
226
+ declare function toDotCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<DotCase<Str, Del>>;
227
227
  /**
228
228
  * * Converts a string into `path/case`, using the optional custom delimiters in addition to the default delimiters.
229
229
  *
@@ -242,7 +242,7 @@ declare function toDotCase<Str extends string, Del extends string = ''>(str: Str
242
242
  * @param del Additional delimiter characters to recognize.
243
243
  * @returns The `path/case` formatted string.
244
244
  */
245
- declare function toPathCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): PathCase<Str, Del>;
245
+ declare function toPathCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<PathCase<Str, Del>>;
246
246
  /**
247
247
  * * Converts a string into `CONSTANT_CASE`, using the optional custom delimiters in addition to the default delimiters.
248
248
  *
@@ -261,7 +261,7 @@ declare function toPathCase<Str extends string, Del extends string = ''>(str: St
261
261
  * @param del Additional delimiter characters to recognize.
262
262
  * @returns The `CONSTANT_CASE` formatted string.
263
263
  */
264
- declare function toConstantCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): ConstantCase<Str, Del>;
264
+ declare function toConstantCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<ConstantCase<Str, Del>>;
265
265
  /**
266
266
  * * Converts a string into `Pascal_Snake_Case`, using the optional custom delimiters in addition to the default delimiters.
267
267
  *
@@ -280,7 +280,7 @@ declare function toConstantCase<Str extends string, Del extends string = ''>(str
280
280
  * @param del Additional delimiter characters to recognize.
281
281
  * @returns The `Pascal_Snake_Case` formatted string.
282
282
  */
283
- declare function toPascalSnakeCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): PascalSnakeCase<Str, Del>;
283
+ declare function toPascalSnakeCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<PascalSnakeCase<Str, Del>>;
284
284
  /**
285
285
  * * Converts a string into `Title Case`, using the optional custom delimiters in addition to the default delimiters.
286
286
  *
@@ -301,7 +301,7 @@ declare function toPascalSnakeCase<Str extends string, Del extends string = ''>(
301
301
  * @param del Additional delimiter characters to recognize.
302
302
  * @returns The `Title Case` formatted string.
303
303
  */
304
- declare function toTitleCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): TitleCase<Str, Del>;
304
+ declare function toTitleCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<TitleCase<Str, Del>>;
305
305
  /**
306
306
  * * Converts a string into `Sentence case`, using the optional custom delimiters in addition to the default delimiters.
307
307
  *
@@ -322,6 +322,6 @@ declare function toTitleCase<Str extends string, Del extends string = ''>(str: S
322
322
  * @param del Additional delimiter characters to recognize.
323
323
  * @returns The `Sentence case` formatted string.
324
324
  */
325
- declare function toSentenceCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): SentenceCase<Str, Del>;
325
+ declare function toSentenceCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<SentenceCase<Str, Del>>;
326
326
  //#endregion
327
327
  export { toDotCase as a, toPascalSnakeCase as c, toSnakeCase as d, toTitleCase as f, toConstantCase as i, toPathCase as l, convertStringCase as n, toKebabCase as o, toTrainCase as p, toCamelCase as r, toPascalCase as s, capitalizeString as t, toSentenceCase as u };
@@ -132,11 +132,11 @@ function convertStringCase(value, format, options) {
132
132
  return start.concat(body, end);
133
133
  }
134
134
  case "snake_case": {
135
- const body = tokens.map((token) => lowerCase(token)).join("_");
135
+ const body = tokens.map(lowerCase).join("_");
136
136
  return start.concat(body, end);
137
137
  }
138
138
  case "kebab-case": {
139
- const body = tokens.map((token) => lowerCase(token)).join("-");
139
+ const body = tokens.map(lowerCase).join("-");
140
140
  return start.concat(body, end);
141
141
  }
142
142
  case "Title Case": {
@@ -195,7 +195,7 @@ function _getDelimiterRegex(delims) {
195
195
  /** Normalizes delimiters + splits the string */
196
196
  function _normalizeDelimiters(str, delims) {
197
197
  const delRegExp = _getDelimiterRegex(delims);
198
- return str.replace(/(\p{Ll}?\d+|(?<=\p{Lu}))(\p{Lu})/gu, "$1 $2").replace(delRegExp, " ").replace(/\s+/g, " ").trim().split(" ").filter(Boolean);
198
+ return str.replace(/(\p{Ll}?\d+|(?<=\p{Lu}|\p{Ll}))(\p{Lu})/gu, "$1 $2").replace(delRegExp, " ").replace(/\s+/g, " ").trim().split(" ").filter(Boolean);
199
199
  }
200
200
  /** Capitalize a string (first letter capital, rest lowercase) */
201
201
  function _capitalize(str) {
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { B as TitleCase, I as SentenceCase, L as SnakeCase, M as PascalSnakeCase, N as PathCase, T as DotCase, V as TrainCase, f as CamelCase, g as ConstantCase, j as PascalCase, k as KebabCase, m as CaseFormat, p as CapitalizeOptions, z as StringCaseOptions } from "./string-Dq2b8rcN.cjs";
17
+ import { A as KebabCase, B as StringCaseOptions, E as DotCase, H as TrainCase, L as SentenceCase, M as PascalCase, N as PascalSnakeCase, P as PathCase, R as SnakeCase, V as TitleCase, _ as ConstantCase, h as CaseFormat, m as CapitalizeOptions, p as CamelCase, u as $WidenEmpty } from "./string-CO7HP50i.cjs";
18
18
 
19
19
  //#region src/string/case.d.ts
20
20
  /**
@@ -124,7 +124,7 @@ declare function capitalizeString(string: string, options?: CapitalizeOptions):
124
124
  * @param del Additional delimiter characters to recognize.
125
125
  * @returns The `camelCase` formatted string.
126
126
  */
127
- declare function toCamelCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): CamelCase<Str, Del>;
127
+ declare function toCamelCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<CamelCase<Str, Del>>;
128
128
  /**
129
129
  * * Converts a string into `PascalCase`, using the optional custom delimiters in addition to the default delimiters.
130
130
  *
@@ -145,7 +145,7 @@ declare function toCamelCase<Str extends string, Del extends string = ''>(str: S
145
145
  * @param del Additional delimiter characters to recognize.
146
146
  * @returns The `PascalCase` formatted string.
147
147
  */
148
- declare function toPascalCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): PascalCase<Str, Del>;
148
+ declare function toPascalCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<PascalCase<Str, Del>>;
149
149
  /**
150
150
  * * Converts a string into `snake_case`, using the optional custom delimiters in addition to the default delimiters.
151
151
  *
@@ -165,7 +165,7 @@ declare function toPascalCase<Str extends string, Del extends string = ''>(str:
165
165
  * @param del Additional delimiter characters to recognize.
166
166
  * @returns The `snake_case` formatted string.
167
167
  */
168
- declare function toSnakeCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): SnakeCase<Str, Del>;
168
+ declare function toSnakeCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<SnakeCase<Str, Del>>;
169
169
  /**
170
170
  * * Converts a string into `kebab-case`, using the optional custom delimiters in addition to the default delimiters.
171
171
  *
@@ -185,7 +185,7 @@ declare function toSnakeCase<Str extends string, Del extends string = ''>(str: S
185
185
  * @param del Additional delimiter characters to recognize.
186
186
  * @returns The `kebab-case` formatted string.
187
187
  */
188
- declare function toKebabCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): KebabCase<Str, Del>;
188
+ declare function toKebabCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<KebabCase<Str, Del>>;
189
189
  /**
190
190
  * * Converts a string into `Train-Case`, using the optional custom delimiters in addition to the default delimiters.
191
191
  *
@@ -204,7 +204,7 @@ declare function toKebabCase<Str extends string, Del extends string = ''>(str: S
204
204
  * @param del Additional delimiter characters to recognize.
205
205
  * @returns The `Train-Case` formatted string.
206
206
  */
207
- declare function toTrainCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): TrainCase<Str, Del>;
207
+ declare function toTrainCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<TrainCase<Str, Del>>;
208
208
  /**
209
209
  * * Converts a string into `dot.case`, using the optional custom delimiters in addition to the default delimiters.
210
210
  *
@@ -223,7 +223,7 @@ declare function toTrainCase<Str extends string, Del extends string = ''>(str: S
223
223
  * @param del Additional delimiter characters to recognize.
224
224
  * @returns The `dot.case` formatted string.
225
225
  */
226
- declare function toDotCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): DotCase<Str, Del>;
226
+ declare function toDotCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<DotCase<Str, Del>>;
227
227
  /**
228
228
  * * Converts a string into `path/case`, using the optional custom delimiters in addition to the default delimiters.
229
229
  *
@@ -242,7 +242,7 @@ declare function toDotCase<Str extends string, Del extends string = ''>(str: Str
242
242
  * @param del Additional delimiter characters to recognize.
243
243
  * @returns The `path/case` formatted string.
244
244
  */
245
- declare function toPathCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): PathCase<Str, Del>;
245
+ declare function toPathCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<PathCase<Str, Del>>;
246
246
  /**
247
247
  * * Converts a string into `CONSTANT_CASE`, using the optional custom delimiters in addition to the default delimiters.
248
248
  *
@@ -261,7 +261,7 @@ declare function toPathCase<Str extends string, Del extends string = ''>(str: St
261
261
  * @param del Additional delimiter characters to recognize.
262
262
  * @returns The `CONSTANT_CASE` formatted string.
263
263
  */
264
- declare function toConstantCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): ConstantCase<Str, Del>;
264
+ declare function toConstantCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<ConstantCase<Str, Del>>;
265
265
  /**
266
266
  * * Converts a string into `Pascal_Snake_Case`, using the optional custom delimiters in addition to the default delimiters.
267
267
  *
@@ -280,7 +280,7 @@ declare function toConstantCase<Str extends string, Del extends string = ''>(str
280
280
  * @param del Additional delimiter characters to recognize.
281
281
  * @returns The `Pascal_Snake_Case` formatted string.
282
282
  */
283
- declare function toPascalSnakeCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): PascalSnakeCase<Str, Del>;
283
+ declare function toPascalSnakeCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<PascalSnakeCase<Str, Del>>;
284
284
  /**
285
285
  * * Converts a string into `Title Case`, using the optional custom delimiters in addition to the default delimiters.
286
286
  *
@@ -301,7 +301,7 @@ declare function toPascalSnakeCase<Str extends string, Del extends string = ''>(
301
301
  * @param del Additional delimiter characters to recognize.
302
302
  * @returns The `Title Case` formatted string.
303
303
  */
304
- declare function toTitleCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): TitleCase<Str, Del>;
304
+ declare function toTitleCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<TitleCase<Str, Del>>;
305
305
  /**
306
306
  * * Converts a string into `Sentence case`, using the optional custom delimiters in addition to the default delimiters.
307
307
  *
@@ -322,6 +322,6 @@ declare function toTitleCase<Str extends string, Del extends string = ''>(str: S
322
322
  * @param del Additional delimiter characters to recognize.
323
323
  * @returns The `Sentence case` formatted string.
324
324
  */
325
- declare function toSentenceCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): SentenceCase<Str, Del>;
325
+ declare function toSentenceCase<Str extends string, Del extends string = ''>(str: Str, ...del: Del[]): $WidenEmpty<SentenceCase<Str, Del>>;
326
326
  //#endregion
327
327
  export { toDotCase as a, toPascalSnakeCase as c, toSnakeCase as d, toTitleCase as f, toConstantCase as i, toPathCase as l, convertStringCase as n, toKebabCase as o, toTrainCase as p, toCamelCase as r, toPascalCase as s, capitalizeString as t, toSentenceCase as u };
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
- const require_case = require('./case-uKFzt5TY.cjs');
18
+ const require_case = require('./case-Bd7QLHYw.cjs');
19
19
 
20
20
  exports.capitalizeString = require_case.capitalizeString;
21
21
  exports.convertStringCase = require_case.convertStringCase;
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { a as toDotCase, c as toPascalSnakeCase, d as toSnakeCase, f as toTitleCase, i as toConstantCase, l as toPathCase, n as convertStringCase, o as toKebabCase, p as toTrainCase, r as toCamelCase, s as toPascalCase, t as capitalizeString, u as toSentenceCase } from "./case--Vjea9DS.cjs";
17
+ import { a as toDotCase, c as toPascalSnakeCase, d as toSnakeCase, f as toTitleCase, i as toConstantCase, l as toPathCase, n as convertStringCase, o as toKebabCase, p as toTrainCase, r as toCamelCase, s as toPascalCase, t as capitalizeString, u as toSentenceCase } from "./case-DkYSKSeV.cjs";
18
18
  export { capitalizeString, convertStringCase, toCamelCase, toConstantCase, toDotCase, toKebabCase, toPascalCase, toPascalSnakeCase, toPathCase, toSentenceCase, toSnakeCase, toTitleCase, toTrainCase };
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { a as toDotCase, c as toPascalSnakeCase, d as toSnakeCase, f as toTitleCase, i as toConstantCase, l as toPathCase, n as convertStringCase, o as toKebabCase, p as toTrainCase, r as toCamelCase, s as toPascalCase, t as capitalizeString, u as toSentenceCase } from "./case-KdrBKjjK.mjs";
17
+ import { a as toDotCase, c as toPascalSnakeCase, d as toSnakeCase, f as toTitleCase, i as toConstantCase, l as toPathCase, n as convertStringCase, o as toKebabCase, p as toTrainCase, r as toCamelCase, s as toPascalCase, t as capitalizeString, u as toSentenceCase } from "./case-ChRzRBnY.mjs";
18
18
  export { capitalizeString, convertStringCase, toCamelCase, toConstantCase, toDotCase, toKebabCase, toPascalCase, toPascalSnakeCase, toPathCase, toSentenceCase, toSnakeCase, toTitleCase, toTrainCase };
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { a as toDotCase, c as toPascalSnakeCase, d as toSnakeCase, f as toTitleCase, i as toConstantCase, l as toPathCase, n as convertStringCase, o as toKebabCase, p as toTrainCase, r as toCamelCase, s as toPascalCase, t as capitalizeString, u as toSentenceCase } from "./case-BQwn5N-k.mjs";
17
+ import { a as toDotCase, c as toPascalSnakeCase, d as toSnakeCase, f as toTitleCase, i as toConstantCase, l as toPathCase, n as convertStringCase, o as toKebabCase, p as toTrainCase, r as toCamelCase, s as toPascalCase, t as capitalizeString, u as toSentenceCase } from "./case-DBC4Rj0h.mjs";
18
18
 
19
19
  export { capitalizeString, convertStringCase, toCamelCase, toConstantCase, toDotCase, toKebabCase, toPascalCase, toPascalSnakeCase, toPathCase, toSentenceCase, toSnakeCase, toTitleCase, toTrainCase };
package/dist/colors.d.cts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { Jn as Percent } from "./object-ChFVh95z.cjs";
18
- import { C as RandomColorOptions, S as RandomColor, T as SolidValues, _ as Hex, a as AlphaValues, b as RGB, g as HSLA, h as HSL, l as ColorInputArray, n as $ColorType, t as Color, v as Hex6, x as RGBA, y as Hex8 } from "./Color-Dsut0Bex.cjs";
17
+ import { Qn as Percent } from "./object-X5fSMx-I.cjs";
18
+ import { C as RandomColorOptions, S as RandomColor, T as SolidValues, _ as Hex, a as AlphaValues, b as RGB, g as HSLA, h as HSL, l as ColorInputArray, n as $ColorType, t as Color, v as Hex6, x as RGBA, y as Hex8 } from "./Color-B8MR8Vp0.cjs";
19
19
 
20
20
  //#region src/colors/convert.d.ts
21
21
  /**
package/dist/colors.d.mts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { Jn as Percent } from "./object-ChFVh95z.mjs";
18
- import { C as RandomColorOptions, S as RandomColor, T as SolidValues, _ as Hex, a as AlphaValues, b as RGB, g as HSLA, h as HSL, l as ColorInputArray, n as $ColorType, t as Color, v as Hex6, x as RGBA, y as Hex8 } from "./Color-DCfoQk_-.mjs";
17
+ import { Qn as Percent } from "./object-X5fSMx-I.mjs";
18
+ import { C as RandomColorOptions, S as RandomColor, T as SolidValues, _ as Hex, a as AlphaValues, b as RGB, g as HSLA, h as HSL, l as ColorInputArray, n as $ColorType, t as Color, v as Hex6, x as RGBA, y as Hex8 } from "./Color-D2MfZx7L.mjs";
19
19
 
20
20
  //#region src/colors/convert.d.ts
21
21
  /**
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  import { t as LOWERCASE } from "./constants-C7wERz5m.cjs";
18
- import { Ci as COUNTRIES, Si as WESTERN_ZODIAC_SIGNS, _i as TIME_ZONE_IDS, bi as MONTHS, ci as CURRENCY_CODES, di as LOCALE_CODES, fi as UNITS$1, gi as TIME_ZONES_NATIVE, hi as TIME_ZONES, li as CURRENCY_LOCALES, mi as NATIVE_TZ_IDS, pi as IANA_TZ_IDS, ui as FRANKFURTER_CURRENCIES, vi as TIME_ZONE_LABELS, xi as VEDIC_ZODIAC_SIGNS, yi as DAYS } from "./object-ChFVh95z.cjs";
18
+ import { Ci as DAYS, Di as COUNTRIES, Ei as WESTERN_ZODIAC_SIGNS, Si as TIME_ZONE_LABELS, Ti as VEDIC_ZODIAC_SIGNS, _i as IANA_TZ_IDS, bi as TIME_ZONES_NATIVE, fi as CURRENCY_CODES, gi as UNITS$1, hi as LOCALE_CODES, mi as FRANKFURTER_CURRENCIES, pi as CURRENCY_LOCALES, vi as NATIVE_TZ_IDS, wi as MONTHS, xi as TIME_ZONE_IDS, yi as TIME_ZONES } from "./object-X5fSMx-I.cjs";
19
19
  import { t as CSS_COLORS } from "./css-colors-Dqz6Bfnp.cjs";
20
20
  import { t as UNITS } from "./constants-D8RzBjsL.cjs";
21
21
  import { t as HTTP_STATUS_CODES } from "./constants-DNIXgBkz.cjs";
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  import { t as LOWERCASE } from "./constants-C7wERz5m.mjs";
18
- import { Ci as COUNTRIES, Si as WESTERN_ZODIAC_SIGNS, _i as TIME_ZONE_IDS, bi as MONTHS, ci as CURRENCY_CODES, di as LOCALE_CODES, fi as UNITS$1, gi as TIME_ZONES_NATIVE, hi as TIME_ZONES, li as CURRENCY_LOCALES, mi as NATIVE_TZ_IDS, pi as IANA_TZ_IDS, ui as FRANKFURTER_CURRENCIES, vi as TIME_ZONE_LABELS, xi as VEDIC_ZODIAC_SIGNS, yi as DAYS } from "./object-ChFVh95z.mjs";
18
+ import { Ci as DAYS, Di as COUNTRIES, Ei as WESTERN_ZODIAC_SIGNS, Si as TIME_ZONE_LABELS, Ti as VEDIC_ZODIAC_SIGNS, _i as IANA_TZ_IDS, bi as TIME_ZONES_NATIVE, fi as CURRENCY_CODES, gi as UNITS$1, hi as LOCALE_CODES, mi as FRANKFURTER_CURRENCIES, pi as CURRENCY_LOCALES, vi as NATIVE_TZ_IDS, wi as MONTHS, xi as TIME_ZONE_IDS, yi as TIME_ZONES } from "./object-X5fSMx-I.mjs";
19
19
  import { t as CSS_COLORS } from "./css-colors-Dqz6Bfnp.mjs";
20
20
  import { t as UNITS } from "./constants-D8RzBjsL.mjs";
21
21
  import { t as HTTP_STATUS_CODES } from "./constants-DNIXgBkz.mjs";
@@ -97,7 +97,7 @@ var $BaseConverter = class {
97
97
  *
98
98
  * @remarks
99
99
  * - This method is automatically called when the instance is used in a string context.
100
- * - For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
100
+ * - For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/pluralizer Pluralizer Class} instead.
101
101
  */
102
102
  toString() {
103
103
  return this.$withPluralUnit();
@@ -177,7 +177,7 @@ var $BaseConverter = class {
177
177
  * @param decimals Number of decimal places for fractional value.
178
178
  * @returns Formatted string with proper unit pluralization.
179
179
  *
180
- * @remarks For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
180
+ * @remarks For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/pluralizer Pluralizer Class} instead.
181
181
  */
182
182
  format(decimals = 2) {
183
183
  return this.$withPluralUnit(this.$round(this.value, decimals));
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { it as Numeric } from "./object-ChFVh95z.cjs";
18
- import { C as $Length, S as $Mass, b as $Time, c as $Unit, f as Converted, t as $Area, w as $Data, x as $Temperature, y as $Volume } from "./area-CcRQ6TfR.cjs";
17
+ import { ct as Numeric } from "./object-X5fSMx-I.cjs";
18
+ import { C as $Length, S as $Mass, b as $Time, c as $Unit, f as Converted, t as $Area, w as $Data, x as $Temperature, y as $Volume } from "./area-CMJZ0gVm.cjs";
19
19
 
20
20
  //#region src/converter/Converter.d.ts
21
21
  /**
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { it as Numeric } from "./object-ChFVh95z.mjs";
18
- import { C as $Length, S as $Mass, b as $Time, c as $Unit, f as Converted, t as $Area, w as $Data, x as $Temperature, y as $Volume } from "./area-CvSC96va.mjs";
17
+ import { ct as Numeric } from "./object-X5fSMx-I.mjs";
18
+ import { C as $Length, S as $Mass, b as $Time, c as $Unit, f as Converted, t as $Area, w as $Data, x as $Temperature, y as $Volume } from "./area-C4tDXnGC.mjs";
19
19
 
20
20
  //#region src/converter/Converter.d.ts
21
21
  /**
@@ -96,7 +96,7 @@ var $BaseConverter = class {
96
96
  *
97
97
  * @remarks
98
98
  * - This method is automatically called when the instance is used in a string context.
99
- * - For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
99
+ * - For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/pluralizer Pluralizer Class} instead.
100
100
  */
101
101
  toString() {
102
102
  return this.$withPluralUnit();
@@ -176,7 +176,7 @@ var $BaseConverter = class {
176
176
  * @param decimals Number of decimal places for fractional value.
177
177
  * @returns Formatted string with proper unit pluralization.
178
178
  *
179
- * @remarks For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
179
+ * @remarks For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/pluralizer Pluralizer Class} instead.
180
180
  */
181
181
  format(decimals = 2) {
182
182
  return this.$withPluralUnit(this.$round(this.value, decimals));
package/dist/date.cjs CHANGED
@@ -17,10 +17,10 @@
17
17
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
18
  const require_primitives = require('./primitives-CBGICrDR.cjs');
19
19
  const require_timezone = require('./timezone-CSz7R0L6.cjs');
20
- const require_specials = require('./specials-BM6cx43o.cjs');
21
- const require_utilities = require('./utilities-CzyXCRHM.cjs');
22
- const require_guards = require('./guards-ClGDJrQp.cjs');
23
- const require_parse = require('./parse-DovagZFA.cjs');
20
+ const require_specials = require('./specials-dkYP1Nh2.cjs');
21
+ const require_utilities = require('./utilities-CWV1GPGY.cjs');
22
+ const require_guards = require('./guards-Bsh6Bfdq.cjs');
23
+ const require_parse = require('./parse-DT7jbWx7.cjs');
24
24
 
25
25
  //#region src/date/utils.ts
26
26
  /**
@@ -162,15 +162,15 @@ function getTimeZoneIds(offset) {
162
162
  * - The default format is `'dd, mmm DD, YYYY HH:mm:ss'` (e.g., `'Sun, Apr 06, 2025 16:11:55'`).
163
163
  * - By default, local time is used; set `useUTC` to `true` to format in UTC.
164
164
  * - The format string supports various tokens for date and time components, as well as literal text enclosed in square brackets.
165
- * - See {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/date/formatDate#format-tokens format tokens} for details on supported tokens.
166
- * - For more complex date/time manipulations, consider using the {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Chronos Chronos} class.
165
+ * - See {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/date-time/format-date#format-tokens format tokens} for details on supported tokens.
166
+ * - For more complex date/time manipulations, consider using the {@link https://chronos.nazmul-nhb.dev/docs/ chronos-date} library.
167
167
  *
168
168
  * @returns Date/time string in specified format.
169
169
  */
170
170
  function formatDate(options) {
171
171
  const { date = /* @__PURE__ */ new Date(), format = "dd, mmm DD, YYYY HH:mm:ss", useUTC = false } = options ?? {};
172
172
  const $date = require_parse._dateArgsToDate(date);
173
- if (isNaN($date.getTime())) return "Invalid Date!";
173
+ if (Number.isNaN($date.getTime())) return "Invalid Date!";
174
174
  /** Get unit value for {@link $date} for specific unit in local or UTC time */
175
175
  const _getUnitValue = (suffix) => {
176
176
  return useUTC ? $date[`getUTC${suffix}`]() : $date[`get${suffix}`]();
@@ -204,7 +204,7 @@ function formatTimePart(time, format) {
204
204
  });
205
205
  }
206
206
  /**
207
- * * Formats a date as a relative time string (e.g., "5m ago", "2h from now").
207
+ * * Formats a date as a relative time string (e.g., `"5m ago"`, `"2h from now"`).
208
208
  *
209
209
  * @param date - The date to format, which can be a `Date` object, a date string, or a timestamp number.
210
210
  * @param format - Optional format string for dates older than 7 days. Defaults to `'mmm D, yyyy hh:mm a'`.
@@ -223,7 +223,7 @@ function formatTimePart(time, format) {
223
223
  */
224
224
  function formatDateRelative(date, format) {
225
225
  const $date = require_parse._dateArgsToDate(date);
226
- if (isNaN($date.getTime())) return "Invalid Date!";
226
+ if (Number.isNaN($date.getTime())) return "Invalid Date!";
227
227
  const now = Date.now();
228
228
  const then = $date.getTime();
229
229
  const diff = Math.abs(now - then);
@@ -255,7 +255,7 @@ function getTimestamp(args, format) {
255
255
  $format = format || "utc";
256
256
  }
257
257
  let date = require_parse._dateArgsToDate($value);
258
- if (isNaN(date.getTime())) date = /* @__PURE__ */ new Date();
258
+ if (Number.isNaN(date.getTime())) date = /* @__PURE__ */ new Date();
259
259
  if ($format === "local") {
260
260
  const offsetMins = date.getTimezoneOffset();
261
261
  const localDate = /* @__PURE__ */ new Date(date.getTime() - offsetMins * 6e4);
package/dist/date.d.cts CHANGED
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $ as Maybe, Dt as ClockTime, Gt as ISODateTimeString, Ht as HourMinutes, Ot as DateArgs, Sn as UTCOffset, Vt as GreetingConfigs, Wt as ISODateFormat, an as SafeFormat, bn as TimestampOptions, bt as $TimeZoneIdentifier, cn as TimeOnlyFormat, fn as TimeWithUnit, gn as TimeZoneIdNative, it as Numeric, kt as DateFormatOptions, mn as TimeZoneDetails } from "./object-ChFVh95z.cjs";
17
+ import { En as UTCOffset, Gt as GreetingConfigs, Jt as ISODateFormat, Kt as HourMinutes, Mt as DateArgs, Nt as DateFormatOptions, Yt as ISODateTimeString, bn as TimeZoneIdNative, ct as Numeric, fn as TimeOnlyFormat, gn as TimeWithUnit, jt as ClockTime, ln as SafeFormat, nt as Maybe, vn as TimeZoneDetails, wn as TimestampOptions, wt as $TimeZoneIdentifier } from "./object-X5fSMx-I.cjs";
18
18
 
19
19
  //#region src/date/greet.d.ts
20
20
  /**
@@ -129,8 +129,8 @@ declare function getTimeZoneIds(offset: UTCOffset): TimeZoneIdNative[];
129
129
  * - The default format is `'dd, mmm DD, YYYY HH:mm:ss'` (e.g., `'Sun, Apr 06, 2025 16:11:55'`).
130
130
  * - By default, local time is used; set `useUTC` to `true` to format in UTC.
131
131
  * - The format string supports various tokens for date and time components, as well as literal text enclosed in square brackets.
132
- * - See {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/date/formatDate#format-tokens format tokens} for details on supported tokens.
133
- * - For more complex date/time manipulations, consider using the {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Chronos Chronos} class.
132
+ * - See {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/date-time/format-date#format-tokens format tokens} for details on supported tokens.
133
+ * - For more complex date/time manipulations, consider using the {@link https://chronos.nazmul-nhb.dev/docs/ chronos-date} library.
134
134
  *
135
135
  * @returns Date/time string in specified format.
136
136
  */
@@ -157,7 +157,7 @@ declare function formatDate(options?: DateFormatOptions): string;
157
157
  */
158
158
  declare function formatTimePart(time: string, format?: TimeOnlyFormat): string;
159
159
  /**
160
- * * Formats a date as a relative time string (e.g., "5m ago", "2h from now").
160
+ * * Formats a date as a relative time string (e.g., `"5m ago"`, `"2h from now"`).
161
161
  *
162
162
  * @param date - The date to format, which can be a `Date` object, a date string, or a timestamp number.
163
163
  * @param format - Optional format string for dates older than 7 days. Defaults to `'mmm D, yyyy hh:mm a'`.
package/dist/date.d.mts CHANGED
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $ as Maybe, Dt as ClockTime, Gt as ISODateTimeString, Ht as HourMinutes, Ot as DateArgs, Sn as UTCOffset, Vt as GreetingConfigs, Wt as ISODateFormat, an as SafeFormat, bn as TimestampOptions, bt as $TimeZoneIdentifier, cn as TimeOnlyFormat, fn as TimeWithUnit, gn as TimeZoneIdNative, it as Numeric, kt as DateFormatOptions, mn as TimeZoneDetails } from "./object-ChFVh95z.mjs";
17
+ import { En as UTCOffset, Gt as GreetingConfigs, Jt as ISODateFormat, Kt as HourMinutes, Mt as DateArgs, Nt as DateFormatOptions, Yt as ISODateTimeString, bn as TimeZoneIdNative, ct as Numeric, fn as TimeOnlyFormat, gn as TimeWithUnit, jt as ClockTime, ln as SafeFormat, nt as Maybe, vn as TimeZoneDetails, wn as TimestampOptions, wt as $TimeZoneIdentifier } from "./object-X5fSMx-I.mjs";
18
18
 
19
19
  //#region src/date/greet.d.ts
20
20
  /**
@@ -129,8 +129,8 @@ declare function getTimeZoneIds(offset: UTCOffset): TimeZoneIdNative[];
129
129
  * - The default format is `'dd, mmm DD, YYYY HH:mm:ss'` (e.g., `'Sun, Apr 06, 2025 16:11:55'`).
130
130
  * - By default, local time is used; set `useUTC` to `true` to format in UTC.
131
131
  * - The format string supports various tokens for date and time components, as well as literal text enclosed in square brackets.
132
- * - See {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/date/formatDate#format-tokens format tokens} for details on supported tokens.
133
- * - For more complex date/time manipulations, consider using the {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Chronos Chronos} class.
132
+ * - See {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/date-time/format-date#format-tokens format tokens} for details on supported tokens.
133
+ * - For more complex date/time manipulations, consider using the {@link https://chronos.nazmul-nhb.dev/docs/ chronos-date} library.
134
134
  *
135
135
  * @returns Date/time string in specified format.
136
136
  */
@@ -157,7 +157,7 @@ declare function formatDate(options?: DateFormatOptions): string;
157
157
  */
158
158
  declare function formatTimePart(time: string, format?: TimeOnlyFormat): string;
159
159
  /**
160
- * * Formats a date as a relative time string (e.g., "5m ago", "2h from now").
160
+ * * Formats a date as a relative time string (e.g., `"5m ago"`, `"2h from now"`).
161
161
  *
162
162
  * @param date - The date to format, which can be a `Date` object, a date string, or a timestamp number.
163
163
  * @param format - Optional format string for dates older than 7 days. Defaults to `'mmm D, yyyy hh:mm a'`.
package/dist/date.mjs CHANGED
@@ -16,10 +16,10 @@
16
16
 
17
17
  import { m as isUndefined } from "./primitives-Djsevc69.mjs";
18
18
  import { n as NATIVE_TZ_IDS } from "./timezone-avZ4TvDx.mjs";
19
- import { T as isObject } from "./specials-Cye93-uo.mjs";
20
- import { a as normalizeNumber } from "./utilities-B9axOvOX.mjs";
21
- import { a as isValidTime, s as isValidUTCOffset } from "./guards-C0smSAKC.mjs";
22
- import { a as _normalizeOffset, i as _gmtToUtcOffset, n as _dateArgsToDate, o as _resolveNativeTzName, r as _formatDate, t as parseMSec } from "./parse-BhZ6-tKg.mjs";
19
+ import { T as isObject } from "./specials-Hq5Ncd6y.mjs";
20
+ import { a as normalizeNumber } from "./utilities-DPscNbS1.mjs";
21
+ import { a as isValidTime, s as isValidUTCOffset } from "./guards-BK1QuvFZ.mjs";
22
+ import { a as _normalizeOffset, i as _gmtToUtcOffset, n as _dateArgsToDate, o as _resolveNativeTzName, r as _formatDate, t as parseMSec } from "./parse-erxBG2hd.mjs";
23
23
 
24
24
  //#region src/date/utils.ts
25
25
  /**
@@ -161,15 +161,15 @@ function getTimeZoneIds(offset) {
161
161
  * - The default format is `'dd, mmm DD, YYYY HH:mm:ss'` (e.g., `'Sun, Apr 06, 2025 16:11:55'`).
162
162
  * - By default, local time is used; set `useUTC` to `true` to format in UTC.
163
163
  * - The format string supports various tokens for date and time components, as well as literal text enclosed in square brackets.
164
- * - See {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/date/formatDate#format-tokens format tokens} for details on supported tokens.
165
- * - For more complex date/time manipulations, consider using the {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Chronos Chronos} class.
164
+ * - See {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/date-time/format-date#format-tokens format tokens} for details on supported tokens.
165
+ * - For more complex date/time manipulations, consider using the {@link https://chronos.nazmul-nhb.dev/docs/ chronos-date} library.
166
166
  *
167
167
  * @returns Date/time string in specified format.
168
168
  */
169
169
  function formatDate(options) {
170
170
  const { date = /* @__PURE__ */ new Date(), format = "dd, mmm DD, YYYY HH:mm:ss", useUTC = false } = options ?? {};
171
171
  const $date = _dateArgsToDate(date);
172
- if (isNaN($date.getTime())) return "Invalid Date!";
172
+ if (Number.isNaN($date.getTime())) return "Invalid Date!";
173
173
  /** Get unit value for {@link $date} for specific unit in local or UTC time */
174
174
  const _getUnitValue = (suffix) => {
175
175
  return useUTC ? $date[`getUTC${suffix}`]() : $date[`get${suffix}`]();
@@ -203,7 +203,7 @@ function formatTimePart(time, format) {
203
203
  });
204
204
  }
205
205
  /**
206
- * * Formats a date as a relative time string (e.g., "5m ago", "2h from now").
206
+ * * Formats a date as a relative time string (e.g., `"5m ago"`, `"2h from now"`).
207
207
  *
208
208
  * @param date - The date to format, which can be a `Date` object, a date string, or a timestamp number.
209
209
  * @param format - Optional format string for dates older than 7 days. Defaults to `'mmm D, yyyy hh:mm a'`.
@@ -222,7 +222,7 @@ function formatTimePart(time, format) {
222
222
  */
223
223
  function formatDateRelative(date, format) {
224
224
  const $date = _dateArgsToDate(date);
225
- if (isNaN($date.getTime())) return "Invalid Date!";
225
+ if (Number.isNaN($date.getTime())) return "Invalid Date!";
226
226
  const now = Date.now();
227
227
  const then = $date.getTime();
228
228
  const diff = Math.abs(now - then);
@@ -254,7 +254,7 @@ function getTimestamp(args, format) {
254
254
  $format = format || "utc";
255
255
  }
256
256
  let date = _dateArgsToDate($value);
257
- if (isNaN(date.getTime())) date = /* @__PURE__ */ new Date();
257
+ if (Number.isNaN(date.getTime())) date = /* @__PURE__ */ new Date();
258
258
  if ($format === "local") {
259
259
  const offsetMins = date.getTimezoneOffset();
260
260
  const localDate = /* @__PURE__ */ new Date(date.getTime() - offsetMins * 6e4);
package/dist/dom.cjs CHANGED
@@ -16,11 +16,10 @@
16
16
 
17
17
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
18
  const require_primitives = require('./primitives-CBGICrDR.cjs');
19
- const require_specials = require('./specials-BM6cx43o.cjs');
20
- const require_guards = require('./guards-ClGDJrQp.cjs');
21
- const require_basics = require('./basics-K8BDSYD6.cjs');
22
- const require_objectify = require('./objectify-DewBSJP_.cjs');
23
- const require_utils = require('./utils-BxguWSoa.cjs');
19
+ const require_specials = require('./specials-dkYP1Nh2.cjs');
20
+ const require_guards = require('./guards-Bsh6Bfdq.cjs');
21
+ const require_basics = require('./basics-CJmdhXoo.cjs');
22
+ const require_objectify = require('./objectify-xQvZS3UI.cjs');
24
23
 
25
24
  //#region src/dom/query.ts
26
25
  /**
@@ -80,7 +79,7 @@ function parseQueryString(query, parsePrimitives = true) {
80
79
  for (const [key, value] of params.entries()) if (key in entries) {
81
80
  const current = entries[key];
82
81
  const array = Array.isArray(current) ? [...current, value] : [current, value];
83
- entries[key] = parsePrimitives ? require_utils.deepParsePrimitives(array) : array;
82
+ entries[key] = parsePrimitives ? require_basics.deepParsePrimitives(array) : array;
84
83
  } else entries[key] = value;
85
84
  return parsePrimitives ? require_objectify.parseObjectValues(entries) : entries;
86
85
  }
package/dist/dom.d.cts CHANGED
@@ -14,9 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { A as ParsedQuery, G as Deserializer, M as QueryObject, ct as Serializer, j as ParsedQueryGeneric, y as GenericObject } from "./object-ChFVh95z.cjs";
18
- import { P as QueryString } from "./string-Dq2b8rcN.cjs";
19
- import { a as OriginFileObj, i as FormDataConfigs, o as ParsedFormData, r as FileUpload, s as SerializedForm, t as CustomFile } from "./form-mP-nl8EC.cjs";
17
+ import { J as Deserializer, M as ParsedQueryGeneric, N as QueryObject, ft as Serializer, j as ParsedQuery, y as GenericObject } from "./object-X5fSMx-I.cjs";
18
+ import { F as QueryString } from "./string-CO7HP50i.cjs";
19
+ import { a as OriginFileObj, i as FormDataConfigs, o as ParsedFormData, r as FileUpload, s as SerializedForm, t as CustomFile } from "./form-Cp1OyCRI.cjs";
20
20
 
21
21
  //#region src/dom/query.d.ts
22
22
  /**