{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/16813","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/16813/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/16813/comments","events_url":"https://api.github.com/repos/npm/npm/issues/16813/events","html_url":"https://github.com/npm/npm/issues/16813","id":232455334,"node_id":"MDU6SXNzdWUyMzI0NTUzMzQ=","number":16813,"title":"npm 5 does not preserve range when updates package.json","user":{"login":"Delagen","id":783335,"node_id":"MDQ6VXNlcjc4MzMzNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/783335?v=4","gravatar_id":"","url":"https://api.github.com/users/Delagen","html_url":"https://github.com/Delagen","followers_url":"https://api.github.com/users/Delagen/followers","following_url":"https://api.github.com/users/Delagen/following{/other_user}","gists_url":"https://api.github.com/users/Delagen/gists{/gist_id}","starred_url":"https://api.github.com/users/Delagen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Delagen/subscriptions","organizations_url":"https://api.github.com/users/Delagen/orgs","repos_url":"https://api.github.com/users/Delagen/repos","events_url":"https://api.github.com/users/Delagen/events{/privacy}","received_events_url":"https://api.github.com/users/Delagen/received_events","type":"User","site_admin":false},"labels":[{"id":104298906,"node_id":"MDU6TGFiZWwxMDQyOTg5MDY=","url":"https://api.github.com/repos/npm/npm/labels/feature-request","name":"feature-request","color":"98DCFF","default":false},{"id":597514195,"node_id":"MDU6TGFiZWw1OTc1MTQxOTU=","url":"https://api.github.com/repos/npm/npm/labels/npm5","name":"npm5","color":"b60205","default":false},{"id":103138,"node_id":"MDU6TGFiZWwxMDMxMzg=","url":"https://api.github.com/repos/npm/npm/labels/patch-welcome","name":"patch-welcome","color":"BEEB71","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2017-05-31T05:12:28Z","updated_at":"2018-07-08T20:06:28Z","closed_at":null,"author_association":"NONE","body":"#### I'm opening this issue because:\r\n\r\n  - [ ] npm is crashing.\r\n  - [ ] npm is producing an incorrect install.\r\n  - [x] npm is doing something I don't understand.\r\n  - [ ] Other (_see below for feature requests_):\r\n\r\n#### What's going wrong?\r\npackage.json\r\n```\r\n{\r\n\"dependencies\":{\"some-module\":\"~1.2.3\"}\r\n}\r\n```\r\ncurrently available version 1.3.0 & 1.2.4\r\nwhen perform `npm update some-module`\r\nnpm override version in package.json to `^1.3.0`\r\n\r\n### supporting information:\r\n\r\n - `npm -v` prints: 5.0.0\r\n - `node -v` prints: 8.0.0\r\n"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/403313186","html_url":"https://github.com/npm/npm/issues/16813#issuecomment-403313186","issue_url":"https://api.github.com/repos/npm/npm/issues/16813","id":403313186,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzMxMzE4Ng==","user":{"login":"DanielRuf","id":827205,"node_id":"MDQ6VXNlcjgyNzIwNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/827205?v=4","gravatar_id":"","url":"https://api.github.com/users/DanielRuf","html_url":"https://github.com/DanielRuf","followers_url":"https://api.github.com/users/DanielRuf/followers","following_url":"https://api.github.com/users/DanielRuf/following{/other_user}","gists_url":"https://api.github.com/users/DanielRuf/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielRuf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielRuf/subscriptions","organizations_url":"https://api.github.com/users/DanielRuf/orgs","repos_url":"https://api.github.com/users/DanielRuf/repos","events_url":"https://api.github.com/users/DanielRuf/events{/privacy}","received_events_url":"https://api.github.com/users/DanielRuf/received_events","type":"User","site_admin":false},"created_at":"2018-07-08T20:06:28Z","updated_at":"2018-07-08T20:06:28Z","author_association":"NONE","body":"> But it is not ok to replace ~ by ^.\r\n\r\nOuch, saw the same in a few of our projects. This is really bad and a regression."}}
{"actor":{"display_login":"DanielRuf"}}