{"action":"closed","issue":{"url":"https://api.github.com/repos/suguru03/neo-async/issues/33","repository_url":"https://api.github.com/repos/suguru03/neo-async","labels_url":"https://api.github.com/repos/suguru03/neo-async/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/suguru03/neo-async/issues/33/comments","events_url":"https://api.github.com/repos/suguru03/neo-async/issues/33/events","html_url":"https://github.com/suguru03/neo-async/issues/33","id":167085725,"number":33,"title":"neo-async 2.0 is incompatible with 1.8","user":{"login":"cvlmtg","id":6401008,"avatar_url":"https://avatars.githubusercontent.com/u/6401008?v=3","gravatar_id":"","url":"https://api.github.com/users/cvlmtg","html_url":"https://github.com/cvlmtg","followers_url":"https://api.github.com/users/cvlmtg/followers","following_url":"https://api.github.com/users/cvlmtg/following{/other_user}","gists_url":"https://api.github.com/users/cvlmtg/gists{/gist_id}","starred_url":"https://api.github.com/users/cvlmtg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvlmtg/subscriptions","organizations_url":"https://api.github.com/users/cvlmtg/orgs","repos_url":"https://api.github.com/users/cvlmtg/repos","events_url":"https://api.github.com/users/cvlmtg/events{/privacy}","received_events_url":"https://api.github.com/users/cvlmtg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-22T16:44:03Z","updated_at":"2016-07-22T17:09:10Z","closed_at":"2016-07-22T17:09:10Z","body":"The result from *detectSeries()* (and I suppose *detect()* and *detectLimit()* too) is different between neo-async 1.8 and neo-async 2.0. here's an example:\r\n\r\n```\r\nvar async = require('neo-async');\r\n\r\nfunction iterator(obj, done) {\r\n  if (obj.id === 1) {\r\n    done(true);\r\n  } else {\r\n    done(false);\r\n  }\r\n}\r\n\r\nvar elements = [\r\n  { id: 3 },\r\n  { id: 2 },\r\n  { id: 1 },\r\n  { id: 4 }\r\n];\r\n\r\nasync.detectSeries(elements, iterator, function(result) {\r\n  console.log(result);\r\n});\r\n```\r\n\r\nwith neo-async 1.8 this is the output of the script:\r\n```\r\nbash-3.2$ npm --depth=0 ls | grep neo\r\n├── neo-async@1.8.2\r\nbash-3.2$ node test.js\r\n{ id: 1 }\r\n```\r\n\r\nwith neo-async 2.0 this is the output of the same script:\r\n```\r\nbash-3.2$ npm --depth=0 ls | grep neo\r\n├── neo-async@2.0.0\r\nbash-3.2$ node test.js\r\ntrue\r\n```\r\n"}}
{"actor":{"display_login":"suguru03"}}