stephenlacy / bump-regex

bump regex with semver
MIT License
13 stars 10 forks source link

Use native Object.assign instead of xtend #23

Closed jimmywarting closed 6 years ago

jimmywarting commented 6 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)
stephenlacy commented 6 years ago

Object.assign is not supported before node v4, though if you send a PR I'll merge and publish to a major.