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

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,377 @@
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))
12
-
13
-
6
+ # [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
7
 
8
+ ### Features
15
9
 
10
+ - **core:** Allow to unregister services at runtime ([#2756](https://github.com/feathersjs/feathers/issues/2756)) ([d16601f](https://github.com/feathersjs/feathers/commit/d16601f2277dca5357866ffdefba2a611f6dc7fa))
16
11
 
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)
12
+ # [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
13
 
19
14
  **Note:** Version bump only for package @feathersjs/socketio-client
20
15
 
16
+ # [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
17
 
18
+ ### Bug Fixes
22
19
 
20
+ - **cli:** Improve generated application and client ([#2701](https://github.com/feathersjs/feathers/issues/2701)) ([bd55ffb](https://github.com/feathersjs/feathers/commit/bd55ffb812e89bf215f4515e7f137656ea888c3f))
23
21
 
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
-
22
+ # [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
23
 
28
24
  ### Bug Fixes
29
25
 
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
-
26
+ - **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
27
 
28
+ # [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
29
 
30
+ **Note:** Version bump only for package @feathersjs/socketio-client
34
31
 
32
+ # [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
33
 
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)
34
+ **Note:** Version bump only for package @feathersjs/socketio-client
37
35
 
36
+ # [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
37
 
39
- ### Bug Fixes
38
+ ### Features
40
39
 
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))
40
+ - **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
41
 
42
+ # [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
43
 
45
44
  ### Features
46
45
 
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))
46
+ - **client:** Improve client side custom method support ([#2654](https://github.com/feathersjs/feathers/issues/2654)) ([c138acf](https://github.com/feathersjs/feathers/commit/c138acf50affbe6b66177d084d3c7a3e9220f09f))
50
47
 
48
+ # [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
49
 
50
+ **Note:** Version bump only for package @feathersjs/socketio-client
52
51
 
52
+ # [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
53
 
54
+ **Note:** Version bump only for package @feathersjs/socketio-client
54
55
 
55
- # [5.0.0-pre.1](https://github.com/feathersjs/feathers/compare/v4.5.11...v5.0.0-pre.1) (2020-12-17)
56
+ # [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
57
 
58
+ ### Bug Fixes
57
59
 
60
+ - **dependencies:** Lock monorepo package version numbers ([#2623](https://github.com/feathersjs/feathers/issues/2623)) ([5640c10](https://github.com/feathersjs/feathers/commit/5640c1020cc139994e695d658c08bad3494db507))
58
61
 
59
- # [5.0.0-pre.0](https://github.com/feathersjs/feathers/compare/v4.5.4...v5.0.0-pre.0) (2020-05-19)
62
+ # [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
63
 
61
- **Note:** Version bump only for package @feathersjs/socketio-client
64
+ ### Features
62
65
 
66
+ - **typescript:** Improve adapter typings ([#2605](https://github.com/feathersjs/feathers/issues/2605)) ([3b2ca0a](https://github.com/feathersjs/feathers/commit/3b2ca0a6a8e03e8390272c4d7e930b4bffdaacf5))
63
67
 
68
+ # [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
69
 
70
+ **Note:** Version bump only for package @feathersjs/socketio-client
65
71
 
72
+ # [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
73
 
67
- # [5.0.0-pre.0](https://github.com/feathersjs/feathers/compare/v4.5.4...v5.0.0-pre.0) (2020-05-19)
74
+ **Note:** Version bump only for package @feathersjs/socketio-client
68
75
 
76
+ # [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
77
 
70
- ## [4.5.11](https://github.com/feathersjs/feathers/compare/v4.5.10...v4.5.11) (2020-12-05)
78
+ **Note:** Version bump only for package @feathersjs/socketio-client
71
79
 
80
+ # [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
81
 
73
82
  ### Bug Fixes
74
83
 
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))
84
+ - **typescript:** Overall typing improvements ([#2478](https://github.com/feathersjs/feathers/issues/2478)) ([b8eb804](https://github.com/feathersjs/feathers/commit/b8eb804158556d9651a8607e3c3fda15e0bfd110))
76
85
 
86
+ # [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
87
 
88
+ **Note:** Version bump only for package @feathersjs/socketio-client
78
89
 
90
+ # [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
91
 
92
+ **Note:** Version bump only for package @feathersjs/socketio-client
80
93
 
81
- ## [4.5.10](https://github.com/feathersjs/feathers/compare/v4.5.9...v4.5.10) (2020-11-08)
94
+ # [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
95
 
83
96
  **Note:** Version bump only for package @feathersjs/socketio-client
84
97
 
98
+ # [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
99
 
100
+ **Note:** Version bump only for package @feathersjs/socketio-client
86
101
 
102
+ # [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
103
 
104
+ **Note:** Version bump only for package @feathersjs/socketio-client
88
105
 
89
- ## [4.5.9](https://github.com/feathersjs/feathers/compare/v4.5.8...v4.5.9) (2020-10-09)
90
-
106
+ # [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
107
 
108
+ **Note:** Version bump only for package @feathersjs/socketio-client
92
109
 
93
- ## [4.5.9](https://github.com/feathersjs/feathers/compare/v4.5.8...v4.5.9) (2020-10-09)
110
+ # [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
111
 
95
112
  **Note:** Version bump only for package @feathersjs/socketio-client
96
113
 
114
+ # [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
115
 
116
+ **Note:** Version bump only for package @feathersjs/socketio-client
98
117
 
99
- ## [4.5.8](https://github.com/feathersjs/feathers/compare/v4.5.7...v4.5.8) (2020-08-12)
118
+ # [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
119
 
101
120
  **Note:** Version bump only for package @feathersjs/socketio-client
102
121
 
122
+ # [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
123
 
124
+ ### Features
104
125
 
126
+ - **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
127
 
106
-
107
- ## [4.5.7](https://github.com/feathersjs/feathers/compare/v4.5.6...v4.5.7) (2020-07-24)
128
+ # [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
129
 
109
130
  **Note:** Version bump only for package @feathersjs/socketio-client
110
131
 
132
+ # [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
133
 
134
+ ### Bug Fixes
112
135
 
136
+ - **typescript:** Improve TypeScript backwards compatibility ([#2310](https://github.com/feathersjs/feathers/issues/2310)) ([f33be73](https://github.com/feathersjs/feathers/commit/f33be73fc46a533efb15df9aab0658e3240d3897))
113
137
 
114
-
115
- ## [4.5.6](https://github.com/feathersjs/feathers/compare/v4.5.5...v4.5.6) (2020-07-12)
138
+ # [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
139
 
117
140
  **Note:** Version bump only for package @feathersjs/socketio-client
118
141
 
142
+ # [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
143
 
144
+ ### Bug Fixes
120
145
 
146
+ - **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
147
 
148
+ # [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
149
 
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
150
+ ### Bug Fixes
126
151
 
152
+ - Update Grant usage and other dependencies ([#2264](https://github.com/feathersjs/feathers/issues/2264)) ([7b0f8fa](https://github.com/feathersjs/feathers/commit/7b0f8fad252419ed0ad0bf259cdf3104d322ab60))
153
+ - **socketio-client:** Fix client transport-commons reference ([#2164](https://github.com/feathersjs/feathers/issues/2164)) ([3a42c54](https://github.com/feathersjs/feathers/commit/3a42c544058456b19c7e21827226541bfa6ad621))
127
154
 
155
+ ### Features
128
156
 
157
+ - **core:** Public custom service methods ([#2270](https://github.com/feathersjs/feathers/issues/2270)) ([e65abfb](https://github.com/feathersjs/feathers/commit/e65abfb5388df6c19a11c565cf1076a29f32668d))
158
+ - Feathers v5 core refactoring and features ([#2255](https://github.com/feathersjs/feathers/issues/2255)) ([2dafb7c](https://github.com/feathersjs/feathers/commit/2dafb7ce14ba57406aeec13d10ca45b1e709bee9))
159
+ - **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
160
 
161
+ # [5.0.0-pre.1](https://github.com/feathersjs/feathers/compare/v4.5.11...v5.0.0-pre.1) (2020-12-17)
130
162
 
131
- ## [4.5.4](https://github.com/feathersjs/feathers/compare/v4.5.3...v4.5.4) (2020-04-29)
163
+ # [5.0.0-pre.0](https://github.com/feathersjs/feathers/compare/v4.5.4...v5.0.0-pre.0) (2020-05-19)
132
164
 
133
165
  **Note:** Version bump only for package @feathersjs/socketio-client
134
166
 
167
+ # [5.0.0-pre.0](https://github.com/feathersjs/feathers/compare/v4.5.4...v5.0.0-pre.0) (2020-05-19)
135
168
 
169
+ ## [4.5.11](https://github.com/feathersjs/feathers/compare/v4.5.10...v4.5.11) (2020-12-05)
136
170
 
171
+ ### Bug Fixes
137
172
 
173
+ - **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
174
 
139
- ## [4.5.3](https://github.com/feathersjs/feathers/compare/v4.5.2...v4.5.3) (2020-04-17)
175
+ ## [4.5.10](https://github.com/feathersjs/feathers/compare/v4.5.9...v4.5.10) (2020-11-08)
140
176
 
141
177
  **Note:** Version bump only for package @feathersjs/socketio-client
142
178
 
179
+ ## [4.5.9](https://github.com/feathersjs/feathers/compare/v4.5.8...v4.5.9) (2020-10-09)
143
180
 
181
+ ## [4.5.9](https://github.com/feathersjs/feathers/compare/v4.5.8...v4.5.9) (2020-10-09)
144
182
 
183
+ **Note:** Version bump only for package @feathersjs/socketio-client
145
184
 
146
-
147
- ## [4.5.2](https://github.com/feathersjs/feathers/compare/v4.5.1...v4.5.2) (2020-03-04)
185
+ ## [4.5.8](https://github.com/feathersjs/feathers/compare/v4.5.7...v4.5.8) (2020-08-12)
148
186
 
149
187
  **Note:** Version bump only for package @feathersjs/socketio-client
150
188
 
189
+ ## [4.5.7](https://github.com/feathersjs/feathers/compare/v4.5.6...v4.5.7) (2020-07-24)
151
190
 
191
+ **Note:** Version bump only for package @feathersjs/socketio-client
152
192
 
193
+ ## [4.5.6](https://github.com/feathersjs/feathers/compare/v4.5.5...v4.5.6) (2020-07-12)
153
194
 
195
+ **Note:** Version bump only for package @feathersjs/socketio-client
154
196
 
155
- ## [4.5.1](https://github.com/feathersjs/feathers/compare/v4.5.0...v4.5.1) (2020-01-24)
197
+ ## [4.5.5](https://github.com/feathersjs/feathers/compare/v4.5.4...v4.5.5) (2020-07-11)
156
198
 
157
199
  **Note:** Version bump only for package @feathersjs/socketio-client
158
200
 
201
+ ## [4.5.4](https://github.com/feathersjs/feathers/compare/v4.5.3...v4.5.4) (2020-04-29)
159
202
 
203
+ **Note:** Version bump only for package @feathersjs/socketio-client
160
204
 
205
+ ## [4.5.3](https://github.com/feathersjs/feathers/compare/v4.5.2...v4.5.3) (2020-04-17)
161
206
 
207
+ **Note:** Version bump only for package @feathersjs/socketio-client
162
208
 
163
- # [4.5.0](https://github.com/feathersjs/feathers/compare/v4.4.3...v4.5.0) (2020-01-18)
209
+ ## [4.5.2](https://github.com/feathersjs/feathers/compare/v4.5.1...v4.5.2) (2020-03-04)
164
210
 
165
211
  **Note:** Version bump only for package @feathersjs/socketio-client
166
212
 
213
+ ## [4.5.1](https://github.com/feathersjs/feathers/compare/v4.5.0...v4.5.1) (2020-01-24)
167
214
 
215
+ **Note:** Version bump only for package @feathersjs/socketio-client
168
216
 
217
+ # [4.5.0](https://github.com/feathersjs/feathers/compare/v4.4.3...v4.5.0) (2020-01-18)
169
218
 
219
+ **Note:** Version bump only for package @feathersjs/socketio-client
170
220
 
171
221
  ## [4.4.3](https://github.com/feathersjs/feathers/compare/v4.4.1...v4.4.3) (2019-12-06)
172
222
 
173
223
  **Note:** Version bump only for package @feathersjs/socketio-client
174
224
 
175
-
176
-
177
-
178
-
179
225
  ## [4.4.1](https://github.com/feathersjs/feathers/compare/v4.4.0...v4.4.1) (2019-11-27)
180
226
 
181
227
  **Note:** Version bump only for package @feathersjs/socketio-client
182
228
 
183
-
184
-
185
-
186
-
187
229
  # [4.4.0](https://github.com/feathersjs/feathers/compare/v4.3.11...v4.4.0) (2019-11-27)
188
230
 
189
231
  **Note:** Version bump only for package @feathersjs/socketio-client
190
232
 
191
-
192
-
193
-
194
-
195
233
  ## [4.3.11](https://github.com/feathersjs/feathers/compare/v4.3.10...v4.3.11) (2019-11-11)
196
234
 
197
235
  **Note:** Version bump only for package @feathersjs/socketio-client
198
236
 
199
-
200
-
201
-
202
-
203
237
  ## [4.3.10](https://github.com/feathersjs/feathers/compare/v4.3.9...v4.3.10) (2019-10-26)
204
238
 
205
239
  **Note:** Version bump only for package @feathersjs/socketio-client
206
240
 
207
-
208
-
209
-
210
-
211
241
  ## [4.3.9](https://github.com/feathersjs/feathers/compare/v4.3.8...v4.3.9) (2019-10-26)
212
242
 
213
243
  **Note:** Version bump only for package @feathersjs/socketio-client
214
244
 
215
-
216
-
217
-
218
-
219
245
  ## [4.3.7](https://github.com/feathersjs/feathers/compare/v4.3.6...v4.3.7) (2019-10-14)
220
246
 
221
247
  **Note:** Version bump only for package @feathersjs/socketio-client
222
248
 
223
-
224
-
225
-
226
-
227
249
  ## [4.3.5](https://github.com/feathersjs/feathers/compare/v4.3.4...v4.3.5) (2019-10-07)
228
250
 
229
-
230
251
  ### Bug Fixes
231
252
 
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
-
253
+ - 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
254
 
238
255
  ## [4.3.4](https://github.com/feathersjs/feathers/compare/v4.3.3...v4.3.4) (2019-10-03)
239
256
 
240
257
  **Note:** Version bump only for package @feathersjs/socketio-client
241
258
 
242
-
243
-
244
-
245
-
246
259
  ## [4.3.3](https://github.com/feathersjs/feathers/compare/v4.3.2...v4.3.3) (2019-09-21)
247
260
 
248
261
  **Note:** Version bump only for package @feathersjs/socketio-client
249
262
 
250
-
251
-
252
-
253
-
254
263
  ## [4.3.2](https://github.com/feathersjs/feathers/compare/v4.3.1...v4.3.2) (2019-09-16)
255
264
 
256
265
  **Note:** Version bump only for package @feathersjs/socketio-client
257
266
 
258
-
259
-
260
-
261
-
262
267
  ## [4.3.1](https://github.com/feathersjs/feathers/compare/v4.3.0...v4.3.1) (2019-09-09)
263
268
 
264
269
  **Note:** Version bump only for package @feathersjs/socketio-client
265
270
 
266
-
267
-
268
-
269
-
270
271
  # [4.3.0](https://github.com/feathersjs/feathers/compare/v4.3.0-pre.4...v4.3.0) (2019-08-27)
271
272
 
272
273
  **Note:** Version bump only for package @feathersjs/socketio-client
273
274
 
274
-
275
-
276
-
277
-
278
275
  # [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
276
 
280
277
  **Note:** Version bump only for package @feathersjs/socketio-client
281
278
 
282
-
283
-
284
-
285
-
286
279
  # [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
280
 
288
281
  **Note:** Version bump only for package @feathersjs/socketio-client
289
282
 
290
-
291
-
292
-
293
-
294
283
  # [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
284
 
296
285
  **Note:** Version bump only for package @feathersjs/socketio-client
297
286
 
298
-
299
-
300
-
301
-
302
287
  # [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
288
 
304
289
  **Note:** Version bump only for package @feathersjs/socketio-client
305
290
 
306
-
307
-
308
-
309
-
310
291
  # [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
292
 
312
293
  **Note:** Version bump only for package @feathersjs/socketio-client
313
294
 
314
-
315
-
316
-
317
-
318
295
  # [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
296
 
320
297
  **Note:** Version bump only for package @feathersjs/socketio-client
321
298
 
322
-
323
-
324
-
325
-
326
299
  # [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
300
 
328
-
329
301
  ### Bug Fixes
330
302
 
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
-
303
+ - Update dependencies and fix tests ([#1373](https://github.com/feathersjs/feathers/issues/1373)) ([d743a7f](https://github.com/feathersjs/feathers/commit/d743a7f))
336
304
 
337
305
  # [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
306
 
339
-
340
307
  ### Bug Fixes
341
308
 
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
-
309
+ - Use `export =` in TypeScript definitions ([#1285](https://github.com/feathersjs/feathers/issues/1285)) ([12d0f4b](https://github.com/feathersjs/feathers/commit/12d0f4b))
347
310
 
348
311
  # [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
312
 
350
313
  **Note:** Version bump only for package @feathersjs/socketio-client
351
314
 
352
-
353
-
354
-
355
-
356
315
  # [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
316
 
358
-
359
317
  ### Bug Fixes
360
318
 
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
-
319
+ - Make Mocha a proper devDependency for every repository ([#1053](https://github.com/feathersjs/feathers/issues/1053)) ([9974803](https://github.com/feathersjs/feathers/commit/9974803))
320
+ - Update adapter common tests ([#1135](https://github.com/feathersjs/feathers/issues/1135)) ([8166dda](https://github.com/feathersjs/feathers/commit/8166dda))
321
+ - Update all dependencies to latest ([#1206](https://github.com/feathersjs/feathers/issues/1206)) ([e51e0f6](https://github.com/feathersjs/feathers/commit/e51e0f6))
365
322
 
366
323
  ### Features
367
324
 
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
-
325
+ - Add TypeScript definitions ([#1275](https://github.com/feathersjs/feathers/issues/1275)) ([9dd6713](https://github.com/feathersjs/feathers/commit/9dd6713))
326
+ - Allow registering a service at the root level ([#1115](https://github.com/feathersjs/feathers/issues/1115)) ([c73d322](https://github.com/feathersjs/feathers/commit/c73d322))
327
+ - Authentication v3 core server implementation ([#1205](https://github.com/feathersjs/feathers/issues/1205)) ([1bd7591](https://github.com/feathersjs/feathers/commit/1bd7591))
375
328
 
376
329
  ## [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
330
 
378
-
379
331
  ### Bug Fixes
380
332
 
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
-
333
+ - Update adapter common tests ([#1135](https://github.com/feathersjs/feathers/issues/1135)) ([8166dda](https://github.com/feathersjs/feathers/commit/8166dda))
386
334
 
387
335
  <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
336
 
337
+ # [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
338
 
391
339
  ### Features
392
340
 
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
-
341
+ - 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
342
 
399
343
  <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
344
 
345
+ ## [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
346
 
403
347
  ### Bug Fixes
404
348
 
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
-
349
+ - 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
350
 
411
351
  <a name="1.1.4"></a>
352
+
412
353
  ## [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
354
 
414
355
  **Note:** Version bump only for package @feathersjs/socketio-client
415
356
 
416
-
417
-
418
-
419
-
420
357
  <a name="1.1.3"></a>
358
+
421
359
  ## [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
360
 
423
361
  **Note:** Version bump only for package @feathersjs/socketio-client
424
362
 
425
-
426
-
427
-
428
-
429
363
  <a name="1.1.2"></a>
364
+
430
365
  ## [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
366
 
432
367
  **Note:** Version bump only for package @feathersjs/socketio-client
433
368
 
434
369
  <a name="1.1.1"></a>
370
+
435
371
  ## 1.1.1
436
372
 
437
373
  - Migrate to Monorepo ([feathers#462](https://github.com/feathersjs/feathers/issues/462))
438
374
 
439
375
  ## [v1.1.0](https://github.com/feathersjs/socketio-client/tree/v1.1.0) (2018-02-09)
376
+
440
377
  [Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.3...v1.1.0)
441
378
 
442
379
  **Closed issues:**
@@ -449,6 +386,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
449
386
  - 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
387
 
451
388
  ## [v1.0.3](https://github.com/feathersjs/socketio-client/tree/v1.0.3) (2018-02-05)
389
+
452
390
  [Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.2...v1.0.3)
453
391
 
454
392
  **Merged pull requests:**
@@ -457,6 +395,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
457
395
  - Update mocha to the latest version 🚀 [\#8](https://github.com/feathersjs/socketio-client/pull/8) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
458
396
 
459
397
  ## [v1.0.2](https://github.com/feathersjs/socketio-client/tree/v1.0.2) (2018-01-03)
398
+
460
399
  [Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.1...v1.0.2)
461
400
 
462
401
  **Merged pull requests:**
@@ -466,6 +405,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
466
405
  - Update feathers-memory to the latest version 🚀 [\#5](https://github.com/feathersjs/socketio-client/pull/5) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
467
406
 
468
407
  ## [v1.0.1](https://github.com/feathersjs/socketio-client/tree/v1.0.1) (2017-11-16)
408
+
469
409
  [Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.0...v1.0.1)
470
410
 
471
411
  **Merged pull requests:**
@@ -473,6 +413,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
473
413
  - Add default export for better ES module \(TypeScript\) compatibility [\#4](https://github.com/feathersjs/socketio-client/pull/4) ([daffl](https://github.com/daffl))
474
414
 
475
415
  ## [v1.0.0](https://github.com/feathersjs/socketio-client/tree/v1.0.0) (2017-11-01)
416
+
476
417
  [Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.0-pre.3...v1.0.0)
477
418
 
478
419
  **Merged pull requests:**
@@ -480,6 +421,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
480
421
  - Update dependencies for release [\#3](https://github.com/feathersjs/socketio-client/pull/3) ([daffl](https://github.com/daffl))
481
422
 
482
423
  ## [v1.0.0-pre.3](https://github.com/feathersjs/socketio-client/tree/v1.0.0-pre.3) (2017-10-23)
424
+
483
425
  [Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.0-pre.2...v1.0.0-pre.3)
484
426
 
485
427
  **Merged pull requests:**
@@ -487,6 +429,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
487
429
  - Use scoped npm packages [\#2](https://github.com/feathersjs/socketio-client/pull/2) ([daffl](https://github.com/daffl))
488
430
 
489
431
  ## [v1.0.0-pre.2](https://github.com/feathersjs/socketio-client/tree/v1.0.0-pre.2) (2017-10-19)
432
+
490
433
  [Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.0-pre.1...v1.0.0-pre.2)
491
434
 
492
435
  **Merged pull requests:**
@@ -495,5 +438,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
495
438
 
496
439
  ## [v1.0.0-pre.1](https://github.com/feathersjs/socketio-client/tree/v1.0.0-pre.1) (2017-10-18)
497
440
 
498
-
499
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
441
+ \* _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.30",
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.30"
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.30",
61
+ "@feathersjs/feathers": "^5.0.0-pre.30",
62
+ "@feathersjs/memory": "^5.0.0-pre.30",
63
+ "@feathersjs/socketio": "^5.0.0-pre.30",
64
+ "@feathersjs/tests": "^5.0.0-pre.30",
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": "b535c91197f4b997520e0a0e608793eeba791931"
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
  }