@feathersjs/socketio-client 5.0.0-pre.9 → 5.0.0
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 +130 -201
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/lib/index.d.ts +12 -6
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -1
- package/package.json +23 -19
- package/src/index.ts +42 -19
package/CHANGELOG.md
CHANGED
|
@@ -3,491 +3,415 @@
|
|
|
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
|
-
# [5.0.0
|
|
6
|
+
# [5.0.0](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.38...v5.0.0) (2023-02-24)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
9
9
|
|
|
10
|
+
# [5.0.0-pre.38](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.37...v5.0.0-pre.38) (2023-02-17)
|
|
10
11
|
|
|
12
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
11
13
|
|
|
14
|
+
# [5.0.0-pre.37](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.36...v5.0.0-pre.37) (2023-02-09)
|
|
12
15
|
|
|
16
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
13
17
|
|
|
14
|
-
# [5.0.0-pre.
|
|
18
|
+
# [5.0.0-pre.36](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.35...v5.0.0-pre.36) (2023-01-29)
|
|
15
19
|
|
|
16
20
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
17
21
|
|
|
22
|
+
# [5.0.0-pre.35](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.34...v5.0.0-pre.35) (2023-01-12)
|
|
18
23
|
|
|
24
|
+
### Features
|
|
19
25
|
|
|
26
|
+
- **generators:** Move core code generators to shared generators package ([#2982](https://github.com/feathersjs/feathers/issues/2982)) ([0328d22](https://github.com/feathersjs/feathers/commit/0328d2292153870bc43958f73d2c6f288a8cec17))
|
|
20
27
|
|
|
21
|
-
|
|
22
|
-
# [5.0.0-pre.7](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.6...v5.0.0-pre.7) (2021-08-09)
|
|
28
|
+
# [5.0.0-pre.34](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.33...v5.0.0-pre.34) (2022-12-14)
|
|
23
29
|
|
|
24
30
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
25
31
|
|
|
32
|
+
# [5.0.0-pre.33](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.32...v5.0.0-pre.33) (2022-11-08)
|
|
26
33
|
|
|
34
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
27
35
|
|
|
36
|
+
# [5.0.0-pre.32](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.31...v5.0.0-pre.32) (2022-10-26)
|
|
28
37
|
|
|
38
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
29
39
|
|
|
30
|
-
# [5.0.0-pre.
|
|
40
|
+
# [5.0.0-pre.31](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.30...v5.0.0-pre.31) (2022-10-12)
|
|
31
41
|
|
|
32
42
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
33
43
|
|
|
44
|
+
# [5.0.0-pre.30](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.29...v5.0.0-pre.30) (2022-10-07)
|
|
34
45
|
|
|
46
|
+
### Features
|
|
35
47
|
|
|
48
|
+
- **core:** Allow to unregister services at runtime ([#2756](https://github.com/feathersjs/feathers/issues/2756)) ([d16601f](https://github.com/feathersjs/feathers/commit/d16601f2277dca5357866ffdefba2a611f6dc7fa))
|
|
36
49
|
|
|
50
|
+
# [5.0.0-pre.29](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.28...v5.0.0-pre.29) (2022-09-16)
|
|
37
51
|
|
|
38
|
-
|
|
39
|
-
|
|
52
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
40
53
|
|
|
41
|
-
|
|
54
|
+
# [5.0.0-pre.28](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.27...v5.0.0-pre.28) (2022-08-03)
|
|
42
55
|
|
|
43
|
-
|
|
56
|
+
### Bug Fixes
|
|
44
57
|
|
|
58
|
+
- **cli:** Improve generated application and client ([#2701](https://github.com/feathersjs/feathers/issues/2701)) ([bd55ffb](https://github.com/feathersjs/feathers/commit/bd55ffb812e89bf215f4515e7f137656ea888c3f))
|
|
45
59
|
|
|
60
|
+
# [5.0.0-pre.27](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.26...v5.0.0-pre.27) (2022-07-13)
|
|
46
61
|
|
|
62
|
+
### Bug Fixes
|
|
47
63
|
|
|
64
|
+
- **socketio-client:** Make Socket.io client event target compatible ([#2686](https://github.com/feathersjs/feathers/issues/2686)) ([716c49a](https://github.com/feathersjs/feathers/commit/716c49a270e4be5e5276192092c292f72ffcfa19))
|
|
48
65
|
|
|
49
|
-
# [5.0.0-pre.
|
|
66
|
+
# [5.0.0-pre.26](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.25...v5.0.0-pre.26) (2022-06-22)
|
|
50
67
|
|
|
51
68
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
52
69
|
|
|
70
|
+
# [5.0.0-pre.25](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.24...v5.0.0-pre.25) (2022-06-22)
|
|
53
71
|
|
|
72
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
54
73
|
|
|
74
|
+
# [5.0.0-pre.24](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.23...v5.0.0-pre.24) (2022-06-21)
|
|
55
75
|
|
|
76
|
+
### Features
|
|
56
77
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### Bug Fixes
|
|
78
|
+
- **cli:** Add typed client to a generated app ([#2669](https://github.com/feathersjs/feathers/issues/2669)) ([5b801b5](https://github.com/feathersjs/feathers/commit/5b801b5017ddc3eaa95622b539f51d605916bc86))
|
|
61
79
|
|
|
62
|
-
|
|
80
|
+
# [5.0.0-pre.23](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.22...v5.0.0-pre.23) (2022-06-06)
|
|
63
81
|
|
|
82
|
+
### Features
|
|
64
83
|
|
|
84
|
+
- **client:** Improve client side custom method support ([#2654](https://github.com/feathersjs/feathers/issues/2654)) ([c138acf](https://github.com/feathersjs/feathers/commit/c138acf50affbe6b66177d084d3c7a3e9220f09f))
|
|
65
85
|
|
|
86
|
+
# [5.0.0-pre.22](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.21...v5.0.0-pre.22) (2022-05-24)
|
|
66
87
|
|
|
88
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
67
89
|
|
|
68
|
-
# [5.0.0-pre.
|
|
90
|
+
# [5.0.0-pre.21](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.20...v5.0.0-pre.21) (2022-05-23)
|
|
69
91
|
|
|
70
92
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
71
93
|
|
|
94
|
+
# [5.0.0-pre.20](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.19...v5.0.0-pre.20) (2022-05-04)
|
|
72
95
|
|
|
96
|
+
### Bug Fixes
|
|
73
97
|
|
|
98
|
+
- **dependencies:** Lock monorepo package version numbers ([#2623](https://github.com/feathersjs/feathers/issues/2623)) ([5640c10](https://github.com/feathersjs/feathers/commit/5640c1020cc139994e695d658c08bad3494db507))
|
|
74
99
|
|
|
100
|
+
# [5.0.0-pre.19](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.18...v5.0.0-pre.19) (2022-05-01)
|
|
75
101
|
|
|
76
|
-
|
|
77
|
-
|
|
102
|
+
### Features
|
|
78
103
|
|
|
79
|
-
|
|
104
|
+
- **typescript:** Improve adapter typings ([#2605](https://github.com/feathersjs/feathers/issues/2605)) ([3b2ca0a](https://github.com/feathersjs/feathers/commit/3b2ca0a6a8e03e8390272c4d7e930b4bffdaacf5))
|
|
80
105
|
|
|
81
|
-
|
|
106
|
+
# [5.0.0-pre.18](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.17...v5.0.0-pre.18) (2022-04-11)
|
|
82
107
|
|
|
108
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
83
109
|
|
|
110
|
+
# [5.0.0-pre.17](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.16...v5.0.0-pre.17) (2022-02-15)
|
|
84
111
|
|
|
112
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
85
113
|
|
|
114
|
+
# [5.0.0-pre.16](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.15...v5.0.0-pre.16) (2022-01-12)
|
|
86
115
|
|
|
87
|
-
|
|
116
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
88
117
|
|
|
118
|
+
# [5.0.0-pre.15](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.14...v5.0.0-pre.15) (2021-11-27)
|
|
89
119
|
|
|
90
120
|
### Bug Fixes
|
|
91
121
|
|
|
92
|
-
|
|
93
|
-
* **socketio-client:** Fix client transport-commons reference ([#2164](https://github.com/feathersjs/feathers/issues/2164)) ([3a42c54](https://github.com/feathersjs/feathers/commit/3a42c544058456b19c7e21827226541bfa6ad621))
|
|
122
|
+
- **typescript:** Overall typing improvements ([#2478](https://github.com/feathersjs/feathers/issues/2478)) ([b8eb804](https://github.com/feathersjs/feathers/commit/b8eb804158556d9651a8607e3c3fda15e0bfd110))
|
|
94
123
|
|
|
124
|
+
# [5.0.0-pre.14](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.13...v5.0.0-pre.14) (2021-10-13)
|
|
95
125
|
|
|
96
|
-
|
|
126
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
97
127
|
|
|
98
|
-
|
|
99
|
-
* Feathers v5 core refactoring and features ([#2255](https://github.com/feathersjs/feathers/issues/2255)) ([2dafb7c](https://github.com/feathersjs/feathers/commit/2dafb7ce14ba57406aeec13d10ca45b1e709bee9))
|
|
100
|
-
* **transport-commons:** New built-in high performance radix router ([#2177](https://github.com/feathersjs/feathers/issues/2177)) ([6d18065](https://github.com/feathersjs/feathers/commit/6d180651b4eb40289ecea3df3575f207aa6c5d1f))
|
|
128
|
+
# [5.0.0-pre.13](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.12...v5.0.0-pre.13) (2021-10-13)
|
|
101
129
|
|
|
130
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
102
131
|
|
|
132
|
+
# [5.0.0-pre.12](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.11...v5.0.0-pre.12) (2021-10-12)
|
|
103
133
|
|
|
134
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
104
135
|
|
|
136
|
+
# [5.0.0-pre.11](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.10...v5.0.0-pre.11) (2021-10-06)
|
|
105
137
|
|
|
106
|
-
|
|
138
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
107
139
|
|
|
140
|
+
# [5.0.0-pre.10](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.9...v5.0.0-pre.10) (2021-09-19)
|
|
108
141
|
|
|
142
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
109
143
|
|
|
110
|
-
# [5.0.0-pre.
|
|
144
|
+
# [5.0.0-pre.9](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.8...v5.0.0-pre.9) (2021-08-09)
|
|
111
145
|
|
|
112
146
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
113
147
|
|
|
148
|
+
# [5.0.0-pre.8](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.7...v5.0.0-pre.8) (2021-08-09)
|
|
114
149
|
|
|
150
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
115
151
|
|
|
152
|
+
# [5.0.0-pre.7](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.6...v5.0.0-pre.7) (2021-08-09)
|
|
116
153
|
|
|
154
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
117
155
|
|
|
118
|
-
# [5.0.0-pre.
|
|
156
|
+
# [5.0.0-pre.6](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.5...v5.0.0-pre.6) (2021-08-08)
|
|
119
157
|
|
|
158
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
120
159
|
|
|
121
|
-
|
|
160
|
+
# [5.0.0-pre.5](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.4...v5.0.0-pre.5) (2021-06-23)
|
|
122
161
|
|
|
162
|
+
### Features
|
|
123
163
|
|
|
124
|
-
|
|
164
|
+
- **adapter-commons:** Add support for params.adapter option and move memory adapter to @feathersjs/memory ([#2367](https://github.com/feathersjs/feathers/issues/2367)) ([a43e7da](https://github.com/feathersjs/feathers/commit/a43e7da22b6b981a96d1321736ea9a0cb924fb4f))
|
|
125
165
|
|
|
126
|
-
|
|
166
|
+
# [5.0.0-pre.4](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.3...v5.0.0-pre.4) (2021-05-13)
|
|
127
167
|
|
|
168
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
128
169
|
|
|
170
|
+
# [5.0.0-pre.3](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.2...v5.0.0-pre.3) (2021-04-21)
|
|
129
171
|
|
|
172
|
+
### Bug Fixes
|
|
130
173
|
|
|
174
|
+
- **typescript:** Improve TypeScript backwards compatibility ([#2310](https://github.com/feathersjs/feathers/issues/2310)) ([f33be73](https://github.com/feathersjs/feathers/commit/f33be73fc46a533efb15df9aab0658e3240d3897))
|
|
131
175
|
|
|
132
|
-
|
|
176
|
+
# [5.0.0-pre.2](https://github.com/feathersjs/feathers/compare/v5.0.0-beta.1...v5.0.0-pre.2) (2021-04-06)
|
|
133
177
|
|
|
134
178
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
135
179
|
|
|
180
|
+
# [5.0.0-beta.1](https://github.com/feathersjs/feathers/compare/v5.0.0-beta.0...v5.0.0-beta.1) (2021-04-03)
|
|
136
181
|
|
|
182
|
+
### Bug Fixes
|
|
137
183
|
|
|
184
|
+
- **dependencies:** Fix transport-commons dependency and update other dependencies ([#2284](https://github.com/feathersjs/feathers/issues/2284)) ([05b03b2](https://github.com/feathersjs/feathers/commit/05b03b27b40604d956047e3021d8053c3a137616))
|
|
138
185
|
|
|
186
|
+
# [5.0.0-beta.0](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.1...v5.0.0-beta.0) (2021-03-28)
|
|
139
187
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
188
|
+
### Bug Fixes
|
|
143
189
|
|
|
144
|
-
|
|
190
|
+
- Update Grant usage and other dependencies ([#2264](https://github.com/feathersjs/feathers/issues/2264)) ([7b0f8fa](https://github.com/feathersjs/feathers/commit/7b0f8fad252419ed0ad0bf259cdf3104d322ab60))
|
|
191
|
+
- **socketio-client:** Fix client transport-commons reference ([#2164](https://github.com/feathersjs/feathers/issues/2164)) ([3a42c54](https://github.com/feathersjs/feathers/commit/3a42c544058456b19c7e21827226541bfa6ad621))
|
|
145
192
|
|
|
146
|
-
|
|
193
|
+
### Features
|
|
147
194
|
|
|
195
|
+
- **core:** Public custom service methods ([#2270](https://github.com/feathersjs/feathers/issues/2270)) ([e65abfb](https://github.com/feathersjs/feathers/commit/e65abfb5388df6c19a11c565cf1076a29f32668d))
|
|
196
|
+
- Feathers v5 core refactoring and features ([#2255](https://github.com/feathersjs/feathers/issues/2255)) ([2dafb7c](https://github.com/feathersjs/feathers/commit/2dafb7ce14ba57406aeec13d10ca45b1e709bee9))
|
|
197
|
+
- **transport-commons:** New built-in high performance radix router ([#2177](https://github.com/feathersjs/feathers/issues/2177)) ([6d18065](https://github.com/feathersjs/feathers/commit/6d180651b4eb40289ecea3df3575f207aa6c5d1f))
|
|
148
198
|
|
|
199
|
+
# [5.0.0-pre.1](https://github.com/feathersjs/feathers/compare/v4.5.11...v5.0.0-pre.1) (2020-12-17)
|
|
149
200
|
|
|
150
|
-
|
|
201
|
+
# [5.0.0-pre.0](https://github.com/feathersjs/feathers/compare/v4.5.4...v5.0.0-pre.0) (2020-05-19)
|
|
151
202
|
|
|
152
203
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
153
204
|
|
|
205
|
+
# [5.0.0-pre.0](https://github.com/feathersjs/feathers/compare/v4.5.4...v5.0.0-pre.0) (2020-05-19)
|
|
154
206
|
|
|
207
|
+
## [4.5.11](https://github.com/feathersjs/feathers/compare/v4.5.10...v4.5.11) (2020-12-05)
|
|
155
208
|
|
|
209
|
+
### Bug Fixes
|
|
156
210
|
|
|
211
|
+
- **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))
|
|
157
212
|
|
|
158
|
-
## [4.5.
|
|
213
|
+
## [4.5.10](https://github.com/feathersjs/feathers/compare/v4.5.9...v4.5.10) (2020-11-08)
|
|
159
214
|
|
|
160
215
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
161
216
|
|
|
217
|
+
## [4.5.9](https://github.com/feathersjs/feathers/compare/v4.5.8...v4.5.9) (2020-10-09)
|
|
162
218
|
|
|
219
|
+
## [4.5.9](https://github.com/feathersjs/feathers/compare/v4.5.8...v4.5.9) (2020-10-09)
|
|
163
220
|
|
|
221
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
164
222
|
|
|
165
|
-
|
|
166
|
-
## [4.5.6](https://github.com/feathersjs/feathers/compare/v4.5.5...v4.5.6) (2020-07-12)
|
|
223
|
+
## [4.5.8](https://github.com/feathersjs/feathers/compare/v4.5.7...v4.5.8) (2020-08-12)
|
|
167
224
|
|
|
168
225
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
169
226
|
|
|
227
|
+
## [4.5.7](https://github.com/feathersjs/feathers/compare/v4.5.6...v4.5.7) (2020-07-24)
|
|
170
228
|
|
|
229
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
171
230
|
|
|
231
|
+
## [4.5.6](https://github.com/feathersjs/feathers/compare/v4.5.5...v4.5.6) (2020-07-12)
|
|
172
232
|
|
|
233
|
+
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
173
234
|
|
|
174
235
|
## [4.5.5](https://github.com/feathersjs/feathers/compare/v4.5.4...v4.5.5) (2020-07-11)
|
|
175
236
|
|
|
176
237
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
177
238
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
239
|
## [4.5.4](https://github.com/feathersjs/feathers/compare/v4.5.3...v4.5.4) (2020-04-29)
|
|
183
240
|
|
|
184
241
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
185
242
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
243
|
## [4.5.3](https://github.com/feathersjs/feathers/compare/v4.5.2...v4.5.3) (2020-04-17)
|
|
191
244
|
|
|
192
245
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
193
246
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
247
|
## [4.5.2](https://github.com/feathersjs/feathers/compare/v4.5.1...v4.5.2) (2020-03-04)
|
|
199
248
|
|
|
200
249
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
201
250
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
251
|
## [4.5.1](https://github.com/feathersjs/feathers/compare/v4.5.0...v4.5.1) (2020-01-24)
|
|
207
252
|
|
|
208
253
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
209
254
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
255
|
# [4.5.0](https://github.com/feathersjs/feathers/compare/v4.4.3...v4.5.0) (2020-01-18)
|
|
215
256
|
|
|
216
257
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
217
258
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
259
|
## [4.4.3](https://github.com/feathersjs/feathers/compare/v4.4.1...v4.4.3) (2019-12-06)
|
|
223
260
|
|
|
224
261
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
225
262
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
263
|
## [4.4.1](https://github.com/feathersjs/feathers/compare/v4.4.0...v4.4.1) (2019-11-27)
|
|
231
264
|
|
|
232
265
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
233
266
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
267
|
# [4.4.0](https://github.com/feathersjs/feathers/compare/v4.3.11...v4.4.0) (2019-11-27)
|
|
239
268
|
|
|
240
269
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
241
270
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
271
|
## [4.3.11](https://github.com/feathersjs/feathers/compare/v4.3.10...v4.3.11) (2019-11-11)
|
|
247
272
|
|
|
248
273
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
249
274
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
275
|
## [4.3.10](https://github.com/feathersjs/feathers/compare/v4.3.9...v4.3.10) (2019-10-26)
|
|
255
276
|
|
|
256
277
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
257
278
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
279
|
## [4.3.9](https://github.com/feathersjs/feathers/compare/v4.3.8...v4.3.9) (2019-10-26)
|
|
263
280
|
|
|
264
281
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
265
282
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
283
|
## [4.3.7](https://github.com/feathersjs/feathers/compare/v4.3.6...v4.3.7) (2019-10-14)
|
|
271
284
|
|
|
272
285
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
273
286
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
287
|
## [4.3.5](https://github.com/feathersjs/feathers/compare/v4.3.4...v4.3.5) (2019-10-07)
|
|
279
288
|
|
|
280
|
-
|
|
281
289
|
### Bug Fixes
|
|
282
290
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
291
|
+
- Change this reference in client libraries to explicitly passed app ([#1597](https://github.com/feathersjs/feathers/issues/1597)) ([4e4d10a](https://github.com/feathersjs/feathers/commit/4e4d10a))
|
|
288
292
|
|
|
289
293
|
## [4.3.4](https://github.com/feathersjs/feathers/compare/v4.3.3...v4.3.4) (2019-10-03)
|
|
290
294
|
|
|
291
295
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
292
296
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
297
|
## [4.3.3](https://github.com/feathersjs/feathers/compare/v4.3.2...v4.3.3) (2019-09-21)
|
|
298
298
|
|
|
299
299
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
300
300
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
301
|
## [4.3.2](https://github.com/feathersjs/feathers/compare/v4.3.1...v4.3.2) (2019-09-16)
|
|
306
302
|
|
|
307
303
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
308
304
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
305
|
## [4.3.1](https://github.com/feathersjs/feathers/compare/v4.3.0...v4.3.1) (2019-09-09)
|
|
314
306
|
|
|
315
307
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
316
308
|
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
309
|
# [4.3.0](https://github.com/feathersjs/feathers/compare/v4.3.0-pre.4...v4.3.0) (2019-08-27)
|
|
322
310
|
|
|
323
311
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
324
312
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
313
|
# [4.3.0-pre.4](https://github.com/feathersjs/feathers/compare/v4.3.0-pre.3...v4.3.0-pre.4) (2019-08-22)
|
|
330
314
|
|
|
331
315
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
332
316
|
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
317
|
# [4.3.0-pre.3](https://github.com/feathersjs/feathers/compare/v4.3.0-pre.2...v4.3.0-pre.3) (2019-08-19)
|
|
338
318
|
|
|
339
319
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
340
320
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
321
|
# [4.3.0-pre.2](https://github.com/feathersjs/feathers/compare/v4.3.0-pre.1...v4.3.0-pre.2) (2019-08-02)
|
|
346
322
|
|
|
347
323
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
348
324
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
325
|
# [4.3.0-pre.1](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.5...v4.3.0-pre.1) (2019-07-11)
|
|
354
326
|
|
|
355
327
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
356
328
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
329
|
# [4.0.0-pre.5](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.4...v4.0.0-pre.5) (2019-07-10)
|
|
362
330
|
|
|
363
331
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
364
332
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
333
|
# [4.0.0-pre.4](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.3...v4.0.0-pre.4) (2019-07-05)
|
|
370
334
|
|
|
371
335
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
372
336
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
337
|
# [4.0.0-pre.3](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.2...v4.0.0-pre.3) (2019-06-01)
|
|
378
338
|
|
|
379
|
-
|
|
380
339
|
### Bug Fixes
|
|
381
340
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
341
|
+
- Update dependencies and fix tests ([#1373](https://github.com/feathersjs/feathers/issues/1373)) ([d743a7f](https://github.com/feathersjs/feathers/commit/d743a7f))
|
|
387
342
|
|
|
388
343
|
# [4.0.0-pre.2](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.1...v4.0.0-pre.2) (2019-05-15)
|
|
389
344
|
|
|
390
|
-
|
|
391
345
|
### Bug Fixes
|
|
392
346
|
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
347
|
+
- Use `export =` in TypeScript definitions ([#1285](https://github.com/feathersjs/feathers/issues/1285)) ([12d0f4b](https://github.com/feathersjs/feathers/commit/12d0f4b))
|
|
398
348
|
|
|
399
349
|
# [4.0.0-pre.1](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.0...v4.0.0-pre.1) (2019-05-08)
|
|
400
350
|
|
|
401
351
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
402
352
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
353
|
# [4.0.0-pre.0](https://github.com/feathersjs/feathers/compare/v3.2.0-pre.1...v4.0.0-pre.0) (2019-04-21)
|
|
408
354
|
|
|
409
|
-
|
|
410
355
|
### Bug Fixes
|
|
411
356
|
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
357
|
+
- Make Mocha a proper devDependency for every repository ([#1053](https://github.com/feathersjs/feathers/issues/1053)) ([9974803](https://github.com/feathersjs/feathers/commit/9974803))
|
|
358
|
+
- Update adapter common tests ([#1135](https://github.com/feathersjs/feathers/issues/1135)) ([8166dda](https://github.com/feathersjs/feathers/commit/8166dda))
|
|
359
|
+
- Update all dependencies to latest ([#1206](https://github.com/feathersjs/feathers/issues/1206)) ([e51e0f6](https://github.com/feathersjs/feathers/commit/e51e0f6))
|
|
416
360
|
|
|
417
361
|
### Features
|
|
418
362
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
363
|
+
- Add TypeScript definitions ([#1275](https://github.com/feathersjs/feathers/issues/1275)) ([9dd6713](https://github.com/feathersjs/feathers/commit/9dd6713))
|
|
364
|
+
- Allow registering a service at the root level ([#1115](https://github.com/feathersjs/feathers/issues/1115)) ([c73d322](https://github.com/feathersjs/feathers/commit/c73d322))
|
|
365
|
+
- Authentication v3 core server implementation ([#1205](https://github.com/feathersjs/feathers/issues/1205)) ([1bd7591](https://github.com/feathersjs/feathers/commit/1bd7591))
|
|
426
366
|
|
|
427
367
|
## [1.2.1](https://github.com/feathersjs/feathers/compare/@feathersjs/socketio-client@1.2.0...@feathersjs/socketio-client@1.2.1) (2019-01-02)
|
|
428
368
|
|
|
429
|
-
|
|
430
369
|
### Bug Fixes
|
|
431
370
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
371
|
+
- Update adapter common tests ([#1135](https://github.com/feathersjs/feathers/issues/1135)) ([8166dda](https://github.com/feathersjs/feathers/commit/8166dda))
|
|
437
372
|
|
|
438
373
|
<a name="1.2.0"></a>
|
|
439
|
-
# [1.2.0](https://github.com/feathersjs/feathers/compare/@feathersjs/socketio-client@1.1.5...@feathersjs/socketio-client@1.2.0) (2018-12-16)
|
|
440
374
|
|
|
375
|
+
# [1.2.0](https://github.com/feathersjs/feathers/compare/@feathersjs/socketio-client@1.1.5...@feathersjs/socketio-client@1.2.0) (2018-12-16)
|
|
441
376
|
|
|
442
377
|
### Features
|
|
443
378
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
379
|
+
- Allow registering a service at the root level ([#1115](https://github.com/feathersjs/feathers/issues/1115)) ([c73d322](https://github.com/feathersjs/feathers/commit/c73d322))
|
|
449
380
|
|
|
450
381
|
<a name="1.1.5"></a>
|
|
451
|
-
## [1.1.5](https://github.com/feathersjs/feathers/compare/@feathersjs/socketio-client@1.1.4...@feathersjs/socketio-client@1.1.5) (2018-10-25)
|
|
452
382
|
|
|
383
|
+
## [1.1.5](https://github.com/feathersjs/feathers/compare/@feathersjs/socketio-client@1.1.4...@feathersjs/socketio-client@1.1.5) (2018-10-25)
|
|
453
384
|
|
|
454
385
|
### Bug Fixes
|
|
455
386
|
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
387
|
+
- Make Mocha a proper devDependency for every repository ([#1053](https://github.com/feathersjs/feathers/issues/1053)) ([9974803](https://github.com/feathersjs/feathers/commit/9974803))
|
|
461
388
|
|
|
462
389
|
<a name="1.1.4"></a>
|
|
390
|
+
|
|
463
391
|
## [1.1.4](https://github.com/feathersjs/feathers/compare/@feathersjs/socketio-client@1.1.3...@feathersjs/socketio-client@1.1.4) (2018-09-21)
|
|
464
392
|
|
|
465
393
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
466
394
|
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
395
|
<a name="1.1.3"></a>
|
|
396
|
+
|
|
472
397
|
## [1.1.3](https://github.com/feathersjs/feathers/compare/@feathersjs/socketio-client@1.1.2...@feathersjs/socketio-client@1.1.3) (2018-09-17)
|
|
473
398
|
|
|
474
399
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
475
400
|
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
401
|
<a name="1.1.2"></a>
|
|
402
|
+
|
|
481
403
|
## [1.1.2](https://github.com/feathersjs/feathers/compare/@feathersjs/socketio-client@1.1.1...@feathersjs/socketio-client@1.1.2) (2018-09-02)
|
|
482
404
|
|
|
483
405
|
**Note:** Version bump only for package @feathersjs/socketio-client
|
|
484
406
|
|
|
485
407
|
<a name="1.1.1"></a>
|
|
408
|
+
|
|
486
409
|
## 1.1.1
|
|
487
410
|
|
|
488
411
|
- Migrate to Monorepo ([feathers#462](https://github.com/feathersjs/feathers/issues/462))
|
|
489
412
|
|
|
490
413
|
## [v1.1.0](https://github.com/feathersjs/socketio-client/tree/v1.1.0) (2018-02-09)
|
|
414
|
+
|
|
491
415
|
[Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.3...v1.1.0)
|
|
492
416
|
|
|
493
417
|
**Closed issues:**
|
|
@@ -500,6 +424,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
500
424
|
- Update @feathersjs/transport-commons to the latest version 🚀 [\#12](https://github.com/feathersjs/socketio-client/pull/12) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
|
|
501
425
|
|
|
502
426
|
## [v1.0.3](https://github.com/feathersjs/socketio-client/tree/v1.0.3) (2018-02-05)
|
|
427
|
+
|
|
503
428
|
[Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.2...v1.0.3)
|
|
504
429
|
|
|
505
430
|
**Merged pull requests:**
|
|
@@ -508,6 +433,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
508
433
|
- Update mocha to the latest version 🚀 [\#8](https://github.com/feathersjs/socketio-client/pull/8) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
|
|
509
434
|
|
|
510
435
|
## [v1.0.2](https://github.com/feathersjs/socketio-client/tree/v1.0.2) (2018-01-03)
|
|
436
|
+
|
|
511
437
|
[Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.1...v1.0.2)
|
|
512
438
|
|
|
513
439
|
**Merged pull requests:**
|
|
@@ -517,6 +443,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
517
443
|
- Update feathers-memory to the latest version 🚀 [\#5](https://github.com/feathersjs/socketio-client/pull/5) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
|
|
518
444
|
|
|
519
445
|
## [v1.0.1](https://github.com/feathersjs/socketio-client/tree/v1.0.1) (2017-11-16)
|
|
446
|
+
|
|
520
447
|
[Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.0...v1.0.1)
|
|
521
448
|
|
|
522
449
|
**Merged pull requests:**
|
|
@@ -524,6 +451,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
524
451
|
- Add default export for better ES module \(TypeScript\) compatibility [\#4](https://github.com/feathersjs/socketio-client/pull/4) ([daffl](https://github.com/daffl))
|
|
525
452
|
|
|
526
453
|
## [v1.0.0](https://github.com/feathersjs/socketio-client/tree/v1.0.0) (2017-11-01)
|
|
454
|
+
|
|
527
455
|
[Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.0-pre.3...v1.0.0)
|
|
528
456
|
|
|
529
457
|
**Merged pull requests:**
|
|
@@ -531,6 +459,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
531
459
|
- Update dependencies for release [\#3](https://github.com/feathersjs/socketio-client/pull/3) ([daffl](https://github.com/daffl))
|
|
532
460
|
|
|
533
461
|
## [v1.0.0-pre.3](https://github.com/feathersjs/socketio-client/tree/v1.0.0-pre.3) (2017-10-23)
|
|
462
|
+
|
|
534
463
|
[Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.0-pre.2...v1.0.0-pre.3)
|
|
535
464
|
|
|
536
465
|
**Merged pull requests:**
|
|
@@ -538,6 +467,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
538
467
|
- Use scoped npm packages [\#2](https://github.com/feathersjs/socketio-client/pull/2) ([daffl](https://github.com/daffl))
|
|
539
468
|
|
|
540
469
|
## [v1.0.0-pre.2](https://github.com/feathersjs/socketio-client/tree/v1.0.0-pre.2) (2017-10-19)
|
|
470
|
+
|
|
541
471
|
[Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.0-pre.1...v1.0.0-pre.2)
|
|
542
472
|
|
|
543
473
|
**Merged pull requests:**
|
|
@@ -546,5 +476,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
546
476
|
|
|
547
477
|
## [v1.0.0-pre.1](https://github.com/feathersjs/socketio-client/tree/v1.0.0-pre.1) (2017-10-18)
|
|
548
478
|
|
|
549
|
-
|
|
550
|
-
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
|
479
|
+
\* _This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)_
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @feathersjs/socketio-client
|
|
2
2
|
|
|
3
3
|
[](https://github.com/feathersjs/feathers/actions?query=workflow%3ACI)
|
|
4
|
-
[](https://david-dm.org/feathersjs/feathers?path=packages/socketio-client)
|
|
5
4
|
[](https://www.npmjs.com/package/@feathersjs/socketio-client)
|
|
5
|
+
[](https://discord.gg/qa8kez8QBx)
|
|
6
6
|
|
|
7
7
|
> The client for Socket.io Feathers connections
|
|
8
8
|
|
|
@@ -18,6 +18,6 @@ Refer to the [Feathers SocketIO API documentation](https://docs.feathersjs.com/a
|
|
|
18
18
|
|
|
19
19
|
## License
|
|
20
20
|
|
|
21
|
-
Copyright (c)
|
|
21
|
+
Copyright (c) 2023 [Feathers contributors](https://github.com/feathersjs/feathers/graphs/contributors)
|
|
22
22
|
|
|
23
23
|
Licensed under the [MIT license](LICENSE).
|
package/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SocketService } from '@feathersjs/transport-commons/client';
|
|
2
2
|
import { Socket } from 'socket.io-client';
|
|
3
|
+
import { TransportConnection } from '@feathersjs/feathers';
|
|
3
4
|
export { SocketService };
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
declare module '@feathersjs/feathers/lib/declarations' {
|
|
6
|
+
interface FeathersApplication<Services, Settings> {
|
|
7
|
+
/**
|
|
8
|
+
* The Socket.io client instance. Usually does not need
|
|
9
|
+
* to be accessed directly.
|
|
10
|
+
*/
|
|
11
|
+
io?: Socket;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export default function socketioClient<Services = any>(connection: Socket, options?: any): TransportConnection<Services>;
|
package/lib/index.js
CHANGED
|
@@ -22,6 +22,12 @@ function socketioClient(connection, options) {
|
|
|
22
22
|
}
|
|
23
23
|
app.io = connection;
|
|
24
24
|
app.defaultService = defaultService;
|
|
25
|
+
app.mixins.unshift((service, _location, options) => {
|
|
26
|
+
if (options && options.methods && service instanceof client_1.Service) {
|
|
27
|
+
const customMethods = options.methods.filter((name) => !feathers_1.defaultServiceMethods.includes(name));
|
|
28
|
+
service.methods(...customMethods);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
25
31
|
};
|
|
26
32
|
initialize.Service = client_1.Service;
|
|
27
33
|
initialize.service = defaultService;
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,iEAA6E;AAE7E,mDAK6B;AAe7B,SAAwB,cAAc,CAAiB,UAAkB,EAAE,OAAa;IACtF,IAAI,CAAC,UAAU,EAAE;QACf,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAA;KAC7D;IAED,MAAM,cAAc,GAAG,UAAqB,IAAY;QACtD,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,0BAAe,CAAC,CAAA;QAC7C,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE;YAC1C,MAAM;YACN,IAAI;YACJ,UAAU;YACV,MAAM,EAAE,MAAM;SACf,CAAC,CAAA;QAEF,OAAO,IAAI,gBAAO,CAAC,QAAQ,CAAQ,CAAA;IACrC,CAAC,CAAA;IAED,MAAM,UAAU,GAAG,UAAU,GAA0B;QACrD,IAAI,GAAG,CAAC,EAAE,KAAK,SAAS,EAAE;YACxB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAA;SACtE;QAED,GAAG,CAAC,EAAE,GAAG,UAAiB,CAAA;QAC1B,GAAG,CAAC,cAAc,GAAG,cAAc,CAAA;QACnC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;YACjD,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,YAAY,gBAAO,EAAE;gBAC5D,MAAM,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,gCAAqB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAA;gBAE7F,OAAO,CAAC,OAAO,CAAC,GAAG,aAAa,CAAC,CAAA;aAClC;QACH,CAAC,CAAC,CAAA;IACJ,CAAC,CAAA;IAED,UAAU,CAAC,OAAO,GAAG,gBAAO,CAAA;IAC5B,UAAU,CAAC,OAAO,GAAG,cAAc,CAAA;IAEnC,OAAO,UAA2C,CAAA;AACpD,CAAC;AArCD,iCAqCC;AAED,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;IACjC,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,OAAO,CAAC,CAAA;CAC/D"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feathersjs/socketio-client",
|
|
3
3
|
"description": "The client for Socket.io through feathers-socketio",
|
|
4
|
-
"version": "5.0.0
|
|
4
|
+
"version": "5.0.0",
|
|
5
5
|
"homepage": "https://feathersjs.com",
|
|
6
|
-
"main": "lib/
|
|
6
|
+
"main": "lib/",
|
|
7
|
+
"types": "lib/",
|
|
7
8
|
"keywords": [
|
|
8
9
|
"feathers",
|
|
9
10
|
"feathers-plugin"
|
|
@@ -15,7 +16,8 @@
|
|
|
15
16
|
},
|
|
16
17
|
"repository": {
|
|
17
18
|
"type": "git",
|
|
18
|
-
"url": "git://github.com/feathersjs/feathers.git"
|
|
19
|
+
"url": "git://github.com/feathersjs/feathers.git",
|
|
20
|
+
"directory": "packages/socketio-client"
|
|
19
21
|
},
|
|
20
22
|
"author": {
|
|
21
23
|
"name": "Feathers contributors",
|
|
@@ -31,8 +33,10 @@
|
|
|
31
33
|
},
|
|
32
34
|
"scripts": {
|
|
33
35
|
"prepublish": "npm run compile",
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
+
"pack": "npm pack --pack-destination ../generators/test/build",
|
|
37
|
+
"compile": "shx rm -rf lib/ && tsc && npm run pack",
|
|
38
|
+
"mocha": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts",
|
|
39
|
+
"test": "npm run mocha"
|
|
36
40
|
},
|
|
37
41
|
"directories": {
|
|
38
42
|
"lib": "lib"
|
|
@@ -50,21 +54,21 @@
|
|
|
50
54
|
"access": "public"
|
|
51
55
|
},
|
|
52
56
|
"dependencies": {
|
|
53
|
-
"@feathersjs/transport-commons": "^5.0.0
|
|
57
|
+
"@feathersjs/transport-commons": "^5.0.0"
|
|
54
58
|
},
|
|
55
59
|
"devDependencies": {
|
|
56
|
-
"@feathersjs/commons": "^5.0.0
|
|
57
|
-
"@feathersjs/feathers": "^5.0.0
|
|
58
|
-
"@feathersjs/memory": "^5.0.0
|
|
59
|
-
"@feathersjs/socketio": "^5.0.0
|
|
60
|
-
"@feathersjs/tests": "^5.0.0
|
|
61
|
-
"@types/mocha": "^
|
|
62
|
-
"@types/node": "^
|
|
63
|
-
"mocha": "^
|
|
64
|
-
"shx": "^0.3.
|
|
65
|
-
"socket.io-client": "^4.1
|
|
66
|
-
"ts-node": "^10.1
|
|
67
|
-
"typescript": "^4.
|
|
60
|
+
"@feathersjs/commons": "^5.0.0",
|
|
61
|
+
"@feathersjs/feathers": "^5.0.0",
|
|
62
|
+
"@feathersjs/memory": "^5.0.0",
|
|
63
|
+
"@feathersjs/socketio": "^5.0.0",
|
|
64
|
+
"@feathersjs/tests": "^5.0.0",
|
|
65
|
+
"@types/mocha": "^10.0.1",
|
|
66
|
+
"@types/node": "^18.14.1",
|
|
67
|
+
"mocha": "^10.2.0",
|
|
68
|
+
"shx": "^0.3.4",
|
|
69
|
+
"socket.io-client": "^4.6.1",
|
|
70
|
+
"ts-node": "^10.9.1",
|
|
71
|
+
"typescript": "^4.9.5"
|
|
68
72
|
},
|
|
69
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "90caf635aec850550b9d37bea2762af959d9e8d5"
|
|
70
74
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,41 +1,64 @@
|
|
|
1
|
-
import { Service, SocketService } from '@feathersjs/transport-commons/client'
|
|
2
|
-
import { Socket } from 'socket.io-client'
|
|
3
|
-
import {
|
|
1
|
+
import { Service, SocketService } from '@feathersjs/transport-commons/client'
|
|
2
|
+
import { Socket } from 'socket.io-client'
|
|
3
|
+
import {
|
|
4
|
+
Application,
|
|
5
|
+
TransportConnection,
|
|
6
|
+
defaultEventMap,
|
|
7
|
+
defaultServiceMethods
|
|
8
|
+
} from '@feathersjs/feathers'
|
|
4
9
|
|
|
5
|
-
export { SocketService }
|
|
10
|
+
export { SocketService }
|
|
6
11
|
|
|
7
|
-
|
|
12
|
+
declare module '@feathersjs/feathers/lib/declarations' {
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
14
|
+
interface FeathersApplication<Services, Settings> {
|
|
15
|
+
/**
|
|
16
|
+
* The Socket.io client instance. Usually does not need
|
|
17
|
+
* to be accessed directly.
|
|
18
|
+
*/
|
|
19
|
+
io?: Socket
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default function socketioClient<Services = any>(connection: Socket, options?: any) {
|
|
8
24
|
if (!connection) {
|
|
9
|
-
throw new Error('Socket.io connection needs to be provided')
|
|
25
|
+
throw new Error('Socket.io connection needs to be provided')
|
|
10
26
|
}
|
|
11
27
|
|
|
12
28
|
const defaultService = function (this: any, name: string) {
|
|
13
|
-
const events = Object.values(defaultEventMap)
|
|
29
|
+
const events = Object.values(defaultEventMap)
|
|
14
30
|
const settings = Object.assign({}, options, {
|
|
15
31
|
events,
|
|
16
32
|
name,
|
|
17
33
|
connection,
|
|
18
34
|
method: 'emit'
|
|
19
|
-
})
|
|
35
|
+
})
|
|
20
36
|
|
|
21
|
-
return new Service(settings)
|
|
22
|
-
}
|
|
37
|
+
return new Service(settings) as any
|
|
38
|
+
}
|
|
23
39
|
|
|
24
|
-
const initialize = function (app:
|
|
40
|
+
const initialize = function (app: Application<Services>) {
|
|
25
41
|
if (app.io !== undefined) {
|
|
26
|
-
throw new Error('Only one default client provider can be configured')
|
|
42
|
+
throw new Error('Only one default client provider can be configured')
|
|
27
43
|
}
|
|
28
44
|
|
|
29
|
-
app.io = connection
|
|
30
|
-
app.defaultService = defaultService
|
|
31
|
-
|
|
45
|
+
app.io = connection as any
|
|
46
|
+
app.defaultService = defaultService
|
|
47
|
+
app.mixins.unshift((service, _location, options) => {
|
|
48
|
+
if (options && options.methods && service instanceof Service) {
|
|
49
|
+
const customMethods = options.methods.filter((name) => !defaultServiceMethods.includes(name))
|
|
50
|
+
|
|
51
|
+
service.methods(...customMethods)
|
|
52
|
+
}
|
|
53
|
+
})
|
|
54
|
+
}
|
|
32
55
|
|
|
33
|
-
initialize.Service = Service
|
|
34
|
-
initialize.service = defaultService
|
|
56
|
+
initialize.Service = Service
|
|
57
|
+
initialize.service = defaultService
|
|
35
58
|
|
|
36
|
-
return initialize
|
|
59
|
+
return initialize as TransportConnection<Services>
|
|
37
60
|
}
|
|
38
61
|
|
|
39
62
|
if (typeof module !== 'undefined') {
|
|
40
|
-
module.exports = Object.assign(socketioClient, module.exports)
|
|
63
|
+
module.exports = Object.assign(socketioClient, module.exports)
|
|
41
64
|
}
|