{"action":"opened","issue":{"url":"https://api.github.com/repos/component/type/issues/22","labels_url":"https://api.github.com/repos/component/type/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/component/type/issues/22/comments","events_url":"https://api.github.com/repos/component/type/issues/22/events","html_url":"https://github.com/component/type/issues/22","id":113168200,"number":22,"title":"@1.2.0 increases build size 40 times","user":{"login":"alekseykulikov","id":158189,"avatar_url":"https://avatars.githubusercontent.com/u/158189?v=3","gravatar_id":"","url":"https://api.github.com/users/alekseykulikov","html_url":"https://github.com/alekseykulikov","followers_url":"https://api.github.com/users/alekseykulikov/followers","following_url":"https://api.github.com/users/alekseykulikov/following{/other_user}","gists_url":"https://api.github.com/users/alekseykulikov/gists{/gist_id}","starred_url":"https://api.github.com/users/alekseykulikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alekseykulikov/subscriptions","organizations_url":"https://api.github.com/users/alekseykulikov/orgs","repos_url":"https://api.github.com/users/alekseykulikov/repos","events_url":"https://api.github.com/users/alekseykulikov/events{/privacy}","received_events_url":"https://api.github.com/users/alekseykulikov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-24T15:51:19Z","updated_at":"2015-10-24T15:51:19Z","closed_at":null,"body":"#21 increases browserify build in 40 times, because `Buffer` usage. It makes this library useless for small browser components, which was an original purpose.\r\n\r\n```\r\n$ npm i component-type@1.1.0\r\ncomponent-type@1.1.0 node_modules/component-type\r\n$ browserify node_modules/component-type | wc -c | pretty-bytes\r\n1.23 kB\r\n\r\n$ npm i component-type@1.2.0\r\ncomponent-type@1.2.0 node_modules/component-type\r\n$ browserify node_modules/component-type | wc -c | pretty-bytes\r\n50.55 kB\r\n\r\n$ npm i underscore\r\nunderscore@1.8.3 node_modules/underscore\r\n$ browserify node_modules/underscore | wc -c | pretty-bytes\r\n53.42 kB\r\n```\r\n\r\nI propose to revert buffer check and release it as 2.0.0. We have `Buffer.isBuffer`, but we don't have normal typeof."}}