{"action":"opened","issue":{"url":"https://api.github.com/repos/Level/levelup/issues/593","repository_url":"https://api.github.com/repos/Level/levelup","labels_url":"https://api.github.com/repos/Level/levelup/issues/593/labels{/name}","comments_url":"https://api.github.com/repos/Level/levelup/issues/593/comments","events_url":"https://api.github.com/repos/Level/levelup/issues/593/events","html_url":"https://github.com/Level/levelup/issues/593","id":336668693,"node_id":"MDU6SXNzdWUzMzY2Njg2OTM=","number":593,"title":"level-iterator-stream dependency breaks Node.js LTS  4.X install with v2.0.2","user":{"login":"DavidPineauScality","id":14309735,"node_id":"MDQ6VXNlcjE0MzA5NzM1","avatar_url":"https://avatars1.githubusercontent.com/u/14309735?v=4","gravatar_id":"","url":"https://api.github.com/users/DavidPineauScality","html_url":"https://github.com/DavidPineauScality","followers_url":"https://api.github.com/users/DavidPineauScality/followers","following_url":"https://api.github.com/users/DavidPineauScality/following{/other_user}","gists_url":"https://api.github.com/users/DavidPineauScality/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidPineauScality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidPineauScality/subscriptions","organizations_url":"https://api.github.com/users/DavidPineauScality/orgs","repos_url":"https://api.github.com/users/DavidPineauScality/repos","events_url":"https://api.github.com/users/DavidPineauScality/events{/privacy}","received_events_url":"https://api.github.com/users/DavidPineauScality/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-28T15:22:56Z","updated_at":"2018-06-28T15:22:56Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nMy team and myself have been hit by an oddity today, in the setup of our Node.JS product.\r\n\r\nIndeed, using our yarn.lock file, we previously had no issue installing it with node.js 4.X, but today we get:\r\n```\r\nerror level-iterator-stream@2.0.1: The engine \"node\" is incompatible with this module. Expected version \">=6\".\r\nerror Found incompatible module\r\n```\r\n\r\nDigging a bit deeper into it, (using `yarn list`), I see:\r\n```\r\n├─ level-iterator-stream@2.0.1\r\n│  ├─ inherits@^2.0.1\r\n│  ├─ readable-stream@^2.0.5\r\n│  └─ xtend@^4.0.0\r\n...\r\n├─ levelup@2.0.2\r\n│  ├─ deferred-leveldown@~3.0.0\r\n│  ├─ level-errors@~1.1.0\r\n│  ├─ level-iterator-stream@~2.0.0\r\n│  └─ xtend@~4.0.0\r\n```\r\n\r\nNote that levelup is the only package depending on level-iterator-stream, and given what I read, it's not unexpected that the 2.0.1 would be installed, but here's the issue:\r\nhttps://github.com/Level/iterator-stream/commit/0b4d52bfd4147c68f3844f39b89d3b0ae6c649a6\r\n\r\nAs you can see, that commit changed the node engine for level-iterator-stream to `>=6`, rather than something compatible with your engine requirement in version `v2.0.2`.\r\n\r\nI understand the philosophy of being flexible relatively to your dependencies, but due to the loose aspect of dependencies in the open-source, I'd recommend using hard-set dependencies that would be updated once-in-a-while (and confirmed to work, obviously). It would avoid such surprises to your users (my team included :p)."}}
{"actor":{"display_login":"DavidPineauScality"}}