Skip to content

Latest commit

 

History

History
234 lines (101 loc) · 5.22 KB

CHANGELOG.md

File metadata and controls

234 lines (101 loc) · 5.22 KB

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.

8.8.0 (14.12.2022)

Now formatNumberString & formatPhoneNumberString accept not only numbers, but strings.

8.7.0 (05.10.2022)

Added flag formatThousands to formatNumberString helper, which forces the helper to format numbers from 1000 to 9999.

8.6.0 (04.10.2022)

Added sleep.

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.

8.5.1 (12.09.2022)

Fixed export of shuffle -_-"

8.5.0 (12.09.2022)

Added shuffle.

8.4.2 (05.09.2022)

Fixed cookieStringToObject handling empty string passed.

8.4.1 (31.08.2022)

Fixed export of cookieStringToObject -_-"

8.4.0 (31.08.2022)

Added cookieStringToObject.

8.3.0 (21.12.2021)

Added bold mode to colorize.

8.2.1 (03.08.2021)

Fixed pick export.

8.2.0 (22.07.2021)

Added capitalize.

8.1.1 (10.06.2021)

Fixed several security vulnerabilities:

8.1.0 (19.02.2021)

Support arrays of primitive types in objectToQueryString.

8.0.0 (17.02.2021)

Replaced plain space by non-breaking space in formatPhoneNumberString.

7.0.0 (16.02.2021)

Changed behavior of enableBodyScroll & disableBodyScroll.

Now they set and clear width: 100%, because otherwise page width may change because of position: fixed.

6.6.0 (05.02.2021)

Added formatBytes.

6.5.0 (14.01.2021)

Deprecated getObjectPath. Please use optional chaining instead.

6.4.1 (29.12.2020)

Improved type declarations for pick and omit.

6.4.0 (10.10.2020)

Added pick.

6.3.2 (09.10.2020)

Fixed colorize to wrap only provided string.

6.3.1 (09.10.2020)

Fixed negative numbers handle in getPlural.

6.3.0 (08.10.2020)

Added dim and reset colors to colorize.

6.2.1 (05.10.2020)

Removed tslib from dependencies.

6.2.0 (29.09.2020)

Added base64ToUint8Array.

6.1.0 (12.09.2020)

Added findLast.

6.0.0 (24.07.2020)

The package was renamed to @funboxteam/diamonds and published on Github.

5.0.0 (23.07.2020)

Removed mock-settings.ts.

4.0.0 (19.06.2020)

Rewrote the lib to TypeScript.

Removed deepFlatten & getHostnameFromString.

3.0.0 (27.02.2020)

Added CommonJS version for scripts to make it possible to use them in Node.js env.

To make it work we had to change isMobile notation. For now this helpers exports a function that returns value, not the value itself.

2.6.0 (06.02.2020)

Added functions for ruling mocks settings using ci-mode=dev cookie, which is checked, set or removed for the special domain.

2.5.0 (24.12.2019)

Added get-image-orientation.

2.4.1 (05.12.2019)

storage export was fixed.

2.4.0 (04.12.2019)

Added storage.

2.3.0 (01.11.2019)

Added getDisplayName.

2.2.0 (22.10.2019)

Added sideEffects: false into package.json to enable webpack's tree shaking.

2.1.0 (04.10.2019)

Added queryStringToObject.

2.0.0 (23.07.2019)

Added Babel, prepared the package for publishing to npm.

Also renamed the package into @funboxteam/helpers.

1.0.1 (08.07.2019)

Renamed the package into @funboxteam/snippets.

1.0.0 (03.12.2018)

Initial version.