{"action":"opened","number":80,"pull_request":{"url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/pulls/80","id":237687177,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3Njg3MTc3","html_url":"https://github.com/stefanzweifel/js-swiss-cantons/pull/80","diff_url":"https://github.com/stefanzweifel/js-swiss-cantons/pull/80.diff","patch_url":"https://github.com/stefanzweifel/js-swiss-cantons/pull/80.patch","issue_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/issues/80","number":80,"state":"open","locked":false,"title":"Optimized canton search","user":{"login":"Floriferous","id":10428082,"node_id":"MDQ6VXNlcjEwNDI4MDgy","avatar_url":"https://avatars3.githubusercontent.com/u/10428082?v=4","gravatar_id":"","url":"https://api.github.com/users/Floriferous","html_url":"https://github.com/Floriferous","followers_url":"https://api.github.com/users/Floriferous/followers","following_url":"https://api.github.com/users/Floriferous/following{/other_user}","gists_url":"https://api.github.com/users/Floriferous/gists{/gist_id}","starred_url":"https://api.github.com/users/Floriferous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Floriferous/subscriptions","organizations_url":"https://api.github.com/users/Floriferous/orgs","repos_url":"https://api.github.com/users/Floriferous/repos","events_url":"https://api.github.com/users/Floriferous/events{/privacy}","received_events_url":"https://api.github.com/users/Floriferous/received_events","type":"User","site_admin":false},"body":"We realized we kind of need this data on the client as well, so I'd like to propose a super-simple bundle-size optimized canton search. If this is too far away from what you'd like this package to be we'll happily live with our fork, but let me know if this is of interest:\r\n\r\n* Canton data set is reduced from 400kb to 2kb, making it easily usable on the client without worrying about bundle-size\r\n* Adds a new ZipcodeSearchSimple class that returns the short form of the canton (like `ZH`, or `GE`) from a zipcode\r\n* Opt-in, just like the regular zipcode search, so it doesn't affect users who don't need this.\r\n\r\nTODO\r\n\r\n* [ ] Add a few tests\r\n* [ ] Document the feature\r\n* [ ] Remove unnecessary data/code (I keep it for now)\r\n\r\n","created_at":"2018-12-11T13:53:08Z","updated_at":"2018-12-11T13:53:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/pulls/80/commits","review_comments_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/pulls/80/comments","review_comment_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/issues/80/comments","statuses_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/statuses/b2555c5099b5f6d70d7c4f6c8181d0ec8ec5e428","head":{"label":"Floriferous:optimal-canton-search","ref":"optimal-canton-search","sha":"b2555c5099b5f6d70d7c4f6c8181d0ec8ec5e428","user":{"login":"Floriferous","id":10428082,"node_id":"MDQ6VXNlcjEwNDI4MDgy","avatar_url":"https://avatars3.githubusercontent.com/u/10428082?v=4","gravatar_id":"","url":"https://api.github.com/users/Floriferous","html_url":"https://github.com/Floriferous","followers_url":"https://api.github.com/users/Floriferous/followers","following_url":"https://api.github.com/users/Floriferous/following{/other_user}","gists_url":"https://api.github.com/users/Floriferous/gists{/gist_id}","starred_url":"https://api.github.com/users/Floriferous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Floriferous/subscriptions","organizations_url":"https://api.github.com/users/Floriferous/orgs","repos_url":"https://api.github.com/users/Floriferous/repos","events_url":"https://api.github.com/users/Floriferous/events{/privacy}","received_events_url":"https://api.github.com/users/Floriferous/received_events","type":"User","site_admin":false},"repo":{"id":160653630,"node_id":"MDEwOlJlcG9zaXRvcnkxNjA2NTM2MzA=","name":"js-swiss-cantons","full_name":"Floriferous/js-swiss-cantons","private":false,"owner":{"login":"Floriferous","id":10428082,"node_id":"MDQ6VXNlcjEwNDI4MDgy","avatar_url":"https://avatars3.githubusercontent.com/u/10428082?v=4","gravatar_id":"","url":"https://api.github.com/users/Floriferous","html_url":"https://github.com/Floriferous","followers_url":"https://api.github.com/users/Floriferous/followers","following_url":"https://api.github.com/users/Floriferous/following{/other_user}","gists_url":"https://api.github.com/users/Floriferous/gists{/gist_id}","starred_url":"https://api.github.com/users/Floriferous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Floriferous/subscriptions","organizations_url":"https://api.github.com/users/Floriferous/orgs","repos_url":"https://api.github.com/users/Floriferous/repos","events_url":"https://api.github.com/users/Floriferous/events{/privacy}","received_events_url":"https://api.github.com/users/Floriferous/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Floriferous/js-swiss-cantons","description":"🇨🇭 Find Swiss Canton by abbreviation or name","fork":true,"url":"https://api.github.com/repos/Floriferous/js-swiss-cantons","forks_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/forks","keys_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/teams","hooks_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/hooks","issue_events_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/issues/events{/number}","events_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/events","assignees_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/assignees{/user}","branches_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/branches{/branch}","tags_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/tags","blobs_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/git/refs{/sha}","trees_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/statuses/{sha}","languages_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/languages","stargazers_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/stargazers","contributors_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/contributors","subscribers_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/subscribers","subscription_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/subscription","commits_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/commits{/sha}","git_commits_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/git/commits{/sha}","comments_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/comments{/number}","issue_comment_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/issues/comments{/number}","contents_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/contents/{+path}","compare_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/merges","archive_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/downloads","issues_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/issues{/number}","pulls_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/pulls{/number}","milestones_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/milestones{/number}","notifications_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/labels{/name}","releases_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/releases{/id}","deployments_url":"https://api.github.com/repos/Floriferous/js-swiss-cantons/deployments","created_at":"2018-12-06T09:47:53Z","updated_at":"2018-12-06T11:21:00Z","pushed_at":"2018-12-11T13:52:59Z","git_url":"git://github.com/Floriferous/js-swiss-cantons.git","ssh_url":"git@github.com:Floriferous/js-swiss-cantons.git","clone_url":"https://github.com/Floriferous/js-swiss-cantons.git","svn_url":"https://github.com/Floriferous/js-swiss-cantons","homepage":"","size":618,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"stefanzweifel:master","ref":"master","sha":"9d597ea6997f1fb59f13cef5dbabd7c3e5f0ef75","user":{"login":"stefanzweifel","id":1080923,"node_id":"MDQ6VXNlcjEwODA5MjM=","avatar_url":"https://avatars3.githubusercontent.com/u/1080923?v=4","gravatar_id":"","url":"https://api.github.com/users/stefanzweifel","html_url":"https://github.com/stefanzweifel","followers_url":"https://api.github.com/users/stefanzweifel/followers","following_url":"https://api.github.com/users/stefanzweifel/following{/other_user}","gists_url":"https://api.github.com/users/stefanzweifel/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanzweifel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanzweifel/subscriptions","organizations_url":"https://api.github.com/users/stefanzweifel/orgs","repos_url":"https://api.github.com/users/stefanzweifel/repos","events_url":"https://api.github.com/users/stefanzweifel/events{/privacy}","received_events_url":"https://api.github.com/users/stefanzweifel/received_events","type":"User","site_admin":false},"repo":{"id":89518903,"node_id":"MDEwOlJlcG9zaXRvcnk4OTUxODkwMw==","name":"js-swiss-cantons","full_name":"stefanzweifel/js-swiss-cantons","private":false,"owner":{"login":"stefanzweifel","id":1080923,"node_id":"MDQ6VXNlcjEwODA5MjM=","avatar_url":"https://avatars3.githubusercontent.com/u/1080923?v=4","gravatar_id":"","url":"https://api.github.com/users/stefanzweifel","html_url":"https://github.com/stefanzweifel","followers_url":"https://api.github.com/users/stefanzweifel/followers","following_url":"https://api.github.com/users/stefanzweifel/following{/other_user}","gists_url":"https://api.github.com/users/stefanzweifel/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanzweifel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanzweifel/subscriptions","organizations_url":"https://api.github.com/users/stefanzweifel/orgs","repos_url":"https://api.github.com/users/stefanzweifel/repos","events_url":"https://api.github.com/users/stefanzweifel/events{/privacy}","received_events_url":"https://api.github.com/users/stefanzweifel/received_events","type":"User","site_admin":false},"html_url":"https://github.com/stefanzweifel/js-swiss-cantons","description":"🇨🇭 Find Swiss Canton by abbreviation or name","fork":false,"url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons","forks_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/forks","keys_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/teams","hooks_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/hooks","issue_events_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/issues/events{/number}","events_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/events","assignees_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/assignees{/user}","branches_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/branches{/branch}","tags_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/tags","blobs_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/git/refs{/sha}","trees_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/statuses/{sha}","languages_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/languages","stargazers_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/stargazers","contributors_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/contributors","subscribers_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/subscribers","subscription_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/subscription","commits_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/commits{/sha}","git_commits_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/git/commits{/sha}","comments_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/comments{/number}","issue_comment_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/issues/comments{/number}","contents_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/contents/{+path}","compare_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/merges","archive_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/downloads","issues_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/issues{/number}","pulls_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/pulls{/number}","milestones_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/milestones{/number}","notifications_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/labels{/name}","releases_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/releases{/id}","deployments_url":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/deployments","created_at":"2017-04-26T19:28:44Z","updated_at":"2018-12-10T18:39:59Z","pushed_at":"2018-12-10T18:39:57Z","git_url":"git://github.com/stefanzweifel/js-swiss-cantons.git","ssh_url":"git@github.com:stefanzweifel/js-swiss-cantons.git","clone_url":"https://github.com/stefanzweifel/js-swiss-cantons.git","svn_url":"https://github.com/stefanzweifel/js-swiss-cantons","homepage":"","size":619,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/pulls/80"},"html":{"href":"https://github.com/stefanzweifel/js-swiss-cantons/pull/80"},"issue":{"href":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/issues/80"},"comments":{"href":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/pulls/80/comments"},"review_comment":{"href":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/pulls/80/commits"},"statuses":{"href":"https://api.github.com/repos/stefanzweifel/js-swiss-cantons/statuses/b2555c5099b5f6d70d7c4f6c8181d0ec8ec5e428"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":3,"additions":116,"deletions":0,"changed_files":5}}
{"actor":{"display_login":"Floriferous"}}