Skip to content

Commit 9874d2f

Browse files
committed
Merge remote-tracking branch 'origin/master' into reinitialize-warning
2 parents b3db75d + ab03cf6 commit 9874d2f

File tree

7 files changed

+22
-13
lines changed

7 files changed

+22
-13
lines changed

README.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# LeanCloud Javascript SDK
1+
# LeanCloud JavaScript SDK
22

3-
Javascript SDK for [LeanCloud](http://leancloud.cn).
3+
JavaScript SDK for [LeanCloud](http://leancloud.cn/).
44

55
# 安装
66

@@ -19,7 +19,7 @@ $ bower install leancloud-javascript-sdk
1919

2020
```html
2121
<script src="https://cdn1.lncld.net/static/js/av-mini-{版本号}.js"></script>
22-
//或者你只是用最核心的存储、推送等功能,可以使用精简版的core.js
22+
// 或者你只是用最核心的存储、推送等功能,可以使用精简版的core.js
2323
<script src="https://cdn1.lncld.net/static/js/av-core-mini-{版本号}.js"></script>
2424
```
2525

@@ -30,7 +30,7 @@ $ bower install leancloud-javascript-sdk
3030
# 开发指南
3131

3232
* [JavaScript SDK 开发指南](http://leancloud.cn/docs/js_guide.html)
33-
* [JavaScript SDK API文档](http://leancloud.cn/docs/api/javascript/index.html)
33+
* [JavaScript SDK API 文档](http://leancloud.cn/docs/api/javascript/index.html)
3434
* [云代码开发指南](http://leancloud.cn/docs/cloud_code_guide.html)
3535

3636

@@ -48,10 +48,6 @@ gulp pack
4848
gulp release
4949
```
5050

51-
# 协议
52-
53-
[MIT License](http://opensource.org/licenses/MIT)
54-
5551
# 内部发布
5652

5753
## 修改版本号
@@ -60,19 +56,19 @@ gulp release
6056
* package.json
6157
* bower.json
6258

63-
## 修改 changelog
59+
## 修改 Changelog
6460

6561
## Release
6662

6763
```
6864
gulp release
6965
```
7066

71-
## 提交,打上 tag 并推送到 Github
67+
## 提交,打上 tag 并推送到 GitHub
7268

73-
tag 要求为 `v{版本号}`, dist 目录也需要更新提交。
69+
tag 要求为 `v{版本号}`dist 目录也需要更新提交。
7470

75-
## 发布到 bower
71+
## 发布到 bower
7672
```
7773
bower register leancloud-javascript-sdk [email protected]:leancloud/javascript-sdk.git
7874
```
@@ -89,3 +85,6 @@ npm publish
8985
gulp upload
9086
```
9187

88+
# License
89+
90+
[MIT License](http://opensource.org/licenses/MIT)

lib/bigquery.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@ module.exports = function(AV) {
99
* 部分函数仅在云引擎运行环境下有效。
1010
* </em></strong></p>
1111
*/
12-
AV.BigQuery = AV.Insight;
12+
Object.defineProperty(AV, "BigQuery", {
13+
get: function() {
14+
console.warn("AV.BigQuery is deprecated, please use AV.Insight instead.");
15+
return AV.Insight;
16+
},
17+
});
1318
};

lib/collection.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module.exports = function(AV) {
2727
* documentation</a>.</p>
2828
*/
2929
AV.Collection = function(models, options) {
30+
console.warn("AV.Collection is deprecated, please don't use it anymore.");
3031
options = options || {};
3132
if (options.comparator) {
3233
this.comparator = options.comparator;

lib/facebook.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ module.exports = function(AV) {
8080
* explicitly if this behavior is required by your application.
8181
*/
8282
init: function(options) {
83+
console.warn("AV.FacebookUtils is deprecated, please don't use it anymore.");
8384
if (typeof(FB) === 'undefined') {
8485
throw "The Facebook JavaScript SDK must be loaded before calling init.";
8586
}

lib/history.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = function(AV) {
2121
* <p><strong><em>Available in the client SDK only.</em></strong></p>
2222
*/
2323
AV.History = function() {
24+
console.warn("AV.History is deprecated, please don't use it anymore.");
2425
this.handlers = [];
2526
_.bindAll(this, 'checkUrl');
2627
};

lib/router.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ module.exports = function(AV) {
1616
* <p><strong><em>Available in the client SDK only.</em></strong></p>
1717
*/
1818
AV.Router = function(options) {
19+
console.warn("AV.Router is deprecated, please don't use it anymore.");
1920
options = options || {};
2021
if (options.routes) {
2122
this.routes = options.routes;

lib/view.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ module.exports = function(AV) {
1717
* <p><strong><em>Available in the client SDK only.</em></strong></p>
1818
*/
1919
AV.View = function(options) {
20+
console.warn("AV.View is deprecated, please don't use it anymore.");
2021
this.cid = _.uniqueId('view');
2122
this._configure(options || {});
2223
this._ensureElement();

0 commit comments

Comments
 (0)