{"action":"opened","number":1125,"pull_request":{"url":"https://api.github.com/repos/aws/aws-sdk-js/pulls/1125","id":84698297,"html_url":"https://github.com/aws/aws-sdk-js/pull/1125","diff_url":"https://github.com/aws/aws-sdk-js/pull/1125.diff","patch_url":"https://github.com/aws/aws-sdk-js/pull/1125.patch","issue_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/1125","number":1125,"state":"open","locked":false,"title":"Lazy loads services when requiring the full SDK. Fixes #1124","user":{"login":"chrisradek","id":14189820,"avatar_url":"https://avatars.githubusercontent.com/u/14189820?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisradek","html_url":"https://github.com/chrisradek","followers_url":"https://api.github.com/users/chrisradek/followers","following_url":"https://api.github.com/users/chrisradek/following{/other_user}","gists_url":"https://api.github.com/users/chrisradek/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisradek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisradek/subscriptions","organizations_url":"https://api.github.com/users/chrisradek/orgs","repos_url":"https://api.github.com/users/chrisradek/repos","events_url":"https://api.github.com/users/chrisradek/events{/privacy}","received_events_url":"https://api.github.com/users/chrisradek/received_events","type":"User","site_admin":false},"body":"Service clients will now be lazy loaded when importing the SDK using: `require('aws-sdk')`\r\nThis fixes #1124 which noted that all services were loaded into memory when the SDK was imported, as a result of the changes to support webpack introduced in version `2.6.0` of the SDK.\r\n\r\nNotes:\r\n`doc-custom` was added to contain documentation for service customizations.\r\nService customizations now accept their Service constructor rather than grabbing it from the AWS namespace. Doing this allowed these customizations to be lazy-loaded as well, and doesn't require the service clients to exist on the AWS namespace anymore.\r\n\r\n/cc @LiuJoyceC ","created_at":"2016-09-09T18:40:33Z","updated_at":"2016-09-09T18:40:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/aws/aws-sdk-js/pulls/1125/commits","review_comments_url":"https://api.github.com/repos/aws/aws-sdk-js/pulls/1125/comments","review_comment_url":"https://api.github.com/repos/aws/aws-sdk-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/1125/comments","statuses_url":"https://api.github.com/repos/aws/aws-sdk-js/statuses/e3cef6ff79e0ea1dab3e66d35e537260b5a5b665","head":{"label":"chrisradek:fix-mem-on-load","ref":"fix-mem-on-load","sha":"e3cef6ff79e0ea1dab3e66d35e537260b5a5b665","user":{"login":"chrisradek","id":14189820,"avatar_url":"https://avatars.githubusercontent.com/u/14189820?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisradek","html_url":"https://github.com/chrisradek","followers_url":"https://api.github.com/users/chrisradek/followers","following_url":"https://api.github.com/users/chrisradek/following{/other_user}","gists_url":"https://api.github.com/users/chrisradek/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisradek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisradek/subscriptions","organizations_url":"https://api.github.com/users/chrisradek/orgs","repos_url":"https://api.github.com/users/chrisradek/repos","events_url":"https://api.github.com/users/chrisradek/events{/privacy}","received_events_url":"https://api.github.com/users/chrisradek/received_events","type":"User","site_admin":false},"repo":{"id":43165458,"name":"aws-sdk-js","full_name":"chrisradek/aws-sdk-js","owner":{"login":"chrisradek","id":14189820,"avatar_url":"https://avatars.githubusercontent.com/u/14189820?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisradek","html_url":"https://github.com/chrisradek","followers_url":"https://api.github.com/users/chrisradek/followers","following_url":"https://api.github.com/users/chrisradek/following{/other_user}","gists_url":"https://api.github.com/users/chrisradek/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisradek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisradek/subscriptions","organizations_url":"https://api.github.com/users/chrisradek/orgs","repos_url":"https://api.github.com/users/chrisradek/repos","events_url":"https://api.github.com/users/chrisradek/events{/privacy}","received_events_url":"https://api.github.com/users/chrisradek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chrisradek/aws-sdk-js","description":"AWS SDK for JavaScript in the browser and Node.js","fork":true,"url":"https://api.github.com/repos/chrisradek/aws-sdk-js","forks_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/forks","keys_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/teams","hooks_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/hooks","issue_events_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/issues/events{/number}","events_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/events","assignees_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/assignees{/user}","branches_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/branches{/branch}","tags_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/tags","blobs_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/statuses/{sha}","languages_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/languages","stargazers_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/stargazers","contributors_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/contributors","subscribers_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/subscribers","subscription_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/subscription","commits_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/contents/{+path}","compare_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/merges","archive_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/downloads","issues_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/issues{/number}","pulls_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/pulls{/number}","milestones_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/milestones{/number}","notifications_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/labels{/name}","releases_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/releases{/id}","deployments_url":"https://api.github.com/repos/chrisradek/aws-sdk-js/deployments","created_at":"2015-09-25T17:43:59Z","updated_at":"2016-07-26T18:03:11Z","pushed_at":"2016-09-09T18:35:42Z","git_url":"git://github.com/chrisradek/aws-sdk-js.git","ssh_url":"git@github.com:chrisradek/aws-sdk-js.git","clone_url":"https://github.com/chrisradek/aws-sdk-js.git","svn_url":"https://github.com/chrisradek/aws-sdk-js","homepage":"aws.amazon.com/javascript","size":27725,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"aws:master","ref":"master","sha":"8fd2060d63ff9e2116c99f6118dc451de6798520","user":{"login":"aws","id":2232217,"avatar_url":"https://avatars.githubusercontent.com/u/2232217?v=3","gravatar_id":"","url":"https://api.github.com/users/aws","html_url":"https://github.com/aws","followers_url":"https://api.github.com/users/aws/followers","following_url":"https://api.github.com/users/aws/following{/other_user}","gists_url":"https://api.github.com/users/aws/gists{/gist_id}","starred_url":"https://api.github.com/users/aws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws/subscriptions","organizations_url":"https://api.github.com/users/aws/orgs","repos_url":"https://api.github.com/users/aws/repos","events_url":"https://api.github.com/users/aws/events{/privacy}","received_events_url":"https://api.github.com/users/aws/received_events","type":"Organization","site_admin":false},"repo":{"id":5694513,"name":"aws-sdk-js","full_name":"aws/aws-sdk-js","owner":{"login":"aws","id":2232217,"avatar_url":"https://avatars.githubusercontent.com/u/2232217?v=3","gravatar_id":"","url":"https://api.github.com/users/aws","html_url":"https://github.com/aws","followers_url":"https://api.github.com/users/aws/followers","following_url":"https://api.github.com/users/aws/following{/other_user}","gists_url":"https://api.github.com/users/aws/gists{/gist_id}","starred_url":"https://api.github.com/users/aws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws/subscriptions","organizations_url":"https://api.github.com/users/aws/orgs","repos_url":"https://api.github.com/users/aws/repos","events_url":"https://api.github.com/users/aws/events{/privacy}","received_events_url":"https://api.github.com/users/aws/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aws/aws-sdk-js","description":"AWS SDK for JavaScript in the browser and Node.js","fork":false,"url":"https://api.github.com/repos/aws/aws-sdk-js","forks_url":"https://api.github.com/repos/aws/aws-sdk-js/forks","keys_url":"https://api.github.com/repos/aws/aws-sdk-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aws/aws-sdk-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aws/aws-sdk-js/teams","hooks_url":"https://api.github.com/repos/aws/aws-sdk-js/hooks","issue_events_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/events{/number}","events_url":"https://api.github.com/repos/aws/aws-sdk-js/events","assignees_url":"https://api.github.com/repos/aws/aws-sdk-js/assignees{/user}","branches_url":"https://api.github.com/repos/aws/aws-sdk-js/branches{/branch}","tags_url":"https://api.github.com/repos/aws/aws-sdk-js/tags","blobs_url":"https://api.github.com/repos/aws/aws-sdk-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aws/aws-sdk-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aws/aws-sdk-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/aws/aws-sdk-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aws/aws-sdk-js/statuses/{sha}","languages_url":"https://api.github.com/repos/aws/aws-sdk-js/languages","stargazers_url":"https://api.github.com/repos/aws/aws-sdk-js/stargazers","contributors_url":"https://api.github.com/repos/aws/aws-sdk-js/contributors","subscribers_url":"https://api.github.com/repos/aws/aws-sdk-js/subscribers","subscription_url":"https://api.github.com/repos/aws/aws-sdk-js/subscription","commits_url":"https://api.github.com/repos/aws/aws-sdk-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/aws/aws-sdk-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/aws/aws-sdk-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/aws/aws-sdk-js/contents/{+path}","compare_url":"https://api.github.com/repos/aws/aws-sdk-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aws/aws-sdk-js/merges","archive_url":"https://api.github.com/repos/aws/aws-sdk-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aws/aws-sdk-js/downloads","issues_url":"https://api.github.com/repos/aws/aws-sdk-js/issues{/number}","pulls_url":"https://api.github.com/repos/aws/aws-sdk-js/pulls{/number}","milestones_url":"https://api.github.com/repos/aws/aws-sdk-js/milestones{/number}","notifications_url":"https://api.github.com/repos/aws/aws-sdk-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aws/aws-sdk-js/labels{/name}","releases_url":"https://api.github.com/repos/aws/aws-sdk-js/releases{/id}","deployments_url":"https://api.github.com/repos/aws/aws-sdk-js/deployments","created_at":"2012-09-05T22:31:25Z","updated_at":"2016-09-09T08:15:05Z","pushed_at":"2016-09-09T18:40:33Z","git_url":"git://github.com/aws/aws-sdk-js.git","ssh_url":"git@github.com:aws/aws-sdk-js.git","clone_url":"https://github.com/aws/aws-sdk-js.git","svn_url":"https://github.com/aws/aws-sdk-js","homepage":"aws.amazon.com/javascript","size":30131,"stargazers_count":2506,"watchers_count":2506,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":430,"mirror_url":null,"open_issues_count":77,"forks":430,"open_issues":77,"watchers":2506,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aws/aws-sdk-js/pulls/1125"},"html":{"href":"https://github.com/aws/aws-sdk-js/pull/1125"},"issue":{"href":"https://api.github.com/repos/aws/aws-sdk-js/issues/1125"},"comments":{"href":"https://api.github.com/repos/aws/aws-sdk-js/issues/1125/comments"},"review_comments":{"href":"https://api.github.com/repos/aws/aws-sdk-js/pulls/1125/comments"},"review_comment":{"href":"https://api.github.com/repos/aws/aws-sdk-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aws/aws-sdk-js/pulls/1125/commits"},"statuses":{"href":"https://api.github.com/repos/aws/aws-sdk-js/statuses/e3cef6ff79e0ea1dab3e66d35e537260b5a5b665"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4592,"deletions":2908,"changed_files":107}}
{"actor":{"display_login":"chrisradek"}}