{"action":"created","comment":{"url":"https://api.github.com/repos/ali-sdk/ali-oss/pulls/comments/58321306","id":58321306,"diff_hunk":"@@ -64,11 +65,20 @@ function Client(options) {\n \n   if (this.options.endpoint) {\n     this.options.endpoint = this._setEndpoint(this.options.endpoint);\n-  } else if(this.options.region) {\n+  } else if (this.options.region) {\n     this.options.endpoint = this._setRegion(\n       this.options.region, this.options.internal, this.options.secure);\n+    deprecate('options.region is deprecated, please use `options.endpoint = ' + this.options.endpoint.format().replace(/\\/$/, '') + '` instead');","path":"lib/client.js","position":25,"original_position":25,"commit_id":"f6919a55b101c1708e6814ce84ed1416e00edae9","original_commit_id":"61d43daa79d900e5aeaf9612568d76e2694df344","user":{"login":"rockuw","id":1209779,"avatar_url":"https://avatars.githubusercontent.com/u/1209779?v=3","gravatar_id":"","url":"https://api.github.com/users/rockuw","html_url":"https://github.com/rockuw","followers_url":"https://api.github.com/users/rockuw/followers","following_url":"https://api.github.com/users/rockuw/following{/other_user}","gists_url":"https://api.github.com/users/rockuw/gists{/gist_id}","starred_url":"https://api.github.com/users/rockuw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rockuw/subscriptions","organizations_url":"https://api.github.com/users/rockuw/orgs","repos_url":"https://api.github.com/users/rockuw/repos","events_url":"https://api.github.com/users/rockuw/events{/privacy}","received_events_url":"https://api.github.com/users/rockuw/received_events","type":"User","site_admin":false},"body":"region参数不要废弃吧，这是公网用户最方便的使用方式。\r\n\r\n强制填写endpoint一是更复杂，二是很多用户会错填成bucket-name.oss-cn-hangzhou.aliyuncs.com","created_at":"2016-04-04T00:57:28Z","updated_at":"2016-04-04T00:57:28Z","html_url":"https://github.com/ali-sdk/ali-oss/pull/54#discussion_r58321306","pull_request_url":"https://api.github.com/repos/ali-sdk/ali-oss/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/ali-sdk/ali-oss/pulls/comments/58321306"},"html":{"href":"https://github.com/ali-sdk/ali-oss/pull/54#discussion_r58321306"},"pull_request":{"href":"https://api.github.com/repos/ali-sdk/ali-oss/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/ali-sdk/ali-oss/pulls/54","id":55857385,"html_url":"https://github.com/ali-sdk/ali-oss/pull/54","diff_url":"https://github.com/ali-sdk/ali-oss/pull/54.diff","patch_url":"https://github.com/ali-sdk/ali-oss/pull/54.patch","issue_url":"https://api.github.com/repos/ali-sdk/ali-oss/issues/54","number":54,"state":"open","locked":false,"title":"Introduce getObjectUrl method","user":{"login":"JacksonTian","id":327019,"avatar_url":"https://avatars.githubusercontent.com/u/327019?v=3","gravatar_id":"","url":"https://api.github.com/users/JacksonTian","html_url":"https://github.com/JacksonTian","followers_url":"https://api.github.com/users/JacksonTian/followers","following_url":"https://api.github.com/users/JacksonTian/following{/other_user}","gists_url":"https://api.github.com/users/JacksonTian/gists{/gist_id}","starred_url":"https://api.github.com/users/JacksonTian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JacksonTian/subscriptions","organizations_url":"https://api.github.com/users/JacksonTian/orgs","repos_url":"https://api.github.com/users/JacksonTian/repos","events_url":"https://api.github.com/users/JacksonTian/events{/privacy}","received_events_url":"https://api.github.com/users/JacksonTian/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-13T05:55:49Z","updated_at":"2016-04-04T00:57:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"514a2f1bc9baaf3cacec55ed6fc3c747d3bfb794","assignee":{"login":"fengmk2","id":156269,"avatar_url":"https://avatars.githubusercontent.com/u/156269?v=3","gravatar_id":"","url":"https://api.github.com/users/fengmk2","html_url":"https://github.com/fengmk2","followers_url":"https://api.github.com/users/fengmk2/followers","following_url":"https://api.github.com/users/fengmk2/following{/other_user}","gists_url":"https://api.github.com/users/fengmk2/gists{/gist_id}","starred_url":"https://api.github.com/users/fengmk2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengmk2/subscriptions","organizations_url":"https://api.github.com/users/fengmk2/orgs","repos_url":"https://api.github.com/users/fengmk2/repos","events_url":"https://api.github.com/users/fengmk2/events{/privacy}","received_events_url":"https://api.github.com/users/fengmk2/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ali-sdk/ali-oss/pulls/54/commits","review_comments_url":"https://api.github.com/repos/ali-sdk/ali-oss/pulls/54/comments","review_comment_url":"https://api.github.com/repos/ali-sdk/ali-oss/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ali-sdk/ali-oss/issues/54/comments","statuses_url":"https://api.github.com/repos/ali-sdk/ali-oss/statuses/f6919a55b101c1708e6814ce84ed1416e00edae9","head":{"label":"ali-sdk:object_url","ref":"object_url","sha":"f6919a55b101c1708e6814ce84ed1416e00edae9","user":{"login":"ali-sdk","id":11186302,"avatar_url":"https://avatars.githubusercontent.com/u/11186302?v=3","gravatar_id":"","url":"https://api.github.com/users/ali-sdk","html_url":"https://github.com/ali-sdk","followers_url":"https://api.github.com/users/ali-sdk/followers","following_url":"https://api.github.com/users/ali-sdk/following{/other_user}","gists_url":"https://api.github.com/users/ali-sdk/gists{/gist_id}","starred_url":"https://api.github.com/users/ali-sdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ali-sdk/subscriptions","organizations_url":"https://api.github.com/users/ali-sdk/orgs","repos_url":"https://api.github.com/users/ali-sdk/repos","events_url":"https://api.github.com/users/ali-sdk/events{/privacy}","received_events_url":"https://api.github.com/users/ali-sdk/received_events","type":"Organization","site_admin":false},"repo":{"id":18427025,"name":"ali-oss","full_name":"ali-sdk/ali-oss","owner":{"login":"ali-sdk","id":11186302,"avatar_url":"https://avatars.githubusercontent.com/u/11186302?v=3","gravatar_id":"","url":"https://api.github.com/users/ali-sdk","html_url":"https://github.com/ali-sdk","followers_url":"https://api.github.com/users/ali-sdk/followers","following_url":"https://api.github.com/users/ali-sdk/following{/other_user}","gists_url":"https://api.github.com/users/ali-sdk/gists{/gist_id}","starred_url":"https://api.github.com/users/ali-sdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ali-sdk/subscriptions","organizations_url":"https://api.github.com/users/ali-sdk/orgs","repos_url":"https://api.github.com/users/ali-sdk/repos","events_url":"https://api.github.com/users/ali-sdk/events{/privacy}","received_events_url":"https://api.github.com/users/ali-sdk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ali-sdk/ali-oss","description":"aliyun OSS(open storage service) nodejs client","fork":false,"url":"https://api.github.com/repos/ali-sdk/ali-oss","forks_url":"https://api.github.com/repos/ali-sdk/ali-oss/forks","keys_url":"https://api.github.com/repos/ali-sdk/ali-oss/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ali-sdk/ali-oss/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ali-sdk/ali-oss/teams","hooks_url":"https://api.github.com/repos/ali-sdk/ali-oss/hooks","issue_events_url":"https://api.github.com/repos/ali-sdk/ali-oss/issues/events{/number}","events_url":"https://api.github.com/repos/ali-sdk/ali-oss/events","assignees_url":"https://api.github.com/repos/ali-sdk/ali-oss/assignees{/user}","branches_url":"https://api.github.com/repos/ali-sdk/ali-oss/branches{/branch}","tags_url":"https://api.github.com/repos/ali-sdk/ali-oss/tags","blobs_url":"https://api.github.com/repos/ali-sdk/ali-oss/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ali-sdk/ali-oss/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ali-sdk/ali-oss/git/refs{/sha}","trees_url":"https://api.github.com/repos/ali-sdk/ali-oss/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ali-sdk/ali-oss/statuses/{sha}","languages_url":"https://api.github.com/repos/ali-sdk/ali-oss/languages","stargazers_url":"https://api.github.com/repos/ali-sdk/ali-oss/stargazers","contributors_url":"https://api.github.com/repos/ali-sdk/ali-oss/contributors","subscribers_url":"https://api.github.com/repos/ali-sdk/ali-oss/subscribers","subscription_url":"https://api.github.com/repos/ali-sdk/ali-oss/subscription","commits_url":"https://api.github.com/repos/ali-sdk/ali-oss/commits{/sha}","git_commits_url":"https://api.github.com/repos/ali-sdk/ali-oss/git/commits{/sha}","comments_url":"https://api.github.com/repos/ali-sdk/ali-oss/comments{/number}","issue_comment_url":"https://api.github.com/repos/ali-sdk/ali-oss/issues/comments{/number}","contents_url":"https://api.github.com/repos/ali-sdk/ali-oss/contents/{+path}","compare_url":"https://api.github.com/repos/ali-sdk/ali-oss/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ali-sdk/ali-oss/merges","archive_url":"https://api.github.com/repos/ali-sdk/ali-oss/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ali-sdk/ali-oss/downloads","issues_url":"https://api.github.com/repos/ali-sdk/ali-oss/issues{/number}","pulls_url":"https://api.github.com/repos/ali-sdk/ali-oss/pulls{/number}","milestones_url":"https://api.github.com/repos/ali-sdk/ali-oss/milestones{/number}","notifications_url":"https://api.github.com/repos/ali-sdk/ali-oss/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ali-sdk/ali-oss/labels{/name}","releases_url":"https://api.github.com/repos/ali-sdk/ali-oss/releases{/id}","deployments_url":"https://api.github.com/repos/ali-sdk/ali-oss/deployments","created_at":"2014-04-04T04:04:08Z","updated_at":"2016-04-03T17:01:31Z","pushed_at":"2016-04-03T17:58:32Z","git_url":"git://github.com/ali-sdk/ali-oss.git","ssh_url":"git@github.com:ali-sdk/ali-oss.git","clone_url":"https://github.com/ali-sdk/ali-oss.git","svn_url":"https://github.com/ali-sdk/ali-oss","homepage":"","size":2918,"stargazers_count":52,"watchers_count":52,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":11,"forks":12,"open_issues":11,"watchers":52,"default_branch":"master"}},"base":{"label":"ali-sdk:master","ref":"master","sha":"c4584233cb420a3b4087fd0f569d439b9834a529","user":{"login":"ali-sdk","id":11186302,"avatar_url":"https://avatars.githubusercontent.com/u/11186302?v=3","gravatar_id":"","url":"https://api.github.com/users/ali-sdk","html_url":"https://github.com/ali-sdk","followers_url":"https://api.github.com/users/ali-sdk/followers","following_url":"https://api.github.com/users/ali-sdk/following{/other_user}","gists_url":"https://api.github.com/users/ali-sdk/gists{/gist_id}","starred_url":"https://api.github.com/users/ali-sdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ali-sdk/subscriptions","organizations_url":"https://api.github.com/users/ali-sdk/orgs","repos_url":"https://api.github.com/users/ali-sdk/repos","events_url":"https://api.github.com/users/ali-sdk/events{/privacy}","received_events_url":"https://api.github.com/users/ali-sdk/received_events","type":"Organization","site_admin":false},"repo":{"id":18427025,"name":"ali-oss","full_name":"ali-sdk/ali-oss","owner":{"login":"ali-sdk","id":11186302,"avatar_url":"https://avatars.githubusercontent.com/u/11186302?v=3","gravatar_id":"","url":"https://api.github.com/users/ali-sdk","html_url":"https://github.com/ali-sdk","followers_url":"https://api.github.com/users/ali-sdk/followers","following_url":"https://api.github.com/users/ali-sdk/following{/other_user}","gists_url":"https://api.github.com/users/ali-sdk/gists{/gist_id}","starred_url":"https://api.github.com/users/ali-sdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ali-sdk/subscriptions","organizations_url":"https://api.github.com/users/ali-sdk/orgs","repos_url":"https://api.github.com/users/ali-sdk/repos","events_url":"https://api.github.com/users/ali-sdk/events{/privacy}","received_events_url":"https://api.github.com/users/ali-sdk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ali-sdk/ali-oss","description":"aliyun OSS(open storage service) nodejs client","fork":false,"url":"https://api.github.com/repos/ali-sdk/ali-oss","forks_url":"https://api.github.com/repos/ali-sdk/ali-oss/forks","keys_url":"https://api.github.com/repos/ali-sdk/ali-oss/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ali-sdk/ali-oss/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ali-sdk/ali-oss/teams","hooks_url":"https://api.github.com/repos/ali-sdk/ali-oss/hooks","issue_events_url":"https://api.github.com/repos/ali-sdk/ali-oss/issues/events{/number}","events_url":"https://api.github.com/repos/ali-sdk/ali-oss/events","assignees_url":"https://api.github.com/repos/ali-sdk/ali-oss/assignees{/user}","branches_url":"https://api.github.com/repos/ali-sdk/ali-oss/branches{/branch}","tags_url":"https://api.github.com/repos/ali-sdk/ali-oss/tags","blobs_url":"https://api.github.com/repos/ali-sdk/ali-oss/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ali-sdk/ali-oss/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ali-sdk/ali-oss/git/refs{/sha}","trees_url":"https://api.github.com/repos/ali-sdk/ali-oss/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ali-sdk/ali-oss/statuses/{sha}","languages_url":"https://api.github.com/repos/ali-sdk/ali-oss/languages","stargazers_url":"https://api.github.com/repos/ali-sdk/ali-oss/stargazers","contributors_url":"https://api.github.com/repos/ali-sdk/ali-oss/contributors","subscribers_url":"https://api.github.com/repos/ali-sdk/ali-oss/subscribers","subscription_url":"https://api.github.com/repos/ali-sdk/ali-oss/subscription","commits_url":"https://api.github.com/repos/ali-sdk/ali-oss/commits{/sha}","git_commits_url":"https://api.github.com/repos/ali-sdk/ali-oss/git/commits{/sha}","comments_url":"https://api.github.com/repos/ali-sdk/ali-oss/comments{/number}","issue_comment_url":"https://api.github.com/repos/ali-sdk/ali-oss/issues/comments{/number}","contents_url":"https://api.github.com/repos/ali-sdk/ali-oss/contents/{+path}","compare_url":"https://api.github.com/repos/ali-sdk/ali-oss/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ali-sdk/ali-oss/merges","archive_url":"https://api.github.com/repos/ali-sdk/ali-oss/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ali-sdk/ali-oss/downloads","issues_url":"https://api.github.com/repos/ali-sdk/ali-oss/issues{/number}","pulls_url":"https://api.github.com/repos/ali-sdk/ali-oss/pulls{/number}","milestones_url":"https://api.github.com/repos/ali-sdk/ali-oss/milestones{/number}","notifications_url":"https://api.github.com/repos/ali-sdk/ali-oss/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ali-sdk/ali-oss/labels{/name}","releases_url":"https://api.github.com/repos/ali-sdk/ali-oss/releases{/id}","deployments_url":"https://api.github.com/repos/ali-sdk/ali-oss/deployments","created_at":"2014-04-04T04:04:08Z","updated_at":"2016-04-03T17:01:31Z","pushed_at":"2016-04-03T17:58:32Z","git_url":"git://github.com/ali-sdk/ali-oss.git","ssh_url":"git@github.com:ali-sdk/ali-oss.git","clone_url":"https://github.com/ali-sdk/ali-oss.git","svn_url":"https://github.com/ali-sdk/ali-oss","homepage":"","size":2918,"stargazers_count":52,"watchers_count":52,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":11,"forks":12,"open_issues":11,"watchers":52,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ali-sdk/ali-oss/pulls/54"},"html":{"href":"https://github.com/ali-sdk/ali-oss/pull/54"},"issue":{"href":"https://api.github.com/repos/ali-sdk/ali-oss/issues/54"},"comments":{"href":"https://api.github.com/repos/ali-sdk/ali-oss/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/ali-sdk/ali-oss/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/ali-sdk/ali-oss/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ali-sdk/ali-oss/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/ali-sdk/ali-oss/statuses/f6919a55b101c1708e6814ce84ed1416e00edae9"}}}}