Skip to content

Commit

Permalink
8.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnsk committed Oct 25, 2024
1 parent b7ae95f commit 2ab9788
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
11 changes: 8 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# Changelog

# 8.9.1 (25.10.2024)

Fixed prototype poisoning vulnerability in `deepClone`.


## 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.
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 the 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.
Expand Down Expand Up @@ -177,7 +182,7 @@ Removed `deepFlatten` & `getHostnameFromString`.

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](./lib/is-mobile.js) notation. For now this helpers exports
To make it work we had to change [isMobile](./lib/is-mobile.js) notation. For now these helpers export
a function that returns value, not the value itself.


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@funboxteam/diamonds",
"version": "8.9.0",
"version": "8.9.1",
"description": "A shiny pile of typed JS helpers for everyday use",
"scripts": {
"build": "npm run clean && npm run build-esm-and-types && npm run build-cjs",
Expand Down

0 comments on commit 2ab9788

Please sign in to comment.