@feathersjs/socketio-client 5.0.0-pre.9 → 5.0.1

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