@feathersjs/socketio-client 4.5.8 → 4.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/lib/index.js +9 -0
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.5.12](https://github.com/feathersjs/feathers/compare/v4.5.11...v4.5.12) (2022-01-06)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Update all dependencies for crow release ([#2520](https://github.com/feathersjs/feathers/issues/2520)) ([1c63e6b](https://github.com/feathersjs/feathers/commit/1c63e6be37ff85edbe8dd318415ca6919864c033))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [4.5.11](https://github.com/feathersjs/feathers/compare/v4.5.10...v4.5.11) (2020-12-05)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **socketio-client:** Throw an error and show a warning if someone tries to use socket.io-client v3 ([#2135](https://github.com/feathersjs/feathers/issues/2135)) ([cc3521c](https://github.com/feathersjs/feathers/commit/cc3521c935a1cbd690e29b7057998e3898f282db))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [4.5.10](https://github.com/feathersjs/feathers/compare/v4.5.9...v4.5.10) (2020-11-08)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [4.5.9](https://github.com/feathersjs/feathers/compare/v4.5.8...v4.5.9) (2020-10-09)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
## [4.5.8](https://github.com/feathersjs/feathers/compare/v4.5.7...v4.5.8) (2020-08-12)
|
|
7
45
|
|
|
8
46
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
package/lib/index.js
CHANGED
|
@@ -5,6 +5,15 @@ function socketioClient (connection, options) {
|
|
|
5
5
|
throw new Error('Socket.io connection needs to be provided');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
if (connection && connection.io && connection.io.engine &&
|
|
9
|
+
connection.io.engine.transport && connection.io.engine.transport.query &&
|
|
10
|
+
connection.io.engine.transport.query.EIO > 3
|
|
11
|
+
) {
|
|
12
|
+
// tslint:disable-next-line
|
|
13
|
+
console.error('You are trying to use the Socket.io client version 3 or later with Feathers v4 which only supports Socket.io version 2. Please use socket.io-client version 2 instead.');
|
|
14
|
+
throw new Error('socket.io-client must be version 2.x');
|
|
15
|
+
}
|
|
16
|
+
|
|
8
17
|
const defaultService = function (name) {
|
|
9
18
|
const events = Object.keys(this.eventMappings || {})
|
|
10
19
|
.map(method => this.eventMappings[method]);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feathersjs/socketio-client",
|
|
3
3
|
"description": "The client for Socket.io through feathers-socketio",
|
|
4
|
-
"version": "4.5.
|
|
4
|
+
"version": "4.5.12",
|
|
5
5
|
"homepage": "https://feathersjs.com",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "index.d.ts",
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@feathersjs/transport-commons": "^4.5.
|
|
44
|
-
"@types/socket.io-client": "^1.4.
|
|
43
|
+
"@feathersjs/transport-commons": "^4.5.12",
|
|
44
|
+
"@types/socket.io-client": "^1.4.36"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@feathersjs/commons": "^4.5.
|
|
48
|
-
"@feathersjs/feathers": "^4.5.
|
|
49
|
-
"@feathersjs/socketio": "^4.5.
|
|
50
|
-
"@feathersjs/tests": "^4.5.
|
|
47
|
+
"@feathersjs/commons": "^4.5.12",
|
|
48
|
+
"@feathersjs/feathers": "^4.5.12",
|
|
49
|
+
"@feathersjs/socketio": "^4.5.12",
|
|
50
|
+
"@feathersjs/tests": "^4.5.12",
|
|
51
51
|
"feathers-memory": "^4.1.0",
|
|
52
|
-
"mocha": "^
|
|
53
|
-
"socket.io-client": "^2.3.
|
|
52
|
+
"mocha": "^9.1.3",
|
|
53
|
+
"socket.io-client": "^2.3.1"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "8697ecc85808437e9aab63e5d2327679340c5401"
|
|
56
56
|
}
|