@signe/room 2.9.0 → 2.9.2
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 +9 -0
- package/LICENSE +21 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +537 -678
- package/dist/index.js.map +1 -1
- package/package.json +10 -4
- package/readme.md +7 -6
- package/src/jwt.ts +1 -5
- package/src/server.ts +40 -27
- package/src/world.ts +28 -19
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# @signe/room
|
|
2
|
+
|
|
3
|
+
## 2.9.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e9907e0: Harden public package usage with clearer package metadata, reliable typechecking, safer sync client listener removal, stronger room request routing, and aligned load behavior for typed collections.
|
|
8
|
+
- Updated dependencies [e9907e0]
|
|
9
|
+
- @signe/sync@2.9.2
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Samuel Ronce
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
CHANGED
|
@@ -528,6 +528,8 @@ declare class Server implements Server$1 {
|
|
|
528
528
|
* @returns {Object} An object containing the path parameters
|
|
529
529
|
*/
|
|
530
530
|
private extractPathParams;
|
|
531
|
+
private normalizeRequestPath;
|
|
532
|
+
private pathPatternToRegex;
|
|
531
533
|
/**
|
|
532
534
|
* @method handleShardRequest
|
|
533
535
|
* @private
|
|
@@ -866,7 +868,7 @@ declare class WorldRoom implements RoomInterceptorPacket, RoomOnJoin {
|
|
|
866
868
|
onJoin(user: any, conn: Connection, ctx: ConnectionContext): Promise<void>;
|
|
867
869
|
interceptorPacket(_: any, obj: any, conn: Connection): any;
|
|
868
870
|
private cleanupInactiveShards;
|
|
869
|
-
registerRoom(req: Request$1): Promise<
|
|
871
|
+
registerRoom(req: Request$1, res?: ServerResponse): Promise<Response>;
|
|
870
872
|
updateShardStats(req: Request$1, res: ServerResponse): Promise<Response>;
|
|
871
873
|
scaleRoom(req: Request$1, res: ServerResponse): Promise<Response>;
|
|
872
874
|
connect(req: Request$1, res: ServerResponse): Promise<Response>;
|