chronos-date 1.3.4 → 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 (78) hide show
  1. package/README.md +1 -1
  2. package/dist/{convert-C58su2-2.cjs → convert-BDQBTK5P.cjs} +3 -3
  3. package/dist/{convert-CWh7zZ5Q.mjs → convert-D5Cd0cCg.mjs} +3 -3
  4. package/dist/{greet-DMVrEM6l.cjs → greet-CMkwXJ7o.cjs} +1 -1
  5. package/dist/{greet-BBVGLAlA.mjs → greet-DNGvP7nm.mjs} +1 -1
  6. package/dist/guards.cjs +3 -3
  7. package/dist/guards.d.cts +1 -1
  8. package/dist/guards.d.mts +1 -1
  9. package/dist/guards.mjs +3 -3
  10. package/dist/{helpers-CoVvHHs7.cjs → helpers-Bq7Hczoa.cjs} +3 -3
  11. package/dist/{helpers-X5e54orr.mjs → helpers-C2spzGZ-.mjs} +3 -3
  12. package/dist/index.cjs +31 -32
  13. package/dist/index.d.cts +1 -1
  14. package/dist/index.d.mts +1 -1
  15. package/dist/index.mjs +31 -32
  16. package/dist/{non-primitives-D3EcMaah.cjs → non-primitives-BqjRwK2B.cjs} +1 -1
  17. package/dist/{non-primitives-BG-R5eUB.mjs → non-primitives-CbAOB6lb.mjs} +1 -1
  18. package/dist/plugins/banglaPlugin.cjs +4 -4
  19. package/dist/plugins/banglaPlugin.d.cts +2 -2
  20. package/dist/plugins/banglaPlugin.d.mts +2 -2
  21. package/dist/plugins/banglaPlugin.mjs +4 -4
  22. package/dist/plugins/businessPlugin.cjs +4 -4
  23. package/dist/plugins/businessPlugin.d.cts +3 -3
  24. package/dist/plugins/businessPlugin.d.mts +3 -3
  25. package/dist/plugins/businessPlugin.mjs +4 -4
  26. package/dist/plugins/dateRangePlugin.cjs +2 -2
  27. package/dist/plugins/dateRangePlugin.d.cts +3 -3
  28. package/dist/plugins/dateRangePlugin.d.mts +3 -3
  29. package/dist/plugins/dateRangePlugin.mjs +2 -2
  30. package/dist/plugins/dayPartPlugin.cjs +1 -1
  31. package/dist/plugins/dayPartPlugin.d.cts +1 -1
  32. package/dist/plugins/dayPartPlugin.d.mts +1 -1
  33. package/dist/plugins/dayPartPlugin.mjs +1 -1
  34. package/dist/plugins/durationPlugin.d.cts +1 -1
  35. package/dist/plugins/durationPlugin.d.mts +1 -1
  36. package/dist/plugins/fromNowPlugin.cjs +1 -1
  37. package/dist/plugins/fromNowPlugin.d.cts +1 -1
  38. package/dist/plugins/fromNowPlugin.d.mts +1 -1
  39. package/dist/plugins/fromNowPlugin.mjs +1 -1
  40. package/dist/plugins/greetingPlugin.cjs +2 -2
  41. package/dist/plugins/greetingPlugin.d.cts +3 -3
  42. package/dist/plugins/greetingPlugin.d.mts +3 -3
  43. package/dist/plugins/greetingPlugin.mjs +2 -2
  44. package/dist/plugins/palindromePlugin.cjs +4 -4
  45. package/dist/plugins/palindromePlugin.d.cts +1 -1
  46. package/dist/plugins/palindromePlugin.d.mts +1 -1
  47. package/dist/plugins/palindromePlugin.mjs +4 -4
  48. package/dist/plugins/relativeTimePlugin.d.cts +1 -1
  49. package/dist/plugins/relativeTimePlugin.d.mts +1 -1
  50. package/dist/plugins/roundPlugin.cjs +1 -1
  51. package/dist/plugins/roundPlugin.d.cts +1 -1
  52. package/dist/plugins/roundPlugin.d.mts +1 -1
  53. package/dist/plugins/roundPlugin.mjs +1 -1
  54. package/dist/plugins/seasonPlugin.d.cts +2 -2
  55. package/dist/plugins/seasonPlugin.d.mts +2 -2
  56. package/dist/plugins/timeZonePlugin.cjs +2 -2
  57. package/dist/plugins/timeZonePlugin.d.cts +1 -1
  58. package/dist/plugins/timeZonePlugin.d.mts +1 -1
  59. package/dist/plugins/timeZonePlugin.mjs +2 -2
  60. package/dist/plugins/zodiacPlugin.cjs +1 -1
  61. package/dist/plugins/zodiacPlugin.d.cts +2 -2
  62. package/dist/plugins/zodiacPlugin.d.mts +2 -2
  63. package/dist/plugins/zodiacPlugin.mjs +1 -1
  64. package/dist/{primitives-Csc-jgx0.mjs → primitives-BXhrgs9R.mjs} +1 -1
  65. package/dist/{primitives-Ce8vYVxN.cjs → primitives-DfO90c3G.cjs} +1 -1
  66. package/dist/{types-36vIWjN1.d.mts → types-Be4ZMpOV.d.mts} +55 -40
  67. package/dist/{types-DKMN8UeN.d.cts → types-dNpvroNQ.d.cts} +55 -40
  68. package/dist/types.d.cts +2 -2
  69. package/dist/types.d.mts +2 -2
  70. package/dist/{utilities-CQORzytW.mjs → utilities-BnHD2hHf.mjs} +4 -4
  71. package/dist/{utilities-CW4F3wFp.mjs → utilities-C6NiChRE.mjs} +6 -6
  72. package/dist/{utilities-GTSjQweZ.cjs → utilities-CCnKWAsS.cjs} +6 -6
  73. package/dist/{utilities-BnJa8S6A.cjs → utilities-C_KmjIRK.cjs} +4 -4
  74. package/dist/utils.cjs +4 -4
  75. package/dist/utils.d.cts +4 -4
  76. package/dist/utils.d.mts +4 -4
  77. package/dist/utils.mjs +4 -4
  78. package/package.json +7 -5
@@ -16,11 +16,11 @@
16
16
 
17
17
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
18
  const require_basic = require('../basic-DsQqC5nZ.cjs');
19
- const require_primitives = require('../primitives-Ce8vYVxN.cjs');
20
- const require_utilities = require('../utilities-BnJa8S6A.cjs');
21
- const require_helpers = require('../helpers-CoVvHHs7.cjs');
19
+ const require_primitives = require('../primitives-DfO90c3G.cjs');
20
+ const require_utilities = require('../utilities-C_KmjIRK.cjs');
21
+ const require_helpers = require('../helpers-Bq7Hczoa.cjs');
22
22
 
23
- //#region node_modules/.pnpm/nhb-toolbox@4.30.11/node_modules/nhb-toolbox/dist/esm/number/convert.js
23
+ //#region node_modules/.pnpm/nhb-toolbox@4.30.14/node_modules/nhb-toolbox/dist/esm/number/convert.js
24
24
  function digitToBangla(digit, preserveNonDigit = true) {
25
25
  const banglaDigits = Object.keys(require_utilities.BN_DIGITS);
26
26
  const _matchAndConvert = (value) => {
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $t as BanglaDateOptions, Gt as $BanglaYear, Qt as BanglaDateObject, Ut as $BanglaMonth, Wt as $BanglaMonthDate, _n as StrictFormat, an as BnCalendarConfig, en as BanglaDayName, nn as BanglaMonthName, o as ChronosPlugin, qt as $BnEn, rn as BanglaSeasonName } from "../types-DKMN8UeN.cjs";
17
+ import { $t as BanglaDateOptions, Gt as $BanglaYear, Qt as BanglaDateObject, Ut as $BanglaMonth, Wt as $BanglaMonthDate, an as BnCalendarConfig, en as BanglaDayName, gn as SafeFormat, nn as BanglaMonthName, o as ChronosPlugin, qt as $BnEn, rn as BanglaSeasonName } from "../types-dNpvroNQ.cjs";
18
18
 
19
19
  //#region src/plugins/banglaPlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -91,7 +91,7 @@ declare module 'chronos-date' {
91
91
  * - For example, `[আজ] ddd` results in `আজ রবিবার`, and `[year ]YYYY` results in `year ২০২৫`.
92
92
  * - *Any token not wrapped in brackets will be parsed and replaced with its corresponding date component.*
93
93
  */
94
- formatBangla(format?: StrictFormat, options?: BnCalendarConfig): string;
94
+ formatBangla(format?: SafeFormat, options?: BnCalendarConfig): string;
95
95
  /**
96
96
  * @instance Gets the Bangla calendar year for the current date.
97
97
  *
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $t as BanglaDateOptions, Gt as $BanglaYear, Qt as BanglaDateObject, Ut as $BanglaMonth, Wt as $BanglaMonthDate, _n as StrictFormat, an as BnCalendarConfig, en as BanglaDayName, nn as BanglaMonthName, o as ChronosPlugin, qt as $BnEn, rn as BanglaSeasonName } from "../types-36vIWjN1.mjs";
17
+ import { $t as BanglaDateOptions, Gt as $BanglaYear, Qt as BanglaDateObject, Ut as $BanglaMonth, Wt as $BanglaMonthDate, an as BnCalendarConfig, en as BanglaDayName, gn as SafeFormat, nn as BanglaMonthName, o as ChronosPlugin, qt as $BnEn, rn as BanglaSeasonName } from "../types-Be4ZMpOV.mjs";
18
18
 
19
19
  //#region src/plugins/banglaPlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -91,7 +91,7 @@ declare module 'chronos-date' {
91
91
  * - For example, `[আজ] ddd` results in `আজ রবিবার`, and `[year ]YYYY` results in `year ২০২৫`.
92
92
  * - *Any token not wrapped in brackets will be parsed and replaced with its corresponding date component.*
93
93
  */
94
- formatBangla(format?: StrictFormat, options?: BnCalendarConfig): string;
94
+ formatBangla(format?: SafeFormat, options?: BnCalendarConfig): string;
95
95
  /**
96
96
  * @instance Gets the Bangla calendar year for the current date.
97
97
  *
@@ -15,11 +15,11 @@
15
15
  */
16
16
 
17
17
  import { n as BN_MONTHS, s as INTERNALS, t as BN_DAYS } from "../basic-DqKyujoj.mjs";
18
- import { n as isNonEmptyString, r as isNumber } from "../primitives-Csc-jgx0.mjs";
19
- import { a as isNumericString, i as BN_DIGITS } from "../utilities-CQORzytW.mjs";
20
- import { a as _getBnSeason, d as _padShunno, i as _formatDateCore, l as _isBnLeapYear, o as _getBnYear, t as _bnDaysMonthIdx } from "../helpers-X5e54orr.mjs";
18
+ import { n as isNonEmptyString, r as isNumber } from "../primitives-BXhrgs9R.mjs";
19
+ import { a as isNumericString, i as BN_DIGITS } from "../utilities-BnHD2hHf.mjs";
20
+ import { a as _getBnSeason, d as _padShunno, i as _formatDateCore, l as _isBnLeapYear, o as _getBnYear, t as _bnDaysMonthIdx } from "../helpers-C2spzGZ-.mjs";
21
21
 
22
- //#region node_modules/.pnpm/nhb-toolbox@4.30.11/node_modules/nhb-toolbox/dist/esm/number/convert.js
22
+ //#region node_modules/.pnpm/nhb-toolbox@4.30.14/node_modules/nhb-toolbox/dist/esm/number/convert.js
23
23
  function digitToBangla(digit, preserveNonDigit = true) {
24
24
  const banglaDigits = Object.keys(BN_DIGITS);
25
25
  const _matchAndConvert = (value) => {
@@ -16,8 +16,8 @@
16
16
 
17
17
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
18
  const require_basic = require('../basic-DsQqC5nZ.cjs');
19
- const require_primitives = require('../primitives-Ce8vYVxN.cjs');
20
- const require_non_primitives = require('../non-primitives-D3EcMaah.cjs');
19
+ const require_primitives = require('../primitives-DfO90c3G.cjs');
20
+ const require_non_primitives = require('../non-primitives-BqjRwK2B.cjs');
21
21
 
22
22
  //#region src/plugins/businessPlugin.ts
23
23
  /** * Plugin to inject `business` related methods */
@@ -119,11 +119,11 @@ const businessPlugin = ($Chronos) => {
119
119
  const { weekStartsOn = 0, weekendLength = 2 } = options ?? {};
120
120
  return this.isWorkday(weekStartsOn, weekendLength) && _isBusinessHour();
121
121
  };
122
- $Chronos.prototype.toFiscalQuarter = function(startMonth = 7) {
122
+ $Chronos.prototype.getFiscalQuarter = function(startMonth = 7) {
123
123
  const adjusted = (this.isoMonth - startMonth + 12) % 12;
124
124
  return Math.floor(adjusted / 3) + 1;
125
125
  };
126
- $Chronos.prototype.toAcademicYear = function() {
126
+ $Chronos.prototype.getAcademicYear = function() {
127
127
  const year = this.year;
128
128
  if (this.month >= 6) return `${year}-${year + 1}`;
129
129
  else return `${year - 1}-${year}`;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { D as ChronosInput, Dn as RangeTuple, Tn as NumberRange, Tt as Quarter, a as BusinessOptionsWeekends, i as BusinessOptionsBasic, o as ChronosPlugin, r as AcademicYear, wn as Enumerate } from "../types-DKMN8UeN.cjs";
17
+ import { D as ChronosInput, Dn as RangeTuple, Tn as NumberRange, Tt as Quarter, a as BusinessOptionsWeekends, i as BusinessOptionsBasic, o as ChronosPlugin, r as AcademicYear, wn as Enumerate } from "../types-dNpvroNQ.cjs";
18
18
 
19
19
  //#region src/plugins/businessPlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -447,13 +447,13 @@ declare module 'chronos-date' {
447
447
  * @instance Returns the academic year based on a typical start in `July` and end in `June`.
448
448
  * @returns The academic year in format `YYYY-YYYY`.
449
449
  */
450
- toAcademicYear(): AcademicYear;
450
+ getAcademicYear(): AcademicYear;
451
451
  /**
452
452
  * @instance Returns the fiscal quarter based on custom fiscal year start (defaults to July).
453
453
  * @param startMonth - The fiscal year start month (1-12), default is July (`7`).
454
454
  * @returns The fiscal quarter (1-4).
455
455
  */
456
- toFiscalQuarter(startMonth?: NumberRange<1, 12>): Quarter;
456
+ getFiscalQuarter(startMonth?: NumberRange<1, 12>): Quarter;
457
457
  }
458
458
  }
459
459
  /** * Plugin to inject `business` related methods */
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { D as ChronosInput, Dn as RangeTuple, Tn as NumberRange, Tt as Quarter, a as BusinessOptionsWeekends, i as BusinessOptionsBasic, o as ChronosPlugin, r as AcademicYear, wn as Enumerate } from "../types-36vIWjN1.mjs";
17
+ import { D as ChronosInput, Dn as RangeTuple, Tn as NumberRange, Tt as Quarter, a as BusinessOptionsWeekends, i as BusinessOptionsBasic, o as ChronosPlugin, r as AcademicYear, wn as Enumerate } from "../types-Be4ZMpOV.mjs";
18
18
 
19
19
  //#region src/plugins/businessPlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -447,13 +447,13 @@ declare module 'chronos-date' {
447
447
  * @instance Returns the academic year based on a typical start in `July` and end in `June`.
448
448
  * @returns The academic year in format `YYYY-YYYY`.
449
449
  */
450
- toAcademicYear(): AcademicYear;
450
+ getAcademicYear(): AcademicYear;
451
451
  /**
452
452
  * @instance Returns the fiscal quarter based on custom fiscal year start (defaults to July).
453
453
  * @param startMonth - The fiscal year start month (1-12), default is July (`7`).
454
454
  * @returns The fiscal quarter (1-4).
455
455
  */
456
- toFiscalQuarter(startMonth?: NumberRange<1, 12>): Quarter;
456
+ getFiscalQuarter(startMonth?: NumberRange<1, 12>): Quarter;
457
457
  }
458
458
  }
459
459
  /** * Plugin to inject `business` related methods */
@@ -15,8 +15,8 @@
15
15
  */
16
16
 
17
17
  import { s as INTERNALS } from "../basic-DqKyujoj.mjs";
18
- import { a as isUndefined } from "../primitives-Csc-jgx0.mjs";
19
- import { a as isValidArray } from "../non-primitives-BG-R5eUB.mjs";
18
+ import { a as isUndefined } from "../primitives-BXhrgs9R.mjs";
19
+ import { a as isValidArray } from "../non-primitives-CbAOB6lb.mjs";
20
20
 
21
21
  //#region src/plugins/businessPlugin.ts
22
22
  /** * Plugin to inject `business` related methods */
@@ -118,11 +118,11 @@ const businessPlugin = ($Chronos) => {
118
118
  const { weekStartsOn = 0, weekendLength = 2 } = options ?? {};
119
119
  return this.isWorkday(weekStartsOn, weekendLength) && _isBusinessHour();
120
120
  };
121
- $Chronos.prototype.toFiscalQuarter = function(startMonth = 7) {
121
+ $Chronos.prototype.getFiscalQuarter = function(startMonth = 7) {
122
122
  const adjusted = (this.isoMonth - startMonth + 12) % 12;
123
123
  return Math.floor(adjusted / 3) + 1;
124
124
  };
125
- $Chronos.prototype.toAcademicYear = function() {
125
+ $Chronos.prototype.getAcademicYear = function() {
126
126
  const year = this.year;
127
127
  if (this.month >= 6) return `${year}-${year + 1}`;
128
128
  else return `${year - 1}-${year}`;
@@ -16,8 +16,8 @@
16
16
 
17
17
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
18
  const require_basic = require('../basic-DsQqC5nZ.cjs');
19
- const require_primitives = require('../primitives-Ce8vYVxN.cjs');
20
- const require_non_primitives = require('../non-primitives-D3EcMaah.cjs');
19
+ const require_primitives = require('../primitives-DfO90c3G.cjs');
20
+ const require_non_primitives = require('../non-primitives-BqjRwK2B.cjs');
21
21
 
22
22
  //#region src/plugins/dateRangePlugin.ts
23
23
  /** * Plugin to inject `getDatesInRange` related method */
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { L as RangeWithDates, R as RelativeDateRange, ht as ISODateTimeString, o as ChronosPlugin } from "../types-DKMN8UeN.cjs";
17
+ import { L as RangeWithDates, R as RelativeDateRange, ht as ISODateTimeString, o as ChronosPlugin } from "../types-dNpvroNQ.cjs";
18
18
 
19
19
  //#region src/plugins/dateRangePlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -29,7 +29,7 @@ declare module 'chronos-date' {
29
29
  * @param options - Configuration for the date range. Accepts a fixed (`RangeWithDates`) format.
30
30
  * @returns Array of ISO date-time strings in either local or UTC format, excluding any skipped weekdays if specified.
31
31
  *
32
- * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/calculation#getdatesinrange docs} for details.
32
+ * - Please refer to {@link https://chronos.nazmul-nhb.dev/docs/plugins/date-range-plugin#getdatesinrange docs} for details.
33
33
  *
34
34
  * @remarks
35
35
  * - When using `Chronos` instances for `from` and/or `to`, ensure both are created in the **same time zone** to avoid mismatched boundaries.
@@ -61,7 +61,7 @@ declare module 'chronos-date' {
61
61
  * @param options - Configuration for the date range. Accepts a relative (`RelativeDateRange`) format.
62
62
  * @returns Array of ISO date-time strings in either local or UTC format, excluding any skipped weekdays if specified.
63
63
  *
64
- * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/calculation#getdatesinrange docs} for details.
64
+ * - Please refer to {@link https://chronos.nazmul-nhb.dev/docs/plugins/date-range-plugin#getdatesinrange docs} for details.
65
65
  *
66
66
  * @example
67
67
  * // Using a relative date range with skipDays:
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { L as RangeWithDates, R as RelativeDateRange, ht as ISODateTimeString, o as ChronosPlugin } from "../types-36vIWjN1.mjs";
17
+ import { L as RangeWithDates, R as RelativeDateRange, ht as ISODateTimeString, o as ChronosPlugin } from "../types-Be4ZMpOV.mjs";
18
18
 
19
19
  //#region src/plugins/dateRangePlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -29,7 +29,7 @@ declare module 'chronos-date' {
29
29
  * @param options - Configuration for the date range. Accepts a fixed (`RangeWithDates`) format.
30
30
  * @returns Array of ISO date-time strings in either local or UTC format, excluding any skipped weekdays if specified.
31
31
  *
32
- * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/calculation#getdatesinrange docs} for details.
32
+ * - Please refer to {@link https://chronos.nazmul-nhb.dev/docs/plugins/date-range-plugin#getdatesinrange docs} for details.
33
33
  *
34
34
  * @remarks
35
35
  * - When using `Chronos` instances for `from` and/or `to`, ensure both are created in the **same time zone** to avoid mismatched boundaries.
@@ -61,7 +61,7 @@ declare module 'chronos-date' {
61
61
  * @param options - Configuration for the date range. Accepts a relative (`RelativeDateRange`) format.
62
62
  * @returns Array of ISO date-time strings in either local or UTC format, excluding any skipped weekdays if specified.
63
63
  *
64
- * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/calculation#getdatesinrange docs} for details.
64
+ * - Please refer to {@link https://chronos.nazmul-nhb.dev/docs/plugins/date-range-plugin#getdatesinrange docs} for details.
65
65
  *
66
66
  * @example
67
67
  * // Using a relative date range with skipDays:
@@ -15,8 +15,8 @@
15
15
  */
16
16
 
17
17
  import { o as DAYS, s as INTERNALS, u as MS_PER_DAY } from "../basic-DqKyujoj.mjs";
18
- import { r as isNumber } from "../primitives-Csc-jgx0.mjs";
19
- import { a as isValidArray } from "../non-primitives-BG-R5eUB.mjs";
18
+ import { r as isNumber } from "../primitives-BXhrgs9R.mjs";
19
+ import { a as isValidArray } from "../non-primitives-CbAOB6lb.mjs";
20
20
 
21
21
  //#region src/plugins/dateRangePlugin.ts
22
22
  /** * Plugin to inject `getDatesInRange` related method */
@@ -16,7 +16,7 @@
16
16
 
17
17
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
18
  const require_basic = require('../basic-DsQqC5nZ.cjs');
19
- const require_non_primitives = require('../non-primitives-D3EcMaah.cjs');
19
+ const require_non_primitives = require('../non-primitives-BqjRwK2B.cjs');
20
20
 
21
21
  //#region src/plugins/dayPartPlugin.ts
22
22
  /** * Plugin to inject `getPartOfDay` method */
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { c as DayPart, l as DayPartConfig, o as ChronosPlugin } from "../types-DKMN8UeN.cjs";
17
+ import { c as DayPart, l as DayPartConfig, o as ChronosPlugin } from "../types-dNpvroNQ.cjs";
18
18
 
19
19
  //#region src/plugins/dayPartPlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { c as DayPart, l as DayPartConfig, o as ChronosPlugin } from "../types-36vIWjN1.mjs";
17
+ import { c as DayPart, l as DayPartConfig, o as ChronosPlugin } from "../types-Be4ZMpOV.mjs";
18
18
 
19
19
  //#region src/plugins/dayPartPlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  import { a as DATE_PART_RANGES } from "../basic-DqKyujoj.mjs";
18
- import { n as isNotEmptyObject } from "../non-primitives-BG-R5eUB.mjs";
18
+ import { n as isNotEmptyObject } from "../non-primitives-CbAOB6lb.mjs";
19
19
 
20
20
  //#region src/plugins/dayPartPlugin.ts
21
21
  /** * Plugin to inject `getPartOfDay` method */
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { D as ChronosInput, d as DurationOptions, g as TimeDuration, o as ChronosPlugin } from "../types-DKMN8UeN.cjs";
17
+ import { D as ChronosInput, d as DurationOptions, g as TimeDuration, o as ChronosPlugin } from "../types-dNpvroNQ.cjs";
18
18
 
19
19
  //#region src/plugins/durationPlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { D as ChronosInput, d as DurationOptions, g as TimeDuration, o as ChronosPlugin } from "../types-36vIWjN1.mjs";
17
+ import { D as ChronosInput, d as DurationOptions, g as TimeDuration, o as ChronosPlugin } from "../types-Be4ZMpOV.mjs";
18
18
 
19
19
  //#region src/plugins/durationPlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -16,7 +16,7 @@
16
16
 
17
17
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
18
  const require_basic = require('../basic-DsQqC5nZ.cjs');
19
- const require_convert = require('../convert-C58su2-2.cjs');
19
+ const require_convert = require('../convert-BDQBTK5P.cjs');
20
20
 
21
21
  //#region src/plugins/fromNowPlugin.ts
22
22
  /** * Plugin to inject `fromNow` method */
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { D as ChronosInput, dt as FromNowUnit, o as ChronosPlugin } from "../types-DKMN8UeN.cjs";
17
+ import { D as ChronosInput, dt as FromNowUnit, o as ChronosPlugin } from "../types-dNpvroNQ.cjs";
18
18
 
19
19
  //#region src/plugins/fromNowPlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { D as ChronosInput, dt as FromNowUnit, o as ChronosPlugin } from "../types-36vIWjN1.mjs";
17
+ import { D as ChronosInput, dt as FromNowUnit, o as ChronosPlugin } from "../types-Be4ZMpOV.mjs";
18
18
 
19
19
  //#region src/plugins/fromNowPlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  import { s as INTERNALS } from "../basic-DqKyujoj.mjs";
18
- import { t as formatUnitWithPlural } from "../convert-CWh7zZ5Q.mjs";
18
+ import { t as formatUnitWithPlural } from "../convert-D5Cd0cCg.mjs";
19
19
 
20
20
  //#region src/plugins/fromNowPlugin.ts
21
21
  /** * Plugin to inject `fromNow` method */
@@ -15,14 +15,14 @@
15
15
  */
16
16
 
17
17
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
- const require_greet = require('../greet-DMVrEM6l.cjs');
18
+ const require_greet = require('../greet-CMkwXJ7o.cjs');
19
19
 
20
20
  //#region src/plugins/greetingPlugin.ts
21
21
  /** * Plugin to inject `getGreeting`/`greet` method */
22
22
  const greetingPlugin = ($Chronos) => {
23
23
  $Chronos.prototype.getGreeting = function(configs) {
24
24
  return require_greet.getGreeting({
25
- currentTime: this.formatStrict("HH:mm"),
25
+ currentTime: this.formatSafe("HH:mm"),
26
26
  ...configs
27
27
  });
28
28
  };
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { ft as GreetingConfigs, o as ChronosPlugin } from "../types-DKMN8UeN.cjs";
17
+ import { ft as GreetingConfigs, o as ChronosPlugin } from "../types-dNpvroNQ.cjs";
18
18
 
19
19
  //#region src/plugins/greetingPlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -22,7 +22,7 @@ declare module 'chronos-date' {
22
22
  /**
23
23
  * @instance Returns a greeting message based on current instance of `Chronos` time or provided time in the `configs`.
24
24
  *
25
- * @remarks This method internally uses {@link https://toolbox.nazmul-nhb.dev/docs/utilities/date/getGreeting getGreeting} function.
25
+ * @remarks This method internally uses {@link https://chronos.nazmul-nhb.dev/docs/utils/get-greeting getGreeting} function.
26
26
  *
27
27
  * @param configs - Configuration options for greeting times and messages.
28
28
  * @returns The appropriate greeting message.
@@ -31,7 +31,7 @@ declare module 'chronos-date' {
31
31
  /**
32
32
  * @instance Returns a greeting message based on current instance of `Chronos` time or provided time in the `configs`.
33
33
  *
34
- * @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#getgreeting getGreeting} method.
34
+ * @remarks This method is an alias for {@link Chronos.getGreeting getGreeting} method.
35
35
  *
36
36
  * @param configs - Configuration options for greeting times and messages.
37
37
  * @returns The appropriate greeting message.
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { ft as GreetingConfigs, o as ChronosPlugin } from "../types-36vIWjN1.mjs";
17
+ import { ft as GreetingConfigs, o as ChronosPlugin } from "../types-Be4ZMpOV.mjs";
18
18
 
19
19
  //#region src/plugins/greetingPlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -22,7 +22,7 @@ declare module 'chronos-date' {
22
22
  /**
23
23
  * @instance Returns a greeting message based on current instance of `Chronos` time or provided time in the `configs`.
24
24
  *
25
- * @remarks This method internally uses {@link https://toolbox.nazmul-nhb.dev/docs/utilities/date/getGreeting getGreeting} function.
25
+ * @remarks This method internally uses {@link https://chronos.nazmul-nhb.dev/docs/utils/get-greeting getGreeting} function.
26
26
  *
27
27
  * @param configs - Configuration options for greeting times and messages.
28
28
  * @returns The appropriate greeting message.
@@ -31,7 +31,7 @@ declare module 'chronos-date' {
31
31
  /**
32
32
  * @instance Returns a greeting message based on current instance of `Chronos` time or provided time in the `configs`.
33
33
  *
34
- * @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#getgreeting getGreeting} method.
34
+ * @remarks This method is an alias for {@link Chronos.getGreeting getGreeting} method.
35
35
  *
36
36
  * @param configs - Configuration options for greeting times and messages.
37
37
  * @returns The appropriate greeting message.
@@ -14,14 +14,14 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { t as getGreeting } from "../greet-BBVGLAlA.mjs";
17
+ import { t as getGreeting } from "../greet-DNGvP7nm.mjs";
18
18
 
19
19
  //#region src/plugins/greetingPlugin.ts
20
20
  /** * Plugin to inject `getGreeting`/`greet` method */
21
21
  const greetingPlugin = ($Chronos) => {
22
22
  $Chronos.prototype.getGreeting = function(configs) {
23
23
  return getGreeting({
24
- currentTime: this.formatStrict("HH:mm"),
24
+ currentTime: this.formatSafe("HH:mm"),
25
25
  ...configs
26
26
  });
27
27
  };
@@ -15,9 +15,9 @@
15
15
  */
16
16
 
17
17
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
- const require_convert = require('../convert-C58su2-2.cjs');
18
+ const require_convert = require('../convert-BDQBTK5P.cjs');
19
19
 
20
- //#region node_modules/.pnpm/nhb-toolbox@4.30.11/node_modules/nhb-toolbox/dist/esm/string/guards.js
20
+ //#region node_modules/.pnpm/nhb-toolbox@4.30.14/node_modules/nhb-toolbox/dist/esm/string/guards.js
21
21
  const isPalindrome = (input) => {
22
22
  const normalized = input.toLowerCase().replace(/[^a-z0-9]/g, "");
23
23
  return normalized === require_convert.reverseString(normalized);
@@ -28,8 +28,8 @@ const isPalindrome = (input) => {
28
28
  /** * Plugin to inject `isPalindromeDate` method */
29
29
  const palindromePlugin = ($Chronos) => {
30
30
  $Chronos.prototype.isPalindromeDate = function(shortYear = false) {
31
- const padded = this.formatStrict(shortYear ? "YY-MM-DD" : "YYYY-MM-DD");
32
- const normal = this.formatStrict(shortYear ? "YY-M-D" : "YYYY-M-D");
31
+ const padded = this.formatSafe(shortYear ? "YY-MM-DD" : "YYYY-MM-DD");
32
+ const normal = this.formatSafe(shortYear ? "YY-M-D" : "YYYY-M-D");
33
33
  return isPalindrome(padded) || isPalindrome(normal);
34
34
  };
35
35
  };
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { o as ChronosPlugin } from "../types-DKMN8UeN.cjs";
17
+ import { o as ChronosPlugin } from "../types-dNpvroNQ.cjs";
18
18
 
19
19
  //#region src/plugins/palindromePlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { o as ChronosPlugin } from "../types-36vIWjN1.mjs";
17
+ import { o as ChronosPlugin } from "../types-Be4ZMpOV.mjs";
18
18
 
19
19
  //#region src/plugins/palindromePlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -14,9 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { n as reverseString } from "../convert-CWh7zZ5Q.mjs";
17
+ import { n as reverseString } from "../convert-D5Cd0cCg.mjs";
18
18
 
19
- //#region node_modules/.pnpm/nhb-toolbox@4.30.11/node_modules/nhb-toolbox/dist/esm/string/guards.js
19
+ //#region node_modules/.pnpm/nhb-toolbox@4.30.14/node_modules/nhb-toolbox/dist/esm/string/guards.js
20
20
  const isPalindrome = (input) => {
21
21
  const normalized = input.toLowerCase().replace(/[^a-z0-9]/g, "");
22
22
  return normalized === reverseString(normalized);
@@ -27,8 +27,8 @@ const isPalindrome = (input) => {
27
27
  /** * Plugin to inject `isPalindromeDate` method */
28
28
  const palindromePlugin = ($Chronos) => {
29
29
  $Chronos.prototype.isPalindromeDate = function(shortYear = false) {
30
- const padded = this.formatStrict(shortYear ? "YY-MM-DD" : "YYYY-MM-DD");
31
- const normal = this.formatStrict(shortYear ? "YY-M-D" : "YYYY-M-D");
30
+ const padded = this.formatSafe(shortYear ? "YY-MM-DD" : "YYYY-MM-DD");
31
+ const normal = this.formatSafe(shortYear ? "YY-M-D" : "YYYY-M-D");
32
32
  return isPalindrome(padded) || isPalindrome(normal);
33
33
  };
34
34
  };
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { D as ChronosInput, Et as TimeUnit, o as ChronosPlugin } from "../types-DKMN8UeN.cjs";
17
+ import { D as ChronosInput, Et as TimeUnit, o as ChronosPlugin } from "../types-dNpvroNQ.cjs";
18
18
 
19
19
  //#region src/plugins/relativeTimePlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { D as ChronosInput, Et as TimeUnit, o as ChronosPlugin } from "../types-36vIWjN1.mjs";
17
+ import { D as ChronosInput, Et as TimeUnit, o as ChronosPlugin } from "../types-Be4ZMpOV.mjs";
18
18
 
19
19
  //#region src/plugins/relativeTimePlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -16,7 +16,7 @@
16
16
 
17
17
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
18
  const require_basic = require('../basic-DsQqC5nZ.cjs');
19
- const require_utilities = require('../utilities-BnJa8S6A.cjs');
19
+ const require_utilities = require('../utilities-C_KmjIRK.cjs');
20
20
 
21
21
  //#region src/plugins/roundPlugin.ts
22
22
  /** * Plugin to inject `round` method */
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { Et as TimeUnit, o as ChronosPlugin } from "../types-DKMN8UeN.cjs";
17
+ import { Et as TimeUnit, o as ChronosPlugin } from "../types-dNpvroNQ.cjs";
18
18
 
19
19
  //#region src/plugins/roundPlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { Et as TimeUnit, o as ChronosPlugin } from "../types-36vIWjN1.mjs";
17
+ import { Et as TimeUnit, o as ChronosPlugin } from "../types-Be4ZMpOV.mjs";
18
18
 
19
19
  //#region src/plugins/roundPlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  import { s as INTERNALS, u as MS_PER_DAY } from "../basic-DqKyujoj.mjs";
18
- import { r as roundToNearest } from "../utilities-CQORzytW.mjs";
18
+ import { r as roundToNearest } from "../utilities-BnHD2hHf.mjs";
19
19
 
20
20
  //#region src/plugins/roundPlugin.ts
21
21
  /** * Plugin to inject `round` method */
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { m as SeasonOptions, o as ChronosPlugin } from "../types-DKMN8UeN.cjs";
17
+ import { m as SeasonOptions, o as ChronosPlugin } from "../types-dNpvroNQ.cjs";
18
18
 
19
19
  //#region src/plugins/seasonPlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -28,7 +28,7 @@ declare module 'chronos-date' {
28
28
  /**
29
29
  * @instance Returns the current season name based on optional season rules or presets.
30
30
  *
31
- * @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/names#season season} method.
31
+ * @remarks This method is an alias for {@link season} method.
32
32
  *
33
33
  * @param options Configuration with optional custom seasons or preset name.
34
34
  * @returns The name of the season the current date falls under.
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { m as SeasonOptions, o as ChronosPlugin } from "../types-36vIWjN1.mjs";
17
+ import { m as SeasonOptions, o as ChronosPlugin } from "../types-Be4ZMpOV.mjs";
18
18
 
19
19
  //#region src/plugins/seasonPlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -28,7 +28,7 @@ declare module 'chronos-date' {
28
28
  /**
29
29
  * @instance Returns the current season name based on optional season rules or presets.
30
30
  *
31
- * @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/names#season season} method.
31
+ * @remarks This method is an alias for {@link season} method.
32
32
  *
33
33
  * @param options Configuration with optional custom seasons or preset name.
34
34
  * @returns The name of the season the current date falls under.
@@ -18,8 +18,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
18
  const require_basic = require('../basic-DsQqC5nZ.cjs');
19
19
  const require_timezone = require('../timezone-BNnHFgki.cjs');
20
20
  const require_guards = require('../guards.cjs');
21
- const require_helpers = require('../helpers-CoVvHHs7.cjs');
22
- const require_utilities = require('../utilities-GTSjQweZ.cjs');
21
+ const require_helpers = require('../helpers-Bq7Hczoa.cjs');
22
+ const require_utilities = require('../utilities-CCnKWAsS.cjs');
23
23
 
24
24
  //#region src/plugins/timeZonePlugin.ts
25
25
  /** * Plugin to inject `timeZone` related methods */