{"action":"created","issue":{"url":"https://api.github.com/repos/mafintosh/hyperdrive/issues/99","repository_url":"https://api.github.com/repos/mafintosh/hyperdrive","labels_url":"https://api.github.com/repos/mafintosh/hyperdrive/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/mafintosh/hyperdrive/issues/99/comments","events_url":"https://api.github.com/repos/mafintosh/hyperdrive/issues/99/events","html_url":"https://github.com/mafintosh/hyperdrive/pull/99","id":176722557,"number":99,"title":"Add .unlink() and .history()","user":{"login":"pfrazee","id":1270099,"avatar_url":"https://avatars.githubusercontent.com/u/1270099?v=3","gravatar_id":"","url":"https://api.github.com/users/pfrazee","html_url":"https://github.com/pfrazee","followers_url":"https://api.github.com/users/pfrazee/followers","following_url":"https://api.github.com/users/pfrazee/following{/other_user}","gists_url":"https://api.github.com/users/pfrazee/gists{/gist_id}","starred_url":"https://api.github.com/users/pfrazee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfrazee/subscriptions","organizations_url":"https://api.github.com/users/pfrazee/orgs","repos_url":"https://api.github.com/users/pfrazee/repos","events_url":"https://api.github.com/users/pfrazee/events{/privacy}","received_events_url":"https://api.github.com/users/pfrazee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-09-13T19:00:03Z","updated_at":"2016-09-17T20:23:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mafintosh/hyperdrive/pulls/99","html_url":"https://github.com/mafintosh/hyperdrive/pull/99","diff_url":"https://github.com/mafintosh/hyperdrive/pull/99.diff","patch_url":"https://github.com/mafintosh/hyperdrive/pull/99.patch"},"body":"This PR closes #76. The changes are described in the readme:\r\n\r\n---\r\n\r\n#### `var rs = archive.history(opts={}, cb)`\r\n\r\nReturns a readable stream of the history of the entries in the archive.\r\n\r\n* `opts.offset` - start streaming from this offset (default: 0)\r\n* `opts.live` - keep the stream open as new updates arrive (default: false)\r\n\r\nYou can collect the results of the stream with `cb(err, entries)`.\r\n\r\n#### `var rs = archive.list(opts={}, cb)`\r\n\r\nReturns a readable stream of all current entries in the archive.\r\n\r\n* `opts.offset` - start streaming from this offset (default: 0)\r\n\r\nYou can collect the results of the stream with `cb(err, entries)`.\r\n\r\n#### `archive.unlink(entry, callback)`\r\n\r\nRemove an entry from the archive. Only possible if this is an live archive you originally created\r\nor an unfinalized archive.\r\n\r\nThis will not affect the files on the disk, even if you set the file option in the archive constructor."},"comment":{"url":"https://api.github.com/repos/mafintosh/hyperdrive/issues/comments/247805470","html_url":"https://github.com/mafintosh/hyperdrive/pull/99#issuecomment-247805470","issue_url":"https://api.github.com/repos/mafintosh/hyperdrive/issues/99","id":247805470,"user":{"login":"pfrazee","id":1270099,"avatar_url":"https://avatars.githubusercontent.com/u/1270099?v=3","gravatar_id":"","url":"https://api.github.com/users/pfrazee","html_url":"https://github.com/pfrazee","followers_url":"https://api.github.com/users/pfrazee/followers","following_url":"https://api.github.com/users/pfrazee/following{/other_user}","gists_url":"https://api.github.com/users/pfrazee/gists{/gist_id}","starred_url":"https://api.github.com/users/pfrazee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfrazee/subscriptions","organizations_url":"https://api.github.com/users/pfrazee/orgs","repos_url":"https://api.github.com/users/pfrazee/repos","events_url":"https://api.github.com/users/pfrazee/events{/privacy}","received_events_url":"https://api.github.com/users/pfrazee/received_events","type":"User","site_admin":false},"created_at":"2016-09-17T20:23:55Z","updated_at":"2016-09-17T20:23:55Z","body":"> should we perhaps make sparse mode always fetch metadata? this kinda makes sense to me and would allow you to react to the unlink messages as they arrive.\r\n\r\nThat'd be ok with me, because that's what I've been doing in my code; all archives are opened in sparse mode and the metadata feed is then prioritized infinitely."}}
{"actor":{"display_login":"pfrazee"}}