Skip to content

Commit

Permalink
Update dwn-sdk-js to v0.2.4 (#241)
Browse files Browse the repository at this point in the history
* Update dwn-sdk-js to v0.2.4

* Fix build
  • Loading branch information
Diane Huxley authored Oct 30, 2023
1 parent b40909a commit 1337f95
Show file tree
Hide file tree
Showing 9 changed files with 159 additions and 112 deletions.
238 changes: 141 additions & 97 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/agent/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web5/agent",
"version": "0.2.1",
"version": "0.2.2",
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down Expand Up @@ -67,7 +67,7 @@
"node": ">=18.0.0"
},
"dependencies": {
"@tbd54566975/dwn-sdk-js": "0.2.3",
"@tbd54566975/dwn-sdk-js": "0.2.4",
"@web5/common": "0.2.1",
"@web5/crypto": "0.2.1",
"@web5/dids": "0.2.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web5/api",
"version": "0.8.1",
"version": "0.8.2",
"description": "SDK for accessing the features and capabilities of Web5",
"type": "module",
"main": "./dist/cjs/index.js",
Expand Down Expand Up @@ -75,8 +75,8 @@
"node": ">=18.0.0"
},
"dependencies": {
"@tbd54566975/dwn-sdk-js": "0.2.3",
"@web5/agent": "0.2.1",
"@tbd54566975/dwn-sdk-js": "0.2.4",
"@web5/agent": "0.2.2",
"@web5/crypto": "0.2.1",
"@web5/dids": "0.2.1",
"@web5/user-agent": "0.2.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/api/src/dwn-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ export class DwnApi {
const protocols = entries.map((entry: ProtocolsQueryReplyEntry) => {
const metadata = { author: this.connectedDid, };

return new Protocol(this.agent, entry, metadata);
// FIXME: dwn-sdk-js actually returns the entire ProtocolsConfigure message,
// but the type claims that it returns the message without authorization.
// When dwn-sdk-js fixes the type, we should remove `as ProtocolsConfigureMessage`
return new Protocol(this.agent, entry as ProtocolsConfigureMessage, metadata);
});

return { protocols, status };
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type RecordOptions = RecordsWriteMessage & {
};

export type RecordModel = RecordsWriteDescriptor
& Omit<RecordsWriteMessage, 'descriptor' | 'recordId'>
& Omit<RecordsWriteMessage, 'descriptor' | 'recordId' | 'authorization'>
& {
author: string;
recordId?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/dev-env/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ version: "3.98"
services:
dwn-server:
container_name: dwn-server
image: ghcr.io/tbd54566975/dwn-server:dwn-sdk-0.2.3
image: ghcr.io/tbd54566975/dwn-server:dwn-sdk-0.2.4
ports:
- "3000:3000"
Loading

0 comments on commit 1337f95

Please sign in to comment.