Skip to content

Commit 0cb1075

Browse files
authored
Merge pull request #2 from panates/dev
Dev
2 parents 85e2561 + 93cf7f9 commit 0cb1075

4 files changed

Lines changed: 82 additions & 79 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
## Changelog
22

3-
### [v1.6.0](https://github.com/panates/jsopen-objects/compare/v1.5.2...v1.6.0) -
3+
### [v1.6.1](https://github.com/panates/jsopen-objects/compare/v1.6.0...v1.6.1) -
44

5-
#### 🪲 Fixes
5+
#### 🚀 New Features
66

7-
- fix: Fixed SharedArrayBuffer is not defined error on browsers @Eray Hanoğlu
8-
9-
#### 🛠 Refactoring and Updates
10-
11-
- fix: Fixed SharedArrayBuffer is not defined error on browsers @Eray Hanoğlu
7+
- feat: Added deepClone shortcut method @Eray Hanoğlu

package-lock.json

Lines changed: 70 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@jsopen/objects",
33
"description": "Helper utilities for working with JavaScript objects and arrays",
4-
"version": "1.6.0",
4+
"version": "1.6.1",
55
"author": "Panates",
66
"license": "MIT",
77
"private": true,
@@ -13,16 +13,16 @@
1313
"@panates/eslint-config-ts": "^2.0.4",
1414
"@panates/tsconfig": "^2.0.4",
1515
"@swc-node/register": "^1.10.10",
16-
"@swc/core": "^1.11.24",
16+
"@swc/core": "^1.11.29",
1717
"@swc/helpers": "^0.5.17",
1818
"@types/mocha": "^10.0.10",
19-
"@types/node": "^22.15.17",
19+
"@types/node": "^22.15.21",
2020
"auto-changelog": "^2.5.0",
2121
"c8": "^10.1.3",
2222
"expect": "^29.7.0",
23-
"globals": "^16.1.0",
23+
"globals": "^16.2.0",
2424
"madge": "^8.0.0",
25-
"mocha": "^11.2.2",
25+
"mocha": "^11.5.0",
2626
"npm-check-updates": "^18.0.1",
2727
"prettier": "^3.5.3",
2828
"rimraf": "^6.0.1",

src/clone.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ export function clone<T extends object>(obj: T, options?: merge.Options): T {
66
deep: options?.deep ?? true,
77
});
88
}
9+
10+
export function deepClone<T extends object>(obj: T): T {
11+
return clone(obj, { deep: 'full' });
12+
}

0 commit comments

Comments
 (0)