diff --git a/CHANGELOG.md b/CHANGELOG.md index 2884e235..d7e6a06d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +4.1.0 +===== + +* Fix types: use `Record` instead of `Map` for publication tags and `clients` field of `PresenceResult`. + 4.0.1 ===== diff --git a/src/types.ts b/src/types.ts index e88cbd96..3fd39c4d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -173,7 +173,7 @@ export interface PublicationContext { data: any; info?: ClientInfo; offset?: number; - tags?: Map; + tags?: Record; } export interface ClientInfo { @@ -243,7 +243,7 @@ export interface ServerPublicationContext { data: any; info?: ClientInfo; offset?: number; - tags?: Map; + tags?: Record; } export interface ServerJoinContext { @@ -289,7 +289,7 @@ export interface RpcResult { } export interface PresenceResult { - clients: Map; + clients: Record; } export interface PresenceStatsResult {