v2.1.0
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.