@funboxteam/diamonds
Advanced tools
Changelog
8.9.0 (31.05.2023)
Ensured Node.js 18 support.
deepClone
typings have become more strict due to the goal to remove any
.
Thus, this helper does not expect any
anymore.
Instead it expects boolean | number | bigint | string | undefined | null | Date
, or array of them, or an object with values of these types.
The array and theh object may be nested.
We believe that this is not a breaking change, because this change makes types more correct and more close to the implementation.
It means that if your code does not satisfy the types of deepClone
, you're probably not using it right.
Nevertheless, we've deprecated deepClone
due to existence of structuredClone
.
Changelog
8.8.0 (14.12.2022)
Now formatNumberString
& formatPhoneNumberString
accept not only numbers, but strings.
Changelog
8.7.0 (05.10.2022)
Added flag formatThousands
to formatNumberString helper, which forces the helper to format numbers from 1000 to 9999.
Changelog
8.5.2 (17.09.2022)
Fixed enableBodyScroll behavior while restoring the previously scrolled position.
Now it tries to ignore scroll-behavior: smooth
on the root node, and jumps instead of smoothly scrolling.
Changelog
8.4.2 (05.09.2022)
Fixed cookieStringToObject handling empty string passed.
Changelog
8.4.1 (31.08.2022)
Fixed export of cookieStringToObject -_-"