NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #2297 most downloaded on npm
A tiny (240B to 501B) and fast utility to "deep clone" Objects, Arrays, Dates, RegExps, and more!
Latest stable
2.0.6
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 5 weeks to 1.2 years
Most releases are documented
notes for 8 of 12 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
12 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
Add "types" condition to "exports" map for TypeScript "nodenext" support (#41) _Thank you @jakebailey_
"types" condition to "exports" map for TypeScript "nodenext" support (#41)
Thank you @jakebaileyFull Changelog: https://github.com/lukeed/klona/compare/v2.0.5...v2.0.6
Handle Object.assign within class constructors (#31): 7650274 _This fix is only relevant to the klona and klona/lite modules._ _Thank you @tripodsgame
Object.assign within class constructors (#31): 7650274
This fix is only relevant to the klona and klona/lite modules.
Thank you @tripodsgames~!uvu version: 635e339Full Changelog: https://github.com/lukeed/klona/compare/v2.0.4...v2.0.5
Your coding agent can read these notes before it upgrades. Set up the MCP server →
(klona/full) Ensure prototype methods are copied (#24): d8720a3
klona/full) Ensure prototype methods are copied (#24): d8720a3Object.create test (#23): 3035139console.log from tests: 81c1485(types) Supply individual index.d.ts definition file per "mode" entry (#22): 71f8415 _Thank you @tripodsgames!_
index.d.ts definition file per "mode" entry (#22): 71f8415
Thank you @tripodsgames!package.json changes will trigger CI suite: 63eb8e2(types) Adjust index.d.ts so that each "mode" entry maintains types definition (#21): 107e22f
index.d.ts so that each "mode" entry maintains types definition (#21): 107e22fNothing published for this version
Migrated from default to named export: 11034e1
Migrated from default to named export: 11034e1
ESM/TypeScript
- import klona from 'klona';
+ import { klona } from 'klona';
CommonJS
- const klona = require('klona');
+ const { klona } = require('klona');
Added klona/json mode: 1762c15
Only supports JSON data types.
Added klona/lite mode: 8cb217a
Supports JSON data types, Dates, RegExps, and custom classes.
Added DataView, ArrayBuffer, and TypedArray support to klona main entry: 04c176b
Added klona/full mode: 1a85948
Extends klona with support for Symbol properties and non-enumerable properties.
Added native ESM support via exports mapping: 9ae0093
Allows for Node.js import statements to work within native ESM resolvers.
Modes comparison section: 3949d6b, d8a44daClone custom class instances (#14): c873e9e, 8089f11 _klona now correctly returns a fresh copy of your custom class_
Clone custom class instances (#14): c873e9e, 8089f11 klona now correctly returns a fresh copy of your custom class
(types): Allow CommonJS type inference: 0d324fe
pollution and class/instance tests: cb3efdc, bbcb404, 6bcfcb9Handle Set and Map correctly (and allow IE 11 support): dd79cb1, eabd71f
Set and Map correctly (and allow IE 11 support): dd79cb1, eabd71f__proto__ pollution: 200e8d1, 4e73d31constructor safety tests: aff2f1dNothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.