Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "klona", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"repository": "lukeed/klona", | ||
"description": "A tiny (366B) and fast utility to \"deep clone\" Objects, Arrays, Dates, RegExps, and more!", | ||
"module": "dist/klona.mjs", | ||
"unpkg": "dist/klona.min.js", | ||
"main": "dist/klona.js", | ||
"types": "klona.d.ts", | ||
"description": "A tiny (423B) and fast utility to \"deep clone\" Objects, Arrays, Dates, RegExps, and more!", | ||
"module": "dist/index.mjs", | ||
"unpkg": "dist/index.min.js", | ||
"main": "dist/index.js", | ||
"types": "index.d.ts", | ||
"license": "MIT", | ||
@@ -26,3 +26,3 @@ "author": { | ||
"pretest": "npm run build", | ||
"test": "tape -r esm test/*.js | tap-spec" | ||
"test": "uvu -r esm test" | ||
}, | ||
@@ -38,7 +38,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"bundt": "0.4.0", | ||
"bundt": "1.0.2", | ||
"esm": "3.2.25", | ||
"tap-spec": "5.0.0", | ||
"tape": "4.13.0" | ||
"uvu": "0.0.17" | ||
} | ||
} |
@@ -10,3 +10,3 @@ <div align="center"> | ||
<a href="https://github.com/lukeed/klona/actions"> | ||
<img src="https://badgen.net/github/status/lukeed/klona" alt="status" /> | ||
<img src="https://github.com/lukeed/klona/workflows/CI/badge.svg" alt="CI" /> | ||
</a> | ||
@@ -21,3 +21,3 @@ <a href="https://npmjs.org/package/klona"> | ||
<div align="center">A tiny (366B) and fast utility to "deep clone" Objects, Arrays, Dates, RegExps, and more!</div> | ||
<div align="center">A tiny (423B) and fast utility to "deep clone" Objects, Arrays, Dates, RegExps, and more!</div> | ||
@@ -36,4 +36,4 @@ | ||
* **ES Module**: [`dist/klona.mjs`](https://unpkg.com/klona/dist/klona.mjs) | ||
* **CommonJS**: [`dist/klona.js`](https://unpkg.com/klona/dist/klona.js) | ||
* **ES Module**: [`dist/index.mjs`](https://unpkg.com/klona/dist/index.mjs) | ||
* **CommonJS**: [`dist/index.js`](https://unpkg.com/klona/dist/index.js) | ||
* **UMD**: [`dist/klona.min.js`](https://unpkg.com/klona) | ||
@@ -105,2 +105,10 @@ | ||
``` | ||
Load times: | ||
fast-clone 0.884ms | ||
lodash/clonedeep 27.716ms | ||
rfdc 0.782ms | ||
clone-deep 4.023ms | ||
deep-copy 0.513ms | ||
klona 0.333ms | ||
Validation: | ||
@@ -110,15 +118,15 @@ ✘ JSON.stringify (FAILED @ "initial copy") | ||
✔ lodash | ||
✘ rfdc (FAILED @ "initial copy") | ||
✔ clone-deep | ||
✘ deep-copy (FAILED @ "initial copy") | ||
✔ depcopy | ||
✔ klona | ||
Benchmark: | ||
JSON.stringify x 37,803 ops/sec ±0.68% (89 runs sampled) | ||
fast-clone x 24,210 ops/sec ±0.81% (91 runs sampled) | ||
lodash x 40,563 ops/sec ±1.10% (94 runs sampled) | ||
clone-deep x 85,020 ops/sec ±0.17% (95 runs sampled) | ||
deep-copy x 116,139 ops/sec ±0.29% (96 runs sampled) | ||
depcopy x 24,392 ops/sec ±0.71% (96 runs sampled) | ||
klona x 274,496 ops/sec ±0.15% (99 runs sampled) | ||
JSON.stringify x 36,628 ops/sec ±1.34% (89 runs sampled) | ||
fast-clone x 23,518 ops/sec ±1.18% (91 runs sampled) | ||
lodash x 33,810 ops/sec ±1.34% (94 runs sampled) | ||
rfdc x 181,634 ops/sec ±0.71% (95 runs sampled) | ||
clone-deep x 84,558 ops/sec ±0.19% (96 runs sampled) | ||
deep-copy x 112,866 ops/sec ±1.26% (94 runs sampled) | ||
klona x 220,356 ops/sec ±0.34% (97 runs sampled) | ||
``` | ||
@@ -125,0 +133,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9222
3
128
140
1