File tree Expand file tree Collapse file tree 5 files changed +20
-24
lines changed
Expand file tree Collapse file tree 5 files changed +20
-24
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " leancloud-storage" ,
3- "version" : " 1.4 .0" ,
3+ "version" : " 2.0.0-beta .0" ,
44 "homepage" : " https://github.com/leancloud/javascript-sdk" ,
55 "authors" : [
66
Original file line number Diff line number Diff line change 1- # 2.0.0-beta.0 (2016-9-27 )
1+ # 2.0.0-beta.0 (2016-9-29 )
22### Breaking Changes
33* 移除了所有 Backbone callbacks 回调风格的参数,请使用 Promise 处理异步操作的结果:
44
1616 );
1717 ```
1818
19- * ` AV.Promise ` 现在是一个满足 Promises/A+ 标准的实现,所有非标准的方法已被移除,所有非标准的行为已被修正。关于标准 Promise 的更多信息推荐阅读 [ 《JavaScript Promise 迷你书》] ( http://liubin.org/promises-book/ ) 。
19+ * ` AV.Promise ` 现在是一个满足 Promises/A+ 标准的实现,所有非标准的方法已被移除,所有非标准的行为已被修正。关于标准 Promise 的更多信息推荐阅读 [ 《JavaScript Promise 迷你书》] ( http://liubin.org/promises-book/ )
2020
21- * 如果你 extend 的 ` AV.Object ` 子类重写了 ` validate ` 方法,当属性无效时现在需要 throw 一个 Error(之前是 return 一个 Error)。相应的,` AV.Object#set ` 方法如果 set 的值无效,需要通过 try catch 捕获异常(之前通过检查返回值是 false)。
21+ * 如果你 extend 的 ` AV.Object ` 子类重写了 ` validate ` 方法,当属性无效时现在需要 throw 一个 Error(之前是 return 一个 Error)。相应的,` AV.Object#set ` 方法如果 set 的值无效,需要通过 try catch 捕获异常(之前通过检查返回值是 false)
2222
2323 ``` javascript
2424 // 之前的用法
4949 tom .save ();
5050 ```
5151
52- * ` AV.User#_linkWith ` 的第二个参数中的 ` options.authData ` 字段提升为第二个参数。
52+ * ` AV.Query ` 中的大部分 API 启用了更加严格的参数检查。特别的,对于以下 API,当指定 value 的值为 ` undefined ` 时会抛出异常(之前会直接忽略这个条件或限制)
53+
54+ - 参数形如 ` (key, value) ` 类型的条件限制 API,如 ` AV.Query#equalTo(key, value) `
55+ - ` AV.Query#limit(value) `
56+ - ` AV.Query#select(value) `
57+
58+
59+ * ` AV.Query#get ` 方法现在尊重 Class 的 get 权限设置(之前检查的是 find 权限)
60+
61+ * ` AV.User#_linkWith ` 的第二个参数中的 ` options.authData ` 字段提升为第二个参数
5362
5463 ``` javascript
5564 // 之前的用法
7685### Bug Fixes
7786* 修复了应用内社交模块的方法在未登录状态下传入了 sessionToken 仍然抛未登录异常的问题
7887
88+ ### Features
89+ * 对象存储功能支持微信小程序
90+ * 绝大部分会发起网络请求的 API(如保存一个对象)支持通过 ` option.useMasterKey ` 参数指定该次操作是否要使用 masterKey,设置了该选项的操作会忽略全局的 useMasterKey 设置
91+
7992## 1.4.0 (2016-9-1)
8093相比于 v1.4.0-beta.0:
8194* 修复了 ` AV.File#save ` 方法的 ` onprogress ` 参数失效的问题
Original file line number Diff line number Diff line change 11{
22 "name" : " leancloud-storage" ,
3- "version" : " 1.4 .0" ,
3+ "version" : " 2.0.0-beta .0" ,
44 "main" : " ./dist/node/index.js" ,
55 "description" : " LeanCloud JavaScript SDK." ,
66 "repository" : {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- /**
2- * 每位工程师都有保持代码优雅的义务
3- * Each engineer has a duty to keep the code elegant
4- **/
5-
6- module . exports = 'js1.4.0' ;
1+ module . exports = 'js2.0.0-beta.0' ;
You can’t perform that action at this time.
0 commit comments