syntax-tree / mdast-util-to-hast

utility to transform mdast to hast
https://unifiedjs.com
MIT License
101 stars 42 forks source link

Use native Object.assign instead of xtend #26

Closed jimmywarting closed 5 years ago

jimmywarting commented 5 years ago

xtend can easily be replaced with Object.assign

This reduce the dependencies and possible also avoid duplicated versions where some package don't use the same version range for the xtend package

// immutable
Object.assign({}, a, b)

// mutable
Object.assign(a, b)
wooorm commented 5 years ago

Let’s discuss over on https://github.com/syntax-tree/hast-util-from-parse5/issues/8.