Skip to content

Releases: lukeed/klona

v2.0.6

16 Jan 19:21
Compare
Choose a tag to compare

Patches

  • Add "types" condition to "exports" map for TypeScript "nodenext" support (#41)
    Thank you @jakebailey

Full Changelog: v2.0.5...v2.0.6

v2.0.5

27 Oct 01:49
Compare
Choose a tag to compare

Patches

  • Handle Object.assign within class constructors (#31): 7650274
    This fix is only relevant to the klona and klona/lite modules.
    Thank you @tripodsgames~!

Chores


Full Changelog: v2.0.4...v2.0.5

v2.0.4

16 Sep 03:54
Compare
Choose a tag to compare

Patches

  • (klona/full) Ensure prototype methods are copied (#24): d8720a3

Chores

v2.0.3

19 Aug 04:18
Compare
Choose a tag to compare

Patches

Chores

  • (action) Ensure package.json changes will trigger CI suite: 63eb8e2

v2.0.2

17 Aug 18:54
Compare
Choose a tag to compare

Patches

  • (types) Adjust index.d.ts so that each "mode" entry maintains types definition (#21): 107e22f

v2.0.0

14 Aug 22:02
Compare
Choose a tag to compare

Breaking

  • 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');

Features

  • 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.

Chores

  • (test) Extract tests into reusable files for composition: 0e8b82b
  • (test) Ensure each "mode" has full test coverage: a64c3fd, 58f4491, 0110463
  • (test) Add class inheritance tests: 4fc79fd
  • (bench): Rework benchmarks for multi-mode fixtures and validations: 46cc9ed
  • (bench): Print benchmark results with explainer: 1a73cd8
  • (readme): Update documentation with Modes comparison section: 3949d6b, d8a44da
  • (meta) Enable GitHub Sponsors button 🙇: 5cb032c

v1.1.2

04 Jul 04:36
Compare
Choose a tag to compare

Fixes

  • Clone custom class instances (#14): c873e9e, 8089f11
    klona now correctly returns a fresh copy of your custom class

  • (types): Allow CommonJS type inference: 0d324fe

Chores

v1.1.1

16 Jan 04:29
Compare
Choose a tag to compare

Fixes

Chores