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!
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
One column per quarter.
Add "types" condition to "exports" map for TypeScript "nodenext" support ( #41 ) Thank you @jakebailey
"types" condition to "exports" map for TypeScript "nodenext" support (#41)Full Changelog: 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 @tripodsgames
Object.assign within class constructors (#31): 7650274klona and klona/lite modules.uvu version: 635e339Full Changelog: v2.0.4...v2.0.5
( klona/full ) Ensure prototype methods are copied ( #24 ): d8720a3
(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): 71f8415package.json changes will trigger CI suite: 63eb8e2(types) Adjust index.d.ts so that each "mode" entry maintains types definition ( #21 ): 107e22f
Nothing 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
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →