Skip to content

Commit 8db5010

Browse files
committed
chore(release): v4.0.0
1 parent 1fefd04 commit 8db5010

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

changelog.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# 4.0.0 (2019-10-31)
2+
3+
### BREAKING CHANGES
4+
5+
- 对于中国节点应用,初始化 SDK 时必须通过 `serverURLs` 参数指定服务器地址。中国节点的应用必须要绑定自有域名后才能使用,这个改动是为让没有指定服务器地址时的异常更加明确。国际版应用不受影响。
6+
- SDK 使用的域名更新。国际版应用新增 `app-router.com`,中国节点应用不受影响。`app-router.leancloud.cn` 均不再使用。如果国际版应用在微信小程序等需要域名白名单的平台上运行,需要更新白名单配置,开发者可以访问应用的 LeanCloud 控制台获取最新的域名列表。
7+
- `AV.Query#toJSON` 方法现在返回完整的信息,可以通过新增的 `AV.Query.fromJSON` 方法反序列化为 `AV.Query`。原 `AV.Query#toJSON` 方法已被重命名为一个内部方法 `AV.Query#_getParams`
8+
- 移除了 Bower 支持。
9+
10+
### Features
11+
12+
- 新增了 `AV.Query.fromJSON` 方法可以通过一个 JSON 构造一个 `AV.Query`。与 `AV.Query#toJSON` 结合可以实现在服务端与客户端之间传输 `AV.Query`
13+
14+
### Bug fixes
15+
16+
- 修复了在 `AV.init` 时指定 `production` 不生效的问题。
17+
- 修复了多处 TypeScript 定义问题。
18+
119
# 3.15.0 (2019-08-05)
220

321
### Features

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "leancloud-storage",
3-
"version": "3.15.0",
3+
"version": "4.0.0",
44
"main": "./dist/node/index.js",
55
"description": "LeanCloud JavaScript SDK.",
66
"repository": {

src/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = '3.15.0';
1+
module.exports = '4.0.0';

0 commit comments

Comments
 (0)