Skip to content

Commit b740357

Browse files
author
Flare
committed
chroe: Update version and doc
1 parent b9f042e commit b740357

3 files changed

Lines changed: 18 additions & 7 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ node_js:
55
- "8"
66
- "10"
77
script:
8-
- npm test
8+
- npm test

README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ Examples
3030
$ npm install wait-queue
3131
```
3232

33-
### await / async
33+
### TypeScript
3434

35-
```js
36-
const WaitQueue = require('wait-queue');
37-
const wq = new WaitQueue();
35+
```typescript
36+
import WaitQueue from 'wait-queue';
37+
const wq = new WaitQueue<string>();
3838

3939
async function run() {
4040
const item = await wq.shift();
@@ -48,6 +48,8 @@ setTimeout(() => {
4848
run();
4949
```
5050

51+
### JS
52+
5153
```js
5254
const WaitQueue = require('wait-queue');
5355
const wq = new WaitQueue();
@@ -66,10 +68,19 @@ setTimeout(function() {
6668

6769
**Build**: Node.js >= 6.9.0
6870

69-
**Run**: Node.js >= 4.0.0
71+
**Run**: Node.js >= 6.9.0
7072

7173
## Change log
7274

75+
### 1.1.3
76+
77+
* Remove node version 4 support, add node 10
78+
* Add TypeScript Generics
79+
80+
### 1.1.2
81+
82+
* Remove babel
83+
7384
### 1.1.1
7485

7586
* Rewrite with TypeScript

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wait-queue",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"description": "A javascript wait queue object handle infinity loop tasks more efficiently (using ES6 class and promise)",
55
"main": "dist/index.js",
66
"directories": {

0 commit comments

Comments
 (0)