@visulima/deep-clone 4.0.0-alpha.7 → 4.0.0-alpha.9

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,26 @@
1
+ ## @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)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **deep-clone:** resolve eslint errors and include bench files in tsconfig ([1704120](https://github.com/visulima/visulima/commit/17041206df127961cfc96ce5f1202594eb8592e9))
6
+
7
+ ### Miscellaneous Chores
8
+
9
+ * **data-manipulation:** remove empty dependency objects from package.json ([c0e8f76](https://github.com/visulima/visulima/commit/c0e8f7689a2da413f771494f6ecb07babc4b5e06))
10
+ * **deep-clone:** add tsconfig.eslint.json for type-aware linting ([01d9837](https://github.com/visulima/visulima/commit/01d9837e60da9d8491a7c5bf8cfd45861f6954f0))
11
+ * **deep-clone:** apply prettier formatting ([be602cc](https://github.com/visulima/visulima/commit/be602cc1d5b9da5a1c43c7d47e5cc6b8487147b3))
12
+ * **deep-clone:** migrate .prettierrc.cjs to prettier.config.js ([1373f0f](https://github.com/visulima/visulima/commit/1373f0f32344e66af5d42168ebde534dcb5284dd))
13
+
14
+ ## @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)
15
+
16
+ ### Features
17
+
18
+ * **web:** auto-generate packages page from workspace metadata ([623e520](https://github.com/visulima/visulima/commit/623e5207693a7fe720f5f2f179593a3654c880e3))
19
+
20
+ ### Miscellaneous Chores
21
+
22
+ * update homepage URLs to visulima.com/packages/ format ([be42968](https://github.com/visulima/visulima/commit/be42968129df85fb074224435e33135ff44cab91))
23
+
1
24
  ## @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)
2
25
 
3
26
  ### Bug Fixes
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.7",
3
+ "version": "4.0.0-alpha.9",
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",
@@ -81,9 +81,6 @@
81
81
  "CHANGELOG.md",
82
82
  "LICENSE.md"
83
83
  ],
84
- "dependencies": {},
85
- "peerDependencies": {},
86
- "optionalDependencies": {},
87
84
  "engines": {
88
85
  "node": ">=22.13 <=25.x"
89
86
  },
@@ -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};