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