diff --git a/History.md b/History.md new file mode 100644 index 0000000..ecbce43 --- /dev/null +++ b/History.md @@ -0,0 +1,58 @@ + +v1.4.0 / 2019-01-14 +================== + + * use FibPushNS as global namespace. + * add lib/* to .gitignore, add npm/travis-ci badget. + * Merge pull request #7 from richardo2016/master + * [@types] litle fix. + * upgrade dependency. + * Merge pull request #6 from richardo2016/master + * add src directory to .npmignore, fix docs/link.md + +v1.3.0 / 2018-06-17 +=================== + + * 1.3.0 + * migrate src to typescript. + * v1.2.2 + * Merge pull request #5 from LYP949839107/dev + * fix:增加测试用例 + * fix:对推送空消息的情况进行分类 + +v1.2.1 / 2018-05-22 +=================== + + * v1.2.1 + * support lock/unlock. + * enable post data into empty channel. + * Merge pull request #4 from richardo2016/feat/readme + * add README.md and sample code. + * fix date compare error, v1.2.0. + +v1.1.0 / 2018-04-25 +=================== + + * release v1.1.0 + * Merge pull request #3 from LYP949839107/dev + * fix:修复push队列最早时间戳不返回channel + +v1.0.2 / 2018-04-04 +=================== + + * v1.0.2 + * Merge pull request #2 from vickyjam/master + * 优化filter实现 1.避免群发时从ws中查询 2.避免off的时候引用泄漏 + * fix 同一个ws对象多次on导致filter覆盖问题。 + * 封装channel数据发送filter方法,避免污染push内部逻辑。 + * 1.取消异常捕获 2.增加npm test script + * v1.0.2 + * Merge branch 'master' of https://github.com/fibjs/fib-push + * fix double bind on same channel. + * 支持指定用户推送信息 + * 增加异常处理,防止客户端连接断开ws对象没有丢弃的问题 + +v1.0.0 / 2017-12-11 +=================== + + * init diff --git a/README.md b/README.md index d0e2b59..1449184 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ ## fib-push -[![Build Status](https://travis-ci.org/fibjs/fib-push.svg)](https://travis-ci.org/fibjs/fib-push) [![NPM version](https://img.shields.io/npm/v/fib-push.svg)](https://www.npmjs.org/package/fib-push) +[![Build Status](https://travis-ci.org/fibjs/fib-push.svg)](https://travis-ci.org/fibjs/fib-push) +[![Build status](https://ci.appveyor.com/api/projects/status/6l4jxtsea63v75rd?svg=true)](https://ci.appveyor.com/project/richardo2016/fib-push) + `fib-push` is one global service in a fibjs runtime, which provides duplex communication based on **websocket-like** connection, and manage end-2-end connection & **message queue** with **Channel**. One global service is enough in most cases, so we **don't** support multiple instances of `fib-push` at now. diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..8723342 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,22 @@ +environment: + nodejs_version: '6' + matrix: + - VERSION: 0.21.0 + - VERSION: 0.22.0 + - VERSION: 0.23.0 + - VERSION: 0.24.0 + - VERSION: 0.25.0 + - VERSION: 0.26.0 + - VERSION: 0.26.1 + +install: + - ps: Install-Product node $env:nodejs_version + - npm i + - If Not Exist "node_modules\.bin" (mkdir node_modules\.bin) + - curl -fsSL -o node_modules\.bin\fibjs.cab "https://github.com/fibjs/fibjs/releases/download/v%VERSION%/fibjs-v%VERSION%-windows-x64.cab" + - expand node_modules\.bin\fibjs.cab node_modules\.bin\fibjs.exe + +test_script: + - npm run ci + +build: off diff --git a/package.json b/package.json index 5bff587..480e8db 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fib-push", - "version": "1.3.0", + "version": "1.4.0", "description": "", "main": "lib/index", "types": "@types/index.d.ts", @@ -13,11 +13,11 @@ "license": "ISC", "devDependencies": { "@fibjs/ci": "^2.1.0", - "@types/fibjs": "^0.26.0", - "fib-typify": "^0.3.0" + "@types/fibjs": "^0.26.5", + "fib-typify": "^0.5.1" }, "ci": { - "type": "travis", + "type": "travis, appveyor", "version": [ "0.21.0", "0.22.0",