Skip to content

Fixed LevelDB storage adapter #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [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)

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

## [1.3.2](https://github.com/windingtree/sdk/compare/@windingtree/sdk-client@1.3.1...@windingtree/sdk-client@1.3.2) (2023-12-22)

**Note:** Version bump only for package @windingtree/sdk-client
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@windingtree/sdk-client",
"version": "1.3.2",
"version": "1.3.3-beta.0",
"description": "The WindingTree market protocol client",
"repository": "https://github.com/windingtree/sdk#readme",
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",
Expand Down
4 changes: 4 additions & 0 deletions packages/constants/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [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)

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

## [1.2.2](https://github.com/windingtree/sdk/compare/@windingtree/sdk-constants@1.2.1...@windingtree/sdk-constants@1.2.2) (2023-12-11)

**Note:** Version bump only for package @windingtree/sdk-constants
Expand Down
2 changes: 1 addition & 1 deletion packages/constants/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@windingtree/sdk-constants",
"version": "1.2.2",
"version": "1.2.3-beta.0",
"description": "libp2p PubSub protocol implementation for the WindingTree market protocol",
"repository": "https://github.com/windingtree/sdk#readme",
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",
Expand Down
4 changes: 4 additions & 0 deletions packages/contracts-manger/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [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)

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

## [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)

**Note:** Version bump only for package @windingtree/sdk-contracts-manager
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts-manger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@windingtree/sdk-contracts-manager",
"version": "1.3.1",
"version": "1.3.2-beta.0",
"description": "Utility class for interaction with the protocol smart contracts",
"repository": "https://github.com/windingtree/sdk#readme",
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",
Expand Down
4 changes: 4 additions & 0 deletions packages/db/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [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)

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

## [1.2.5](https://github.com/windingtree/sdk/compare/@windingtree/sdk-db@1.2.4...@windingtree/sdk-db@1.2.5) (2023-12-22)

**Note:** Version bump only for package @windingtree/sdk-db
Expand Down
2 changes: 1 addition & 1 deletion packages/db/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@windingtree/sdk-db",
"version": "1.2.5",
"version": "1.2.6-beta.0",
"description": "Databases for the WindingTree market protocol",
"repository": "https://github.com/windingtree/sdk#readme",
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",
Expand Down
4 changes: 4 additions & 0 deletions packages/logger/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [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)

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

## [1.1.3](https://github.com/windingtree/sdk/compare/@windingtree/sdk-logger@1.1.2...@windingtree/sdk-logger@1.1.3) (2023-12-11)

**Note:** Version bump only for package @windingtree/sdk-logger
Expand Down
2 changes: 1 addition & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@windingtree/sdk-logger",
"version": "1.1.3",
"version": "1.1.4-beta.0",
"description": "Logger",
"repository": "https://github.com/windingtree/sdk#readme",
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",
Expand Down
4 changes: 4 additions & 0 deletions packages/messages/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [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)

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

## [1.2.2](https://github.com/windingtree/sdk/compare/@windingtree/sdk-messages@1.2.1...@windingtree/sdk-messages@1.2.2) (2023-12-11)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion packages/messages/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@windingtree/sdk-messages",
"version": "1.2.2",
"version": "1.2.3-beta.0",
"description": "The WindingTree market protocol messages utilities",
"repository": "https://github.com/windingtree/sdk#readme",
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",
Expand Down
4 changes: 4 additions & 0 deletions packages/node-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [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)

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

# [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)

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/node-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@windingtree/sdk-node-api",
"version": "1.5.0",
"version": "1.5.1-beta.0",
"description": "The WindingTree market protocol node API server and client",
"repository": "https://github.com/windingtree/sdk#readme",
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",
Expand Down
4 changes: 4 additions & 0 deletions packages/node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [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)

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

## [1.3.2](https://github.com/windingtree/sdk/compare/@windingtree/sdk-node@1.3.1...@windingtree/sdk-node@1.3.2) (2023-12-22)

**Note:** Version bump only for package @windingtree/sdk-node
Expand Down
2 changes: 1 addition & 1 deletion packages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@windingtree/sdk-node",
"version": "1.3.2",
"version": "1.3.3-beta.0",
"description": "The WindingTree market protocol node",
"repository": "https://github.com/windingtree/sdk#readme",
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",
Expand Down
4 changes: 4 additions & 0 deletions packages/pubsub/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [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)

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

## [1.3.2](https://github.com/windingtree/sdk/compare/@windingtree/sdk-pubsub@1.3.1...@windingtree/sdk-pubsub@1.3.2) (2023-12-22)

**Note:** Version bump only for package @windingtree/sdk-pubsub
Expand Down
2 changes: 1 addition & 1 deletion packages/pubsub/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@windingtree/sdk-pubsub",
"version": "1.3.2",
"version": "1.3.3-beta.0",
"description": "libp2p PubSub protocol implementation for the WindingTree market protocol",
"repository": "https://github.com/windingtree/sdk#readme",
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",
Expand Down
4 changes: 4 additions & 0 deletions packages/queue/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [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)

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

## [1.2.5](https://github.com/windingtree/sdk/compare/@windingtree/sdk-queue@1.2.4...@windingtree/sdk-queue@1.2.5) (2023-12-22)

**Note:** Version bump only for package @windingtree/sdk-queue
Expand Down
2 changes: 1 addition & 1 deletion packages/queue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@windingtree/sdk-queue",
"version": "1.2.5",
"version": "1.2.6-beta.0",
"description": "Jobs queue",
"repository": "https://github.com/windingtree/sdk#readme",
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",
Expand Down
4 changes: 4 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [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)

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

# [1.4.0](https://github.com/windingtree/sdk/compare/@windingtree/sdk-react@1.3.5...@windingtree/sdk-react@1.4.0) (2023-12-24)

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@windingtree/sdk-react",
"version": "1.4.0",
"version": "1.4.1-beta.0",
"publishConfig": {
"access": "public"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/react/src/hooks/usePoller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export const usePoller = (
scheduleNextRun();
} catch (error) {
failures++;
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
const errorMessage =
error instanceof Error ? error.message : 'Unknown error';
logger.error(`Poller ${name} error: ${errorMessage}`);
// Schedule the next run even if an error occurred
scheduleNextRun();
Expand Down
4 changes: 4 additions & 0 deletions packages/server/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [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)

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

## [1.2.5](https://github.com/windingtree/sdk/compare/@windingtree/sdk-server@1.2.4...@windingtree/sdk-server@1.2.5) (2023-12-22)

**Note:** Version bump only for package @windingtree/sdk-server
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@windingtree/sdk-server",
"version": "1.2.5",
"version": "1.2.6-beta.0",
"description": "The WindingTree market protocol server",
"repository": "https://github.com/windingtree/sdk#readme",
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",
Expand Down
6 changes: 6 additions & 0 deletions packages/storage/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [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)

### Bug Fixes

- 🐛 fix: Fixed scope-related logic in the LevelDB storage ([0afaff8](https://github.com/windingtree/sdk/commit/0afaff8ad44cf92eeeed44b872ce99732f821ef7))

# [1.4.0](https://github.com/windingtree/sdk/compare/@windingtree/sdk-storage@1.3.1...@windingtree/sdk-storage@1.4.0) (2023-12-22)

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/storage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@windingtree/sdk-storage",
"version": "1.4.0",
"version": "1.4.1-beta.0",
"description": "Key-value database abstraction layer",
"repository": "https://github.com/windingtree/sdk#readme",
"author": "Kostiantyn Smyrnov <kostysh@gmail.com>",
Expand Down
2 changes: 1 addition & 1 deletion packages/storage/src/abstract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export abstract class Storage {
abstract delete(key: string): Promise<boolean>;
abstract entries<CustomValueType = unknown>():
| IterableIterator<[string, CustomValueType]>
| Promise<[[string, CustomValueType]]>;
| Promise<[string, CustomValueType][]>;
}

export interface GenericStorageOptions {
Expand Down
Loading