Skip to content

Commit c5333eb

Browse files
committed
version
1 parent a361551 commit c5333eb

File tree

5 files changed

+19
-15
lines changed

5 files changed

+19
-15
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@orbitdb/ordered-keyvalue-db",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Ordered keyvalue database type for orbit-db.",
55
"author": "Julien Jean Malard-Adam",
66
"keywords": [
@@ -33,13 +33,13 @@
3333
"@chainsafe/libp2p-gossipsub": "^14.1.0",
3434
"@chainsafe/libp2p-noise": "^16.0.0",
3535
"@chainsafe/libp2p-yamux": "^7.0.1",
36-
"@constl/orbit-db-types": "^2.0.2",
3736
"@eslint/js": "^9.13.0",
3837
"@helia/block-brokers": "^4.0.1",
3938
"@libp2p/circuit-relay-v2": "^3.0.0",
4039
"@libp2p/identify": "^3.0.9",
4140
"@libp2p/webrtc": "^5.0.14",
4241
"@libp2p/websockets": "^9.0.9",
42+
"@orbitdb/core-types": "^1.0.10",
4343
"@types/mocha": "^10.0.9",
4444
"aegir": "^44.1.4",
4545
"blockstore-core": "^5.0.2",

pnpm-lock.yaml

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "@constl/orbit-db-types";
1+
export * from "@orbitdb/core-types";

src/ordered-keyvalue.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import {
33
Database,
44
type Identity,
55
type Storage,
6+
type MetaData,
7+
type DagCborEncodable,
68
} from "@orbitdb/core";
79
import type { HeliaLibp2p } from "helia";
810

@@ -35,7 +37,7 @@ const OrderedKeyValue =
3537
name?: string;
3638
access?: AccessController;
3739
directory?: string;
38-
meta?: object;
40+
meta?: MetaData;
3941
headsStorage?: Storage;
4042
entryStorage?: Storage;
4143
indexStorage?: Storage;
@@ -63,10 +65,12 @@ const OrderedKeyValue =
6365

6466
const put = async (
6567
key: string,
66-
value: unknown,
68+
value: DagCborEncodable,
6769
position?: number,
6870
): Promise<string> => {
69-
const entryValue: { value: unknown; position?: number } = { value };
71+
const entryValue: { value: DagCborEncodable; position?: number } = {
72+
value,
73+
};
7074
if (position !== undefined) {
7175
entryValue.position = position;
7276
}

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Generated by genversion.
2-
export const version = "1.1.0";
2+
export const version = "1.1.1";

0 commit comments

Comments
 (0)