File tree 5 files changed +1379
-1847
lines changed
5 files changed +1379
-1847
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ - 2021/07/19 - 9.0.0
4
+ - Support rxjs 7
3
5
- 2020/03/20 - 8.0.1
4
6
- Ensure ` close ` is called even when the ` open ` event is not received.
5
7
- 2019/09/22 - 8.0.0
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " rxjs-websockets" ,
3
- "version" : " 8 .0.1 " ,
4
- "description" : " rxjs 6 websockets library" ,
3
+ "version" : " 9 .0.0 " ,
4
+ "description" : " rxjs 7 websockets library" ,
5
5
"author" :
" insidewhy <[email protected] >" ,
6
6
"license" : " ISC" ,
7
7
"repository" : {
42
42
"jest-watch" : " yarn jest --watch"
43
43
},
44
44
"peerDependencies" : {
45
- "rxjs" : " ^6.1 .0"
45
+ "rxjs" : " ^7.0 .0"
46
46
},
47
47
"devDependencies" : {
48
- "@types/jest" : " 25.2.1 " ,
49
- "@typescript-eslint/eslint-plugin" : " 2.34.0 " ,
50
- "@typescript-eslint/parser" : " 2.34.0 " ,
51
- "concurrently" : " 5.1 .0" ,
52
- "eslint" : " 6.8 .0" ,
53
- "eslint-config-prettier" : " 6.12 .0" ,
54
- "husky" : " 4.2.5 " ,
55
- "jest" : " 27.0.4 " ,
56
- "prettier" : " 2.0.4 " ,
57
- "pretty-quick" : " 3.0.2 " ,
48
+ "@types/jest" : " 26.0.24 " ,
49
+ "@typescript-eslint/eslint-plugin" : " 4.28.3 " ,
50
+ "@typescript-eslint/parser" : " 4.28.3 " ,
51
+ "concurrently" : " 6.2 .0" ,
52
+ "eslint" : " 7.31 .0" ,
53
+ "eslint-config-prettier" : " 8.3 .0" ,
54
+ "husky" : " 7.0.1 " ,
55
+ "jest" : " 27.0.6 " ,
56
+ "prettier" : " 2.3.2 " ,
57
+ "pretty-quick" : " 3.1.1 " ,
58
58
"rimraf" : " 3.0.2" ,
59
- "rxjs" : " 6.6.3 " ,
60
- "typescript" : " 4.0.3 "
59
+ "rxjs" : " ^7.2.0 " ,
60
+ "typescript" : " 4.3.5 "
61
61
}
62
62
}
Original file line number Diff line number Diff line change @@ -24,6 +24,14 @@ npm install -S rxjs-websockets
24
24
yarn add rxjs-websockets
25
25
```
26
26
27
+ For rxjs 6 support, rxjs-websockets 8 is needed.
28
+
29
+ ``` bash
30
+ npm install -S rxjs-websockets@8
31
+ # or
32
+ yarn add rxjs-websockets@8
33
+ ```
34
+
27
35
## Changelog
28
36
29
37
[ Changelog here] ( changelog.md )
@@ -155,10 +163,11 @@ function makeJsonWebSocketObservable(
155
163
): Observable <unknown > {
156
164
const socket$ = makeWebSocketObservable <string >(url , options )
157
165
return socket$ .pipe (
158
- map ((getResponses : GetWebSocketReponses <string >) => (input$ : Observable <object >) =>
159
- getResponses (input$ .pipe (map ((request ) => JSON .stringify (request )))).pipe (
160
- map ((response ) => JSON .parse (response )),
161
- ),
166
+ map (
167
+ (getResponses : GetWebSocketReponses <string >) => (input$ : Observable <object >) =>
168
+ getResponses (input$ .pipe (map ((request ) => JSON .stringify (request )))).pipe (
169
+ map ((response ) => JSON .parse (response )),
170
+ ),
162
171
),
163
172
)
164
173
}
Original file line number Diff line number Diff line change 1
1
import { TestScheduler } from 'rxjs/testing'
2
- import { of } from 'rxjs'
2
+ import { of , throwError } from 'rxjs'
3
3
import { delay , catchError , switchMap } from 'rxjs/operators'
4
- import { throwError } from 'rxjs/internal/observable/throwError'
5
4
6
5
import connect , { normalClosureMessage , WebSocketLike } from '.'
7
6
You can’t perform that action at this time.
0 commit comments