diff --git a/changelog.md b/changelog.md index 71c77191..b926ba67 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,27 @@ +## 4.10.0(2021-01-19) + +### Features + +- 使用 masterKey 上传文件时,可自定义文件的 key : + ```js + const file = new AV.File(name, data); + file.save({ + useMasterKey: true, + key: 'custom-file-key', + }); + ``` + +### Internal Changes + +- 升级了 browser 、node 和 weapp 平台的 Adapters: + package|from|to + -|-|- + @leancloud/adapter-types|`4.0.0`|`5.0.0` + @leancloud/platform-adapters-browser|`1.4.0`|`1.5.2` + @leancloud/platform-adapters-node|`1.4.0`|`1.5.2` + @leancloud/platform-adapters-weapp|`1.5.0`|`1.6.1` + 使用其他依赖 `@leancloud/adapter-types@5` 的 Adapters 也需要升级 `leancloud-storage` 到 4.10.0 。 + # 4.9.0(2020-12-18) ### Bug Fixes diff --git a/package-lock.json b/package-lock.json index 0850f534..cc6986a1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "leancloud-storage", - "version": "4.9.0", + "version": "4.10.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index bd614bd4..916cbcb9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "leancloud-storage", - "version": "4.9.0", + "version": "4.10.0", "main": "./dist/node/entry/index.js", "description": "LeanCloud JavaScript SDK.", "repository": { diff --git a/src/version.js b/src/version.js index 2da46143..ede112b8 100644 --- a/src/version.js +++ b/src/version.js @@ -1 +1 @@ -module.exports = '4.9.0'; +module.exports = '4.10.0';