sindresorhus / read-package-up

Read the closest package.json file
MIT License
258 stars 18 forks source link

Node 8.0.0 doesn't support object destructuring #8

Closed rafamel closed 5 years ago

rafamel commented 5 years ago

Support for object destructuring was added by a minor Node@8 version. In order to support Node@8, which I would say is desirable, Object.assign must be used. This is an issue for this package, but also for its dependency read-pkg.

sindresorhus commented 5 years ago

It's expected that you upgrade minor Node.js versions. Those versions also come with important security fixes.

https://github.com/sindresorhus/meta/issues/8