Skip to content

v2.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 07 Oct 19:05
· 6 commits to master since this release

2.1.0

New Feature

  • Add a new function streamListDiff to stream the diff of two object lists. It is ideal for large lists and maximum performance 🔥 (#26).

Basic usage (see the documentation for more details)

import { streamListDiff } from "@donedeal0/superdiff";

const diff = streamListDiff([], [], "id")

diff.on("data", (chunk) => { console.log(chunk) )}
diff.on("finish", () => console.log("The full diff is available"))
diff.on("error", (err) => console.log(err))

Improvement

  • Improve the execution time of getListDiff by 55.6% ⚡️(#27).

Chores

  • Use SWC to speed up the tests.
  • Add aliases (@models, @lib).
  • Clean devDependencies.
  • Restructure the codebase.
  • Update the documentation.