@openfeed/sdk-js 1.2.0 → 1.2.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.
@@ -0,0 +1,15 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
+
5
+ ## [1.2.0](https://github.com/openfeed-org/sdk-js/compare/1.1.6...1.2.0) (2024-03-25)
6
+
7
+
8
+ ### Features
9
+
10
+ * update proto and generate ts files ([cee34a2](https://github.com/openfeed-org/sdk-js/commit/cee34a2f35a5e35ab6c28f9d65dbe71800727819))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * enhance alias change handling to prevent loss of subscriptions ([3714a15](https://github.com/openfeed-org/sdk-js/commit/3714a15f57e1da81876d2c18828823df452b524d))
@@ -0,0 +1,10 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
+
5
+ ### [1.2.1](https://github.com/openfeed-org/sdk-js/compare/1.2.0...1.2.1) (2024-03-29)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * change the remaining heartbeat return ([09ecc79](https://github.com/openfeed-org/sdk-js/commit/09ecc79b34ad457a77a6c1a6d61e0494fa837542))
package/CHANGELOG.md CHANGED
@@ -2,14 +2,9 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ## [1.2.0](https://github.com/openfeed-org/sdk-js/compare/1.1.6...1.2.0) (2024-03-25)
6
-
7
-
8
- ### Features
9
-
10
- * update proto and generate ts files ([cee34a2](https://github.com/openfeed-org/sdk-js/commit/cee34a2f35a5e35ab6c28f9d65dbe71800727819))
5
+ ### [1.2.2](https://github.com/openfeed-org/sdk-js/compare/1.2.1...1.2.2) (2024-07-12)
11
6
 
12
7
 
13
8
  ### Bug Fixes
14
9
 
15
- * enhance alias change handling to prevent loss of subscriptions ([3714a15](https://github.com/openfeed-org/sdk-js/commit/3714a15f57e1da81876d2c18828823df452b524d))
10
+ * return promise on unsubscribe. ([d37061e](https://github.com/openfeed-org/sdk-js/commit/d37061e4444dde8a65a3636b3e3493fa332dcf4b))
@@ -1 +1 @@
1
- export declare const version = "1.2.0";
1
+ export declare const version = "1.2.2";
package/dist/index.js CHANGED
@@ -8213,7 +8213,7 @@ class ResolutionSource {
8213
8213
  return this.onError;
8214
8214
  }
8215
8215
  }
8216
- const version = "1.2.0";
8216
+ const version = "1.2.2";
8217
8217
  const send = (socket, message) => {
8218
8218
  socket.send(OpenfeedGatewayRequestEncode.encode(toT(message)).finish());
8219
8219
  };
@@ -8294,7 +8294,7 @@ class OpenFeedConnection {
8294
8294
  const messages = receive(event);
8295
8295
  for (const message of messages) {
8296
8296
  if (message.heartBeat) {
8297
- return;
8297
+ continue;
8298
8298
  }
8299
8299
  if (((_b = (_a = message.logoutResponse) == null ? void 0 : _a.status) == null ? void 0 : _b.result) === Result.DUPLICATE_LOGIN) {
8300
8300
  (_c = this.logger) == null ? void 0 : _c.warn("Duplicate login");
@@ -8435,7 +8435,7 @@ class OpenFeedConnection {
8435
8435
  throw new Error(`Subscription ID ${subscriptionId} does not exist.`);
8436
8436
  }
8437
8437
  const [originalRequest, sub] = subscription;
8438
- this.fireUnsubscribeWhenReady(originalRequest, sub);
8438
+ return this.fireUnsubscribeWhenReady(originalRequest, sub);
8439
8439
  });
8440
8440
  __publicField(this, "getExchanges", async () => {
8441
8441
  var _a;
package/dist/node.js CHANGED
@@ -11837,7 +11837,7 @@ var ResolutionSource = class {
11837
11837
  };
11838
11838
 
11839
11839
  // generated/version.ts
11840
- var version = "1.2.0";
11840
+ var version = "1.2.2";
11841
11841
 
11842
11842
  // src/connection/connection.ts
11843
11843
  var send = (socket, message) => {
@@ -11928,7 +11928,7 @@ var OpenFeedConnection = class {
11928
11928
  const messages = receive(event);
11929
11929
  for (const message of messages) {
11930
11930
  if (message.heartBeat) {
11931
- return;
11931
+ continue;
11932
11932
  }
11933
11933
  if (((_b = (_a = message.logoutResponse) == null ? void 0 : _a.status) == null ? void 0 : _b.result) === 115 /* DUPLICATE_LOGIN */) {
11934
11934
  (_c = this.logger) == null ? void 0 : _c.warn("Duplicate login");
@@ -12087,7 +12087,7 @@ var OpenFeedConnection = class {
12087
12087
  throw new Error(`Subscription ID ${subscriptionId} does not exist.`);
12088
12088
  }
12089
12089
  const [originalRequest, sub] = subscription;
12090
- this.fireUnsubscribeWhenReady(originalRequest, sub);
12090
+ return this.fireUnsubscribeWhenReady(originalRequest, sub);
12091
12091
  };
12092
12092
  // We are keeping this fire and forget, because our problems
12093
12093
  // would be caused by disconnection, and reconnect will clean up the rest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfeed/sdk-js",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "JavaScript SDK for Barchart OpenFeed",
5
5
  "main": "dist/node.js",
6
6
  "browser": "dist/index.js",