@feathersjs/socketio 5.0.0-pre.16 → 5.0.0-pre.19
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 +27 -0
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/lib/middleware.d.ts +3 -1
- package/package.json +18 -16
- package/src/middleware.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.19](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.18...v5.0.0-pre.19) (2022-05-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **typescript:** Improve params and query typeability ([#2600](https://github.com/feathersjs/feathers/issues/2600)) ([df28b76](https://github.com/feathersjs/feathers/commit/df28b7619161f1df5e700326f52cca1a92dc5d28))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [5.0.0-pre.18](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.17...v5.0.0-pre.18) (2022-04-11)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @feathersjs/socketio
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [5.0.0-pre.17](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.16...v5.0.0-pre.17) (2022-02-15)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @feathersjs/socketio
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [5.0.0-pre.16](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.15...v5.0.0-pre.16) (2022-01-12)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @feathersjs/socketio
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @feathersjs/socketio
|
|
2
2
|
|
|
3
3
|
[](https://github.com/feathersjs/feathers/actions?query=workflow%3ACI)
|
|
4
|
-
[](https://david-dm.org/feathersjs/feathers?path=packages/socketio)
|
|
5
4
|
[](https://www.npmjs.com/package/@feathersjs/socketio)
|
|
5
|
+
[](https://discord.gg/qa8kez8QBx)
|
|
6
6
|
|
|
7
7
|
> The Feathers Socket.io real-time API provider
|
|
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) 2022 [Feathers contributors](https://github.com/feathersjs/feathers/graphs/contributors)
|
|
22
22
|
|
|
23
23
|
Licensed under the [MIT license](LICENSE).
|
package/lib/middleware.d.ts
CHANGED
|
@@ -3,7 +3,9 @@ import { Socket } from 'socket.io';
|
|
|
3
3
|
export declare type ParamsGetter = (socket: Socket) => any;
|
|
4
4
|
export declare type NextFunction = (err?: any) => void;
|
|
5
5
|
export interface FeathersSocket extends Socket {
|
|
6
|
-
feathers?: Params
|
|
6
|
+
feathers?: Params & {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
7
9
|
}
|
|
8
10
|
export declare const disconnect: (app: Application, getParams: ParamsGetter) => (socket: FeathersSocket, next: NextFunction) => void;
|
|
9
11
|
export declare const params: (_app: Application, socketMap: WeakMap<any, any>) => (socket: FeathersSocket, next: NextFunction) => void;
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feathersjs/socketio",
|
|
3
3
|
"description": "The Feathers Socket.io real-time API provider",
|
|
4
|
-
"version": "5.0.0-pre.
|
|
4
|
+
"version": "5.0.0-pre.19",
|
|
5
5
|
"homepage": "https://feathersjs.com",
|
|
6
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"
|
|
19
21
|
},
|
|
20
22
|
"author": {
|
|
21
23
|
"name": "Feathers contributors",
|
|
@@ -50,22 +52,22 @@
|
|
|
50
52
|
"access": "public"
|
|
51
53
|
},
|
|
52
54
|
"dependencies": {
|
|
53
|
-
"@feathersjs/commons": "^5.0.0-pre.
|
|
54
|
-
"@feathersjs/feathers": "^5.0.0-pre.
|
|
55
|
-
"@feathersjs/transport-commons": "^5.0.0-pre.
|
|
56
|
-
"socket.io": "^4.
|
|
55
|
+
"@feathersjs/commons": "^5.0.0-pre.19",
|
|
56
|
+
"@feathersjs/feathers": "^5.0.0-pre.19",
|
|
57
|
+
"@feathersjs/transport-commons": "^5.0.0-pre.19",
|
|
58
|
+
"socket.io": "^4.5.0"
|
|
57
59
|
},
|
|
58
60
|
"devDependencies": {
|
|
59
|
-
"@feathersjs/express": "^5.0.0-pre.
|
|
60
|
-
"@feathersjs/memory": "^5.0.0-pre.
|
|
61
|
-
"@feathersjs/tests": "^5.0.0-pre.
|
|
62
|
-
"@types/mocha": "^9.
|
|
63
|
-
"@types/node": "^17.0.
|
|
61
|
+
"@feathersjs/express": "^5.0.0-pre.19",
|
|
62
|
+
"@feathersjs/memory": "^5.0.0-pre.19",
|
|
63
|
+
"@feathersjs/tests": "^5.0.0-pre.19",
|
|
64
|
+
"@types/mocha": "^9.1.1",
|
|
65
|
+
"@types/node": "^17.0.31",
|
|
64
66
|
"lodash": "^4.17.21",
|
|
65
|
-
"mocha": "^
|
|
66
|
-
"shx": "^0.3.
|
|
67
|
-
"socket.io-client": "^4.
|
|
68
|
-
"typescript": "^4.
|
|
67
|
+
"mocha": "^10.0.0",
|
|
68
|
+
"shx": "^0.3.4",
|
|
69
|
+
"socket.io-client": "^4.5.0",
|
|
70
|
+
"typescript": "^4.6.4"
|
|
69
71
|
},
|
|
70
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "57f3e18bb62735e1869ffafee90286498738fdfa"
|
|
71
73
|
}
|
package/src/middleware.ts
CHANGED
|
@@ -7,7 +7,7 @@ const debug = createDebug('@feathersjs/socketio/middleware');
|
|
|
7
7
|
export type ParamsGetter = (socket: Socket) => any;
|
|
8
8
|
export type NextFunction = (err?: any) => void;
|
|
9
9
|
export interface FeathersSocket extends Socket {
|
|
10
|
-
feathers?: Params
|
|
10
|
+
feathers?: Params & { [key: string]: any }
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export const disconnect = (app: Application, getParams: ParamsGetter) =>
|