{"action":"opened","number":45,"pull_request":{"url":"https://api.github.com/repos/styled-components/polished/pulls/45","id":97765200,"html_url":"https://github.com/styled-components/polished/pull/45","diff_url":"https://github.com/styled-components/polished/pull/45.diff","patch_url":"https://github.com/styled-components/polished/pull/45.patch","issue_url":"https://api.github.com/repos/styled-components/polished/issues/45","number":45,"state":"open","locked":false,"title":"Add the modularScale helper","user":{"login":"mxstbr","id":7525670,"avatar_url":"https://avatars.githubusercontent.com/u/7525670?v=3","gravatar_id":"","url":"https://api.github.com/users/mxstbr","html_url":"https://github.com/mxstbr","followers_url":"https://api.github.com/users/mxstbr/followers","following_url":"https://api.github.com/users/mxstbr/following{/other_user}","gists_url":"https://api.github.com/users/mxstbr/gists{/gist_id}","starred_url":"https://api.github.com/users/mxstbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxstbr/subscriptions","organizations_url":"https://api.github.com/users/mxstbr/orgs","repos_url":"https://api.github.com/users/mxstbr/repos","events_url":"https://api.github.com/users/mxstbr/events{/privacy}","received_events_url":"https://api.github.com/users/mxstbr/received_events","type":"User","site_admin":false},"body":"Adds the `modularScale` helper using the lovely `simple-modular-scale` package by jxnblk. (not tagged so he doesn't get annoyed by an annoying notification)\n\nAlso implements caching the computed scales so we don't recompute the scale everytime somebody requests the same one with different steps. I have not benchmarked this or anything, but essentially the second time somebody gets a value from a scale with the same base and ratio the function is just an array lookup; that should be much cheaper than recomputing the entire scale for every single value! :tada:","created_at":"2016-12-13T14:50:30Z","updated_at":"2016-12-13T14:50:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/styled-components/polished/pulls/45/commits","review_comments_url":"https://api.github.com/repos/styled-components/polished/pulls/45/comments","review_comment_url":"https://api.github.com/repos/styled-components/polished/pulls/comments{/number}","comments_url":"https://api.github.com/repos/styled-components/polished/issues/45/comments","statuses_url":"https://api.github.com/repos/styled-components/polished/statuses/983920c10ca60b8f7b26baf6b15990792ba129a6","head":{"label":"styled-components:modular-scale","ref":"modular-scale","sha":"983920c10ca60b8f7b26baf6b15990792ba129a6","user":{"login":"styled-components","id":20658825,"avatar_url":"https://avatars.githubusercontent.com/u/20658825?v=3","gravatar_id":"","url":"https://api.github.com/users/styled-components","html_url":"https://github.com/styled-components","followers_url":"https://api.github.com/users/styled-components/followers","following_url":"https://api.github.com/users/styled-components/following{/other_user}","gists_url":"https://api.github.com/users/styled-components/gists{/gist_id}","starred_url":"https://api.github.com/users/styled-components/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/styled-components/subscriptions","organizations_url":"https://api.github.com/users/styled-components/orgs","repos_url":"https://api.github.com/users/styled-components/repos","events_url":"https://api.github.com/users/styled-components/events{/privacy}","received_events_url":"https://api.github.com/users/styled-components/received_events","type":"Organization","site_admin":false},"repo":{"id":72754695,"name":"polished","full_name":"styled-components/polished","owner":{"login":"styled-components","id":20658825,"avatar_url":"https://avatars.githubusercontent.com/u/20658825?v=3","gravatar_id":"","url":"https://api.github.com/users/styled-components","html_url":"https://github.com/styled-components","followers_url":"https://api.github.com/users/styled-components/followers","following_url":"https://api.github.com/users/styled-components/following{/other_user}","gists_url":"https://api.github.com/users/styled-components/gists{/gist_id}","starred_url":"https://api.github.com/users/styled-components/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/styled-components/subscriptions","organizations_url":"https://api.github.com/users/styled-components/orgs","repos_url":"https://api.github.com/users/styled-components/repos","events_url":"https://api.github.com/users/styled-components/events{/privacy}","received_events_url":"https://api.github.com/users/styled-components/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/styled-components/polished","description":"A lightweight toolset for writing styles in JavaScript ✨","fork":false,"url":"https://api.github.com/repos/styled-components/polished","forks_url":"https://api.github.com/repos/styled-components/polished/forks","keys_url":"https://api.github.com/repos/styled-components/polished/keys{/key_id}","collaborators_url":"https://api.github.com/repos/styled-components/polished/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/styled-components/polished/teams","hooks_url":"https://api.github.com/repos/styled-components/polished/hooks","issue_events_url":"https://api.github.com/repos/styled-components/polished/issues/events{/number}","events_url":"https://api.github.com/repos/styled-components/polished/events","assignees_url":"https://api.github.com/repos/styled-components/polished/assignees{/user}","branches_url":"https://api.github.com/repos/styled-components/polished/branches{/branch}","tags_url":"https://api.github.com/repos/styled-components/polished/tags","blobs_url":"https://api.github.com/repos/styled-components/polished/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/styled-components/polished/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/styled-components/polished/git/refs{/sha}","trees_url":"https://api.github.com/repos/styled-components/polished/git/trees{/sha}","statuses_url":"https://api.github.com/repos/styled-components/polished/statuses/{sha}","languages_url":"https://api.github.com/repos/styled-components/polished/languages","stargazers_url":"https://api.github.com/repos/styled-components/polished/stargazers","contributors_url":"https://api.github.com/repos/styled-components/polished/contributors","subscribers_url":"https://api.github.com/repos/styled-components/polished/subscribers","subscription_url":"https://api.github.com/repos/styled-components/polished/subscription","commits_url":"https://api.github.com/repos/styled-components/polished/commits{/sha}","git_commits_url":"https://api.github.com/repos/styled-components/polished/git/commits{/sha}","comments_url":"https://api.github.com/repos/styled-components/polished/comments{/number}","issue_comment_url":"https://api.github.com/repos/styled-components/polished/issues/comments{/number}","contents_url":"https://api.github.com/repos/styled-components/polished/contents/{+path}","compare_url":"https://api.github.com/repos/styled-components/polished/compare/{base}...{head}","merges_url":"https://api.github.com/repos/styled-components/polished/merges","archive_url":"https://api.github.com/repos/styled-components/polished/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/styled-components/polished/downloads","issues_url":"https://api.github.com/repos/styled-components/polished/issues{/number}","pulls_url":"https://api.github.com/repos/styled-components/polished/pulls{/number}","milestones_url":"https://api.github.com/repos/styled-components/polished/milestones{/number}","notifications_url":"https://api.github.com/repos/styled-components/polished/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/styled-components/polished/labels{/name}","releases_url":"https://api.github.com/repos/styled-components/polished/releases{/id}","deployments_url":"https://api.github.com/repos/styled-components/polished/deployments","created_at":"2016-11-03T14:39:21Z","updated_at":"2016-12-13T11:19:14Z","pushed_at":"2016-12-13T14:50:30Z","git_url":"git://github.com/styled-components/polished.git","ssh_url":"git@github.com:styled-components/polished.git","clone_url":"https://github.com/styled-components/polished.git","svn_url":"https://github.com/styled-components/polished","homepage":"","size":1419,"stargazers_count":36,"watchers_count":36,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":14,"forks":3,"open_issues":14,"watchers":36,"default_branch":"master"}},"base":{"label":"styled-components:master","ref":"master","sha":"303bd3c9a24993c4856fd6f3a3ef6c413f3304f5","user":{"login":"styled-components","id":20658825,"avatar_url":"https://avatars.githubusercontent.com/u/20658825?v=3","gravatar_id":"","url":"https://api.github.com/users/styled-components","html_url":"https://github.com/styled-components","followers_url":"https://api.github.com/users/styled-components/followers","following_url":"https://api.github.com/users/styled-components/following{/other_user}","gists_url":"https://api.github.com/users/styled-components/gists{/gist_id}","starred_url":"https://api.github.com/users/styled-components/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/styled-components/subscriptions","organizations_url":"https://api.github.com/users/styled-components/orgs","repos_url":"https://api.github.com/users/styled-components/repos","events_url":"https://api.github.com/users/styled-components/events{/privacy}","received_events_url":"https://api.github.com/users/styled-components/received_events","type":"Organization","site_admin":false},"repo":{"id":72754695,"name":"polished","full_name":"styled-components/polished","owner":{"login":"styled-components","id":20658825,"avatar_url":"https://avatars.githubusercontent.com/u/20658825?v=3","gravatar_id":"","url":"https://api.github.com/users/styled-components","html_url":"https://github.com/styled-components","followers_url":"https://api.github.com/users/styled-components/followers","following_url":"https://api.github.com/users/styled-components/following{/other_user}","gists_url":"https://api.github.com/users/styled-components/gists{/gist_id}","starred_url":"https://api.github.com/users/styled-components/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/styled-components/subscriptions","organizations_url":"https://api.github.com/users/styled-components/orgs","repos_url":"https://api.github.com/users/styled-components/repos","events_url":"https://api.github.com/users/styled-components/events{/privacy}","received_events_url":"https://api.github.com/users/styled-components/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/styled-components/polished","description":"A lightweight toolset for writing styles in JavaScript ✨","fork":false,"url":"https://api.github.com/repos/styled-components/polished","forks_url":"https://api.github.com/repos/styled-components/polished/forks","keys_url":"https://api.github.com/repos/styled-components/polished/keys{/key_id}","collaborators_url":"https://api.github.com/repos/styled-components/polished/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/styled-components/polished/teams","hooks_url":"https://api.github.com/repos/styled-components/polished/hooks","issue_events_url":"https://api.github.com/repos/styled-components/polished/issues/events{/number}","events_url":"https://api.github.com/repos/styled-components/polished/events","assignees_url":"https://api.github.com/repos/styled-components/polished/assignees{/user}","branches_url":"https://api.github.com/repos/styled-components/polished/branches{/branch}","tags_url":"https://api.github.com/repos/styled-components/polished/tags","blobs_url":"https://api.github.com/repos/styled-components/polished/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/styled-components/polished/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/styled-components/polished/git/refs{/sha}","trees_url":"https://api.github.com/repos/styled-components/polished/git/trees{/sha}","statuses_url":"https://api.github.com/repos/styled-components/polished/statuses/{sha}","languages_url":"https://api.github.com/repos/styled-components/polished/languages","stargazers_url":"https://api.github.com/repos/styled-components/polished/stargazers","contributors_url":"https://api.github.com/repos/styled-components/polished/contributors","subscribers_url":"https://api.github.com/repos/styled-components/polished/subscribers","subscription_url":"https://api.github.com/repos/styled-components/polished/subscription","commits_url":"https://api.github.com/repos/styled-components/polished/commits{/sha}","git_commits_url":"https://api.github.com/repos/styled-components/polished/git/commits{/sha}","comments_url":"https://api.github.com/repos/styled-components/polished/comments{/number}","issue_comment_url":"https://api.github.com/repos/styled-components/polished/issues/comments{/number}","contents_url":"https://api.github.com/repos/styled-components/polished/contents/{+path}","compare_url":"https://api.github.com/repos/styled-components/polished/compare/{base}...{head}","merges_url":"https://api.github.com/repos/styled-components/polished/merges","archive_url":"https://api.github.com/repos/styled-components/polished/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/styled-components/polished/downloads","issues_url":"https://api.github.com/repos/styled-components/polished/issues{/number}","pulls_url":"https://api.github.com/repos/styled-components/polished/pulls{/number}","milestones_url":"https://api.github.com/repos/styled-components/polished/milestones{/number}","notifications_url":"https://api.github.com/repos/styled-components/polished/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/styled-components/polished/labels{/name}","releases_url":"https://api.github.com/repos/styled-components/polished/releases{/id}","deployments_url":"https://api.github.com/repos/styled-components/polished/deployments","created_at":"2016-11-03T14:39:21Z","updated_at":"2016-12-13T11:19:14Z","pushed_at":"2016-12-13T14:50:30Z","git_url":"git://github.com/styled-components/polished.git","ssh_url":"git@github.com:styled-components/polished.git","clone_url":"https://github.com/styled-components/polished.git","svn_url":"https://github.com/styled-components/polished","homepage":"","size":1419,"stargazers_count":36,"watchers_count":36,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":14,"forks":3,"open_issues":14,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/styled-components/polished/pulls/45"},"html":{"href":"https://github.com/styled-components/polished/pull/45"},"issue":{"href":"https://api.github.com/repos/styled-components/polished/issues/45"},"comments":{"href":"https://api.github.com/repos/styled-components/polished/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/styled-components/polished/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/styled-components/polished/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/styled-components/polished/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/styled-components/polished/statuses/983920c10ca60b8f7b26baf6b15990792ba129a6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":5,"additions":256,"deletions":9,"changed_files":5}}
{"actor":{"display_login":"mxstbr"}}