{"action":"created","issue":{"url":"https://api.github.com/repos/YouCanBookMe/react-datetime/issues/105","repository_url":"https://api.github.com/repos/YouCanBookMe/react-datetime","labels_url":"https://api.github.com/repos/YouCanBookMe/react-datetime/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/YouCanBookMe/react-datetime/issues/105/comments","events_url":"https://api.github.com/repos/YouCanBookMe/react-datetime/issues/105/events","html_url":"https://github.com/YouCanBookMe/react-datetime/issues/105","id":165746378,"node_id":"MDU6SXNzdWUxNjU3NDYzNzg=","number":105,"title":"Consider replacing Moment with something smaller / modular","user":{"login":"jeremejevs","id":2584727,"node_id":"MDQ6VXNlcjI1ODQ3Mjc=","avatar_url":"https://avatars1.githubusercontent.com/u/2584727?v=4","gravatar_id":"","url":"https://api.github.com/users/jeremejevs","html_url":"https://github.com/jeremejevs","followers_url":"https://api.github.com/users/jeremejevs/followers","following_url":"https://api.github.com/users/jeremejevs/following{/other_user}","gists_url":"https://api.github.com/users/jeremejevs/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremejevs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremejevs/subscriptions","organizations_url":"https://api.github.com/users/jeremejevs/orgs","repos_url":"https://api.github.com/users/jeremejevs/repos","events_url":"https://api.github.com/users/jeremejevs/events{/privacy}","received_events_url":"https://api.github.com/users/jeremejevs/received_events","type":"User","site_admin":false},"labels":[{"id":226452113,"node_id":"MDU6TGFiZWwyMjY0NTIxMTM=","url":"https://api.github.com/repos/YouCanBookMe/react-datetime/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":226452114,"node_id":"MDU6TGFiZWwyMjY0NTIxMTQ=","url":"https://api.github.com/repos/YouCanBookMe/react-datetime/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-15T09:29:09Z","updated_at":"2018-08-20T13:13:45Z","closed_at":null,"author_association":"NONE","body":"Moment is a huge monolith, and [it's a big problem](https://github.com/moment/moment/issues/2373). In my case, it's the second largest dependency after React. Here are their unpacked numbers (after `gzip` they shrink proportionally):\n\n```\nreact: 645.64 KB (17.20%)\nmoment: 454.54 KB (12.10%)\n...\n```\n\nI'm as much of a Moment fan as the next guy, but this is way too many kilobytes. Something like [`date-fns`](https://github.com/date-fns/date-fns) could be a better fit. I wanted to switch, but I rely on this excellent component too much to give it up.\n\nPlease, let me know if you're open to this, and whether you intend on doing this yourself or not.\n"},"comment":{"url":"https://api.github.com/repos/YouCanBookMe/react-datetime/issues/comments/414312041","html_url":"https://github.com/YouCanBookMe/react-datetime/issues/105#issuecomment-414312041","issue_url":"https://api.github.com/repos/YouCanBookMe/react-datetime/issues/105","id":414312041,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDMxMjA0MQ==","user":{"login":"NateRadebaugh","id":130445,"node_id":"MDQ6VXNlcjEzMDQ0NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/130445?v=4","gravatar_id":"","url":"https://api.github.com/users/NateRadebaugh","html_url":"https://github.com/NateRadebaugh","followers_url":"https://api.github.com/users/NateRadebaugh/followers","following_url":"https://api.github.com/users/NateRadebaugh/following{/other_user}","gists_url":"https://api.github.com/users/NateRadebaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/NateRadebaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NateRadebaugh/subscriptions","organizations_url":"https://api.github.com/users/NateRadebaugh/orgs","repos_url":"https://api.github.com/users/NateRadebaugh/repos","events_url":"https://api.github.com/users/NateRadebaugh/events{/privacy}","received_events_url":"https://api.github.com/users/NateRadebaugh/received_events","type":"User","site_admin":false},"created_at":"2018-08-20T13:13:45Z","updated_at":"2018-08-20T13:13:45Z","author_association":"NONE","body":"I spent some time the other day attempting to replace the moment usage with date-fns, but the usage of moment's localization support is pretty deeply incorporated into the existing codebase and was not trivial to swap out.\r\n\r\nMy team's bundles would certainly prefer date-fns over moment."}}
{"actor":{"display_login":"NateRadebaugh"}}