From 66f0467caacd18a552264f5d5b70029c32e5c8f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Miernik?= Date: Mon, 26 Apr 2021 08:51:57 +0200 Subject: [PATCH 1/2] Reordered fields in DDP method call. --- packages/ddp-client/common/livedata_connection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ddp-client/common/livedata_connection.js b/packages/ddp-client/common/livedata_connection.js index 740a7f4abb..f3992944c2 100644 --- a/packages/ddp-client/common/livedata_connection.js +++ b/packages/ddp-client/common/livedata_connection.js @@ -692,9 +692,9 @@ export class Connection { // wrote. const message = { msg: 'method', + id: methodId, method: name, - params: args, - id: methodId + params: args }; // If an exception occurred in a stub, and we're ignoring it From 18acb613a38cc003e1b744d013693074710020b7 Mon Sep 17 00:00:00 2001 From: Jan Dvorak Date: Thu, 29 Apr 2021 19:38:05 +0200 Subject: [PATCH 2/2] Bump ddp-client version and add history entry --- History.md | 2 ++ packages/ddp-client/package.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/History.md b/History.md index ac14a8813e..185e615953 100644 --- a/History.md +++ b/History.md @@ -4,6 +4,8 @@ * Updated `ddp-server@2.3.3` and `socket-stream-client@0.3.2` dependencies which removes Node's HTTP deprecation warning. +* Released `ddp-client@2.4.1` re-ordering fields in DDP message for better client readability. + ## v2.2, 2021-04-15 #### Highlights diff --git a/packages/ddp-client/package.js b/packages/ddp-client/package.js index 1d5b5a5bcd..ff13d25b8e 100644 --- a/packages/ddp-client/package.js +++ b/packages/ddp-client/package.js @@ -1,6 +1,6 @@ Package.describe({ summary: "Meteor's latency-compensated distributed data client", - version: '2.4.0', + version: '2.4.1', documentation: null });