whitlockjc / json-refs

Various utilities for JSON Pointers (http://tools.ietf.org/html/rfc6901) and JSON References (http://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dependency on uri-js threatens node 0.8 - node 4.x compatibility

ethanherbertson opened this issue · comments

The uri-js module makes no claims about what engines it supports, but sadly all recent versions of it (and indeed all versions still tagged/available on GitHub) rely on punycode 2.x, which only claims compatibility with node >= 6.0. (I've just filed garycourt/uri-js#27 on uri-js to suggest he downgrade his dependency or at least add a "node >= 6.0" to his package.json.)

This module claims it supports node >= 0.8, but that nested dependency means it cannot (safely) claim to.

To fix this you'd either have to wait for uri-js to get "fixed", or you'd have to fork it or switch to a different URI library. Not sure which of those you'd prefer. In the meantime it's worth considering updating your supported engines to node >= 6.0.