@visulima/deep-clone 4.0.0-alpha.1 → 4.0.0-alpha.11

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 CHANGED
@@ -1,3 +1,111 @@
1
+ ## @visulima/deep-clone [4.0.0-alpha.11](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.10...@visulima/deep-clone@4.0.0-alpha.11) (2026-04-22)
2
+
3
+ ### Bug Fixes
4
+
5
+ * Remove JSR configuration generation script and generated jsr.json files ([#616](https://github.com/visulima/visulima/issues/616)) ([533744b](https://github.com/visulima/visulima/commit/533744b103b74896941db5b727173e617a27a63b))
6
+
7
+ ### Miscellaneous Chores
8
+
9
+ * bump engines.node to ^22.14.0 || >=24.10.0 ([c3d0931](https://github.com/visulima/visulima/commit/c3d0931d1504e4f21ebf50ea680cfa7ce4ba15ce))
10
+ * fixed jsr.json ([5d85e51](https://github.com/visulima/visulima/commit/5d85e5179de38e284ec433b14d77c71a1619c8d6))
11
+
12
+ ## @visulima/deep-clone [4.0.0-alpha.10](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.9...@visulima/deep-clone@4.0.0-alpha.10) (2026-04-15)
13
+
14
+ ### Bug Fixes
15
+
16
+ * **data-manipulation:** resolve eslint and type-safety issues ([f1682c2](https://github.com/visulima/visulima/commit/f1682c2611cbcc6c85d4bbea520d43464b42e7ee))
17
+ * **deep-clone:** add node types for Buffer resolution ([55a5976](https://github.com/visulima/visulima/commit/55a597653cdf1c98500178f102a7636227c7b803))
18
+
19
+ ## @visulima/deep-clone [4.0.0-alpha.9](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.8...@visulima/deep-clone@4.0.0-alpha.9) (2026-04-08)
20
+
21
+ ### Bug Fixes
22
+
23
+ * **deep-clone:** resolve eslint errors and include bench files in tsconfig ([1704120](https://github.com/visulima/visulima/commit/17041206df127961cfc96ce5f1202594eb8592e9))
24
+
25
+ ### Miscellaneous Chores
26
+
27
+ * **data-manipulation:** remove empty dependency objects from package.json ([c0e8f76](https://github.com/visulima/visulima/commit/c0e8f7689a2da413f771494f6ecb07babc4b5e06))
28
+ * **deep-clone:** add tsconfig.eslint.json for type-aware linting ([01d9837](https://github.com/visulima/visulima/commit/01d9837e60da9d8491a7c5bf8cfd45861f6954f0))
29
+ * **deep-clone:** apply prettier formatting ([be602cc](https://github.com/visulima/visulima/commit/be602cc1d5b9da5a1c43c7d47e5cc6b8487147b3))
30
+ * **deep-clone:** migrate .prettierrc.cjs to prettier.config.js ([1373f0f](https://github.com/visulima/visulima/commit/1373f0f32344e66af5d42168ebde534dcb5284dd))
31
+
32
+ ## @visulima/deep-clone [4.0.0-alpha.8](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.7...@visulima/deep-clone@4.0.0-alpha.8) (2026-03-26)
33
+
34
+ ### Features
35
+
36
+ * **web:** auto-generate packages page from workspace metadata ([623e520](https://github.com/visulima/visulima/commit/623e5207693a7fe720f5f2f179593a3654c880e3))
37
+
38
+ ### Miscellaneous Chores
39
+
40
+ * update homepage URLs to visulima.com/packages/ format ([be42968](https://github.com/visulima/visulima/commit/be42968129df85fb074224435e33135ff44cab91))
41
+
42
+ ## @visulima/deep-clone [4.0.0-alpha.7](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.6...@visulima/deep-clone@4.0.0-alpha.7) (2026-03-26)
43
+
44
+ ### Bug Fixes
45
+
46
+ * **web:** improve build setup with incremental stats caching and prod install ([fe33e75](https://github.com/visulima/visulima/commit/fe33e75827586779b4b3a0c6d57b39f889ee6207))
47
+
48
+ ### Miscellaneous Chores
49
+
50
+ * **deep-clone:** migrate deps to pnpm catalogs ([c29c51a](https://github.com/visulima/visulima/commit/c29c51af9083aaeaf216a332056d45ebecbdbba1))
51
+ * **deep-clone:** update dependencies ([b9f542d](https://github.com/visulima/visulima/commit/b9f542ddbc21f5a7cf4dd2412e495ed052c0d06a))
52
+ * visulima website ([#591](https://github.com/visulima/visulima/issues/591)) ([59ab2e2](https://github.com/visulima/visulima/commit/59ab2e2befb03e51cd2088956f83d9b87de6d033))
53
+
54
+ ### Code Refactoring
55
+
56
+ * **docs:** migrate Nextra components to fumadocs-ui, remove Nextra stripping ([484878f](https://github.com/visulima/visulima/commit/484878f01879363ef5e9a0282904dc4627d6060c))
57
+
58
+ ## @visulima/deep-clone [4.0.0-alpha.6](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.5...@visulima/deep-clone@4.0.0-alpha.6) (2026-03-06)
59
+
60
+ ### Bug Fixes
61
+
62
+ * **deep-clone:** update packem to 2.0.0-alpha.54 ([9c0f6bb](https://github.com/visulima/visulima/commit/9c0f6bb776ef44338faddadc61c1842c23c4054f))
63
+
64
+ ### Documentation
65
+
66
+ * **bytes,deep-clone,ansi,fmt,find-cache-dir:** add comprehensive Fumadocs documentation ([dfe0116](https://github.com/visulima/visulima/commit/dfe0116ebd26fe38f94f77b8ed4dadc3ff45ba91))
67
+
68
+ ### Miscellaneous Chores
69
+
70
+ * **data-manipulation:** update dependencies ([49458ab](https://github.com/visulima/visulima/commit/49458ab8f8e17d875840b1b4fe8b5efe12ff3513))
71
+ * **deep-clone:** update dependencies ([0dc9423](https://github.com/visulima/visulima/commit/0dc942387c0cd849ec0ee0bb42319b885cc39ab1))
72
+ * **deep-clone:** update dependencies ([1eadc51](https://github.com/visulima/visulima/commit/1eadc51d84958b07c0fc7f8e59abda992352bf20))
73
+ * update lock file maintenance ([d83e716](https://github.com/visulima/visulima/commit/d83e71697b75d24704185b66bb521a934d2db02d))
74
+ * year update ([47f4105](https://github.com/visulima/visulima/commit/47f410596ce7190cfea36a073db32e0cec50bbcd))
75
+
76
+ ## @visulima/deep-clone [4.0.0-alpha.5](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.4...@visulima/deep-clone@4.0.0-alpha.5) (2025-12-27)
77
+
78
+ ### Bug Fixes
79
+
80
+ * **deep-clone:** update package files ([f0bf0bc](https://github.com/visulima/visulima/commit/f0bf0bce894b569ca80c7e2338937f4c2d110960))
81
+
82
+ ### Miscellaneous Chores
83
+
84
+ * **dependencies:** update msw to version 2.12.6, jsdom to version 27.4.0, and [@tanstack](https://github.com/tanstack) packages to version 1.144.0 in package.json files ([1aa0236](https://github.com/visulima/visulima/commit/1aa0236e1f8190eecf7526cf2dc0f369cac02d87))
85
+ * fixed project.json names and schema path ([964722f](https://github.com/visulima/visulima/commit/964722f691db205c7edb9aa6db29e849a647500b))
86
+
87
+ ## @visulima/deep-clone [4.0.0-alpha.4](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.3...@visulima/deep-clone@4.0.0-alpha.4) (2025-12-12)
88
+
89
+ ### Features
90
+
91
+ * create new html package ([#567](https://github.com/visulima/visulima/issues/567)) ([#583](https://github.com/visulima/visulima/issues/583)) ([cae765f](https://github.com/visulima/visulima/commit/cae765f59f31338cc9ab58d90de7945e73ded2bb))
92
+
93
+ ## @visulima/deep-clone [4.0.0-alpha.3](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.2...@visulima/deep-clone@4.0.0-alpha.3) (2025-12-11)
94
+
95
+ ### Bug Fixes
96
+
97
+ * update package OG images across multiple packages ([f08e4dd](https://github.com/visulima/visulima/commit/f08e4dd2b105ccb29c8412020a9c2be36d6c1e9e))
98
+
99
+ ## @visulima/deep-clone [4.0.0-alpha.2](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.1...@visulima/deep-clone@4.0.0-alpha.2) (2025-12-06)
100
+
101
+ ### Bug Fixes
102
+
103
+ * add new package image, fixed readme rendering on npm, fixed building of packages ([b790ba2](https://github.com/visulima/visulima/commit/b790ba253ea07fef83528fd822a678facf021b5f))
104
+
105
+ ### Miscellaneous Chores
106
+
107
+ * update @anolilab/semantic-release-pnpm and @anolilab/semantic-release-preset to versions 3.2.2 and 12.1.2 across multiple package.json files for improved compatibility ([3921626](https://github.com/visulima/visulima/commit/3921626141fe5da398749bf0ba675f1596f18afb))
108
+
1
109
  ## @visulima/deep-clone [4.0.0-alpha.1](https://github.com/visulima/visulima/compare/@visulima/deep-clone@3.0.5...@visulima/deep-clone@4.0.0-alpha.1) (2025-12-04)
2
110
 
3
111
  ### ⚠ BREAKING CHANGES
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 visulima
3
+ Copyright (c) 2026 visulima
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,15 +1,24 @@
1
- <div align="center">
2
- <h3>Visulima Deep Clone</h3>
3
- <p>
4
- Really Fast Deep Clone.
5
- </p>
6
- </div>
1
+ <!-- START_PACKAGE_OG_IMAGE_PLACEHOLDER -->
2
+
3
+ <a href="https://www.anolilab.com/open-source" align="center">
4
+
5
+ <img src="__assets__/package-og.svg" alt="deep-clone" />
6
+
7
+ </a>
8
+
9
+ <h3 align="center">Fastest deep clone implementation.</h3>
10
+
11
+ <!-- END_PACKAGE_OG_IMAGE_PLACEHOLDER -->
7
12
 
8
13
  <br />
9
14
 
10
15
  <div align="center">
11
16
 
12
- [![typescript-image]][typescript-url] [![npm-image]][npm-url] [![license-image]][license-url]
17
+ [![typescript-image][typescript-badge]][typescript-url]
18
+ [![mit licence][license-badge]][license]
19
+ [![npm downloads][npm-downloads-badge]][npm-downloads]
20
+ [![Chat][chat-badge]][chat]
21
+ [![PRs Welcome][prs-welcome-badge]][prs-welcome]
13
22
 
14
23
  </div>
15
24
 
@@ -263,23 +272,23 @@ If you would like to help take a look at the [list of issues](https://github.com
263
272
  - [Daniel Bannert](https://github.com/prisis)
264
273
  - [All Contributors](https://github.com/visulima/visulima/graphs/contributors)
265
274
 
275
+ ## Made with ❤️ at Anolilab
276
+
277
+ This is an open source project and will always remain free to use. If you think it's cool, please star it 🌟. [Anolilab](https://www.anolilab.com/open-source) is a Development and AI Studio. Contact us at [hello@anolilab.com](mailto:hello@anolilab.com) if you need any help with these technologies or just want to say hi!
278
+
266
279
  ## License
267
280
 
268
- The visulima deep-clone is open-sourced software licensed under the [MIT][license-url]
269
-
270
- [typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
271
-
272
- [typescript-url]: https://www.typescriptlang.org/ "TypeScript" "typescript"
273
- [license-image]: https://img.shields.io/npm/l/@visulima/deep-clone?color=blueviolet&style=for-the-badge
274
- [license-url]: LICENSE.md "license"
275
- [npm-image]: https://img.shields.io/npm/v/@visulima/deep-clone/latest.svg?style=for-the-badge&logo=npm
276
- [npm-url]: https://www.npmjs.com/package/@visulima/deep-clone/v/latest "npm"
277
- [mdn-error]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error
278
- [mdn-type-error]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError
279
- [mdn-syntax-error]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError
280
- [mdn-range-error]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError
281
- [mdn-reference-error]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError
282
- [mdn-uri-error]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError
283
- [mdn-eval-error]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError
284
- [node-system-error]: https://nodejs.org/api/errors.html#errors_class_system_error
285
- [node-buffer]: http://nodejs.org/api/buffer.html
281
+ The visulima deep-clone is open-sourced software licensed under the [MIT][license]
282
+
283
+ <!-- badges -->
284
+
285
+ [license-badge]: https://img.shields.io/npm/l/@visulima/deep-clone?style=for-the-badge
286
+ [license]: https://github.com/visulima/visulima/blob/main/LICENSE
287
+ [npm-downloads-badge]: https://img.shields.io/npm/dm/@visulima/deep-clone?style=for-the-badge
288
+ [npm-downloads]: https://www.npmjs.com/package/@visulima/deep-clone
289
+ [prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge
290
+ [prs-welcome]: https://github.com/visulima/visulima/blob/main/.github/CONTRIBUTING.md
291
+ [chat-badge]: https://img.shields.io/discord/932323359193186354.svg?style=for-the-badge
292
+ [chat]: https://discord.gg/TtFJY8xkFK
293
+ [typescript-badge]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
294
+ [typescript-url]: https://www.typescriptlang.org/
package/dist/handler.js CHANGED
@@ -1 +1 @@
1
- import{copyArrayLoose as t,copyArrayStrict as e}from"./packem_shared/copyArrayLoose-BEBF0PeG.js";import{default as c}from"./packem_shared/copyArrayBuffer-_dUBQIVn.js";import{default as y}from"./packem_shared/copyBlob-S-Z7ux38.js";import{default as x}from"./packem_shared/copyDataView-Ww3lwn8t.js";import{default as s}from"./packem_shared/copyDate-b-cxY0ZF.js";import{default as i}from"./packem_shared/copyError-Bdcealjm.js";import{copyMapLoose as u,copyMapStrict as d}from"./packem_shared/copyMapLoose-BodEbKp7.js";import{copyObjectLoose as b,copyObjectStrict as A}from"./packem_shared/copyObjectLoose-C5x-tHKP.js";import{copyRegExpLoose as g,copyRegExpStrict as j}from"./packem_shared/copyRegExpLoose-Cio6jQWx.js";import{copySetLoose as D,copySetStrict as M}from"./packem_shared/copySetLoose-L-swSTFR.js";export{c as copyArrayBuffer,t as copyArrayLoose,e as copyArrayStrict,y as copyBlob,x as copyDataView,s as copyDate,i as copyError,u as copyMapLoose,d as copyMapStrict,b as copyObjectLoose,A as copyObjectStrict,g as copyRegExpLoose,j as copyRegExpStrict,D as copySetLoose,M as copySetStrict};
1
+ import{copyArrayLoose as t,copyArrayStrict as e}from"./packem_shared/copyArrayLoose-BEBF0PeG.js";import{default as c}from"./packem_shared/copyArrayBuffer-_dUBQIVn.js";import{default as y}from"./packem_shared/copyBlob-S-Z7ux38.js";import{default as x}from"./packem_shared/copyDataView-Ww3lwn8t.js";import{default as s}from"./packem_shared/copyDate-b-cxY0ZF.js";import{default as i}from"./packem_shared/copyError-Bdcealjm.js";import{copyMapLoose as u,copyMapStrict as d}from"./packem_shared/copyMapLoose-B_bmagCc.js";import{copyObjectLoose as b,copyObjectStrict as A}from"./packem_shared/copyObjectLoose-BlxUuShG.js";import{copyRegExpLoose as g,copyRegExpStrict as j}from"./packem_shared/copyRegExpLoose-Cio6jQWx.js";import{copySetLoose as D,copySetStrict as M}from"./packem_shared/copySetLoose-BRq7gnSm.js";export{c as copyArrayBuffer,t as copyArrayLoose,e as copyArrayStrict,y as copyBlob,x as copyDataView,s as copyDate,i as copyError,u as copyMapLoose,d as copyMapStrict,b as copyObjectLoose,A as copyObjectStrict,g as copyRegExpLoose,j as copyRegExpStrict,D as copySetLoose,M as copySetStrict};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var b=Object.defineProperty;var p=(t,n)=>b(t,"name",{value:n,configurable:!0});import{copyArrayStrict as l,copyArrayLoose as A}from"./packem_shared/copyArrayLoose-BEBF0PeG.js";import d from"./packem_shared/copyArrayBuffer-_dUBQIVn.js";import S from"./packem_shared/copyBlob-S-Z7ux38.js";import h from"./packem_shared/copyDataView-Ww3lwn8t.js";import w from"./packem_shared/copyDate-b-cxY0ZF.js";import j from"./packem_shared/copyError-Bdcealjm.js";import{copyMapStrict as E,copyMapLoose as B}from"./packem_shared/copyMapLoose-BodEbKp7.js";import{copyObjectStrict as M,copyObjectLoose as g}from"./packem_shared/copyObjectLoose-C5x-tHKP.js";import{copyRegExpStrict as k,copyRegExpLoose as O}from"./packem_shared/copyRegExpLoose-Cio6jQWx.js";import{copySetStrict as T,copySetLoose as W}from"./packem_shared/copySetLoose-L-swSTFR.js";var v=Object.defineProperty,a=p((t,n)=>v(t,"name",{value:n,configurable:!0}),"t");const y=a(t=>typeof t=="object"&&t!==null||typeof t=="function","canValueHaveProperties"),x={Array:A,ArrayBuffer:d,Blob:S,DataView:h,Date:w,Error:j,Function:a((t,n)=>t,"Function"),Map:B,Object:g,Promise:a(t=>{throw new TypeError(`${t.constructor.name} objects cannot be cloned`)},"Promise"),RegExp:O,Set:W,SharedArrayBuffer:a((t,n)=>{throw new TypeError(`${t.constructor.name} objects cannot be cloned`)},"SharedArrayBuffer"),WeakMap:a(t=>{throw new TypeError(`${t.constructor.name} objects cannot be cloned`)},"WeakMap"),WeakSet:a(t=>{throw new TypeError(`${t.constructor.name} objects cannot be cloned`)},"WeakSet")},H=a((t,n)=>{if(!y(t))return t;const r={...x,...n?.strict?{Array:l,Map:E,Object:M,RegExp:k,Set:T}:{},...n?.handler};let c=new WeakMap;const f=a((e,o)=>{if(!y(e))return e;if(o.cache.has(e))return o.cache.get(e);if(Array.isArray(e))return r.Array(e,o);if(typeof e=="object"&&e.constructor===Object&&e.nodeType===void 0)return r.Object(e,o);if(e.nodeType!==void 0&&e.cloneNode!==void 0)return e.cloneNode(!0);if(e instanceof Date)return r.Date(e,o);if(e instanceof RegExp)return r.RegExp(e,o);if(e instanceof Map)return r.Map(e,o);if(e instanceof Set)return r.Set(e,o);if(e instanceof Error)return r.Error(e,o);if(e instanceof ArrayBuffer)return r.ArrayBuffer(e,o);if(e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Uint32Array||e instanceof Int32Array||e instanceof Float32Array||e instanceof Float64Array){const{buffer:i}=e;if(i instanceof SharedArrayBuffer)throw new TypeError("SharedArrayBuffer cannot be cloned");const u=r.ArrayBuffer(i,o),m=e.constructor;return new m(u,e.byteOffset,e.length)}if(e instanceof Blob)return r.Blob(e,o);if(e instanceof DataView)return r.DataView(e,o);if(e instanceof SharedArrayBuffer)return r.SharedArrayBuffer(e,o);if(e instanceof Promise)return r.Promise(e,o);if(e instanceof WeakMap)return r.WeakMap(e,o);if(e instanceof WeakSet)return r.WeakSet(e,o);if(typeof e=="function")return r.Function(e,o);if(typeof e=="object")return r.Object(e,o);throw new TypeError(`Type of ${typeof e} cannot be cloned`,e)},"clone"),s=f(t,{cache:c,clone:f});return c=null,s},"deepClone");export{H as deepClone};
1
+ var b=Object.defineProperty;var p=(t,n)=>b(t,"name",{value:n,configurable:!0});import{copyArrayStrict as l,copyArrayLoose as A}from"./packem_shared/copyArrayLoose-BEBF0PeG.js";import d from"./packem_shared/copyArrayBuffer-_dUBQIVn.js";import S from"./packem_shared/copyBlob-S-Z7ux38.js";import h from"./packem_shared/copyDataView-Ww3lwn8t.js";import w from"./packem_shared/copyDate-b-cxY0ZF.js";import j from"./packem_shared/copyError-Bdcealjm.js";import{copyMapStrict as E,copyMapLoose as B}from"./packem_shared/copyMapLoose-B_bmagCc.js";import{copyObjectStrict as M,copyObjectLoose as g}from"./packem_shared/copyObjectLoose-BlxUuShG.js";import{copyRegExpStrict as k,copyRegExpLoose as O}from"./packem_shared/copyRegExpLoose-Cio6jQWx.js";import{copySetStrict as T,copySetLoose as W}from"./packem_shared/copySetLoose-BRq7gnSm.js";var v=Object.defineProperty,a=p((t,n)=>v(t,"name",{value:n,configurable:!0}),"t");const y=a(t=>typeof t=="object"&&t!==null||typeof t=="function","canValueHaveProperties"),x={Array:A,ArrayBuffer:d,Blob:S,DataView:h,Date:w,Error:j,Function:a((t,n)=>t,"Function"),Map:B,Object:g,Promise:a(t=>{throw new TypeError(`${t.constructor.name} objects cannot be cloned`)},"Promise"),RegExp:O,Set:W,SharedArrayBuffer:a((t,n)=>{throw new TypeError(`${t.constructor.name} objects cannot be cloned`)},"SharedArrayBuffer"),WeakMap:a(t=>{throw new TypeError(`${t.constructor.name} objects cannot be cloned`)},"WeakMap"),WeakSet:a(t=>{throw new TypeError(`${t.constructor.name} objects cannot be cloned`)},"WeakSet")},H=a((t,n)=>{if(!y(t))return t;const r={...x,...n?.strict?{Array:l,Map:E,Object:M,RegExp:k,Set:T}:{},...n?.handler};let c=new WeakMap;const f=a((e,o)=>{if(!y(e))return e;if(o.cache.has(e))return o.cache.get(e);if(Array.isArray(e))return r.Array(e,o);if(typeof e=="object"&&e.constructor===Object&&e.nodeType===void 0)return r.Object(e,o);if(e.nodeType!==void 0&&e.cloneNode!==void 0)return e.cloneNode(!0);if(e instanceof Date)return r.Date(e,o);if(e instanceof RegExp)return r.RegExp(e,o);if(e instanceof Map)return r.Map(e,o);if(e instanceof Set)return r.Set(e,o);if(e instanceof Error)return r.Error(e,o);if(e instanceof ArrayBuffer)return r.ArrayBuffer(e,o);if(e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Uint32Array||e instanceof Int32Array||e instanceof Float32Array||e instanceof Float64Array){const{buffer:i}=e;if(i instanceof SharedArrayBuffer)throw new TypeError("SharedArrayBuffer cannot be cloned");const u=r.ArrayBuffer(i,o),m=e.constructor;return new m(u,e.byteOffset,e.length)}if(e instanceof Blob)return r.Blob(e,o);if(e instanceof DataView)return r.DataView(e,o);if(e instanceof SharedArrayBuffer)return r.SharedArrayBuffer(e,o);if(e instanceof Promise)return r.Promise(e,o);if(e instanceof WeakMap)return r.WeakMap(e,o);if(e instanceof WeakSet)return r.WeakSet(e,o);if(typeof e=="function")return r.Function(e,o);if(typeof e=="object")return r.Object(e,o);throw new TypeError(`Type of ${typeof e} cannot be cloned`,e)},"clone"),s=f(t,{cache:c,clone:f});return c=null,s},"deepClone");export{H as deepClone};
@@ -0,0 +1 @@
1
+ var i=Object.defineProperty;var e=(c,o)=>i(c,"name",{value:o,configurable:!0});import n from"./copyOwnProperties-QEhjt2x8.js";var s=Object.defineProperty,r=e((c,o)=>s(c,"name",{value:o,configurable:!0}),"t");const y=r((c,o)=>{const t=new Map;return o.cache.set(c,t),c.forEach((a,p)=>{t.set(p,o.clone(a,o))}),t},"copyMapLoose"),u=r((c,o)=>n(c,y(c,o),o),"copyMapStrict");export{y as copyMapLoose,u as copyMapStrict};
@@ -1 +1 @@
1
- var l=Object.defineProperty;var O=(t,e)=>l(t,"name",{value:e,configurable:!0});import y from"./copyOwnProperties-QEhjt2x8.js";import b from"./getCleanClone-D0FN9QGR.js";var i=Object.defineProperty,s=O((t,e)=>i(t,"name",{value:e,configurable:!0}),"l");const p=s((t,e)=>{Object.isExtensible(t)||Object.preventExtensions(e),Object.isSealed(t)&&Object.seal(e),Object.isFrozen(t)&&Object.freeze(e)},"copyObjectIsFunctions"),u=s((t,e)=>{const c=b(t);e.cache.set(t,c);for(const o in t)Object.hasOwnProperty.call(t,o)&&(c[o]=e.clone(t[o],e));const r=Object.getOwnPropertySymbols(t);for(let o=0,n,{length:j}=r;o<j;++o)n=r[o],Object.prototype.propertyIsEnumerable.call(t,n)&&(c[n]=e.clone(t[n],e));return p(t,c),c},"copyObjectLoose"),P=s((t,e)=>{const c=b(t);e.cache.set(t,c);const r=y(t,c,e),o=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)!==o&&Object.setPrototypeOf(r,o),p(t,c),r},"copyObjectStrict");export{u as copyObjectLoose,P as copyObjectStrict};
1
+ var l=Object.defineProperty;var O=(t,e)=>l(t,"name",{value:e,configurable:!0});import y from"./copyOwnProperties-QEhjt2x8.js";import b from"./getCleanClone-BmlWEIm1.js";var a=Object.defineProperty,s=O((t,e)=>a(t,"name",{value:e,configurable:!0}),"l");const p=s((t,e)=>{Object.isExtensible(t)||Object.preventExtensions(e),Object.isSealed(t)&&Object.seal(e),Object.isFrozen(t)&&Object.freeze(e)},"copyObjectIsFunctions"),u=s((t,e)=>{const c=b(t);e.cache.set(t,c);for(const o in t)Object.hasOwnProperty.call(t,o)&&(c[o]=e.clone(t[o],e));const r=Object.getOwnPropertySymbols(t);for(let o=0,n,{length:j}=r;o<j;++o)n=r[o],Object.prototype.propertyIsEnumerable.call(t,n)&&(c[n]=e.clone(t[n],e));return p(t,c),c},"copyObjectLoose"),P=s((t,e)=>{const c=b(t);e.cache.set(t,c);const r=y(t,c,e),o=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)!==o&&Object.setPrototypeOf(r,o),p(t,c),r},"copyObjectStrict");export{u as copyObjectLoose,P as copyObjectStrict};
@@ -0,0 +1 @@
1
+ var a=Object.defineProperty;var r=(e,t)=>a(e,"name",{value:t,configurable:!0});import p from"./copyOwnProperties-QEhjt2x8.js";var S=Object.defineProperty,c=r((e,t)=>S(e,"name",{value:t,configurable:!0}),"n");const i=c((e,t)=>{const o=new Set;return t.cache.set(e,o),e.forEach(n=>{o.add(t.clone(n,t))}),o},"copySetLoose"),f=c((e,t)=>p(e,i(e,t),t),"copySetStrict");export{i as copySetLoose,f as copySetStrict};
@@ -1 +1 @@
1
- var c=Object.defineProperty;var r=(e,t)=>c(e,"name",{value:t,configurable:!0});var n=Object.defineProperty,o=r((e,t)=>n(e,"name",{value:t,configurable:!0}),"r");const u=o(e=>{if(!e)return Object.create(null);const t=e.constructor;if(t===Object)return e===Object.prototype?{}:Object.create(e);if(~Function.prototype.toString.call(t).indexOf("[native code]"))try{return new t}catch{}return Object.create(e)},"getCleanClone");export{u as default};
1
+ var c=Object.defineProperty;var r=(e,t)=>c(e,"name",{value:t,configurable:!0});var n=Object.defineProperty,o=r((e,t)=>n(e,"name",{value:t,configurable:!0}),"r");const u=o(e=>{if(!e)return Object.create(null);const t=e.constructor;if(t===Object)return e===Object.prototype?{}:Object.create(e);if(Function.prototype.toString.call(t).includes("[native code]"))try{return new t}catch{}return Object.create(e)},"getCleanClone");export{u as default};
package/dist/utils.js CHANGED
@@ -1 +1 @@
1
- import{default as r}from"./packem_shared/copyOwnProperties-QEhjt2x8.js";import{default as a}from"./packem_shared/getCleanClone-D0FN9QGR.js";export{r as copyOwnProperties,a as getCleanClone};
1
+ import{default as r}from"./packem_shared/copyOwnProperties-QEhjt2x8.js";import{default as a}from"./packem_shared/getCleanClone-BmlWEIm1.js";export{r as copyOwnProperties,a as getCleanClone};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/deep-clone",
3
- "version": "4.0.0-alpha.1",
3
+ "version": "4.0.0-alpha.11",
4
4
  "description": "Fastest deep clone implementation.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -37,7 +37,7 @@
37
37
  "values",
38
38
  "visulima"
39
39
  ],
40
- "homepage": "https://www.visulima.com/docs/package/deep-clone",
40
+ "homepage": "https://visulima.com/packages/deep-clone/",
41
41
  "repository": {
42
42
  "type": "git",
43
43
  "url": "https://github.com/visulima/visulima.git",
@@ -82,7 +82,7 @@
82
82
  "LICENSE.md"
83
83
  ],
84
84
  "engines": {
85
- "node": ">=22.13 <=25.x"
85
+ "node": "^22.14.0 || >=24.10.0"
86
86
  },
87
87
  "os": [
88
88
  "darwin",
@@ -1 +0,0 @@
1
- var i=Object.defineProperty;var e=(t,o)=>i(t,"name",{value:o,configurable:!0});import n from"./copyOwnProperties-QEhjt2x8.js";var s=Object.defineProperty,r=e((t,o)=>s(t,"name",{value:o,configurable:!0}),"t");const u=r((t,o)=>{const c=new Map;return o.cache.set(t,c),t.forEach((a,p)=>{c.set(p,o.clone(a,o))}),c},"copyMapLoose"),f=r((t,o)=>n(t,u(t,o),o),"copyMapStrict");export{u as copyMapLoose,f as copyMapStrict};
@@ -1 +0,0 @@
1
- var a=Object.defineProperty;var o=(e,t)=>a(e,"name",{value:t,configurable:!0});import p from"./copyOwnProperties-QEhjt2x8.js";var S=Object.defineProperty,r=o((e,t)=>S(e,"name",{value:t,configurable:!0}),"n");const i=r((e,t)=>{const c=new Set;return t.cache.set(e,c),e.forEach(n=>{c.add(t.clone(n,t))}),c},"copySetLoose"),f=r((e,t)=>p(e,i(e,t),t),"copySetStrict");export{i as copySetLoose,f as copySetStrict};