@openfeed/sdk-js 1.6.10 → 1.7.1
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 +1 -6
- package/dist/generated/openfeed.d.ts +82 -0
- package/dist/generated/openfeed_instrument.d.ts +4 -0
- package/dist/generated/version.d.ts +1 -1
- package/dist/index.js +599 -59
- package/dist/node.js +700 -82
- package/dist/src/connection/connection.d.ts +1 -5
- package/dist/src/connection/listeners.d.ts +1 -2
- package/package.json +1 -1
- package/.releases/CHANGELOG-1.1.4.md +0 -26
- package/.releases/CHANGELOG-1.1.5.md +0 -5
- package/.releases/CHANGELOG-1.1.6.md +0 -10
- package/.releases/CHANGELOG-1.2.0.md +0 -10
- package/.releases/CHANGELOG-1.2.1.md +0 -15
- package/.releases/CHANGELOG-1.2.2.md +0 -10
- package/.releases/CHANGELOG-1.2.3.md +0 -10
- package/.releases/CHANGELOG-1.3.0.md +0 -10
- package/.releases/CHANGELOG-1.3.1.md +0 -10
- package/.releases/CHANGELOG-1.3.2.md +0 -10
- package/.releases/CHANGELOG-1.3.3.md +0 -10
- package/.releases/CHANGELOG-1.4.0.md +0 -10
- package/.releases/CHANGELOG-1.4.1.md +0 -15
- package/.releases/CHANGELOG-1.5.0.md +0 -10
- package/.releases/CHANGELOG-1.6.0.md +0 -11
|
@@ -6,15 +6,11 @@ import type { Service } from "@gen/openfeed";
|
|
|
6
6
|
import { IOpenFeedConnection, IOpenFeedLogger, OpenFeedInstrumentReferenceRequest, OpenFeedInstrumentRequest, OpenfeedRequest } from "./interfaces";
|
|
7
7
|
import { OpenFeedListeners } from "./listeners";
|
|
8
8
|
export declare class OpenFeedConnection implements IOpenFeedConnection {
|
|
9
|
+
#private;
|
|
9
10
|
private readonly connectionToken;
|
|
10
11
|
private readonly socket;
|
|
11
12
|
private readonly listeners;
|
|
12
13
|
private readonly logger?;
|
|
13
|
-
private readonly subscriptionRequests;
|
|
14
|
-
private readonly exchangeRequests;
|
|
15
|
-
private readonly instrumentRequests;
|
|
16
|
-
private readonly definitionsInFlight;
|
|
17
|
-
private readonly instrumentReferenceRequests;
|
|
18
14
|
private readonly whenDisconnectedSource;
|
|
19
15
|
constructor(connectionToken: string, socket: WebSocket, listeners: OpenFeedListeners, logger?: IOpenFeedLogger | undefined);
|
|
20
16
|
private messageTriggered;
|
|
@@ -4,10 +4,9 @@ import Long from "long";
|
|
|
4
4
|
import { HeartBeat } from "@gen/openfeed";
|
|
5
5
|
import { IOpenFeedConnection } from "./interfaces";
|
|
6
6
|
export declare class OpenFeedListeners {
|
|
7
|
+
#private;
|
|
7
8
|
private readonly instrumentByMarketId;
|
|
8
9
|
constructor();
|
|
9
|
-
private cleanUp;
|
|
10
|
-
private addDetails;
|
|
11
10
|
getInstrumentByMarketId: (marketId: Long) => InstrumentDefinition | undefined;
|
|
12
11
|
getSymbolsByMarketId: (marketId: Long) => string[];
|
|
13
12
|
onCleanup: () => void | Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
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.1.3](https://github.com/openfeed-org/sdk-js/compare/1.1.2...1.1.3) (2023-12-20)
|
|
6
|
-
|
|
7
|
-
### [1.1.2](https://github.com/openfeed-org/sdk-js/compare/1.1.1...1.1.2) (2023-12-20)
|
|
8
|
-
|
|
9
|
-
### [1.1.1](https://github.com/openfeed-org/sdk-js/compare/v1.1.0...v1.1.1) (2023-12-20)
|
|
10
|
-
|
|
11
|
-
## [1.1.0](https://github.com/openfeed-org/sdk-js/compare/v1.0.5...v1.1.0) (2023-12-20)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
### Features
|
|
15
|
-
|
|
16
|
-
* update proto files and regenerate ts with newest changes ([1b5ec30](https://github.com/openfeed-org/sdk-js/commit/1b5ec30c42dab7659ab3531d23d4eeeb110a1465))
|
|
17
|
-
|
|
18
|
-
### [1.0.5](https://github.com/openfeed-org/sdk-js/compare/v1.0.4...v1.0.5) (2023-12-20)
|
|
19
|
-
|
|
20
|
-
### [1.0.4](https://github.com/openfeed-org/sdk-js/compare/v1.0.3...v1.0.4) (2023-12-20)
|
|
21
|
-
|
|
22
|
-
### [1.0.3](https://github.com/openfeed-org/sdk-js/compare/v1.0.2...v1.0.3) (2023-12-20)
|
|
23
|
-
|
|
24
|
-
### [1.0.2](https://github.com/openfeed-org/sdk-js/compare/v1.0.1...v1.0.2) (2023-12-20)
|
|
25
|
-
|
|
26
|
-
### 1.0.1 (2023-12-20)
|
|
@@ -1,5 +0,0 @@
|
|
|
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.1.4](https://github.com/openfeed-org/sdk-js/compare/1.1.3...1.1.4) (2023-12-21)
|
|
@@ -1,10 +0,0 @@
|
|
|
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.1.5](https://github.com/openfeed-org/sdk-js/compare/1.1.4...1.1.5) (2023-12-22)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Bug Fixes
|
|
9
|
-
|
|
10
|
-
* new approach for listening to alias changes ([69f2d7d](https://github.com/openfeed-org/sdk-js/commit/69f2d7d6e5b64d7abeb6c6cda052c6e7f512aef3))
|
|
@@ -1,10 +0,0 @@
|
|
|
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.1.6](https://github.com/openfeed-org/sdk-js/compare/1.1.5...1.1.6) (2024-02-27)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Bug Fixes
|
|
9
|
-
|
|
10
|
-
* enhance unsubscription flow to prevent duplicate race condition ([863a4fe](https://github.com/openfeed-org/sdk-js/commit/863a4fe5e2ff27613b70a9f1638df211fd796acc))
|
|
@@ -1,15 +0,0 @@
|
|
|
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))
|
|
@@ -1,10 +0,0 @@
|
|
|
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))
|
|
@@ -1,10 +0,0 @@
|
|
|
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.2](https://github.com/openfeed-org/sdk-js/compare/1.2.1...1.2.2) (2024-07-12)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Bug Fixes
|
|
9
|
-
|
|
10
|
-
* return promise on unsubscribe. ([d37061e](https://github.com/openfeed-org/sdk-js/commit/d37061e4444dde8a65a3636b3e3493fa332dcf4b))
|
|
@@ -1,10 +0,0 @@
|
|
|
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.3](https://github.com/openfeed-org/sdk-js/compare/1.2.2...1.2.3) (2024-12-09)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Features
|
|
9
|
-
|
|
10
|
-
* Added heartbeat listener. ([960bd7a](https://github.com/openfeed-org/sdk-js/commit/960bd7ad27b0cd1c5dfe9714a315d72fdad588b0))
|
|
@@ -1,10 +0,0 @@
|
|
|
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.3.0](https://github.com/openfeed-org/sdk-js/compare/1.2.3...1.3.0) (2025-01-08)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Features
|
|
9
|
-
|
|
10
|
-
* regenarate files from proto to add new properties ([1c7e22f](https://github.com/openfeed-org/sdk-js/commit/1c7e22fa0a06d129a44abff90bdce72e3d1976de))
|
|
@@ -1,10 +0,0 @@
|
|
|
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.3.1](https://github.com/openfeed-org/sdk-js/compare/1.3.0...1.3.1) (2025-01-08)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Bug Fixes
|
|
9
|
-
|
|
10
|
-
* fix type issues ([926eb95](https://github.com/openfeed-org/sdk-js/commit/926eb95db5d3aefa743610c00531438aa8fa46d8))
|
|
@@ -1,10 +0,0 @@
|
|
|
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.3.2](https://github.com/openfeed-org/sdk-js/compare/1.3.1...1.3.2) (2025-01-23)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Bug Fixes
|
|
9
|
-
|
|
10
|
-
* address issues with subscription type and error subscription messages, expand tests ([8c82453](https://github.com/openfeed-org/sdk-js/commit/8c82453f18435418b30d1f5c37a6106bb1e50a65))
|
|
@@ -1,10 +0,0 @@
|
|
|
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.3.3](https://github.com/openfeed-org/sdk-js/compare/1.3.2...1.3.3) (2025-03-28)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Bug Fixes
|
|
9
|
-
|
|
10
|
-
* take a better approach when identifying subscription responses - use correlation ([d841c79](https://github.com/openfeed-org/sdk-js/commit/d841c7996c068b10675e20832c413c4da466996a))
|
|
@@ -1,15 +0,0 @@
|
|
|
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.4.0](https://github.com/openfeed-org/sdk-js/compare/1.3.3...1.4.0) (2025-06-18)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Features
|
|
9
|
-
|
|
10
|
-
* regenarate files from proto ([14f3cad](https://github.com/openfeed-org/sdk-js/commit/14f3cad8a50cc31281ab21f9b701a1d997c4b65a))
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Bug Fixes
|
|
14
|
-
|
|
15
|
-
* extend error logging ([2c31557](https://github.com/openfeed-org/sdk-js/commit/2c315576f871abcaef985ae4a81c7f98b969e692))
|
|
@@ -1,10 +0,0 @@
|
|
|
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.4.1](https://github.com/openfeed-org/sdk-js/compare/1.4.0...1.4.1) (2025-12-22)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Bug Fixes
|
|
9
|
-
|
|
10
|
-
* add clean up of state on disconnect ([9cf3452](https://github.com/openfeed-org/sdk-js/commit/9cf345218d3f6386e3a9189bc543ab5236e0c958))
|
|
@@ -1,11 +0,0 @@
|
|
|
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.5.0](https://github.com/openfeed-org/sdk-js/compare/1.4.1...1.5.0) (2026-01-21)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Features
|
|
9
|
-
|
|
10
|
-
* randomize reconnect and watch checks. ([27bc726](https://github.com/openfeed-org/sdk-js/commit/27bc72668c07a82ecbc8a0ba5395c964edbce59b))
|
|
11
|
-
* regenerate files from proto ([268f23e](https://github.com/openfeed-org/sdk-js/commit/268f23ed4f0d441c0b0b91709f5511272f4322fe))
|