Skip to content

Commit

Permalink
chore(release): 1.0.0-rc8
Browse files Browse the repository at this point in the history
  • Loading branch information
leeyeh committed Apr 6, 2016
1 parent 83a6065 commit bc017e6
Show file tree
Hide file tree
Showing 19 changed files with 938 additions and 672 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ JavaScript SDK for [LeanCloud](http://leancloud.cn/).
* 0.x.y 版本,是不兼容 React Native 运行时的老版本 SDK,相对稳定,云引擎主要依赖这个分支版本。
* 1.0.0-x 版本,是我们最新开发的兼容 React Native 运行时的版本,处于开放测试阶段,欢迎大家尝试。我们最终将使用这个分支替代云引擎里的 `0.x.y` 版本。

可以使用以下命令安装 1.0.0-x 版本:`npm install avoscloud-sdk@next`

## 贡献

* fork 这个项目
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "avoscloud-sdk",
"version": "1.0.0-rc7",
"version": "1.0.0-rc8",
"homepage": "https://github.com/leancloud/javascript-sdk",
"authors": [
"killme2008 <[email protected]>"
Expand Down
16 changes: 16 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# 1.0.0-rc8 日期:2016 年 4 月 6 日
* **(BREAKING)** 添加了 AV.init 方法,该方法接收一个名为 options 的参数字典,废弃 AV.initialize 方法。
* **(BREAKING)** 为 AV.Object#save 方法的 options 参数添加了 fetchWhenSave 选项,废弃 AV.Object#fetchWhenSave 方法。
* **(BREAKING)** 添加了 disableCurrentUser 选项(可在 AV.init 方法中设置),当开启时:
* AV.User.current 和 AV.User.currentAsync 打印警告并返回 null。
* signUp, logIn, fetch, become 等方法不再写入全局状态。
* 发起请求时不再向服务器发送 installationId。
* AV.File 不再会自动设置 owner, 请在 data 参数中传入 owner 选项(AV.User 对象)。
* 为所有会发起网络请求的操作(save 等)的 options 参数添加了 sessionToken 选项,可通过传入该选项指定请求所使用的 sessionToken。
* 添加了 AV.User.getSessionToken 方法。
* 添加了 AV.User#logOut 这个实例方法(之前只有类方法)。
* 为 AV.Object#save 方法的 options 参数添加了 query 选项,该次更新操作在对象最新状态满足 query 时才会执行。
* 修正了在某些错误情况下返回值格式不正确的错误。
* 使用了更加安全的鉴权机制,以降低 App Key 在传输过程中泄露的风险。
* 移除了特殊跨域兼容实现,现在遵循 CORS。

# 1.0.0-rc7 日期:2016 年 2 月 16 日
* 添加 AV.Cloud.rpc 方法
* 修复了 `AV.User#fetch` 不会运行回调函数的 bug。
Expand Down
Loading

0 comments on commit bc017e6

Please sign in to comment.