Skip to content

Commit 87b8159

Browse files
committed
chore(release): v4.4.0
1 parent a355867 commit 87b8159

File tree

5 files changed

+33
-4
lines changed

5 files changed

+33
-4
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ npm install leancloud-storage@2 --save
4646
├── dist // 编译之后生成的文件将会在此目录下
4747
│ ├── av.js // 浏览器版本
4848
│ ├── av-min.js
49-
│ ├── av-rn.js // React Native 版本
5049
│ ├── av-weapp.js // 小程序版本
5150
│ ├── av-weapp-min.js
5251
│ ├── node // 目录中为生成的 nodejs 版本代码

changelog.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
# 4.4.0 (2020-03-17)
2+
3+
这个版本中 SDK 新增了运行环境无关的版本,开发者可以在此基础上应用目标运行环境的 Adapters 来适配相应的运行平台。
4+
5+
同时从这个版本开始 SDK 对各类平台的适配策略从之前的内置支持转为通过独立的第三方 Adapters 库支持。各个平台的 Adapters 将由 LeanCloud 与社区共同维护、独立演进、拥有独立的版本号。对于目前已经内置支持的平台,新版的 SDK 依然保留内置了对应的预编译版本,因此这些平台可以沿用之前的使用方式(React Native 除外,因为目前内置的适配实现使用的 API 已经被标记为「不赞成使用」)。
6+
7+
### Features
8+
9+
- 增加 `/core``/core-live-query` 入口,通过这种方式引入的 SDK 不包含运行环境相关的逻辑,需要配置 Adapters 后才能运行。
10+
- React Native 的适配现在通过独立的 Adapters 库(`@leancloud/runtime-adapters-react-native`)支持,因此这个版本的 SDK 中去掉了内置的预编译的 React Native 版本。
11+
12+
<details>
13+
<summary>
14+
适配 React Native 示例
15+
</summary>
16+
17+
```js
18+
const AV = require('leancloud-storage/core');
19+
const reactNativeAdapters = require('@leancloud/runtime-adapters-react-native');
20+
AV.setAdapters(reactNativeAdapters);
21+
```
22+
23+
### Bug Fixes
24+
25+
- 修复了在浏览器中通过引入预编译的 `av-live-query.js` 引入的 SDK 抛异常的问题。这个问题是 v4.3.1 中引入的。
26+
27+
### Internal Changes
28+
29+
- hookKey 现在需要在初始化时传入,SDK 不再自动从环境变量获取其可能的值。
30+
131
## 4.3.1 (2020-03-12)
232

333
这个版本继续了对「更多运行环境支持」的探索,将 SDK 内置的多平台支持使用新的 `Adapter` 模式进行了重构。SDK 支持的运行平台、使用方法都没有变化。

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": "4.3.1",
3+
"version": "4.4.0",
44
"main": "./dist/cjs/entry/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 = '4.3.1';
1+
module.exports = '4.4.0';

0 commit comments

Comments
 (0)