{"action":"opened","issue":{"url":"https://api.github.com/repos/imagemin/imagemin/issues/132","labels_url":"https://api.github.com/repos/imagemin/imagemin/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/imagemin/imagemin/issues/132/comments","events_url":"https://api.github.com/repos/imagemin/imagemin/issues/132/events","html_url":"https://github.com/imagemin/imagemin/issues/132","id":112208877,"number":132,"title":"broken since stream-combiner2 update","user":{"login":"mziwisky","id":3136418,"avatar_url":"https://avatars.githubusercontent.com/u/3136418?v=3","gravatar_id":"","url":"https://api.github.com/users/mziwisky","html_url":"https://github.com/mziwisky","followers_url":"https://api.github.com/users/mziwisky/followers","following_url":"https://api.github.com/users/mziwisky/following{/other_user}","gists_url":"https://api.github.com/users/mziwisky/gists{/gist_id}","starred_url":"https://api.github.com/users/mziwisky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mziwisky/subscriptions","organizations_url":"https://api.github.com/users/mziwisky/orgs","repos_url":"https://api.github.com/users/mziwisky/repos","events_url":"https://api.github.com/users/mziwisky/events{/privacy}","received_events_url":"https://api.github.com/users/mziwisky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-19T18:54:22Z","updated_at":"2015-10-19T18:54:22Z","closed_at":null,"body":"just cloned imagemin and tried running `npm test`, and \"optimize a SVG\" fails as follows:\r\n\r\n```\r\n  ✖ optimize a SVG   TypeError: Invalid non-string/buffer chunk\r\n/Users/mziwisky/repos/imagemin/test/test.js:91\r\n\t\tt.assert(files[0].contents.length < src.length, files[0].contents.length);\r\n\t\t              ^\r\nTypeError: Cannot read property '0' of undefined\r\n    at DuplexWrapper.<anonymous> (/Users/mziwisky/repos/imagemin/test/test.js:91:17)\r\n    at DuplexWrapper.emit (events.js:107:17)\r\n    at Through2.<anonymous> (/Users/mziwisky/repos/imagemin/node_modules/stream-combiner2/node_modules/duplexer2/index.js:65:19)\r\n    at Through2.emit (events.js:129:20)\r\n    at afterTransform (/Users/mziwisky/repos/imagemin/node_modules/imagemin-svgo/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:95:19)\r\n    at TransformState.afterTransform (/Users/mziwisky/repos/imagemin/node_modules/imagemin-svgo/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:79:12)\r\n    at Through2._transform (/Users/mziwisky/repos/imagemin/node_modules/imagemin-svgo/index.js:51:4)\r\n    at Through2.Transform._read (/Users/mziwisky/repos/imagemin/node_modules/imagemin-svgo/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)\r\n    at Through2.Transform._write (/Users/mziwisky/repos/imagemin/node_modules/imagemin-svgo/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)\r\n    at doWrite (/Users/mziwisky/repos/imagemin/node_modules/imagemin-svgo/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)\r\nnpm ERR! Test failed.  See above for more details.\r\n```\r\n\r\nthis appears to be related to the recent bump of `stream-combiner2` from 1.0.2 to 1.1.1.  if i change the stream-combiner2 dependency in package.json to a hard 1.0.2, the tests pass (but I get a lot of `npm WARN unmet dependency` messages due to other dependencies depending on v1.1.1)"}}