Skip to content
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

Update dwn-sdk-js to v0.2.4 #241

Merged
merged 3 commits into from
Oct 30, 2023
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
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
Loading