@feathersjs/socketio-client 5.0.0-pre.3 → 5.0.0-pre.31

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 CHANGED
@@ -3,440 +3,381 @@
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-pre.3](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.2...v5.0.0-pre.3) (2021-04-21)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * **typescript:** Improve TypeScript backwards compatibility ([#2310](https://github.com/feathersjs/feathers/issues/2310)) ([f33be73](https://github.com/feathersjs/feathers/commit/f33be73fc46a533efb15df9aab0658e3240d3897))
6
+ # [5.0.0-pre.31](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.30...v5.0.0-pre.31) (2022-10-12)
12
7
 
8
+ **Note:** Version bump only for package @feathersjs/socketio-client
13
9
 
10
+ # [5.0.0-pre.30](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.29...v5.0.0-pre.30) (2022-10-07)
14
11
 
12
+ ### Features
15
13
 
14
+ - **core:** Allow to unregister services at runtime ([#2756](https://github.com/feathersjs/feathers/issues/2756)) ([d16601f](https://github.com/feathersjs/feathers/commit/d16601f2277dca5357866ffdefba2a611f6dc7fa))
16
15
 
17
- # [5.0.0-pre.2](https://github.com/feathersjs/feathers/compare/v5.0.0-beta.1...v5.0.0-pre.2) (2021-04-06)
16
+ # [5.0.0-pre.29](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.28...v5.0.0-pre.29) (2022-09-16)
18
17
 
19
18
  **Note:** Version bump only for package @feathersjs/socketio-client
20
19
 
20
+ # [5.0.0-pre.28](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.27...v5.0.0-pre.28) (2022-08-03)
21
21
 
22
+ ### Bug Fixes
22
23
 
24
+ - **cli:** Improve generated application and client ([#2701](https://github.com/feathersjs/feathers/issues/2701)) ([bd55ffb](https://github.com/feathersjs/feathers/commit/bd55ffb812e89bf215f4515e7f137656ea888c3f))
23
25
 
24
-
25
- # [5.0.0-beta.1](https://github.com/feathersjs/feathers/compare/v5.0.0-beta.0...v5.0.0-beta.1) (2021-04-03)
26
-
26
+ # [5.0.0-pre.27](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.26...v5.0.0-pre.27) (2022-07-13)
27
27
 
28
28
  ### Bug Fixes
29
29
 
30
- * **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))
31
-
30
+ - **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))
32
31
 
32
+ # [5.0.0-pre.26](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.25...v5.0.0-pre.26) (2022-06-22)
33
33
 
34
+ **Note:** Version bump only for package @feathersjs/socketio-client
34
35
 
36
+ # [5.0.0-pre.25](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.24...v5.0.0-pre.25) (2022-06-22)
35
37
 
36
- # [5.0.0-beta.0](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.1...v5.0.0-beta.0) (2021-03-28)
38
+ **Note:** Version bump only for package @feathersjs/socketio-client
37
39
 
40
+ # [5.0.0-pre.24](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.23...v5.0.0-pre.24) (2022-06-21)
38
41
 
39
- ### Bug Fixes
42
+ ### Features
40
43
 
41
- * Update Grant usage and other dependencies ([#2264](https://github.com/feathersjs/feathers/issues/2264)) ([7b0f8fa](https://github.com/feathersjs/feathers/commit/7b0f8fad252419ed0ad0bf259cdf3104d322ab60))
42
- * **socketio-client:** Fix client transport-commons reference ([#2164](https://github.com/feathersjs/feathers/issues/2164)) ([3a42c54](https://github.com/feathersjs/feathers/commit/3a42c544058456b19c7e21827226541bfa6ad621))
44
+ - **cli:** Add typed client to a generated app ([#2669](https://github.com/feathersjs/feathers/issues/2669)) ([5b801b5](https://github.com/feathersjs/feathers/commit/5b801b5017ddc3eaa95622b539f51d605916bc86))
43
45
 
46
+ # [5.0.0-pre.23](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.22...v5.0.0-pre.23) (2022-06-06)
44
47
 
45
48
  ### Features
46
49
 
47
- * **core:** Public custom service methods ([#2270](https://github.com/feathersjs/feathers/issues/2270)) ([e65abfb](https://github.com/feathersjs/feathers/commit/e65abfb5388df6c19a11c565cf1076a29f32668d))
48
- * Feathers v5 core refactoring and features ([#2255](https://github.com/feathersjs/feathers/issues/2255)) ([2dafb7c](https://github.com/feathersjs/feathers/commit/2dafb7ce14ba57406aeec13d10ca45b1e709bee9))
49
- * **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))
50
+ - **client:** Improve client side custom method support ([#2654](https://github.com/feathersjs/feathers/issues/2654)) ([c138acf](https://github.com/feathersjs/feathers/commit/c138acf50affbe6b66177d084d3c7a3e9220f09f))
50
51
 
52
+ # [5.0.0-pre.22](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.21...v5.0.0-pre.22) (2022-05-24)
51
53
 
54
+ **Note:** Version bump only for package @feathersjs/socketio-client
52
55
 
56
+ # [5.0.0-pre.21](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.20...v5.0.0-pre.21) (2022-05-23)
53
57
 
58
+ **Note:** Version bump only for package @feathersjs/socketio-client
54
59
 
55
- # [5.0.0-pre.1](https://github.com/feathersjs/feathers/compare/v4.5.11...v5.0.0-pre.1) (2020-12-17)
60
+ # [5.0.0-pre.20](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.19...v5.0.0-pre.20) (2022-05-04)
56
61
 
62
+ ### Bug Fixes
57
63
 
64
+ - **dependencies:** Lock monorepo package version numbers ([#2623](https://github.com/feathersjs/feathers/issues/2623)) ([5640c10](https://github.com/feathersjs/feathers/commit/5640c1020cc139994e695d658c08bad3494db507))
58
65
 
59
- # [5.0.0-pre.0](https://github.com/feathersjs/feathers/compare/v4.5.4...v5.0.0-pre.0) (2020-05-19)
66
+ # [5.0.0-pre.19](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.18...v5.0.0-pre.19) (2022-05-01)
60
67
 
61
- **Note:** Version bump only for package @feathersjs/socketio-client
68
+ ### Features
62
69
 
70
+ - **typescript:** Improve adapter typings ([#2605](https://github.com/feathersjs/feathers/issues/2605)) ([3b2ca0a](https://github.com/feathersjs/feathers/commit/3b2ca0a6a8e03e8390272c4d7e930b4bffdaacf5))
63
71
 
72
+ # [5.0.0-pre.18](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.17...v5.0.0-pre.18) (2022-04-11)
64
73
 
74
+ **Note:** Version bump only for package @feathersjs/socketio-client
65
75
 
76
+ # [5.0.0-pre.17](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.16...v5.0.0-pre.17) (2022-02-15)
66
77
 
67
- # [5.0.0-pre.0](https://github.com/feathersjs/feathers/compare/v4.5.4...v5.0.0-pre.0) (2020-05-19)
78
+ **Note:** Version bump only for package @feathersjs/socketio-client
68
79
 
80
+ # [5.0.0-pre.16](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.15...v5.0.0-pre.16) (2022-01-12)
69
81
 
70
- ## [4.5.11](https://github.com/feathersjs/feathers/compare/v4.5.10...v4.5.11) (2020-12-05)
82
+ **Note:** Version bump only for package @feathersjs/socketio-client
71
83
 
84
+ # [5.0.0-pre.15](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.14...v5.0.0-pre.15) (2021-11-27)
72
85
 
73
86
  ### Bug Fixes
74
87
 
75
- * **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))
88
+ - **typescript:** Overall typing improvements ([#2478](https://github.com/feathersjs/feathers/issues/2478)) ([b8eb804](https://github.com/feathersjs/feathers/commit/b8eb804158556d9651a8607e3c3fda15e0bfd110))
76
89
 
90
+ # [5.0.0-pre.14](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.13...v5.0.0-pre.14) (2021-10-13)
77
91
 
92
+ **Note:** Version bump only for package @feathersjs/socketio-client
78
93
 
94
+ # [5.0.0-pre.13](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.12...v5.0.0-pre.13) (2021-10-13)
79
95
 
96
+ **Note:** Version bump only for package @feathersjs/socketio-client
80
97
 
81
- ## [4.5.10](https://github.com/feathersjs/feathers/compare/v4.5.9...v4.5.10) (2020-11-08)
98
+ # [5.0.0-pre.12](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.11...v5.0.0-pre.12) (2021-10-12)
82
99
 
83
100
  **Note:** Version bump only for package @feathersjs/socketio-client
84
101
 
102
+ # [5.0.0-pre.11](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.10...v5.0.0-pre.11) (2021-10-06)
85
103
 
104
+ **Note:** Version bump only for package @feathersjs/socketio-client
86
105
 
106
+ # [5.0.0-pre.10](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.9...v5.0.0-pre.10) (2021-09-19)
87
107
 
108
+ **Note:** Version bump only for package @feathersjs/socketio-client
88
109
 
89
- ## [4.5.9](https://github.com/feathersjs/feathers/compare/v4.5.8...v4.5.9) (2020-10-09)
90
-
110
+ # [5.0.0-pre.9](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.8...v5.0.0-pre.9) (2021-08-09)
91
111
 
112
+ **Note:** Version bump only for package @feathersjs/socketio-client
92
113
 
93
- ## [4.5.9](https://github.com/feathersjs/feathers/compare/v4.5.8...v4.5.9) (2020-10-09)
114
+ # [5.0.0-pre.8](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.7...v5.0.0-pre.8) (2021-08-09)
94
115
 
95
116
  **Note:** Version bump only for package @feathersjs/socketio-client
96
117
 
118
+ # [5.0.0-pre.7](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.6...v5.0.0-pre.7) (2021-08-09)
97
119
 
120
+ **Note:** Version bump only for package @feathersjs/socketio-client
98
121
 
99
- ## [4.5.8](https://github.com/feathersjs/feathers/compare/v4.5.7...v4.5.8) (2020-08-12)
122
+ # [5.0.0-pre.6](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.5...v5.0.0-pre.6) (2021-08-08)
100
123
 
101
124
  **Note:** Version bump only for package @feathersjs/socketio-client
102
125
 
126
+ # [5.0.0-pre.5](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.4...v5.0.0-pre.5) (2021-06-23)
103
127
 
128
+ ### Features
104
129
 
130
+ - **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))
105
131
 
106
-
107
- ## [4.5.7](https://github.com/feathersjs/feathers/compare/v4.5.6...v4.5.7) (2020-07-24)
132
+ # [5.0.0-pre.4](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.3...v5.0.0-pre.4) (2021-05-13)
108
133
 
109
134
  **Note:** Version bump only for package @feathersjs/socketio-client
110
135
 
136
+ # [5.0.0-pre.3](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.2...v5.0.0-pre.3) (2021-04-21)
111
137
 
138
+ ### Bug Fixes
112
139
 
140
+ - **typescript:** Improve TypeScript backwards compatibility ([#2310](https://github.com/feathersjs/feathers/issues/2310)) ([f33be73](https://github.com/feathersjs/feathers/commit/f33be73fc46a533efb15df9aab0658e3240d3897))
113
141
 
114
-
115
- ## [4.5.6](https://github.com/feathersjs/feathers/compare/v4.5.5...v4.5.6) (2020-07-12)
142
+ # [5.0.0-pre.2](https://github.com/feathersjs/feathers/compare/v5.0.0-beta.1...v5.0.0-pre.2) (2021-04-06)
116
143
 
117
144
  **Note:** Version bump only for package @feathersjs/socketio-client
118
145
 
146
+ # [5.0.0-beta.1](https://github.com/feathersjs/feathers/compare/v5.0.0-beta.0...v5.0.0-beta.1) (2021-04-03)
119
147
 
148
+ ### Bug Fixes
120
149
 
150
+ - **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))
121
151
 
152
+ # [5.0.0-beta.0](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.1...v5.0.0-beta.0) (2021-03-28)
122
153
 
123
- ## [4.5.5](https://github.com/feathersjs/feathers/compare/v4.5.4...v4.5.5) (2020-07-11)
124
-
125
- **Note:** Version bump only for package @feathersjs/socketio-client
154
+ ### Bug Fixes
126
155
 
156
+ - Update Grant usage and other dependencies ([#2264](https://github.com/feathersjs/feathers/issues/2264)) ([7b0f8fa](https://github.com/feathersjs/feathers/commit/7b0f8fad252419ed0ad0bf259cdf3104d322ab60))
157
+ - **socketio-client:** Fix client transport-commons reference ([#2164](https://github.com/feathersjs/feathers/issues/2164)) ([3a42c54](https://github.com/feathersjs/feathers/commit/3a42c544058456b19c7e21827226541bfa6ad621))
127
158
 
159
+ ### Features
128
160
 
161
+ - **core:** Public custom service methods ([#2270](https://github.com/feathersjs/feathers/issues/2270)) ([e65abfb](https://github.com/feathersjs/feathers/commit/e65abfb5388df6c19a11c565cf1076a29f32668d))
162
+ - Feathers v5 core refactoring and features ([#2255](https://github.com/feathersjs/feathers/issues/2255)) ([2dafb7c](https://github.com/feathersjs/feathers/commit/2dafb7ce14ba57406aeec13d10ca45b1e709bee9))
163
+ - **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))
129
164
 
165
+ # [5.0.0-pre.1](https://github.com/feathersjs/feathers/compare/v4.5.11...v5.0.0-pre.1) (2020-12-17)
130
166
 
131
- ## [4.5.4](https://github.com/feathersjs/feathers/compare/v4.5.3...v4.5.4) (2020-04-29)
167
+ # [5.0.0-pre.0](https://github.com/feathersjs/feathers/compare/v4.5.4...v5.0.0-pre.0) (2020-05-19)
132
168
 
133
169
  **Note:** Version bump only for package @feathersjs/socketio-client
134
170
 
171
+ # [5.0.0-pre.0](https://github.com/feathersjs/feathers/compare/v4.5.4...v5.0.0-pre.0) (2020-05-19)
135
172
 
173
+ ## [4.5.11](https://github.com/feathersjs/feathers/compare/v4.5.10...v4.5.11) (2020-12-05)
136
174
 
175
+ ### Bug Fixes
137
176
 
177
+ - **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))
138
178
 
139
- ## [4.5.3](https://github.com/feathersjs/feathers/compare/v4.5.2...v4.5.3) (2020-04-17)
179
+ ## [4.5.10](https://github.com/feathersjs/feathers/compare/v4.5.9...v4.5.10) (2020-11-08)
140
180
 
141
181
  **Note:** Version bump only for package @feathersjs/socketio-client
142
182
 
183
+ ## [4.5.9](https://github.com/feathersjs/feathers/compare/v4.5.8...v4.5.9) (2020-10-09)
143
184
 
185
+ ## [4.5.9](https://github.com/feathersjs/feathers/compare/v4.5.8...v4.5.9) (2020-10-09)
144
186
 
187
+ **Note:** Version bump only for package @feathersjs/socketio-client
145
188
 
146
-
147
- ## [4.5.2](https://github.com/feathersjs/feathers/compare/v4.5.1...v4.5.2) (2020-03-04)
189
+ ## [4.5.8](https://github.com/feathersjs/feathers/compare/v4.5.7...v4.5.8) (2020-08-12)
148
190
 
149
191
  **Note:** Version bump only for package @feathersjs/socketio-client
150
192
 
193
+ ## [4.5.7](https://github.com/feathersjs/feathers/compare/v4.5.6...v4.5.7) (2020-07-24)
151
194
 
195
+ **Note:** Version bump only for package @feathersjs/socketio-client
152
196
 
197
+ ## [4.5.6](https://github.com/feathersjs/feathers/compare/v4.5.5...v4.5.6) (2020-07-12)
153
198
 
199
+ **Note:** Version bump only for package @feathersjs/socketio-client
154
200
 
155
- ## [4.5.1](https://github.com/feathersjs/feathers/compare/v4.5.0...v4.5.1) (2020-01-24)
201
+ ## [4.5.5](https://github.com/feathersjs/feathers/compare/v4.5.4...v4.5.5) (2020-07-11)
156
202
 
157
203
  **Note:** Version bump only for package @feathersjs/socketio-client
158
204
 
205
+ ## [4.5.4](https://github.com/feathersjs/feathers/compare/v4.5.3...v4.5.4) (2020-04-29)
159
206
 
207
+ **Note:** Version bump only for package @feathersjs/socketio-client
160
208
 
209
+ ## [4.5.3](https://github.com/feathersjs/feathers/compare/v4.5.2...v4.5.3) (2020-04-17)
161
210
 
211
+ **Note:** Version bump only for package @feathersjs/socketio-client
162
212
 
163
- # [4.5.0](https://github.com/feathersjs/feathers/compare/v4.4.3...v4.5.0) (2020-01-18)
213
+ ## [4.5.2](https://github.com/feathersjs/feathers/compare/v4.5.1...v4.5.2) (2020-03-04)
164
214
 
165
215
  **Note:** Version bump only for package @feathersjs/socketio-client
166
216
 
217
+ ## [4.5.1](https://github.com/feathersjs/feathers/compare/v4.5.0...v4.5.1) (2020-01-24)
167
218
 
219
+ **Note:** Version bump only for package @feathersjs/socketio-client
168
220
 
221
+ # [4.5.0](https://github.com/feathersjs/feathers/compare/v4.4.3...v4.5.0) (2020-01-18)
169
222
 
223
+ **Note:** Version bump only for package @feathersjs/socketio-client
170
224
 
171
225
  ## [4.4.3](https://github.com/feathersjs/feathers/compare/v4.4.1...v4.4.3) (2019-12-06)
172
226
 
173
227
  **Note:** Version bump only for package @feathersjs/socketio-client
174
228
 
175
-
176
-
177
-
178
-
179
229
  ## [4.4.1](https://github.com/feathersjs/feathers/compare/v4.4.0...v4.4.1) (2019-11-27)
180
230
 
181
231
  **Note:** Version bump only for package @feathersjs/socketio-client
182
232
 
183
-
184
-
185
-
186
-
187
233
  # [4.4.0](https://github.com/feathersjs/feathers/compare/v4.3.11...v4.4.0) (2019-11-27)
188
234
 
189
235
  **Note:** Version bump only for package @feathersjs/socketio-client
190
236
 
191
-
192
-
193
-
194
-
195
237
  ## [4.3.11](https://github.com/feathersjs/feathers/compare/v4.3.10...v4.3.11) (2019-11-11)
196
238
 
197
239
  **Note:** Version bump only for package @feathersjs/socketio-client
198
240
 
199
-
200
-
201
-
202
-
203
241
  ## [4.3.10](https://github.com/feathersjs/feathers/compare/v4.3.9...v4.3.10) (2019-10-26)
204
242
 
205
243
  **Note:** Version bump only for package @feathersjs/socketio-client
206
244
 
207
-
208
-
209
-
210
-
211
245
  ## [4.3.9](https://github.com/feathersjs/feathers/compare/v4.3.8...v4.3.9) (2019-10-26)
212
246
 
213
247
  **Note:** Version bump only for package @feathersjs/socketio-client
214
248
 
215
-
216
-
217
-
218
-
219
249
  ## [4.3.7](https://github.com/feathersjs/feathers/compare/v4.3.6...v4.3.7) (2019-10-14)
220
250
 
221
251
  **Note:** Version bump only for package @feathersjs/socketio-client
222
252
 
223
-
224
-
225
-
226
-
227
253
  ## [4.3.5](https://github.com/feathersjs/feathers/compare/v4.3.4...v4.3.5) (2019-10-07)
228
254
 
229
-
230
255
  ### Bug Fixes
231
256
 
232
- * 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))
233
-
234
-
235
-
236
-
257
+ - 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))
237
258
 
238
259
  ## [4.3.4](https://github.com/feathersjs/feathers/compare/v4.3.3...v4.3.4) (2019-10-03)
239
260
 
240
261
  **Note:** Version bump only for package @feathersjs/socketio-client
241
262
 
242
-
243
-
244
-
245
-
246
263
  ## [4.3.3](https://github.com/feathersjs/feathers/compare/v4.3.2...v4.3.3) (2019-09-21)
247
264
 
248
265
  **Note:** Version bump only for package @feathersjs/socketio-client
249
266
 
250
-
251
-
252
-
253
-
254
267
  ## [4.3.2](https://github.com/feathersjs/feathers/compare/v4.3.1...v4.3.2) (2019-09-16)
255
268
 
256
269
  **Note:** Version bump only for package @feathersjs/socketio-client
257
270
 
258
-
259
-
260
-
261
-
262
271
  ## [4.3.1](https://github.com/feathersjs/feathers/compare/v4.3.0...v4.3.1) (2019-09-09)
263
272
 
264
273
  **Note:** Version bump only for package @feathersjs/socketio-client
265
274
 
266
-
267
-
268
-
269
-
270
275
  # [4.3.0](https://github.com/feathersjs/feathers/compare/v4.3.0-pre.4...v4.3.0) (2019-08-27)
271
276
 
272
277
  **Note:** Version bump only for package @feathersjs/socketio-client
273
278
 
274
-
275
-
276
-
277
-
278
279
  # [4.3.0-pre.4](https://github.com/feathersjs/feathers/compare/v4.3.0-pre.3...v4.3.0-pre.4) (2019-08-22)
279
280
 
280
281
  **Note:** Version bump only for package @feathersjs/socketio-client
281
282
 
282
-
283
-
284
-
285
-
286
283
  # [4.3.0-pre.3](https://github.com/feathersjs/feathers/compare/v4.3.0-pre.2...v4.3.0-pre.3) (2019-08-19)
287
284
 
288
285
  **Note:** Version bump only for package @feathersjs/socketio-client
289
286
 
290
-
291
-
292
-
293
-
294
287
  # [4.3.0-pre.2](https://github.com/feathersjs/feathers/compare/v4.3.0-pre.1...v4.3.0-pre.2) (2019-08-02)
295
288
 
296
289
  **Note:** Version bump only for package @feathersjs/socketio-client
297
290
 
298
-
299
-
300
-
301
-
302
291
  # [4.3.0-pre.1](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.5...v4.3.0-pre.1) (2019-07-11)
303
292
 
304
293
  **Note:** Version bump only for package @feathersjs/socketio-client
305
294
 
306
-
307
-
308
-
309
-
310
295
  # [4.0.0-pre.5](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.4...v4.0.0-pre.5) (2019-07-10)
311
296
 
312
297
  **Note:** Version bump only for package @feathersjs/socketio-client
313
298
 
314
-
315
-
316
-
317
-
318
299
  # [4.0.0-pre.4](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.3...v4.0.0-pre.4) (2019-07-05)
319
300
 
320
301
  **Note:** Version bump only for package @feathersjs/socketio-client
321
302
 
322
-
323
-
324
-
325
-
326
303
  # [4.0.0-pre.3](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.2...v4.0.0-pre.3) (2019-06-01)
327
304
 
328
-
329
305
  ### Bug Fixes
330
306
 
331
- * Update dependencies and fix tests ([#1373](https://github.com/feathersjs/feathers/issues/1373)) ([d743a7f](https://github.com/feathersjs/feathers/commit/d743a7f))
332
-
333
-
334
-
335
-
307
+ - Update dependencies and fix tests ([#1373](https://github.com/feathersjs/feathers/issues/1373)) ([d743a7f](https://github.com/feathersjs/feathers/commit/d743a7f))
336
308
 
337
309
  # [4.0.0-pre.2](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.1...v4.0.0-pre.2) (2019-05-15)
338
310
 
339
-
340
311
  ### Bug Fixes
341
312
 
342
- * Use `export =` in TypeScript definitions ([#1285](https://github.com/feathersjs/feathers/issues/1285)) ([12d0f4b](https://github.com/feathersjs/feathers/commit/12d0f4b))
343
-
344
-
345
-
346
-
313
+ - Use `export =` in TypeScript definitions ([#1285](https://github.com/feathersjs/feathers/issues/1285)) ([12d0f4b](https://github.com/feathersjs/feathers/commit/12d0f4b))
347
314
 
348
315
  # [4.0.0-pre.1](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.0...v4.0.0-pre.1) (2019-05-08)
349
316
 
350
317
  **Note:** Version bump only for package @feathersjs/socketio-client
351
318
 
352
-
353
-
354
-
355
-
356
319
  # [4.0.0-pre.0](https://github.com/feathersjs/feathers/compare/v3.2.0-pre.1...v4.0.0-pre.0) (2019-04-21)
357
320
 
358
-
359
321
  ### Bug Fixes
360
322
 
361
- * Make Mocha a proper devDependency for every repository ([#1053](https://github.com/feathersjs/feathers/issues/1053)) ([9974803](https://github.com/feathersjs/feathers/commit/9974803))
362
- * Update adapter common tests ([#1135](https://github.com/feathersjs/feathers/issues/1135)) ([8166dda](https://github.com/feathersjs/feathers/commit/8166dda))
363
- * Update all dependencies to latest ([#1206](https://github.com/feathersjs/feathers/issues/1206)) ([e51e0f6](https://github.com/feathersjs/feathers/commit/e51e0f6))
364
-
323
+ - Make Mocha a proper devDependency for every repository ([#1053](https://github.com/feathersjs/feathers/issues/1053)) ([9974803](https://github.com/feathersjs/feathers/commit/9974803))
324
+ - Update adapter common tests ([#1135](https://github.com/feathersjs/feathers/issues/1135)) ([8166dda](https://github.com/feathersjs/feathers/commit/8166dda))
325
+ - Update all dependencies to latest ([#1206](https://github.com/feathersjs/feathers/issues/1206)) ([e51e0f6](https://github.com/feathersjs/feathers/commit/e51e0f6))
365
326
 
366
327
  ### Features
367
328
 
368
- * Add TypeScript definitions ([#1275](https://github.com/feathersjs/feathers/issues/1275)) ([9dd6713](https://github.com/feathersjs/feathers/commit/9dd6713))
369
- * Allow registering a service at the root level ([#1115](https://github.com/feathersjs/feathers/issues/1115)) ([c73d322](https://github.com/feathersjs/feathers/commit/c73d322))
370
- * Authentication v3 core server implementation ([#1205](https://github.com/feathersjs/feathers/issues/1205)) ([1bd7591](https://github.com/feathersjs/feathers/commit/1bd7591))
371
-
372
-
373
-
374
-
329
+ - Add TypeScript definitions ([#1275](https://github.com/feathersjs/feathers/issues/1275)) ([9dd6713](https://github.com/feathersjs/feathers/commit/9dd6713))
330
+ - Allow registering a service at the root level ([#1115](https://github.com/feathersjs/feathers/issues/1115)) ([c73d322](https://github.com/feathersjs/feathers/commit/c73d322))
331
+ - Authentication v3 core server implementation ([#1205](https://github.com/feathersjs/feathers/issues/1205)) ([1bd7591](https://github.com/feathersjs/feathers/commit/1bd7591))
375
332
 
376
333
  ## [1.2.1](https://github.com/feathersjs/feathers/compare/@feathersjs/socketio-client@1.2.0...@feathersjs/socketio-client@1.2.1) (2019-01-02)
377
334
 
378
-
379
335
  ### Bug Fixes
380
336
 
381
- * Update adapter common tests ([#1135](https://github.com/feathersjs/feathers/issues/1135)) ([8166dda](https://github.com/feathersjs/feathers/commit/8166dda))
382
-
383
-
384
-
385
-
337
+ - Update adapter common tests ([#1135](https://github.com/feathersjs/feathers/issues/1135)) ([8166dda](https://github.com/feathersjs/feathers/commit/8166dda))
386
338
 
387
339
  <a name="1.2.0"></a>
388
- # [1.2.0](https://github.com/feathersjs/feathers/compare/@feathersjs/socketio-client@1.1.5...@feathersjs/socketio-client@1.2.0) (2018-12-16)
389
340
 
341
+ # [1.2.0](https://github.com/feathersjs/feathers/compare/@feathersjs/socketio-client@1.1.5...@feathersjs/socketio-client@1.2.0) (2018-12-16)
390
342
 
391
343
  ### Features
392
344
 
393
- * Allow registering a service at the root level ([#1115](https://github.com/feathersjs/feathers/issues/1115)) ([c73d322](https://github.com/feathersjs/feathers/commit/c73d322))
394
-
395
-
396
-
397
-
345
+ - Allow registering a service at the root level ([#1115](https://github.com/feathersjs/feathers/issues/1115)) ([c73d322](https://github.com/feathersjs/feathers/commit/c73d322))
398
346
 
399
347
  <a name="1.1.5"></a>
400
- ## [1.1.5](https://github.com/feathersjs/feathers/compare/@feathersjs/socketio-client@1.1.4...@feathersjs/socketio-client@1.1.5) (2018-10-25)
401
348
 
349
+ ## [1.1.5](https://github.com/feathersjs/feathers/compare/@feathersjs/socketio-client@1.1.4...@feathersjs/socketio-client@1.1.5) (2018-10-25)
402
350
 
403
351
  ### Bug Fixes
404
352
 
405
- * Make Mocha a proper devDependency for every repository ([#1053](https://github.com/feathersjs/feathers/issues/1053)) ([9974803](https://github.com/feathersjs/feathers/commit/9974803))
406
-
407
-
408
-
409
-
353
+ - Make Mocha a proper devDependency for every repository ([#1053](https://github.com/feathersjs/feathers/issues/1053)) ([9974803](https://github.com/feathersjs/feathers/commit/9974803))
410
354
 
411
355
  <a name="1.1.4"></a>
356
+
412
357
  ## [1.1.4](https://github.com/feathersjs/feathers/compare/@feathersjs/socketio-client@1.1.3...@feathersjs/socketio-client@1.1.4) (2018-09-21)
413
358
 
414
359
  **Note:** Version bump only for package @feathersjs/socketio-client
415
360
 
416
-
417
-
418
-
419
-
420
361
  <a name="1.1.3"></a>
362
+
421
363
  ## [1.1.3](https://github.com/feathersjs/feathers/compare/@feathersjs/socketio-client@1.1.2...@feathersjs/socketio-client@1.1.3) (2018-09-17)
422
364
 
423
365
  **Note:** Version bump only for package @feathersjs/socketio-client
424
366
 
425
-
426
-
427
-
428
-
429
367
  <a name="1.1.2"></a>
368
+
430
369
  ## [1.1.2](https://github.com/feathersjs/feathers/compare/@feathersjs/socketio-client@1.1.1...@feathersjs/socketio-client@1.1.2) (2018-09-02)
431
370
 
432
371
  **Note:** Version bump only for package @feathersjs/socketio-client
433
372
 
434
373
  <a name="1.1.1"></a>
374
+
435
375
  ## 1.1.1
436
376
 
437
377
  - Migrate to Monorepo ([feathers#462](https://github.com/feathersjs/feathers/issues/462))
438
378
 
439
379
  ## [v1.1.0](https://github.com/feathersjs/socketio-client/tree/v1.1.0) (2018-02-09)
380
+
440
381
  [Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.3...v1.1.0)
441
382
 
442
383
  **Closed issues:**
@@ -449,6 +390,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
449
390
  - Update @feathersjs/transport-commons to the latest version 🚀 [\#12](https://github.com/feathersjs/socketio-client/pull/12) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
450
391
 
451
392
  ## [v1.0.3](https://github.com/feathersjs/socketio-client/tree/v1.0.3) (2018-02-05)
393
+
452
394
  [Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.2...v1.0.3)
453
395
 
454
396
  **Merged pull requests:**
@@ -457,6 +399,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
457
399
  - Update mocha to the latest version 🚀 [\#8](https://github.com/feathersjs/socketio-client/pull/8) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
458
400
 
459
401
  ## [v1.0.2](https://github.com/feathersjs/socketio-client/tree/v1.0.2) (2018-01-03)
402
+
460
403
  [Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.1...v1.0.2)
461
404
 
462
405
  **Merged pull requests:**
@@ -466,6 +409,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
466
409
  - Update feathers-memory to the latest version 🚀 [\#5](https://github.com/feathersjs/socketio-client/pull/5) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
467
410
 
468
411
  ## [v1.0.1](https://github.com/feathersjs/socketio-client/tree/v1.0.1) (2017-11-16)
412
+
469
413
  [Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.0...v1.0.1)
470
414
 
471
415
  **Merged pull requests:**
@@ -473,6 +417,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
473
417
  - Add default export for better ES module \(TypeScript\) compatibility [\#4](https://github.com/feathersjs/socketio-client/pull/4) ([daffl](https://github.com/daffl))
474
418
 
475
419
  ## [v1.0.0](https://github.com/feathersjs/socketio-client/tree/v1.0.0) (2017-11-01)
420
+
476
421
  [Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.0-pre.3...v1.0.0)
477
422
 
478
423
  **Merged pull requests:**
@@ -480,6 +425,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
480
425
  - Update dependencies for release [\#3](https://github.com/feathersjs/socketio-client/pull/3) ([daffl](https://github.com/daffl))
481
426
 
482
427
  ## [v1.0.0-pre.3](https://github.com/feathersjs/socketio-client/tree/v1.0.0-pre.3) (2017-10-23)
428
+
483
429
  [Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.0-pre.2...v1.0.0-pre.3)
484
430
 
485
431
  **Merged pull requests:**
@@ -487,6 +433,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
487
433
  - Use scoped npm packages [\#2](https://github.com/feathersjs/socketio-client/pull/2) ([daffl](https://github.com/daffl))
488
434
 
489
435
  ## [v1.0.0-pre.2](https://github.com/feathersjs/socketio-client/tree/v1.0.0-pre.2) (2017-10-19)
436
+
490
437
  [Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.0-pre.1...v1.0.0-pre.2)
491
438
 
492
439
  **Merged pull requests:**
@@ -495,5 +442,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
495
442
 
496
443
  ## [v1.0.0-pre.1](https://github.com/feathersjs/socketio-client/tree/v1.0.0-pre.1) (2017-10-18)
497
444
 
498
-
499
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
445
+ \* _This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)_
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021 Feathers
3
+ Copyright (c) 2022 Feathers
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # @feathersjs/socketio-client
2
2
 
3
3
  [![CI](https://github.com/feathersjs/feathers/workflows/CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3ACI)
4
- [![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/socketio-client)](https://david-dm.org/feathersjs/feathers?path=packages/socketio-client)
5
4
  [![Download Status](https://img.shields.io/npm/dm/@feathersjs/socketio-client.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/socketio-client)
5
+ [![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](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) 2021 [Feathers contributors](https://github.com/feathersjs/feathers/graphs/contributors)
21
+ Copyright (c) 2022 [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 { Service, SocketService } from '@feathersjs/transport-commons/client';
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
- export default function socketioClient(connection: Socket, options?: any): {
5
- (app: any): void;
6
- Service: typeof Service;
7
- service: (this: any, name: string) => Service<any, Partial<any>>;
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,iEAA8E;AAE9E,mDAAuD;AAIvD,SAAwB,cAAc,CAAE,UAAkB,EAAE,OAAa;IACvE,IAAI,CAAC,UAAU,EAAE;QACf,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;KAC9D;IAED,MAAM,cAAc,GAAG,UAAqB,IAAY;QACtD,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,0BAAe,CAAC,CAAC;QAC9C,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE;YAC1C,MAAM;YACN,IAAI;YACJ,UAAU;YACV,MAAM,EAAE,MAAM;SACf,CAAC,CAAC;QAEH,OAAO,IAAI,gBAAO,CAAC,QAAQ,CAAC,CAAC;IAC/B,CAAC,CAAC;IAEF,MAAM,UAAU,GAAG,UAAU,GAAQ;QACnC,IAAI,GAAG,CAAC,EAAE,KAAK,SAAS,EAAE;YACxB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;SACvE;QAED,GAAG,CAAC,EAAE,GAAG,UAAU,CAAC;QACpB,GAAG,CAAC,cAAc,GAAG,cAAc,CAAC;IACtC,CAAC,CAAC;IAEF,UAAU,CAAC,OAAO,GAAG,gBAAO,CAAC;IAC7B,UAAU,CAAC,OAAO,GAAG,cAAc,CAAC;IAEpC,OAAO,UAAU,CAAC;AACpB,CAAC;AA9BD,iCA8BC;AAED,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;IACjC,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;CAChE"}
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-pre.3",
4
+ "version": "5.0.0-pre.31",
5
5
  "homepage": "https://feathersjs.com",
6
- "main": "lib/index.js",
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
- "compile": "shx rm -rf lib/ && tsc",
35
- "test": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
36
+ "pack": "npm pack --pack-destination ../cli/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-pre.3"
57
+ "@feathersjs/transport-commons": "^5.0.0-pre.31"
54
58
  },
55
59
  "devDependencies": {
56
- "@feathersjs/adapter-memory": "^5.0.0-pre.3",
57
- "@feathersjs/commons": "^5.0.0-pre.3",
58
- "@feathersjs/feathers": "^5.0.0-pre.3",
59
- "@feathersjs/socketio": "^5.0.0-pre.3",
60
- "@feathersjs/tests": "^5.0.0-pre.3",
61
- "@types/mocha": "^8.2.2",
62
- "@types/node": "^14.14.41",
63
- "mocha": "^8.3.2",
64
- "shx": "^0.3.3",
65
- "socket.io-client": "^4.0.1",
66
- "ts-node": "^9.1.1",
67
- "typescript": "^4.2.4"
60
+ "@feathersjs/commons": "^5.0.0-pre.31",
61
+ "@feathersjs/feathers": "^5.0.0-pre.31",
62
+ "@feathersjs/memory": "^5.0.0-pre.31",
63
+ "@feathersjs/socketio": "^5.0.0-pre.31",
64
+ "@feathersjs/tests": "^5.0.0-pre.31",
65
+ "@types/mocha": "^10.0.0",
66
+ "@types/node": "^18.8.2",
67
+ "mocha": "^10.0.0",
68
+ "shx": "^0.3.4",
69
+ "socket.io-client": "^4.5.2",
70
+ "ts-node": "^10.9.1",
71
+ "typescript": "^4.8.4"
68
72
  },
69
- "gitHead": "d332eaca9945aab0c222413a7e46cec1c0601648"
73
+ "gitHead": "4500dbeb8cea566678cf88b3313a88efd93a2ed9"
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 { defaultEventMap } from '@feathersjs/feathers';
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
- export default function socketioClient (connection: Socket, options?: any) {
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: any) {
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
  }