Skip to content

Commit 9a2509a

Browse files
committed
🔖 Release 2.0.0-beta.0
1 parent eecc1ac commit 9a2509a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

API.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ AV.Cloud.define(name: string, options: object, func: function)
6363
* `meta: {remoteAddress}``meta.remoteAddress` 是客户端的 IP.
6464
* `sessionToken?: string`:客户端发来的 sessionToken(`X-LC-Session` 头)。
6565
66-
1.x 兼容模式:在早期版本中,云函数和 before 类的 Hook 是接受两个参数(`request``response`)的,我们会继续兼容这种用法到下一个大版本,希望开发者尽快迁移到 Promise 风格的云函数上。
66+
1.x 兼容模式:在早期版本中,云函数和 before 类的 Hook 是接受两个参数(`request``response`)的,**我们会继续兼容这种用法到下一个大版本,希望开发者尽快迁移到 Promise 风格的云函数上**
6767
6868
### AV.Cloud.Error
6969
@@ -106,7 +106,7 @@ AV.Cloud.run(name: string, data: object, options?: object): Promise
106106
* AV.Cloud.beforeDelete
107107
* AV.Cloud.afterDelete
108108
109-
这些函数的签名:`function(className: string, func: function)`,其中 `func` 是接受一个 Request 对象作为参数,返回 Promise 的函数。在 before 类 Hook 中如果没有抛出异常则视作接受这次操作。如果抛出使用 `AV.Cloud.Error` 构造的异常表示客户端错误,拒绝本次操作;如果抛出其他类型的异常则视作服务器端错误,返回 500 响应并打印错误到标准输出。
109+
这些函数的签名:`function(className: string, func: function)`,其中 `func` 是接受一个 Request 对象作为参数,返回 Promise 的函数。在 before 类 Hook 中如果没有抛出异常则视作接受这次操作。如果抛出使用 `AV.Cloud.Error` 构造的异常表示客户端错误,拒绝本次操作;如果抛出其他类型的异常则视作服务器端错误,返回 500 响应并打印错误到标准输出,也会拒绝本次操作
110110

111111
`Request` 上的属性包括:
112112

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "leanengine",
3-
"version": "2.0.0-beta",
3+
"version": "2.0.0-beta.0",
44
"description": "LeanCloud LeanEngine Node.js SDK.",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)