File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 - " 8"
66 - " 10"
77script :
8- - npm test
8+ - npm test
Original file line number Diff line number Diff 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
3939async function run() {
4040 const item = await wq .shift ();
@@ -48,6 +48,8 @@ setTimeout(() => {
4848run ();
4949```
5050
51+ ### JS
52+
5153``` js
5254const WaitQueue = require (' wait-queue' );
5355const 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
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments