Skip to content

Commit a972ea3

Browse files
committed
chore(release): bump version to v3.0.0
1 parent 18945d1 commit a972ea3

File tree

6 files changed

+38
-18
lines changed

6 files changed

+38
-18
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ script:
1818
- npm test && codecov
1919
- npm run doc
2020
after_success:
21-
- if [[ "$TRAVIS_BRANCH" == "next" ]] && [[ "${TRAVIS_PULL_REQUEST}" = "false" ]]; then
21+
- if [[ "$TRAVIS_BRANCH" == "master" ]] && [[ "${TRAVIS_PULL_REQUEST}" = "false" ]]; then
2222
./deploy.sh;
2323
./release.sh;
2424
fi

README.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
LeanCloud JavaScript Realtime SDK
22
====
3-
[![Build Status](https://img.shields.io/travis/leancloud/js-realtime-sdk/next.svg?style=flat-square)](https://travis-ci.org/leancloud/js-realtime-sdk/branches)
4-
[![Codecov](https://img.shields.io/codecov/c/github/leancloud/js-realtime-sdk/next.svg?style=flat-square)](https://codecov.io/github/leancloud/js-realtime-sdk?branch=next)
3+
[![Build Status](https://img.shields.io/travis/leancloud/js-realtime-sdk.svg?style=flat-square)](https://travis-ci.org/leancloud/js-realtime-sdk)
4+
[![Codecov](https://img.shields.io/codecov/c/github/leancloud/js-realtime-sdk.svg?style=flat-square)](https://codecov.io/github/leancloud/js-realtime-sdk)
55
[![David](https://img.shields.io/david/leancloud/js-realtime-sdk.svg?style=flat-square)](https://david-dm.org/leancloud/js-realtime-sdk)
66
[![npm](https://img.shields.io/npm/v/leancloud-realtime.svg?style=flat-square)](https://www.npmjs.com/package/leancloud-realtime)
77

88
为您的 JavaScript App 接入 LeanCloud 实时通讯服务。
99

1010
版本说明
1111
----
12-
next 分支上为 3.x 版本
13-
master 分支上为 2.x 版本,将仅得到安全更新,相关文档参见 [2.x 文档](https://leancloud.cn/docs/js_realtime.html)
12+
master 分支为开发版本
13+
v2 分支上为 2.x 版本,将仅得到安全更新,相关文档参见 [2.x 文档](https://leancloud.cn/docs/js_realtime.html)
1414

15-
3.x 与 2.x 的 API 不兼容,以下说明与文档均指 3.x 版本
15+
自 v3 起遵循 [语义化版本](http://semver.org/lang/zh-CN/)
1616

17-
试用 3.x beta 版本
17+
安装稳定版本
1818
```
19-
npm install leancloud-realtime@next
19+
npm install leancloud-realtime
20+
```
21+
22+
安装 v2 版本:
23+
```
24+
npm install leancloud-realtime@2
2025
```
2126

2227
支持的运行环境
@@ -58,7 +63,7 @@ npm install leancloud-realtime@next
5863
0. 编码,更新测试用例
5964
0. 运行 `npm test` 确保测试全部 pass
6065
0. 提交改动,请遵循 [conversational commit message 风格](http://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html)
61-
0. 发起 Pull Request 至 **next 分支**
66+
0. 发起 Pull Request 至 master 分支
6267

6368
### 项目的目录结构
6469
```
@@ -100,7 +105,6 @@ SDK 分为连接层与应用层两部分,只存在应用层对连接层公开
100105
* `Realtime`:开发者使用 SDK 的入口,负责访问 router、创建 connection、创建与管理 clients、创建 messageParser(管理消息类型)、监听 connection 的消息并 dispatch 给对应的 client
101106
* `Client`:所有的 clients 共享一个 connection
102107
* `IMClient`:对应即时通讯中的「用户」,持有 connection 与 conversations,负责创建管理将收到的消息处理后在对应 conversation 上派发,所有的 IMClients 共享一个 messageParser
103-
* `PushClient`:not implemented yet
104108
* `MessageParser` 消息解析器,负责将一个 JSON 格式的消息 parse 为对应的 Message 类
105109
* `Conversation`:实现对话相关的操作
106110
* `ConversationQuery`:对话查询器
@@ -145,17 +149,17 @@ npm run test:browser
145149
npm run build
146150
```
147151
### 持续集成
148-
合并 PR 到 next 分支后持续集成会自动运行 `npm build``npm run doc`,然后将 dist 目录推送到 dist 分支,将文档与 demo 推送到 gh-pages。
152+
合并 PR 到 master 分支后持续集成会自动运行 `npm build``npm run doc`,然后将 dist 目录推送到 dist 分支,将文档与 demo 推送到 gh-pages。
149153

150154
Release Process Workflow
151155
----
152156
0. 遵循 semver 提升 `package.json``bower.json` 中的版本号
153157
0. `npm run changelog` 生成新的 `changelog.md`,润色之
154158
0. Commit `package.json``bower.json``changelog.md`
155-
0. Push to remote `next` branch
159+
0. Push to remote `master` branch
156160
0. 等待持续集成 pass
157161
0. 使用 GitHub 基于 dist 分支生成 pre-release 包(for bower)
158162
0. Fetch and checkout remote `dist` branch 并确认该提交的内容是即将发布的版本
159-
0. npm publish with `next` tag`npm publish --tag=next`,需 npm 协作者身份)
163+
0. npm publish(`npm publish`,需 npm 协作者身份),如果是 pre-release 版本需要带 next tag
160164
0. `grunt upload` 上传到 CDN
161165
0. 发布 leancloud-realtime-typed-messages(`cd typed-messages && npm publish`

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "leancloud-realtime",
3-
"version": "3.0.0-beta.4",
3+
"version": "3.0.0",
44
"homepage": "https://github.com/leancloud/js-realtime-sdk/",
55
"description": "LeanCloud JavaScript Realtime SDK",
66
"main": "dist/realtime.browser.min.js",

changelog.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
<a name="3.0.0"></a>
2+
# 3.0.0 (2016-06-22)
3+
同时发布
4+
- leancloud-realtime-typed-messages 1.0.0
5+
6+
### Bug Fixes
7+
8+
* **TypedMessages:** 修复在部分浏览器中抛出 `Object.assign` 未定义的异常 ([a0fa8ca](https://github.com/leancloud/js-realtime-sdk/commit/a0fa8ca))
9+
10+
11+
### Features
12+
13+
* 兼容 IE10 ([75d325d](https://github.com/leancloud/js-realtime-sdk/commit/75d325d))
14+
15+
16+
117
<a name="3.0.0-beta.4"></a>
218
# 3.0.0-beta.4 (2016-05-30)
319
同时发布

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "leancloud-realtime",
3-
"version": "3.0.0-beta.4",
3+
"version": "3.0.0",
44
"description": "LeanCloud Realtime Message JavaScript SDK",
55
"main": "dist/realtime.js",
66
"jsnext:main": "src/index.js",

typed-messages/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "leancloud-realtime-typed-messages",
3-
"version": "1.0.0-beta.3",
3+
"version": "1.0.0",
44
"description": "TypedMessages for LeanCloud Realtime",
5-
"main": "dist/realtime.js",
5+
"main": "dist/typed-messages.js",
66
"directories": {
77
"test": "test"
88
},
@@ -24,6 +24,6 @@
2424
"homepage": "https://github.com/leancloud/js-realtime-sdk#readme",
2525
"peerDependencies": {
2626
"leancloud-storage": "^1.0.0",
27-
"leancloud-realtime": "^3.0.0-beta.1"
27+
"leancloud-realtime": "^3.0.0"
2828
}
2929
}

0 commit comments

Comments
 (0)