nhb-toolbox 4.28.64 → 4.28.66
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 +6 -2
- package/dist/dts/date/Chronos.d.ts +2 -4
- package/package.json +7 -7
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.66] - 2026-01-23
|
|
8
|
+
|
|
9
|
+
- **Refined** `TSDoc` to *improve* **IDE IntelliSense** for `Chronos` constructor.
|
|
10
|
+
|
|
7
11
|
## [4.28.64] - 2026-01-15
|
|
8
12
|
|
|
9
13
|
- **Added** new `zodiacPlugin` method: `getZodiacMeta` to retrieve zodiac *metadata* for a given *zodiac sign*.
|
|
@@ -105,7 +109,7 @@ All notable changes to the package will be documented here.
|
|
|
105
109
|
- **Updated** *implementation* and *tsdoc* for:
|
|
106
110
|
- `cloneObject`: used `structuredClone` and `stableStringify` (optionally force to use *deterministic serialization*) internally and falls back to *shallow cloning* if serialization fails.
|
|
107
111
|
- `stableStringify`: stringified value of *Date-like objects* (`Date`, `Chronos`, `Moment.js`, `Day.js`, `Luxon`, `JS-Joda`, `Temporal`) is converted to string representation (in the same way that `JSON.stringify` would serialize them).
|
|
108
|
-
- **Updated** `convertObjectValues`
|
|
112
|
+
- **Updated** `convertObjectValues` behavior: *fields* configured for *number conversion* now return `NaN` when *parsing fails*.
|
|
109
113
|
- **Updated** *reference links* in *tsdoc* of some *hash* utilities.
|
|
110
114
|
|
|
111
115
|
## [4.28.1] - 2025-12-02
|
|
@@ -720,7 +724,7 @@ All notable changes to the package will be documented here.
|
|
|
720
724
|
|
|
721
725
|
## [4.12.41] - 2025-06-17
|
|
722
726
|
|
|
723
|
-
- **Updated** `getDatesInRange()` and `getDatesForDay()` `Chronos` methods' options to change the date rounding
|
|
727
|
+
- **Updated** `getDatesInRange()` and `getDatesForDay()` `Chronos` methods' options to change the date rounding behavior.
|
|
724
728
|
|
|
725
729
|
## [4.12.40] - 2025-06-17
|
|
726
730
|
|
|
@@ -55,7 +55,7 @@ export declare class Chronos {
|
|
|
55
55
|
/**
|
|
56
56
|
* Represents the current timezone context, which can be a single identifier, an array of equivalent identifiers, or a UTC offset.
|
|
57
57
|
*
|
|
58
|
-
* - **{@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
|
|
58
|
+
* - **{@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.
|
|
59
59
|
* - **Array of {@link $TimeZoneIdentifier}** — e.g., `[ 'Asia/Calcutta', 'Asia/Colombo' ]`, used when multiple timezones share the same UTC offset such as `"UTC+05:30"`.
|
|
60
60
|
* - **{@link UTCOffset}** — e.g., `"UTC+06:45"` or `"UTC+02:15"`, returned when no named timezone corresponds to a given offset.
|
|
61
61
|
*
|
|
@@ -68,9 +68,7 @@ export declare class Chronos {
|
|
|
68
68
|
/** Tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/conversion#timezone timeZone} method */
|
|
69
69
|
protected $tzTracker?: $TimeZoneIdentifier | TimeZone | UTCOffset;
|
|
70
70
|
/**
|
|
71
|
-
* * Creates a new immutable `Chronos` instance.
|
|
72
|
-
*
|
|
73
|
-
* Accepts no arguments (defaults to now).
|
|
71
|
+
* * Creates a new immutable `Chronos` instance from current date & time (UTC).
|
|
74
72
|
*
|
|
75
73
|
* @returns Instance of `Chronos` with all methods and properties.
|
|
76
74
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nhb-toolbox",
|
|
3
|
-
"version": "4.28.
|
|
3
|
+
"version": "4.28.66",
|
|
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",
|
|
@@ -46,21 +46,21 @@
|
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@eslint/js": "^9.39.2",
|
|
48
48
|
"@types/jest": "^30.0.0",
|
|
49
|
-
"@types/node": "^25.0.
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "^8.53.
|
|
51
|
-
"@typescript-eslint/parser": "^8.53.
|
|
49
|
+
"@types/node": "^25.0.9",
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^8.53.1",
|
|
51
|
+
"@typescript-eslint/parser": "^8.53.1",
|
|
52
52
|
"eslint": "^9.39.2",
|
|
53
53
|
"eslint-config-prettier": "^10.1.8",
|
|
54
|
-
"eslint-plugin-prettier": "^5.5.
|
|
54
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
55
55
|
"globals": "^17.0.0",
|
|
56
56
|
"husky": "^9.1.7",
|
|
57
57
|
"jest": "^30.2.0",
|
|
58
58
|
"lint-staged": "^16.2.7",
|
|
59
59
|
"nhb-scripts": "^1.9.2",
|
|
60
|
-
"prettier": "^3.
|
|
60
|
+
"prettier": "^3.8.0",
|
|
61
61
|
"ts-jest": "^29.4.6",
|
|
62
62
|
"typescript": "^5.9.3",
|
|
63
|
-
"typescript-eslint": "^8.53.
|
|
63
|
+
"typescript-eslint": "^8.53.1"
|
|
64
64
|
},
|
|
65
65
|
"keywords": [
|
|
66
66
|
"toolbox",
|