chronos-date 1.3.3 → 1.4.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-BBVGLAlA.mjs → greet-2HTytQc8.mjs} +1 -1
  5. package/dist/{greet-DMVrEM6l.cjs → greet-BJ2Fsag1.cjs} +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 +6 -6
  13. package/dist/index.d.cts +1 -1
  14. package/dist/index.d.mts +1 -1
  15. package/dist/index.mjs +6 -6
  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 +2 -2
  23. package/dist/plugins/businessPlugin.d.cts +1 -1
  24. package/dist/plugins/businessPlugin.d.mts +1 -1
  25. package/dist/plugins/businessPlugin.mjs +2 -2
  26. package/dist/plugins/dateRangePlugin.cjs +2 -2
  27. package/dist/plugins/dateRangePlugin.d.cts +1 -1
  28. package/dist/plugins/dateRangePlugin.d.mts +1 -1
  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 +1 -1
  42. package/dist/plugins/greetingPlugin.d.mts +1 -1
  43. package/dist/plugins/greetingPlugin.mjs +2 -2
  44. package/dist/plugins/palindromePlugin.cjs +4 -4
  45. package/dist/plugins/palindromePlugin.d.cts +2 -2
  46. package/dist/plugins/palindromePlugin.d.mts +2 -2
  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 +1 -1
  55. package/dist/plugins/seasonPlugin.d.mts +1 -1
  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 +1 -1
  62. package/dist/plugins/zodiacPlugin.d.mts +1 -1
  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-C_H5zQ8v.d.mts} +11 -11
  67. package/dist/{types-DKMN8UeN.d.cts → types-g6rO6-Xe.d.cts} +11 -11
  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-GTSjQweZ.cjs → utilities-By0PGa-z.cjs} +4 -4
  72. package/dist/{utilities-BnJa8S6A.cjs → utilities-C_KmjIRK.cjs} +4 -4
  73. package/dist/{utilities-CW4F3wFp.mjs → utilities-DwMJexGo.mjs} +4 -4
  74. package/dist/utils.cjs +4 -4
  75. package/dist/utils.d.cts +2 -2
  76. package/dist/utils.d.mts +2 -2
  77. package/dist/utils.mjs +4 -4
  78. package/package.json +8 -4
package/dist/utils.d.cts CHANGED
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { At as TimeZoneDetails, Cn as Numeric, It as TimestampOptions, Mt as TimeZoneIdNative, Ot as TimeWithUnit, Rt as UTCOffset, Sn as Maybe, Z as $TimeZoneIdentifier, _n as StrictFormat, at as DateArgs, ft as GreetingConfigs, ht as ISODateTimeString, it as ClockTime, mt as ISODateFormat, ot as DateFormatOptions, pt as HourMinutes, yn as TimeOnlyFormat } from "./types-DKMN8UeN.cjs";
17
+ import { At as TimeZoneDetails, Cn as Numeric, It as TimestampOptions, Mt as TimeZoneIdNative, Ot as TimeWithUnit, Rt as UTCOffset, Sn as Maybe, Z as $TimeZoneIdentifier, at as DateArgs, ft as GreetingConfigs, gn as SafeFormat, ht as ISODateTimeString, it as ClockTime, mt as ISODateFormat, ot as DateFormatOptions, pt as HourMinutes, yn as TimeOnlyFormat } from "./types-g6rO6-Xe.cjs";
18
18
 
19
19
  //#region src/utils/greet.d.ts
20
20
  /**
@@ -165,7 +165,7 @@ declare function formatTimePart(time: string, format?: TimeOnlyFormat): string;
165
165
  * formatDateRelative(Date.now() + 2 * 3600000); // "2h from now"
166
166
  * formatDateRelative(Date.now() - 10 * 86400000); // "Apr 6, 2026 04:11 PM" (formatted date string)
167
167
  */
168
- declare function formatDateRelative(date: Maybe<DateArgs>, format?: StrictFormat): string;
168
+ declare function formatDateRelative(date: Maybe<DateArgs>, format?: SafeFormat): string;
169
169
  /**
170
170
  * * Get timestamp in ISO 8601 format for the current date and time.
171
171
  *
package/dist/utils.d.mts CHANGED
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { At as TimeZoneDetails, Cn as Numeric, It as TimestampOptions, Mt as TimeZoneIdNative, Ot as TimeWithUnit, Rt as UTCOffset, Sn as Maybe, Z as $TimeZoneIdentifier, _n as StrictFormat, at as DateArgs, ft as GreetingConfigs, ht as ISODateTimeString, it as ClockTime, mt as ISODateFormat, ot as DateFormatOptions, pt as HourMinutes, yn as TimeOnlyFormat } from "./types-36vIWjN1.mjs";
17
+ import { At as TimeZoneDetails, Cn as Numeric, It as TimestampOptions, Mt as TimeZoneIdNative, Ot as TimeWithUnit, Rt as UTCOffset, Sn as Maybe, Z as $TimeZoneIdentifier, at as DateArgs, ft as GreetingConfigs, gn as SafeFormat, ht as ISODateTimeString, it as ClockTime, mt as ISODateFormat, ot as DateFormatOptions, pt as HourMinutes, yn as TimeOnlyFormat } from "./types-C_H5zQ8v.mjs";
18
18
 
19
19
  //#region src/utils/greet.d.ts
20
20
  /**
@@ -165,7 +165,7 @@ declare function formatTimePart(time: string, format?: TimeOnlyFormat): string;
165
165
  * formatDateRelative(Date.now() + 2 * 3600000); // "2h from now"
166
166
  * formatDateRelative(Date.now() - 10 * 86400000); // "Apr 6, 2026 04:11 PM" (formatted date string)
167
167
  */
168
- declare function formatDateRelative(date: Maybe<DateArgs>, format?: StrictFormat): string;
168
+ declare function formatDateRelative(date: Maybe<DateArgs>, format?: SafeFormat): string;
169
169
  /**
170
170
  * * Get timestamp in ISO 8601 format for the current date and time.
171
171
  *
package/dist/utils.mjs CHANGED
@@ -15,11 +15,11 @@
15
15
  */
16
16
 
17
17
  import { l as MS_MAP } from "./basic-DqKyujoj.mjs";
18
- import { n as isNonEmptyString, r as isNumber } from "./primitives-Csc-jgx0.mjs";
19
- import { a as isNumericString } from "./utilities-CQORzytW.mjs";
18
+ import { n as isNonEmptyString, r as isNumber } from "./primitives-BXhrgs9R.mjs";
19
+ import { a as isNumericString } from "./utilities-BnHD2hHf.mjs";
20
20
  import { isTimeWithUnit } from "./guards.mjs";
21
- import { a as formatDate, c as formatUTCOffset, d as getTimeZoneIds, f as getTimestamp, i as extractTimeFromUTC, l as getNativeTimeZoneId, n as extractHourMinute, o as formatDateRelative, p as getTotalMinutes, r as extractMinutesFromUTC, s as formatTimePart, t as convertMinutesToTime, u as getTimeZoneDetails } from "./utilities-CW4F3wFp.mjs";
22
- import { t as getGreeting } from "./greet-BBVGLAlA.mjs";
21
+ import { a as formatDate, c as formatUTCOffset, d as getTimeZoneIds, f as getTimestamp, i as extractTimeFromUTC, l as getNativeTimeZoneId, n as extractHourMinute, o as formatDateRelative, p as getTotalMinutes, r as extractMinutesFromUTC, s as formatTimePart, t as convertMinutesToTime, u as getTimeZoneDetails } from "./utilities-DwMJexGo.mjs";
22
+ import { t as getGreeting } from "./greet-2HTytQc8.mjs";
23
23
 
24
24
  //#region src/utils/parser.ts
25
25
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chronos-date",
3
- "version": "1.3.3",
3
+ "version": "1.4.0",
4
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",
@@ -57,11 +57,11 @@
57
57
  "license": "Apache-2.0",
58
58
  "devDependencies": {
59
59
  "@biomejs/biome": "^2.4.15",
60
- "@types/node": "^25.8.0",
60
+ "@types/node": "^25.9.0",
61
61
  "husky": "^9.1.7",
62
62
  "lint-staged": "^17.0.5",
63
63
  "nhb-scripts": "^1.9.2",
64
- "nhb-toolbox": "^4.30.11",
64
+ "nhb-toolbox": "^4.30.14",
65
65
  "tsdown": "^0.22.0",
66
66
  "typescript": "^6.0.3"
67
67
  },
@@ -149,15 +149,19 @@
149
149
  "./package.json": "./package.json"
150
150
  },
151
151
  "inlinedDependencies": {
152
- "nhb-toolbox": "4.30.11"
152
+ "nhb-toolbox": "4.30.14"
153
153
  },
154
154
  "scripts": {
155
155
  "build": "tsdown",
156
156
  "dev:pkg": "tsdown --watch",
157
157
  "dev": "pnpm --filter chronos-date-docs dev",
158
+ "start": "pnpm --filter chronos-date-docs start",
158
159
  "build:docs": "pnpm --filter chronos-date-docs build",
159
160
  "gen": "pnpm --filter chronos-date-docs gen",
161
+ "typegen": "pnpm --filter chronos-date-docs typegen",
160
162
  "typecheck": "tsc --noEmit",
163
+ "typecheck:docs": "pnpm --filter chronos-date-docs typecheck",
164
+ "validate:links": "pnpm --filter chronos-date-docs validate:links",
161
165
  "commit": "nhb-commit",
162
166
  "count": "nhb-count",
163
167
  "delete": "nhb-delete",