From 0bc843e41349fbd0ec1829657a76b4ed7e9724c0 Mon Sep 17 00:00:00 2001 From: Lee Yeh Date: Mon, 16 Mar 2020 19:10:36 +0800 Subject: [PATCH] chore(release): v5.0.0-rc.1 --- changelog.md | 27 +++++++++++++++++++++++++++ im.d.ts | 1 + package-lock.json | 2 +- package.json | 2 +- 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 im.d.ts diff --git a/changelog.md b/changelog.md index c623b6ae2..bc1ad9c46 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,30 @@ + + +# [5.0.0-rc.1](https://github.com/leancloud/js-realtime-sdk/compare/v5.0.0-rc.0...v5.0.0-rc.1) (2020-03-16) + +这个版本中 SDK 新增了一个运行环境无关的版本,开发者可以在此基础上应用目标运行环境的 Adapters 来适配相应的运行平台。 + +### Features + +- 增加 `/im` 入口,这是一个运行环境无关的版本,需要配置 Adapters 后才能运行。可以通过以下方式引入该版本: + + ```js + const { Realtime, setAdapters } = require('leancloud-realtime/im'); + ``` + +### BREAKING CHANGES + +- 更新了内置支持平台的预编译版本文件名以更好的反应不同版本之间的差异: + + | 原文件名 | 新文件名 | + | ----------------------------------------------- | ----------------------------------- | + | - | im.js(新) | + | realtime.js | im-node.js | + | realtime-browser.js
realtime-browser.min.js | im-browser.js
im-browser.min.js | + | realtime-weapp.js
realtime-weapp.min.js | im-weapp.js
im-weapp.min.js | + + 如果你使用了 CDN 或其他直接引用预编译版本的方式加载的 SDK,需要按照上面的对应关系更新文件名。 + # [5.0.0-rc.0](https://github.com/leancloud/js-realtime-sdk/compare/v5.0.0-beta.3...v5.0.0-rc.0) (2020-03-12) diff --git a/im.d.ts b/im.d.ts new file mode 100644 index 000000000..f4603a24f --- /dev/null +++ b/im.d.ts @@ -0,0 +1 @@ +export * from './realtime'; diff --git a/package-lock.json b/package-lock.json index cabd118c8..2559f893e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "leancloud-realtime", - "version": "5.0.0-rc.0", + "version": "5.0.0-rc.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index dc57cffc8..c1248e804 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "leancloud-realtime", - "version": "5.0.0-rc.0", + "version": "5.0.0-rc.1", "description": "LeanCloud Realtime Message JavaScript SDK", "main": "./dist/im-node.js", "jsnext:main": "./src/index.js",