nhb-toolbox 4.28.71 → 4.28.72

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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  All notable changes to the package will be documented here.
6
6
 
7
+ ## [4.28.72] - 2026-02-06
8
+
9
+ - **Updated** *tsdoc* for the overload signatures of `getTimestamp` utility to clarify the behavior.
10
+
7
11
  ## [4.28.71] - 2026-02-06
8
12
 
9
13
  - **Fixed** an *issue* in `reconstruct` method of `Chronos` class where the *internal state* of the reconstructed instance was not properly when the timezone offset is different from the local system's timezone offset.
@@ -117,14 +117,7 @@ export declare function formatDate(options?: DateFormatOptions): string;
117
117
  */
118
118
  export declare function formatTimePart(time: string, format?: TimeOnlyFormat): string;
119
119
  /**
120
- * * Get timestamp in ISO 8601 format.
121
- *
122
- * @param value - Date value to convert to timestamp. Supported formats include:
123
- * - `Date` object → e.g., `new Date()`
124
- * - Date string → e.g., `'2025-04-06'`, `'2025-04-06 16:11:55'`, `'April 6, 2025 16:11:55'` etc.
125
- * - Timestamp number → e.g., `1712748715000`
126
- *
127
- * @remarks If the provided {@link value} is invalid, the current date and time will be used.
120
+ * * Get timestamp in ISO 8601 format for the current date and time.
128
121
  *
129
122
  * @returns Timestamp string in ISO 8601 format.
130
123
  */
@@ -152,8 +145,8 @@ export declare function getTimestamp(value: DateArgs, format?: ISODateFormat): T
152
145
  *
153
146
  * @remarks
154
147
  * - If the provided {@link TimestampOptions.value value} is invalid, the current date and time will be used.
155
- * - Use `format: 'local'` to include the current system timezone offset.
148
+ * - Use {@link TimestampOptions.format format}: `'local'` to include the current system time & timezone offset.
156
149
  *
157
150
  * @returns Timestamp string in ISO 8601 format.
158
151
  */
159
- export declare function getTimestamp(options?: TimestampOptions): Timestamp;
152
+ export declare function getTimestamp(options: TimestampOptions): Timestamp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nhb-toolbox",
3
- "version": "4.28.71",
3
+ "version": "4.28.72",
4
4
  "description": "A versatile collection of smart, efficient, and reusable utility functions, classes and types for everyday development needs.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",