chronos-date 1.1.1 → 1.2.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 (44) hide show
  1. package/README.md +64 -16
  2. package/dist/guards.d.cts +1 -1
  3. package/dist/guards.d.mts +1 -1
  4. package/dist/index.cjs +13 -13
  5. package/dist/index.d.cts +1 -1
  6. package/dist/index.d.mts +1 -1
  7. package/dist/index.mjs +13 -13
  8. package/dist/plugins/banglaPlugin.d.cts +1 -1
  9. package/dist/plugins/banglaPlugin.d.mts +1 -1
  10. package/dist/plugins/businessPlugin.d.cts +1 -1
  11. package/dist/plugins/businessPlugin.d.mts +1 -1
  12. package/dist/plugins/dateRangePlugin.d.cts +3 -3
  13. package/dist/plugins/dateRangePlugin.d.mts +3 -3
  14. package/dist/plugins/dayPartPlugin.d.cts +1 -1
  15. package/dist/plugins/dayPartPlugin.d.mts +1 -1
  16. package/dist/plugins/durationPlugin.d.cts +1 -1
  17. package/dist/plugins/durationPlugin.d.mts +1 -1
  18. package/dist/plugins/fromNowPlugin.d.cts +1 -1
  19. package/dist/plugins/fromNowPlugin.d.mts +1 -1
  20. package/dist/plugins/greetingPlugin.d.cts +2 -2
  21. package/dist/plugins/greetingPlugin.d.mts +2 -2
  22. package/dist/plugins/palindromePlugin.d.cts +1 -1
  23. package/dist/plugins/palindromePlugin.d.mts +1 -1
  24. package/dist/plugins/relativeTimePlugin.d.cts +1 -1
  25. package/dist/plugins/relativeTimePlugin.d.mts +1 -1
  26. package/dist/plugins/roundPlugin.cjs +1 -1
  27. package/dist/plugins/roundPlugin.d.cts +1 -1
  28. package/dist/plugins/roundPlugin.d.mts +1 -1
  29. package/dist/plugins/roundPlugin.mjs +1 -1
  30. package/dist/plugins/seasonPlugin.d.cts +2 -2
  31. package/dist/plugins/seasonPlugin.d.mts +2 -2
  32. package/dist/plugins/timeZonePlugin.cjs +13 -7
  33. package/dist/plugins/timeZonePlugin.d.cts +1 -1
  34. package/dist/plugins/timeZonePlugin.d.mts +1 -1
  35. package/dist/plugins/timeZonePlugin.mjs +13 -7
  36. package/dist/plugins/zodiacPlugin.d.cts +2 -2
  37. package/dist/plugins/zodiacPlugin.d.mts +2 -2
  38. package/dist/{types-Cb4gxrgJ.d.mts → types-Bs_rfkka.d.mts} +17 -17
  39. package/dist/{types-CdmsXbU_.d.cts → types-CaVuY1_4.d.cts} +17 -17
  40. package/dist/types.d.cts +1 -1
  41. package/dist/types.d.mts +1 -1
  42. package/dist/utils.d.cts +1 -1
  43. package/dist/utils.d.mts +1 -1
  44. package/package.json +5 -5
@@ -58,7 +58,7 @@ const roundPlugin = ($Chronos) => {
58
58
  const endOfWeek = new Date(startOfWeek);
59
59
  endOfWeek.setDate(endOfWeek.getDate() + 7);
60
60
  const diffToStart = Math.abs(date.getTime() - startOfWeek.getTime());
61
- return withOrigin(new $Chronos(Math.abs(endOfWeek.getTime() - date.getTime()) < diffToStart ? endOfWeek : startOfWeek), "round");
61
+ return withOrigin(new $Chronos(Math.abs(endOfWeek.getTime() - date.getTime()) < diffToStart ? endOfWeek : startOfWeek), "round", offset(this), this.timeZoneName, this.timeZoneId, this.$tzTracker);
62
62
  }
63
63
  case "month": {
64
64
  const roundedMonth = roundToNearest(date.getMonth() + date.getDate() / this.lastDateOfMonth, nearest);
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { C as $Chronos, m as SeasonOptions } from "../types-CdmsXbU_.cjs";
17
+ import { C as $Chronos, m as SeasonOptions } from "../types-CaVuY1_4.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 https://toolbox.nazmul-nhb.dev/docs/classes/chronos/names#season 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 { C as $Chronos, m as SeasonOptions } from "../types-Cb4gxrgJ.mjs";
17
+ import { C as $Chronos, m as SeasonOptions } from "../types-Bs_rfkka.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 https://toolbox.nazmul-nhb.dev/docs/classes/chronos/names#season 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.
@@ -71,11 +71,16 @@ const timeZonePlugin = ($Chronos) => {
71
71
  }
72
72
  return tzIds;
73
73
  }, /* @__PURE__ */ new Map()));
74
+ const _buildTzNameAbbrMap = () => {
75
+ const result = [];
76
+ for (const [tzAbbr, { offset, tzName }] of Object.entries(require_timezone.TIME_ZONES)) result.unshift([offset, {
77
+ tzAbbr,
78
+ tzName
79
+ }]);
80
+ return result;
81
+ };
74
82
  /** Cache to store time zone name and abbreviation against UTC offset from {@link TIME_ZONES} */
75
- const TZ_NAME_ABBR_MAP = new Map(Object.entries(require_timezone.TIME_ZONES).map(([tzAbbr, { offset, tzName }]) => [offset, {
76
- tzAbbr,
77
- tzName
78
- }]));
83
+ const TZ_NAME_ABBR_MAP = new Map(_buildTzNameAbbrMap());
79
84
  /** Get time zone identifier from {@link TZ_ID_MAP} using UTC offset */
80
85
  const _getTimeZoneId = (utc) => {
81
86
  const tzIds = TZ_ID_MAP.get(utc);
@@ -132,8 +137,8 @@ const timeZonePlugin = ($Chronos) => {
132
137
  if (!utc && tracker && _isValidTzAbbr(tracker)) return tracker;
133
138
  if (require_guards.isValidUTCOffset(tzMapKey)) {
134
139
  if (TZ_ABBR_CACHE.has(tzMapKey)) return TZ_ABBR_CACHE.get(tzMapKey);
135
- if (TZ_NAME_ABBR_MAP.has(tzMapKey)) return TZ_NAME_ABBR_MAP.get(tzMapKey)?.tzAbbr;
136
140
  const tzName = _resolveTzName(tzMapKey);
141
+ if (!tzName && TZ_NAME_ABBR_MAP.has(tzMapKey)) return TZ_NAME_ABBR_MAP.get(tzMapKey)?.tzAbbr;
137
142
  if (tzName) {
138
143
  const tzAbbr = _abbreviate(tzName);
139
144
  TZ_ABBR_CACHE.set(tzMapKey, tzAbbr);
@@ -141,9 +146,10 @@ const timeZonePlugin = ($Chronos) => {
141
146
  }
142
147
  }
143
148
  const zone = _getTimeZoneName(tzMapKey, $Date(this)) ?? UTC;
144
- if (TZ_ABBR_CACHE.has(`name-${zone}`)) return TZ_ABBR_CACHE.get(zone);
149
+ const fallbackKey = `name-${zone}`;
150
+ if (TZ_ABBR_CACHE.has(fallbackKey)) return TZ_ABBR_CACHE.get(fallbackKey);
145
151
  const customAbbr = require_guards.isValidUTCOffset(zone) ? zone : _abbreviate(zone);
146
- TZ_ABBR_CACHE.set(`name-${zone}`, customAbbr);
152
+ TZ_ABBR_CACHE.set(fallbackKey, customAbbr);
147
153
  return customAbbr;
148
154
  };
149
155
  $Chronos.prototype.getTimeZoneNameAbbr = function(utc) {
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { C as $Chronos, Lt as UTCOffset, Mt as TimeZoneIdentifier, Nt as TimeZoneName, Ot as TimeZone, Tn as LooseLiteral } from "../types-CdmsXbU_.cjs";
17
+ import { C as $Chronos, Lt as UTCOffset, Mt as TimeZoneIdentifier, Nt as TimeZoneName, Ot as TimeZone, Tn as LooseLiteral } from "../types-CaVuY1_4.cjs";
18
18
 
19
19
  //#region src/plugins/timeZonePlugin.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 $Chronos, Lt as UTCOffset, Mt as TimeZoneIdentifier, Nt as TimeZoneName, Ot as TimeZone, Tn as LooseLiteral } from "../types-Cb4gxrgJ.mjs";
17
+ import { C as $Chronos, Lt as UTCOffset, Mt as TimeZoneIdentifier, Nt as TimeZoneName, Ot as TimeZone, Tn as LooseLiteral } from "../types-Bs_rfkka.mjs";
18
18
 
19
19
  //#region src/plugins/timeZonePlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -70,11 +70,16 @@ const timeZonePlugin = ($Chronos) => {
70
70
  }
71
71
  return tzIds;
72
72
  }, /* @__PURE__ */ new Map()));
73
+ const _buildTzNameAbbrMap = () => {
74
+ const result = [];
75
+ for (const [tzAbbr, { offset, tzName }] of Object.entries(TIME_ZONES)) result.unshift([offset, {
76
+ tzAbbr,
77
+ tzName
78
+ }]);
79
+ return result;
80
+ };
73
81
  /** Cache to store time zone name and abbreviation against UTC offset from {@link TIME_ZONES} */
74
- const TZ_NAME_ABBR_MAP = new Map(Object.entries(TIME_ZONES).map(([tzAbbr, { offset, tzName }]) => [offset, {
75
- tzAbbr,
76
- tzName
77
- }]));
82
+ const TZ_NAME_ABBR_MAP = new Map(_buildTzNameAbbrMap());
78
83
  /** Get time zone identifier from {@link TZ_ID_MAP} using UTC offset */
79
84
  const _getTimeZoneId = (utc) => {
80
85
  const tzIds = TZ_ID_MAP.get(utc);
@@ -131,8 +136,8 @@ const timeZonePlugin = ($Chronos) => {
131
136
  if (!utc && tracker && _isValidTzAbbr(tracker)) return tracker;
132
137
  if (isValidUTCOffset(tzMapKey)) {
133
138
  if (TZ_ABBR_CACHE.has(tzMapKey)) return TZ_ABBR_CACHE.get(tzMapKey);
134
- if (TZ_NAME_ABBR_MAP.has(tzMapKey)) return TZ_NAME_ABBR_MAP.get(tzMapKey)?.tzAbbr;
135
139
  const tzName = _resolveTzName(tzMapKey);
140
+ if (!tzName && TZ_NAME_ABBR_MAP.has(tzMapKey)) return TZ_NAME_ABBR_MAP.get(tzMapKey)?.tzAbbr;
136
141
  if (tzName) {
137
142
  const tzAbbr = _abbreviate(tzName);
138
143
  TZ_ABBR_CACHE.set(tzMapKey, tzAbbr);
@@ -140,9 +145,10 @@ const timeZonePlugin = ($Chronos) => {
140
145
  }
141
146
  }
142
147
  const zone = _getTimeZoneName(tzMapKey, $Date(this)) ?? UTC;
143
- if (TZ_ABBR_CACHE.has(`name-${zone}`)) return TZ_ABBR_CACHE.get(zone);
148
+ const fallbackKey = `name-${zone}`;
149
+ if (TZ_ABBR_CACHE.has(fallbackKey)) return TZ_ABBR_CACHE.get(fallbackKey);
144
150
  const customAbbr = isValidUTCOffset(zone) ? zone : _abbreviate(zone);
145
- TZ_ABBR_CACHE.set(`name-${zone}`, customAbbr);
151
+ TZ_ABBR_CACHE.set(fallbackKey, customAbbr);
146
152
  return customAbbr;
147
153
  };
148
154
  $Chronos.prototype.getTimeZoneNameAbbr = function(utc) {
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { C as $Chronos, S as ZodiacSign, b as ZodiacOptions, v as ZodiacMeta, y as ZodiacMetaOptions } from "../types-CdmsXbU_.cjs";
17
+ import { C as $Chronos, S as ZodiacSign, b as ZodiacOptions, v as ZodiacMeta, y as ZodiacMetaOptions } from "../types-CaVuY1_4.cjs";
18
18
 
19
19
  //#region src/plugins/zodiacPlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -27,7 +27,7 @@ declare module 'chronos-date' {
27
27
  getZodiacSign<Sign extends string = ZodiacSign>(options?: ZodiacOptions<Sign>): Sign;
28
28
  /**
29
29
  * @instance Returns the zodiac sign based on current date or `birthDate` option.
30
- * @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/names#getzodiacsign getZodiacSign} method.
30
+ * @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/names#getzodiacsign getZodiacSign} method.
31
31
  *
32
32
  * @param options Optional config to choose preset or provide custom zodiac date ranges.
33
33
  * @returns The matching zodiac sign from preset/custom list.
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { C as $Chronos, S as ZodiacSign, b as ZodiacOptions, v as ZodiacMeta, y as ZodiacMetaOptions } from "../types-Cb4gxrgJ.mjs";
17
+ import { C as $Chronos, S as ZodiacSign, b as ZodiacOptions, v as ZodiacMeta, y as ZodiacMetaOptions } from "../types-Bs_rfkka.mjs";
18
18
 
19
19
  //#region src/plugins/zodiacPlugin.d.ts
20
20
  declare module 'chronos-date' {
@@ -27,7 +27,7 @@ declare module 'chronos-date' {
27
27
  getZodiacSign<Sign extends string = ZodiacSign>(options?: ZodiacOptions<Sign>): Sign;
28
28
  /**
29
29
  * @instance Returns the zodiac sign based on current date or `birthDate` option.
30
- * @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/names#getzodiacsign getZodiacSign} method.
30
+ * @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/names#getzodiacsign getZodiacSign} method.
31
31
  *
32
32
  * @param options Optional config to choose preset or provide custom zodiac date ranges.
33
33
  * @returns The matching zodiac sign from preset/custom list.
@@ -554,24 +554,24 @@ declare class Chronos {
554
554
  * Represents the current timezone name (e.g., `"Bangladesh Standard Time"`), or falls back to the corresponding timezone identifier (e.g., `"Asia/Dhaka"`) if no name can be resolved.
555
555
  *
556
556
  * @remarks
557
- * - Invoking the {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/conversion#timezone timeZone} method sets the timezone name that corresponds to the specified UTC offset, or the UTC offset itself if no name exists. For more details on this behavior, see {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/names#gettimezonename getTimeZoneName}.
557
+ * - Invoking the {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method sets the timezone name that corresponds to the specified UTC offset, or the UTC offset itself if no name exists. For more details on this behavior, see {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/names#gettimezonename getTimeZoneName}.
558
558
  * - To retrieve the local system's native timezone name (or its identifier if the name is unavailable), use the {@link $getNativeTimeZoneName} instance method.
559
559
  */
560
560
  timeZoneName: LooseLiteral<TimeZoneName>;
561
561
  /**
562
562
  * Represents the current timezone context, which can be a single identifier, an array of equivalent identifiers, or a UTC offset.
563
563
  *
564
- * - **{@link $TimeZoneIdentifier}** — e.g., `"Asia/Dhaka"`. Returned when the {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/conversion#timezone timeZone} method has not been invoked. It is default behavior.
564
+ * - **{@link $TimeZoneIdentifier}** — e.g., `"Asia/Dhaka"`. Returned when the {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method has not been invoked. It is default behavior.
565
565
  * - **Array of {@link $TimeZoneIdentifier}** — e.g., `[ 'Asia/Calcutta', 'Asia/Colombo' ]`, used when multiple timezones share the same UTC offset such as `"UTC+05:30"`.
566
566
  * - **{@link UTCOffset}** — e.g., `"UTC+06:45"` or `"UTC+02:15"`, returned when no named timezone corresponds to a given offset.
567
567
  *
568
568
  * @remarks
569
- * - By default, when {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/conversion#timezone timeZone} is not applied, a single {@link $TimeZoneIdentifier} string is provided.
569
+ * - By default, when {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} is not applied, a single {@link $TimeZoneIdentifier} string is provided.
570
570
  * - When applied, it may instead return a single identifier string, an array of equivalent identifiers or a UTC offset string.
571
571
  * - To retrieve the local system's native timezone identifier, use the {@link $getNativeTimeZoneId} instance method.
572
572
  */
573
573
  timeZoneId: TimeZoneId;
574
- /** Tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/conversion#timezone timeZone} method */
574
+ /** Tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method */
575
575
  protected $tzTracker?: $TimeZoneIdentifier | TimeZone | UTCOffset;
576
576
  /**
577
577
  * * Creates a new immutable `Chronos` instance from current date & time (UTC).
@@ -656,7 +656,7 @@ declare class Chronos {
656
656
  *
657
657
  * @remarks
658
658
  * - This method always reflects the local machine's time zone if `tzId` is parameter is omitted.
659
- * - {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/conversion#timezone timeZone}, {@link utc}, or {@link toUTC} methods have no effects on this method.
659
+ * - {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone}, {@link utc}, or {@link toUTC} methods have no effects on this method.
660
660
  * - To access the time zone name of a modified or converted instance, use the {@link timeZoneName} public property instead.
661
661
  *
662
662
  * @param tzId Optional time zone identifier to get time zone name for that specific identifier if available.
@@ -669,7 +669,7 @@ declare class Chronos {
669
669
  *
670
670
  * @remarks
671
671
  * - This method always returns the identifier of the local machine's time zone.
672
- * - {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/conversion#timezone timeZone}, {@link utc}, or {@link toUTC} methods have no effects on this method.
672
+ * - {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone}, {@link utc}, or {@link toUTC} methods have no effects on this method.
673
673
  * - To obtain the identifier(s) of a modified or converted instance, use the {@link timeZoneId} public property instead.
674
674
  *
675
675
  * @returns The local system's IANA time zone identifier.
@@ -737,7 +737,7 @@ declare class Chronos {
737
737
  *
738
738
  * - Supported format tokens include: `YYYY`, `YY`, `mmmm`, `mmm`, `MM`, `M`, `DD`, `D`, `dd`, `ddd`, `Do`, `HH`, `H`, `hh`, `h`, `mm`, `m`, `ss`, `s`, `ms`, `mss`, `a`, `A`, `ZZ` and `Z`.
739
739
  * - *Any token not wrapped in brackets will be parsed and replaced with its corresponding date component.*
740
- * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/format#format-tokens format tokens} for details.
740
+ * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
741
741
  *
742
742
  * @param useUTC - Optional boolean to format the date using UTC time.
743
743
  * When `true`, it behaves like `formatUTC()` and outputs time based on UTC offset. Defaults to `false`.
@@ -753,7 +753,7 @@ declare class Chronos {
753
753
  *
754
754
  * @param format - The desired format string. Defaults to `'dd, mmm DD, YYYY HH:mm:ss'`
755
755
  * (e.g., `'Sun, Apr 06, 2025 16:11:55'`).
756
- * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/format#format-tokens format tokens} for details.
756
+ * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
757
757
  *
758
758
  * @param useUTC - If `true`, formats the date in UTC (equivalent to `formatUTC()`).
759
759
  * Defaults to `false` (local time).
@@ -770,7 +770,7 @@ declare class Chronos {
770
770
  *
771
771
  * - Supported format tokens include: `YYYY`, `YY`, `mmmm`, `mmm`, `MM`, `M`, `DD`, `D`, `dd`, `ddd`, `Do`, `HH`, `H`, `hh`, `h`, `mm`, `m`, `ss`, `s`, `ms`, `mss`, `a`, `A`, `ZZ` and `Z`.
772
772
  * - *Any token not wrapped in brackets will be parsed and replaced with its corresponding date component.*
773
- * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/format#format-tokens format tokens} for details.
773
+ * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
774
774
  *
775
775
  * @returns Formatted date string in desired format (UTC time).
776
776
  */
@@ -1166,7 +1166,7 @@ declare class Chronos {
1166
1166
  * @param options - Relative range (e.g., 7 days, 4 weeks) and output format (local with timezone or utc).
1167
1167
  * @returns Array of ISO date strings in the specified format. Returns empty array if no matches in the time span.
1168
1168
  *
1169
- * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/statics#getdatesforday docs} for details.
1169
+ * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/statics#getdatesforday docs} for details.
1170
1170
  *
1171
1171
  * @example
1172
1172
  * Chronos.getDatesForDay('Wednesday', { span: 7, unit: 'day' });
@@ -1188,7 +1188,7 @@ declare class Chronos {
1188
1188
  * @param options - Date range (from/to, e.g. `'2025-06-30'`, ` new Date()`, `new Chronos()` etc.) and output format (local with timezone or utc).
1189
1189
  * @returns Array of ISO date strings in the specified format. Returns empty array if no matches in the range.
1190
1190
  *
1191
- * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/statics#getdatesforday docs} for details.
1191
+ * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/statics#getdatesforday docs} for details.
1192
1192
  *
1193
1193
  * @remarks
1194
1194
  * - When using `Chronos` instances for `from` and/or `to`, ensure both are created in the **same time zone** to avoid mismatched boundaries.
@@ -1294,7 +1294,7 @@ declare class Chronos {
1294
1294
  * - To prevent this incorrect *linter error* in `React` projects, prefer using {@link register} method (alias `use` method).
1295
1295
  *
1296
1296
  * - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
1297
- * - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/plugins#-official-plugins full list of plugins and the methods they register}.
1297
+ * - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
1298
1298
  */
1299
1299
  static use(plugin: ChronosPlugin): void;
1300
1300
  /**
@@ -1307,7 +1307,7 @@ declare class Chronos {
1307
1307
  * - To prevent this incorrect *linter error* in `React` projects, prefer using this (`register`) method over {@link use} method.
1308
1308
  *
1309
1309
  * - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
1310
- * - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/plugins#-official-plugins full list of plugins and the methods they register}.
1310
+ * - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
1311
1311
  */
1312
1312
  static register(plugin: ChronosPlugin): void;
1313
1313
  }
@@ -1405,7 +1405,7 @@ interface ChronosStatics {
1405
1405
  * - To prevent this incorrect *linter error* in `React` projects, prefer using {@link register} method (alias `use` method).
1406
1406
  *
1407
1407
  * - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
1408
- * - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/plugins#-official-plugins full list of plugins and the methods they register}.
1408
+ * - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
1409
1409
  */
1410
1410
  use(plugin: ChronosPlugin): void;
1411
1411
  /**
@@ -1418,7 +1418,7 @@ interface ChronosStatics {
1418
1418
  * - To prevent this incorrect *linter error* in `React` projects, prefer using this (`register`) method over {@link use} method.
1419
1419
  *
1420
1420
  * - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
1421
- * - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/plugins#-official-plugins full list of plugins and the methods they register}.
1421
+ * - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
1422
1422
  */
1423
1423
  register(plugin: ChronosPlugin): void;
1424
1424
  /**
@@ -1762,7 +1762,7 @@ interface FormatOptions {
1762
1762
  *
1763
1763
  * - Supported format tokens include: `YYYY`, `YY`, `mmmm`, `mmm`, `MM`, `M`, `DD`, `D`, `dd`, `ddd`, `Do`, `HH`, `H`, `hh`, `h`, `mm`, `m`, `ss`, `s`, `ms`, `mss`, `a`, `A`, and `ZZ`.
1764
1764
  * - *Any token not wrapped in brackets will be parsed and replaced with its corresponding date component.*
1765
- * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/format#format-tokens format tokens} for details.
1765
+ * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
1766
1766
  */
1767
1767
  format?: string;
1768
1768
  /** - Whether to use UTC time. Defaults to `false`. */
@@ -1849,7 +1849,7 @@ interface ChronosInternals {
1849
1849
  * @param offset Optional UTC offset in `UTC±HH:mm` format.
1850
1850
  * @param tzName Optional time zone name to set.
1851
1851
  * @param tzId Optional time zone identifier(s) to set.
1852
- * @param tzTracker Optional tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/conversion#timezone timeZone} method.
1852
+ * @param tzTracker Optional tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method.
1853
1853
  * @returns The `Chronos` instance with the specified origin and other properties.
1854
1854
  */
1855
1855
  withOrigin(instance: Chronos, method: PluginMethods, offset?: UTCOffset, tzName?: LooseLiteral<TimeZoneName>, tzId?: TimeZoneId, tzTracker?: $TimeZoneIdentifier | TimeZone | UTCOffset): Chronos;
@@ -554,24 +554,24 @@ declare class Chronos {
554
554
  * Represents the current timezone name (e.g., `"Bangladesh Standard Time"`), or falls back to the corresponding timezone identifier (e.g., `"Asia/Dhaka"`) if no name can be resolved.
555
555
  *
556
556
  * @remarks
557
- * - Invoking the {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/conversion#timezone timeZone} method sets the timezone name that corresponds to the specified UTC offset, or the UTC offset itself if no name exists. For more details on this behavior, see {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/names#gettimezonename getTimeZoneName}.
557
+ * - Invoking the {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method sets the timezone name that corresponds to the specified UTC offset, or the UTC offset itself if no name exists. For more details on this behavior, see {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/names#gettimezonename getTimeZoneName}.
558
558
  * - To retrieve the local system's native timezone name (or its identifier if the name is unavailable), use the {@link $getNativeTimeZoneName} instance method.
559
559
  */
560
560
  timeZoneName: LooseLiteral<TimeZoneName>;
561
561
  /**
562
562
  * Represents the current timezone context, which can be a single identifier, an array of equivalent identifiers, or a UTC offset.
563
563
  *
564
- * - **{@link $TimeZoneIdentifier}** — e.g., `"Asia/Dhaka"`. Returned when the {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/conversion#timezone timeZone} method has not been invoked. It is default behavior.
564
+ * - **{@link $TimeZoneIdentifier}** — e.g., `"Asia/Dhaka"`. Returned when the {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method has not been invoked. It is default behavior.
565
565
  * - **Array of {@link $TimeZoneIdentifier}** — e.g., `[ 'Asia/Calcutta', 'Asia/Colombo' ]`, used when multiple timezones share the same UTC offset such as `"UTC+05:30"`.
566
566
  * - **{@link UTCOffset}** — e.g., `"UTC+06:45"` or `"UTC+02:15"`, returned when no named timezone corresponds to a given offset.
567
567
  *
568
568
  * @remarks
569
- * - By default, when {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/conversion#timezone timeZone} is not applied, a single {@link $TimeZoneIdentifier} string is provided.
569
+ * - By default, when {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} is not applied, a single {@link $TimeZoneIdentifier} string is provided.
570
570
  * - When applied, it may instead return a single identifier string, an array of equivalent identifiers or a UTC offset string.
571
571
  * - To retrieve the local system's native timezone identifier, use the {@link $getNativeTimeZoneId} instance method.
572
572
  */
573
573
  timeZoneId: TimeZoneId;
574
- /** Tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/conversion#timezone timeZone} method */
574
+ /** Tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method */
575
575
  protected $tzTracker?: $TimeZoneIdentifier | TimeZone | UTCOffset;
576
576
  /**
577
577
  * * Creates a new immutable `Chronos` instance from current date & time (UTC).
@@ -656,7 +656,7 @@ declare class Chronos {
656
656
  *
657
657
  * @remarks
658
658
  * - This method always reflects the local machine's time zone if `tzId` is parameter is omitted.
659
- * - {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/conversion#timezone timeZone}, {@link utc}, or {@link toUTC} methods have no effects on this method.
659
+ * - {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone}, {@link utc}, or {@link toUTC} methods have no effects on this method.
660
660
  * - To access the time zone name of a modified or converted instance, use the {@link timeZoneName} public property instead.
661
661
  *
662
662
  * @param tzId Optional time zone identifier to get time zone name for that specific identifier if available.
@@ -669,7 +669,7 @@ declare class Chronos {
669
669
  *
670
670
  * @remarks
671
671
  * - This method always returns the identifier of the local machine's time zone.
672
- * - {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/conversion#timezone timeZone}, {@link utc}, or {@link toUTC} methods have no effects on this method.
672
+ * - {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone}, {@link utc}, or {@link toUTC} methods have no effects on this method.
673
673
  * - To obtain the identifier(s) of a modified or converted instance, use the {@link timeZoneId} public property instead.
674
674
  *
675
675
  * @returns The local system's IANA time zone identifier.
@@ -737,7 +737,7 @@ declare class Chronos {
737
737
  *
738
738
  * - Supported format tokens include: `YYYY`, `YY`, `mmmm`, `mmm`, `MM`, `M`, `DD`, `D`, `dd`, `ddd`, `Do`, `HH`, `H`, `hh`, `h`, `mm`, `m`, `ss`, `s`, `ms`, `mss`, `a`, `A`, `ZZ` and `Z`.
739
739
  * - *Any token not wrapped in brackets will be parsed and replaced with its corresponding date component.*
740
- * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/format#format-tokens format tokens} for details.
740
+ * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
741
741
  *
742
742
  * @param useUTC - Optional boolean to format the date using UTC time.
743
743
  * When `true`, it behaves like `formatUTC()` and outputs time based on UTC offset. Defaults to `false`.
@@ -753,7 +753,7 @@ declare class Chronos {
753
753
  *
754
754
  * @param format - The desired format string. Defaults to `'dd, mmm DD, YYYY HH:mm:ss'`
755
755
  * (e.g., `'Sun, Apr 06, 2025 16:11:55'`).
756
- * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/format#format-tokens format tokens} for details.
756
+ * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
757
757
  *
758
758
  * @param useUTC - If `true`, formats the date in UTC (equivalent to `formatUTC()`).
759
759
  * Defaults to `false` (local time).
@@ -770,7 +770,7 @@ declare class Chronos {
770
770
  *
771
771
  * - Supported format tokens include: `YYYY`, `YY`, `mmmm`, `mmm`, `MM`, `M`, `DD`, `D`, `dd`, `ddd`, `Do`, `HH`, `H`, `hh`, `h`, `mm`, `m`, `ss`, `s`, `ms`, `mss`, `a`, `A`, `ZZ` and `Z`.
772
772
  * - *Any token not wrapped in brackets will be parsed and replaced with its corresponding date component.*
773
- * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/format#format-tokens format tokens} for details.
773
+ * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
774
774
  *
775
775
  * @returns Formatted date string in desired format (UTC time).
776
776
  */
@@ -1166,7 +1166,7 @@ declare class Chronos {
1166
1166
  * @param options - Relative range (e.g., 7 days, 4 weeks) and output format (local with timezone or utc).
1167
1167
  * @returns Array of ISO date strings in the specified format. Returns empty array if no matches in the time span.
1168
1168
  *
1169
- * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/statics#getdatesforday docs} for details.
1169
+ * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/statics#getdatesforday docs} for details.
1170
1170
  *
1171
1171
  * @example
1172
1172
  * Chronos.getDatesForDay('Wednesday', { span: 7, unit: 'day' });
@@ -1188,7 +1188,7 @@ declare class Chronos {
1188
1188
  * @param options - Date range (from/to, e.g. `'2025-06-30'`, ` new Date()`, `new Chronos()` etc.) and output format (local with timezone or utc).
1189
1189
  * @returns Array of ISO date strings in the specified format. Returns empty array if no matches in the range.
1190
1190
  *
1191
- * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/statics#getdatesforday docs} for details.
1191
+ * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/statics#getdatesforday docs} for details.
1192
1192
  *
1193
1193
  * @remarks
1194
1194
  * - When using `Chronos` instances for `from` and/or `to`, ensure both are created in the **same time zone** to avoid mismatched boundaries.
@@ -1294,7 +1294,7 @@ declare class Chronos {
1294
1294
  * - To prevent this incorrect *linter error* in `React` projects, prefer using {@link register} method (alias `use` method).
1295
1295
  *
1296
1296
  * - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
1297
- * - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/plugins#-official-plugins full list of plugins and the methods they register}.
1297
+ * - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
1298
1298
  */
1299
1299
  static use(plugin: ChronosPlugin): void;
1300
1300
  /**
@@ -1307,7 +1307,7 @@ declare class Chronos {
1307
1307
  * - To prevent this incorrect *linter error* in `React` projects, prefer using this (`register`) method over {@link use} method.
1308
1308
  *
1309
1309
  * - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
1310
- * - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/plugins#-official-plugins full list of plugins and the methods they register}.
1310
+ * - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
1311
1311
  */
1312
1312
  static register(plugin: ChronosPlugin): void;
1313
1313
  }
@@ -1405,7 +1405,7 @@ interface ChronosStatics {
1405
1405
  * - To prevent this incorrect *linter error* in `React` projects, prefer using {@link register} method (alias `use` method).
1406
1406
  *
1407
1407
  * - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
1408
- * - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/plugins#-official-plugins full list of plugins and the methods they register}.
1408
+ * - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
1409
1409
  */
1410
1410
  use(plugin: ChronosPlugin): void;
1411
1411
  /**
@@ -1418,7 +1418,7 @@ interface ChronosStatics {
1418
1418
  * - To prevent this incorrect *linter error* in `React` projects, prefer using this (`register`) method over {@link use} method.
1419
1419
  *
1420
1420
  * - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
1421
- * - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/plugins#-official-plugins full list of plugins and the methods they register}.
1421
+ * - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
1422
1422
  */
1423
1423
  register(plugin: ChronosPlugin): void;
1424
1424
  /**
@@ -1762,7 +1762,7 @@ interface FormatOptions {
1762
1762
  *
1763
1763
  * - Supported format tokens include: `YYYY`, `YY`, `mmmm`, `mmm`, `MM`, `M`, `DD`, `D`, `dd`, `ddd`, `Do`, `HH`, `H`, `hh`, `h`, `mm`, `m`, `ss`, `s`, `ms`, `mss`, `a`, `A`, and `ZZ`.
1764
1764
  * - *Any token not wrapped in brackets will be parsed and replaced with its corresponding date component.*
1765
- * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/format#format-tokens format tokens} for details.
1765
+ * - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
1766
1766
  */
1767
1767
  format?: string;
1768
1768
  /** - Whether to use UTC time. Defaults to `false`. */
@@ -1849,7 +1849,7 @@ interface ChronosInternals {
1849
1849
  * @param offset Optional UTC offset in `UTC±HH:mm` format.
1850
1850
  * @param tzName Optional time zone name to set.
1851
1851
  * @param tzId Optional time zone identifier(s) to set.
1852
- * @param tzTracker Optional tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/conversion#timezone timeZone} method.
1852
+ * @param tzTracker Optional tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method.
1853
1853
  * @returns The `Chronos` instance with the specified origin and other properties.
1854
1854
  */
1855
1855
  withOrigin(instance: Chronos, method: PluginMethods, offset?: UTCOffset, tzName?: LooseLiteral<TimeZoneName>, tzId?: TimeZoneId, tzTracker?: $TimeZoneIdentifier | TimeZone | UTCOffset): Chronos;
package/dist/types.d.cts CHANGED
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $ as ChronosStaticKey, $t as BanglaDayName, A as ChronosObject, At as TimeZoneId, B as WithoutOrigin, C as $Chronos, Ct as PositiveUTCHour, D as ChronosInput, Dt as TimeWithUnit, E as $StaticMethods, Et as TimeUnitValue, F as PluginMethods, Ft as TimestampOptions, G as $NativeTzNameOrId, Gt as $BnDatePadded, H as $GMTOffset, Ht as $BanglaMonth, I as RangeWithDates, It as UTCMinute, J as $TimeUnitVar, Jt as $BnYearPadded, K as $TZLabelKey, Kt as $BnEn, L as RelativeDateRange, Lt as UTCOffset, M as ChronosWithOptions, Mt as TimeZoneIdentifier, N as DateRangeOptions, Nt as TimeZoneName, O as ChronosInternals, Ot as TimeZone, P as DatesInRangeOptions, Pt as TimeZoneNameNative, Q as $UnitAnyCase, Qt as BanglaDateOptions, R as RelativeRangeOptions, Rt as WeekDay, S as ZodiacSign, St as NumberingSystem, T as $PluginMethods, Tt as TimeUnit, U as $ISOTimeString, Ut as $BanglaMonthDate, V as $DateUnit, W as $LocalArguments, Wt as $BanglaYear, X as $TimeZoneIdentifier, Xt as BanglaDateFormat, Y as $TimeUnitVarMap, Yt as BanglaDate, Z as $UTCOffset, Zt as BanglaDateObject, _ as ZodiacArray, _n as TimeFormatToken, _t as Milliseconds, a as BusinessOptionsWeekends, an as BnCalendarVariant, at as DateFormatOptions, b as ZodiacOptions, bn as YearToken, bt as MonthString, c as DayPart, cn as DateToken, ct as DateTimeFormatOptions, d as DurationOptions, dn as HourToken, dt as GreetingConfigs, en as BanglaMonth, et as ClockHour, f as MonthBoundary, fn as MSToken, ft as HourMinutes, g as TimeDuration, gn as StrictFormat, gt as LocalesArguments, h as SeasonPreset, hn as SecondToken, ht as LocaleCalendar, i as BusinessOptionsBasic, in as BnCalendarConfig, it as DateArgs, j as ChronosProperties, jt as TimeZoneIdNative, k as ChronosMethods, kt as TimeZoneDetails, l as DayPartConfig, ln as DayToken, lt as FormatOptions, m as SeasonOptions, mn as MonthToken, mt as ISODateTimeString, n as $BusinessHourOptions, nn as BanglaSeasonName, nt as ClockSecond, o as ChronosPlugin, on as DateWithSeasonToken, ot as DateLike, p as SeasonDefinition, pn as MinuteToken, pt as ISODateFormat, q as $TimeUnitKey, qt as $BnMonthPadded, r as AcademicYear, rn as BanglaYear, rt as ClockTime, s as DateBoundary, sn as DateFormatToken, st as DateString, t as $BusinessHourBaseOptions, tn as BanglaMonthName, tt as ClockMinute, u as DurationKey, un as FormatToken, ut as FromNowUnit, v as ZodiacMeta, vn as TimeOnlyFormat, vt as MonthDateString, w as $InstanceMethods, wt as Quarter, x as ZodiacPreset, xt as NegativeUTCHour, y as ZodiacMetaOptions, yn as TimeToken, yt as MonthName, z as WeekdayOptions, zt as ChronosStatics } from "./types-CdmsXbU_.cjs";
17
+ import { $ as ChronosStaticKey, $t as BanglaDayName, A as ChronosObject, At as TimeZoneId, B as WithoutOrigin, C as $Chronos, Ct as PositiveUTCHour, D as ChronosInput, Dt as TimeWithUnit, E as $StaticMethods, Et as TimeUnitValue, F as PluginMethods, Ft as TimestampOptions, G as $NativeTzNameOrId, Gt as $BnDatePadded, H as $GMTOffset, Ht as $BanglaMonth, I as RangeWithDates, It as UTCMinute, J as $TimeUnitVar, Jt as $BnYearPadded, K as $TZLabelKey, Kt as $BnEn, L as RelativeDateRange, Lt as UTCOffset, M as ChronosWithOptions, Mt as TimeZoneIdentifier, N as DateRangeOptions, Nt as TimeZoneName, O as ChronosInternals, Ot as TimeZone, P as DatesInRangeOptions, Pt as TimeZoneNameNative, Q as $UnitAnyCase, Qt as BanglaDateOptions, R as RelativeRangeOptions, Rt as WeekDay, S as ZodiacSign, St as NumberingSystem, T as $PluginMethods, Tt as TimeUnit, U as $ISOTimeString, Ut as $BanglaMonthDate, V as $DateUnit, W as $LocalArguments, Wt as $BanglaYear, X as $TimeZoneIdentifier, Xt as BanglaDateFormat, Y as $TimeUnitVarMap, Yt as BanglaDate, Z as $UTCOffset, Zt as BanglaDateObject, _ as ZodiacArray, _n as TimeFormatToken, _t as Milliseconds, a as BusinessOptionsWeekends, an as BnCalendarVariant, at as DateFormatOptions, b as ZodiacOptions, bn as YearToken, bt as MonthString, c as DayPart, cn as DateToken, ct as DateTimeFormatOptions, d as DurationOptions, dn as HourToken, dt as GreetingConfigs, en as BanglaMonth, et as ClockHour, f as MonthBoundary, fn as MSToken, ft as HourMinutes, g as TimeDuration, gn as StrictFormat, gt as LocalesArguments, h as SeasonPreset, hn as SecondToken, ht as LocaleCalendar, i as BusinessOptionsBasic, in as BnCalendarConfig, it as DateArgs, j as ChronosProperties, jt as TimeZoneIdNative, k as ChronosMethods, kt as TimeZoneDetails, l as DayPartConfig, ln as DayToken, lt as FormatOptions, m as SeasonOptions, mn as MonthToken, mt as ISODateTimeString, n as $BusinessHourOptions, nn as BanglaSeasonName, nt as ClockSecond, o as ChronosPlugin, on as DateWithSeasonToken, ot as DateLike, p as SeasonDefinition, pn as MinuteToken, pt as ISODateFormat, q as $TimeUnitKey, qt as $BnMonthPadded, r as AcademicYear, rn as BanglaYear, rt as ClockTime, s as DateBoundary, sn as DateFormatToken, st as DateString, t as $BusinessHourBaseOptions, tn as BanglaMonthName, tt as ClockMinute, u as DurationKey, un as FormatToken, ut as FromNowUnit, v as ZodiacMeta, vn as TimeOnlyFormat, vt as MonthDateString, w as $InstanceMethods, wt as Quarter, x as ZodiacPreset, xt as NegativeUTCHour, y as ZodiacMetaOptions, yn as TimeToken, yt as MonthName, z as WeekdayOptions, zt as ChronosStatics } from "./types-CaVuY1_4.cjs";
18
18
  export { $BanglaMonth, $BanglaMonthDate, $BanglaYear, $BnDatePadded, $BnEn, $BnMonthPadded, $BnYearPadded, $BusinessHourBaseOptions, $BusinessHourOptions, $Chronos, $DateUnit, $GMTOffset, $ISOTimeString, $InstanceMethods, $LocalArguments, $NativeTzNameOrId, $PluginMethods, $StaticMethods, $TZLabelKey, $TimeUnitKey, $TimeUnitVar, $TimeUnitVarMap, $TimeZoneIdentifier, $UTCOffset, $UnitAnyCase, AcademicYear, BanglaDate, BanglaDateFormat, BanglaDateObject, BanglaDateOptions, BanglaDayName, BanglaMonth, BanglaMonthName, BanglaSeasonName, BanglaYear, BnCalendarConfig, BnCalendarVariant, BusinessOptionsBasic, BusinessOptionsWeekends, ChronosInput, ChronosInternals, ChronosMethods, ChronosObject, ChronosPlugin, ChronosProperties, ChronosStaticKey, ChronosStatics, ChronosWithOptions, ClockHour, ClockMinute, ClockSecond, ClockTime, DateArgs, DateBoundary, DateFormatOptions, DateFormatToken, DateLike, DateRangeOptions, DateString, DateTimeFormatOptions, DateToken, DateWithSeasonToken, DatesInRangeOptions, DayPart, DayPartConfig, DayToken, DurationKey, DurationOptions, FormatOptions, FormatToken, FromNowUnit, GreetingConfigs, HourMinutes, HourToken, ISODateFormat, ISODateTimeString, LocaleCalendar, LocalesArguments, MSToken, Milliseconds, MinuteToken, MonthBoundary, MonthDateString, MonthName, MonthString, MonthToken, NegativeUTCHour, NumberingSystem, PluginMethods, PositiveUTCHour, Quarter, RangeWithDates, RelativeDateRange, RelativeRangeOptions, SeasonDefinition, SeasonOptions, SeasonPreset, SecondToken, StrictFormat, TimeDuration, TimeFormatToken, TimeOnlyFormat, TimeToken, TimeUnit, TimeUnitValue, TimeWithUnit, TimeZone, TimeZoneDetails, TimeZoneId, TimeZoneIdNative, TimeZoneIdentifier, TimeZoneName, TimeZoneNameNative, TimestampOptions, UTCMinute, UTCOffset, WeekDay, WeekdayOptions, WithoutOrigin, YearToken, ZodiacArray, ZodiacMeta, ZodiacMetaOptions, ZodiacOptions, ZodiacPreset, ZodiacSign };
package/dist/types.d.mts CHANGED
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $ as ChronosStaticKey, $t as BanglaDayName, A as ChronosObject, At as TimeZoneId, B as WithoutOrigin, C as $Chronos, Ct as PositiveUTCHour, D as ChronosInput, Dt as TimeWithUnit, E as $StaticMethods, Et as TimeUnitValue, F as PluginMethods, Ft as TimestampOptions, G as $NativeTzNameOrId, Gt as $BnDatePadded, H as $GMTOffset, Ht as $BanglaMonth, I as RangeWithDates, It as UTCMinute, J as $TimeUnitVar, Jt as $BnYearPadded, K as $TZLabelKey, Kt as $BnEn, L as RelativeDateRange, Lt as UTCOffset, M as ChronosWithOptions, Mt as TimeZoneIdentifier, N as DateRangeOptions, Nt as TimeZoneName, O as ChronosInternals, Ot as TimeZone, P as DatesInRangeOptions, Pt as TimeZoneNameNative, Q as $UnitAnyCase, Qt as BanglaDateOptions, R as RelativeRangeOptions, Rt as WeekDay, S as ZodiacSign, St as NumberingSystem, T as $PluginMethods, Tt as TimeUnit, U as $ISOTimeString, Ut as $BanglaMonthDate, V as $DateUnit, W as $LocalArguments, Wt as $BanglaYear, X as $TimeZoneIdentifier, Xt as BanglaDateFormat, Y as $TimeUnitVarMap, Yt as BanglaDate, Z as $UTCOffset, Zt as BanglaDateObject, _ as ZodiacArray, _n as TimeFormatToken, _t as Milliseconds, a as BusinessOptionsWeekends, an as BnCalendarVariant, at as DateFormatOptions, b as ZodiacOptions, bn as YearToken, bt as MonthString, c as DayPart, cn as DateToken, ct as DateTimeFormatOptions, d as DurationOptions, dn as HourToken, dt as GreetingConfigs, en as BanglaMonth, et as ClockHour, f as MonthBoundary, fn as MSToken, ft as HourMinutes, g as TimeDuration, gn as StrictFormat, gt as LocalesArguments, h as SeasonPreset, hn as SecondToken, ht as LocaleCalendar, i as BusinessOptionsBasic, in as BnCalendarConfig, it as DateArgs, j as ChronosProperties, jt as TimeZoneIdNative, k as ChronosMethods, kt as TimeZoneDetails, l as DayPartConfig, ln as DayToken, lt as FormatOptions, m as SeasonOptions, mn as MonthToken, mt as ISODateTimeString, n as $BusinessHourOptions, nn as BanglaSeasonName, nt as ClockSecond, o as ChronosPlugin, on as DateWithSeasonToken, ot as DateLike, p as SeasonDefinition, pn as MinuteToken, pt as ISODateFormat, q as $TimeUnitKey, qt as $BnMonthPadded, r as AcademicYear, rn as BanglaYear, rt as ClockTime, s as DateBoundary, sn as DateFormatToken, st as DateString, t as $BusinessHourBaseOptions, tn as BanglaMonthName, tt as ClockMinute, u as DurationKey, un as FormatToken, ut as FromNowUnit, v as ZodiacMeta, vn as TimeOnlyFormat, vt as MonthDateString, w as $InstanceMethods, wt as Quarter, x as ZodiacPreset, xt as NegativeUTCHour, y as ZodiacMetaOptions, yn as TimeToken, yt as MonthName, z as WeekdayOptions, zt as ChronosStatics } from "./types-Cb4gxrgJ.mjs";
17
+ import { $ as ChronosStaticKey, $t as BanglaDayName, A as ChronosObject, At as TimeZoneId, B as WithoutOrigin, C as $Chronos, Ct as PositiveUTCHour, D as ChronosInput, Dt as TimeWithUnit, E as $StaticMethods, Et as TimeUnitValue, F as PluginMethods, Ft as TimestampOptions, G as $NativeTzNameOrId, Gt as $BnDatePadded, H as $GMTOffset, Ht as $BanglaMonth, I as RangeWithDates, It as UTCMinute, J as $TimeUnitVar, Jt as $BnYearPadded, K as $TZLabelKey, Kt as $BnEn, L as RelativeDateRange, Lt as UTCOffset, M as ChronosWithOptions, Mt as TimeZoneIdentifier, N as DateRangeOptions, Nt as TimeZoneName, O as ChronosInternals, Ot as TimeZone, P as DatesInRangeOptions, Pt as TimeZoneNameNative, Q as $UnitAnyCase, Qt as BanglaDateOptions, R as RelativeRangeOptions, Rt as WeekDay, S as ZodiacSign, St as NumberingSystem, T as $PluginMethods, Tt as TimeUnit, U as $ISOTimeString, Ut as $BanglaMonthDate, V as $DateUnit, W as $LocalArguments, Wt as $BanglaYear, X as $TimeZoneIdentifier, Xt as BanglaDateFormat, Y as $TimeUnitVarMap, Yt as BanglaDate, Z as $UTCOffset, Zt as BanglaDateObject, _ as ZodiacArray, _n as TimeFormatToken, _t as Milliseconds, a as BusinessOptionsWeekends, an as BnCalendarVariant, at as DateFormatOptions, b as ZodiacOptions, bn as YearToken, bt as MonthString, c as DayPart, cn as DateToken, ct as DateTimeFormatOptions, d as DurationOptions, dn as HourToken, dt as GreetingConfigs, en as BanglaMonth, et as ClockHour, f as MonthBoundary, fn as MSToken, ft as HourMinutes, g as TimeDuration, gn as StrictFormat, gt as LocalesArguments, h as SeasonPreset, hn as SecondToken, ht as LocaleCalendar, i as BusinessOptionsBasic, in as BnCalendarConfig, it as DateArgs, j as ChronosProperties, jt as TimeZoneIdNative, k as ChronosMethods, kt as TimeZoneDetails, l as DayPartConfig, ln as DayToken, lt as FormatOptions, m as SeasonOptions, mn as MonthToken, mt as ISODateTimeString, n as $BusinessHourOptions, nn as BanglaSeasonName, nt as ClockSecond, o as ChronosPlugin, on as DateWithSeasonToken, ot as DateLike, p as SeasonDefinition, pn as MinuteToken, pt as ISODateFormat, q as $TimeUnitKey, qt as $BnMonthPadded, r as AcademicYear, rn as BanglaYear, rt as ClockTime, s as DateBoundary, sn as DateFormatToken, st as DateString, t as $BusinessHourBaseOptions, tn as BanglaMonthName, tt as ClockMinute, u as DurationKey, un as FormatToken, ut as FromNowUnit, v as ZodiacMeta, vn as TimeOnlyFormat, vt as MonthDateString, w as $InstanceMethods, wt as Quarter, x as ZodiacPreset, xt as NegativeUTCHour, y as ZodiacMetaOptions, yn as TimeToken, yt as MonthName, z as WeekdayOptions, zt as ChronosStatics } from "./types-Bs_rfkka.mjs";
18
18
  export { $BanglaMonth, $BanglaMonthDate, $BanglaYear, $BnDatePadded, $BnEn, $BnMonthPadded, $BnYearPadded, $BusinessHourBaseOptions, $BusinessHourOptions, $Chronos, $DateUnit, $GMTOffset, $ISOTimeString, $InstanceMethods, $LocalArguments, $NativeTzNameOrId, $PluginMethods, $StaticMethods, $TZLabelKey, $TimeUnitKey, $TimeUnitVar, $TimeUnitVarMap, $TimeZoneIdentifier, $UTCOffset, $UnitAnyCase, AcademicYear, BanglaDate, BanglaDateFormat, BanglaDateObject, BanglaDateOptions, BanglaDayName, BanglaMonth, BanglaMonthName, BanglaSeasonName, BanglaYear, BnCalendarConfig, BnCalendarVariant, BusinessOptionsBasic, BusinessOptionsWeekends, ChronosInput, ChronosInternals, ChronosMethods, ChronosObject, ChronosPlugin, ChronosProperties, ChronosStaticKey, ChronosStatics, ChronosWithOptions, ClockHour, ClockMinute, ClockSecond, ClockTime, DateArgs, DateBoundary, DateFormatOptions, DateFormatToken, DateLike, DateRangeOptions, DateString, DateTimeFormatOptions, DateToken, DateWithSeasonToken, DatesInRangeOptions, DayPart, DayPartConfig, DayToken, DurationKey, DurationOptions, FormatOptions, FormatToken, FromNowUnit, GreetingConfigs, HourMinutes, HourToken, ISODateFormat, ISODateTimeString, LocaleCalendar, LocalesArguments, MSToken, Milliseconds, MinuteToken, MonthBoundary, MonthDateString, MonthName, MonthString, MonthToken, NegativeUTCHour, NumberingSystem, PluginMethods, PositiveUTCHour, Quarter, RangeWithDates, RelativeDateRange, RelativeRangeOptions, SeasonDefinition, SeasonOptions, SeasonPreset, SecondToken, StrictFormat, TimeDuration, TimeFormatToken, TimeOnlyFormat, TimeToken, TimeUnit, TimeUnitValue, TimeWithUnit, TimeZone, TimeZoneDetails, TimeZoneId, TimeZoneIdNative, TimeZoneIdentifier, TimeZoneName, TimeZoneNameNative, TimestampOptions, UTCMinute, UTCOffset, WeekDay, WeekdayOptions, WithoutOrigin, YearToken, ZodiacArray, ZodiacMeta, ZodiacMetaOptions, ZodiacOptions, ZodiacPreset, ZodiacSign };
package/dist/utils.d.cts CHANGED
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { Dt as TimeWithUnit, Ft as TimestampOptions, Lt as UTCOffset, Sn as Numeric, X as $TimeZoneIdentifier, at as DateFormatOptions, dt as GreetingConfigs, ft as HourMinutes, gn as StrictFormat, it as DateArgs, jt as TimeZoneIdNative, kt as TimeZoneDetails, mt as ISODateTimeString, pt as ISODateFormat, rt as ClockTime, vn as TimeOnlyFormat, xn as Maybe } from "./types-CdmsXbU_.cjs";
17
+ import { Dt as TimeWithUnit, Ft as TimestampOptions, Lt as UTCOffset, Sn as Numeric, X as $TimeZoneIdentifier, at as DateFormatOptions, dt as GreetingConfigs, ft as HourMinutes, gn as StrictFormat, it as DateArgs, jt as TimeZoneIdNative, kt as TimeZoneDetails, mt as ISODateTimeString, pt as ISODateFormat, rt as ClockTime, vn as TimeOnlyFormat, xn as Maybe } from "./types-CaVuY1_4.cjs";
18
18
 
19
19
  //#region src/utils/greet.d.ts
20
20
  /**
package/dist/utils.d.mts CHANGED
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { Dt as TimeWithUnit, Ft as TimestampOptions, Lt as UTCOffset, Sn as Numeric, X as $TimeZoneIdentifier, at as DateFormatOptions, dt as GreetingConfigs, ft as HourMinutes, gn as StrictFormat, it as DateArgs, jt as TimeZoneIdNative, kt as TimeZoneDetails, mt as ISODateTimeString, pt as ISODateFormat, rt as ClockTime, vn as TimeOnlyFormat, xn as Maybe } from "./types-Cb4gxrgJ.mjs";
17
+ import { Dt as TimeWithUnit, Ft as TimestampOptions, Lt as UTCOffset, Sn as Numeric, X as $TimeZoneIdentifier, at as DateFormatOptions, dt as GreetingConfigs, ft as HourMinutes, gn as StrictFormat, it as DateArgs, jt as TimeZoneIdNative, kt as TimeZoneDetails, mt as ISODateTimeString, pt as ISODateFormat, rt as ClockTime, vn as TimeOnlyFormat, xn as Maybe } from "./types-Bs_rfkka.mjs";
18
18
 
19
19
  //#region src/utils/greet.d.ts
20
20
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "chronos-date",
3
- "version": "1.1.1",
4
- "description": "Flexible date-time library for any JavaScript and TypeScript environment.",
3
+ "version": "1.2.0",
4
+ "description": "A lightweight, immutable, and plugin-based date-time manipulation library for JavaScript and TypeScript.",
5
5
  "main": "./dist/index.cjs",
6
6
  "type": "module",
7
7
  "sideEffects": false,
@@ -32,7 +32,7 @@
32
32
  "type": "git",
33
33
  "url": "git+https://github.com/nazmul-nhb/chronos-date.git"
34
34
  },
35
- "homepage": "https://github.com/nazmul-nhb/chronos-date#readme",
35
+ "homepage": "https://chronos.nazmul-nhb.dev",
36
36
  "author": {
37
37
  "name": "Nazmul Hassan",
38
38
  "email": "nazmulnhb@gmail.com",
@@ -57,7 +57,7 @@
57
57
  "license": "Apache-2.0",
58
58
  "devDependencies": {
59
59
  "@biomejs/biome": "^2.4.15",
60
- "@types/node": "^25.7.0",
60
+ "@types/node": "^25.8.0",
61
61
  "husky": "^9.1.7",
62
62
  "lint-staged": "^17.0.4",
63
63
  "nhb-scripts": "^1.9.2",
@@ -154,7 +154,7 @@
154
154
  "scripts": {
155
155
  "build": "tsdown",
156
156
  "dev:pkg": "tsdown --watch",
157
- "dev:docs": "pnpm --filter chronos-date-docs dev",
157
+ "dev": "pnpm --filter chronos-date-docs dev",
158
158
  "build:docs": "pnpm --filter chronos-date-docs build",
159
159
  "typecheck": "tsc --noEmit",
160
160
  "commit": "nhb-commit",