Skip to content

Commit d6e1fb0

Browse files
authored
Merge pull request #82 from windingtree/beta
Fixed LevelDB storage adapter
2 parents a32a742 + ef6a4b2 commit d6e1fb0

35 files changed

+175
-41
lines changed

packages/client/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.3.3-beta.0](https://github.com/windingtree/sdk/compare/@windingtree/sdk-client@1.3.2...@windingtree/sdk-client@1.3.3-beta.0) (2024-01-17)
7+
8+
**Note:** Version bump only for package @windingtree/sdk-client
9+
610
## [1.3.2](https://github.com/windingtree/sdk/compare/@windingtree/sdk-client@1.3.1...@windingtree/sdk-client@1.3.2) (2023-12-22)
711

812
**Note:** Version bump only for package @windingtree/sdk-client

packages/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@windingtree/sdk-client",
3-
"version": "1.3.2",
3+
"version": "1.3.3-beta.0",
44
"description": "The WindingTree market protocol client",
55
"repository": "https://github.com/windingtree/sdk#readme",
66
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",

packages/constants/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.2.3-beta.0](https://github.com/windingtree/sdk/compare/@windingtree/sdk-constants@1.2.2...@windingtree/sdk-constants@1.2.3-beta.0) (2024-01-17)
7+
8+
**Note:** Version bump only for package @windingtree/sdk-constants
9+
610
## [1.2.2](https://github.com/windingtree/sdk/compare/@windingtree/sdk-constants@1.2.1...@windingtree/sdk-constants@1.2.2) (2023-12-11)
711

812
**Note:** Version bump only for package @windingtree/sdk-constants

packages/constants/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@windingtree/sdk-constants",
3-
"version": "1.2.2",
3+
"version": "1.2.3-beta.0",
44
"description": "libp2p PubSub protocol implementation for the WindingTree market protocol",
55
"repository": "https://github.com/windingtree/sdk#readme",
66
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",

packages/contracts-manger/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.3.2-beta.0](https://github.com/windingtree/sdk/compare/@windingtree/sdk-contracts-manager@1.3.1...@windingtree/sdk-contracts-manager@1.3.2-beta.0) (2024-01-17)
7+
8+
**Note:** Version bump only for package @windingtree/sdk-contracts-manager
9+
610
## [1.3.1](https://github.com/windingtree/sdk/compare/@windingtree/sdk-contracts-manager@1.3.0...@windingtree/sdk-contracts-manager@1.3.1) (2023-12-11)
711

812
**Note:** Version bump only for package @windingtree/sdk-contracts-manager

packages/contracts-manger/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@windingtree/sdk-contracts-manager",
3-
"version": "1.3.1",
3+
"version": "1.3.2-beta.0",
44
"description": "Utility class for interaction with the protocol smart contracts",
55
"repository": "https://github.com/windingtree/sdk#readme",
66
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",

packages/db/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.2.6-beta.0](https://github.com/windingtree/sdk/compare/@windingtree/sdk-db@1.2.5...@windingtree/sdk-db@1.2.6-beta.0) (2024-01-17)
7+
8+
**Note:** Version bump only for package @windingtree/sdk-db
9+
610
## [1.2.5](https://github.com/windingtree/sdk/compare/@windingtree/sdk-db@1.2.4...@windingtree/sdk-db@1.2.5) (2023-12-22)
711

812
**Note:** Version bump only for package @windingtree/sdk-db

packages/db/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@windingtree/sdk-db",
3-
"version": "1.2.5",
3+
"version": "1.2.6-beta.0",
44
"description": "Databases for the WindingTree market protocol",
55
"repository": "https://github.com/windingtree/sdk#readme",
66
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",

packages/logger/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.1.4-beta.0](https://github.com/windingtree/sdk/compare/@windingtree/sdk-logger@1.1.3...@windingtree/sdk-logger@1.1.4-beta.0) (2024-01-17)
7+
8+
**Note:** Version bump only for package @windingtree/sdk-logger
9+
610
## [1.1.3](https://github.com/windingtree/sdk/compare/@windingtree/sdk-logger@1.1.2...@windingtree/sdk-logger@1.1.3) (2023-12-11)
711

812
**Note:** Version bump only for package @windingtree/sdk-logger

packages/logger/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@windingtree/sdk-logger",
3-
"version": "1.1.3",
3+
"version": "1.1.4-beta.0",
44
"description": "Logger",
55
"repository": "https://github.com/windingtree/sdk#readme",
66
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",

packages/messages/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.2.3-beta.0](https://github.com/windingtree/sdk/compare/@windingtree/sdk-messages@1.2.2...@windingtree/sdk-messages@1.2.3-beta.0) (2024-01-17)
7+
8+
**Note:** Version bump only for package @windingtree/sdk-messages
9+
610
## [1.2.2](https://github.com/windingtree/sdk/compare/@windingtree/sdk-messages@1.2.1...@windingtree/sdk-messages@1.2.2) (2023-12-11)
711

812
### Bug Fixes

packages/messages/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@windingtree/sdk-messages",
3-
"version": "1.2.2",
3+
"version": "1.2.3-beta.0",
44
"description": "The WindingTree market protocol messages utilities",
55
"repository": "https://github.com/windingtree/sdk#readme",
66
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",

packages/node-api/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.5.1-beta.0](https://github.com/windingtree/sdk/compare/@windingtree/sdk-node-api@1.5.0...@windingtree/sdk-node-api@1.5.1-beta.0) (2024-01-17)
7+
8+
**Note:** Version bump only for package @windingtree/sdk-node-api
9+
610
# [1.5.0](https://github.com/windingtree/sdk/compare/@windingtree/sdk-node-api@1.4.0...@windingtree/sdk-node-api@1.5.0) (2023-12-24)
711

812
### Features

packages/node-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@windingtree/sdk-node-api",
3-
"version": "1.5.0",
3+
"version": "1.5.1-beta.0",
44
"description": "The WindingTree market protocol node API server and client",
55
"repository": "https://github.com/windingtree/sdk#readme",
66
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",

packages/node/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.3.3-beta.0](https://github.com/windingtree/sdk/compare/@windingtree/sdk-node@1.3.2...@windingtree/sdk-node@1.3.3-beta.0) (2024-01-17)
7+
8+
**Note:** Version bump only for package @windingtree/sdk-node
9+
610
## [1.3.2](https://github.com/windingtree/sdk/compare/@windingtree/sdk-node@1.3.1...@windingtree/sdk-node@1.3.2) (2023-12-22)
711

812
**Note:** Version bump only for package @windingtree/sdk-node

packages/node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@windingtree/sdk-node",
3-
"version": "1.3.2",
3+
"version": "1.3.3-beta.0",
44
"description": "The WindingTree market protocol node",
55
"repository": "https://github.com/windingtree/sdk#readme",
66
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",

packages/pubsub/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.3.3-beta.0](https://github.com/windingtree/sdk/compare/@windingtree/sdk-pubsub@1.3.2...@windingtree/sdk-pubsub@1.3.3-beta.0) (2024-01-17)
7+
8+
**Note:** Version bump only for package @windingtree/sdk-pubsub
9+
610
## [1.3.2](https://github.com/windingtree/sdk/compare/@windingtree/sdk-pubsub@1.3.1...@windingtree/sdk-pubsub@1.3.2) (2023-12-22)
711

812
**Note:** Version bump only for package @windingtree/sdk-pubsub

packages/pubsub/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@windingtree/sdk-pubsub",
3-
"version": "1.3.2",
3+
"version": "1.3.3-beta.0",
44
"description": "libp2p PubSub protocol implementation for the WindingTree market protocol",
55
"repository": "https://github.com/windingtree/sdk#readme",
66
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",

packages/queue/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.2.6-beta.0](https://github.com/windingtree/sdk/compare/@windingtree/sdk-queue@1.2.5...@windingtree/sdk-queue@1.2.6-beta.0) (2024-01-17)
7+
8+
**Note:** Version bump only for package @windingtree/sdk-queue
9+
610
## [1.2.5](https://github.com/windingtree/sdk/compare/@windingtree/sdk-queue@1.2.4...@windingtree/sdk-queue@1.2.5) (2023-12-22)
711

812
**Note:** Version bump only for package @windingtree/sdk-queue

packages/queue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@windingtree/sdk-queue",
3-
"version": "1.2.5",
3+
"version": "1.2.6-beta.0",
44
"description": "Jobs queue",
55
"repository": "https://github.com/windingtree/sdk#readme",
66
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",

packages/react/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.4.1-beta.0](https://github.com/windingtree/sdk/compare/@windingtree/sdk-react@1.4.0...@windingtree/sdk-react@1.4.1-beta.0) (2024-01-17)
7+
8+
**Note:** Version bump only for package @windingtree/sdk-react
9+
610
# [1.4.0](https://github.com/windingtree/sdk/compare/@windingtree/sdk-react@1.3.5...@windingtree/sdk-react@1.4.0) (2023-12-24)
711

812
### Features

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@windingtree/sdk-react",
3-
"version": "1.4.0",
3+
"version": "1.4.1-beta.0",
44
"publishConfig": {
55
"access": "public"
66
},

packages/react/src/hooks/usePoller.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ export const usePoller = (
4646
scheduleNextRun();
4747
} catch (error) {
4848
failures++;
49-
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
49+
const errorMessage =
50+
error instanceof Error ? error.message : 'Unknown error';
5051
logger.error(`Poller ${name} error: ${errorMessage}`);
5152
// Schedule the next run even if an error occurred
5253
scheduleNextRun();

packages/server/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.2.6-beta.0](https://github.com/windingtree/sdk/compare/@windingtree/sdk-server@1.2.5...@windingtree/sdk-server@1.2.6-beta.0) (2024-01-17)
7+
8+
**Note:** Version bump only for package @windingtree/sdk-server
9+
610
## [1.2.5](https://github.com/windingtree/sdk/compare/@windingtree/sdk-server@1.2.4...@windingtree/sdk-server@1.2.5) (2023-12-22)
711

812
**Note:** Version bump only for package @windingtree/sdk-server

packages/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@windingtree/sdk-server",
3-
"version": "1.2.5",
3+
"version": "1.2.6-beta.0",
44
"description": "The WindingTree market protocol server",
55
"repository": "https://github.com/windingtree/sdk#readme",
66
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",

packages/storage/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.4.1-beta.0](https://github.com/windingtree/sdk/compare/@windingtree/sdk-storage@1.4.0...@windingtree/sdk-storage@1.4.1-beta.0) (2024-01-17)
7+
8+
### Bug Fixes
9+
10+
- 🐛 fix: Fixed scope-related logic in the LevelDB storage ([0afaff8](https://github.com/windingtree/sdk/commit/0afaff8ad44cf92eeeed44b872ce99732f821ef7))
11+
612
# [1.4.0](https://github.com/windingtree/sdk/compare/@windingtree/sdk-storage@1.3.1...@windingtree/sdk-storage@1.4.0) (2023-12-22)
713

814
### Features

packages/storage/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@windingtree/sdk-storage",
3-
"version": "1.4.0",
3+
"version": "1.4.1-beta.0",
44
"description": "Key-value database abstraction layer",
55
"repository": "https://github.com/windingtree/sdk#readme",
66
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",

packages/storage/src/abstract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export abstract class Storage {
1212
abstract delete(key: string): Promise<boolean>;
1313
abstract entries<CustomValueType = unknown>():
1414
| IterableIterator<[string, CustomValueType]>
15-
| Promise<[[string, CustomValueType]]>;
15+
| Promise<[string, CustomValueType][]>;
1616
}
1717

1818
export interface GenericStorageOptions {

0 commit comments

Comments
 (0)