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

Upgrade dwn-server and dwn-sdk-js #853

Merged
merged 4 commits into from
Aug 27, 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
5 changes: 5 additions & 0 deletions .changeset/gold-tools-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@web5/api": patch
---

Upgrade `agent` to refelcy the newest `dwn-sdk-js` and `dwn-server`
8 changes: 8 additions & 0 deletions .changeset/warm-starfishes-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@web5/agent": patch
"@web5/identity-agent": patch
"@web5/proxy-agent": patch
"@web5/user-agent": patch
---

Upgrade `dwn-sdk-js` version and `dwn-server` dependency
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@changesets/cli": "^2.27.5",
"@npmcli/package-json": "5.0.0",
"@typescript-eslint/eslint-plugin": "7.9.0",
"@web5/dwn-server": "0.4.7",
"@web5/dwn-server": "0.4.8",
"audit-ci": "^7.0.1",
"eslint-plugin-mocha": "10.4.3",
"globals": "^13.24.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"dependencies": {
"@noble/ciphers": "0.5.3",
"@scure/bip39": "1.2.2",
"@tbd54566975/dwn-sdk-js": "0.4.5",
"@tbd54566975/dwn-sdk-js": "0.4.6",
"@web5/common": "1.0.0",
"@web5/crypto": "workspace:*",
"@web5/dids": "1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
},
"devDependencies": {
"@playwright/test": "1.45.3",
"@tbd54566975/dwn-sdk-js": "0.4.5",
"@tbd54566975/dwn-sdk-js": "0.4.6",
"@types/chai": "4.3.6",
"@types/eslint": "8.56.10",
"@types/mocha": "10.0.1",
Expand Down
5 changes: 5 additions & 0 deletions packages/credentials/tests/jwt.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ import { VerifiableCredential } from '../src/verifiable-credential.js';
import sinon from 'sinon';

describe('Jwt', () => {

after(() => {
sinon.restore();
});

describe('parse()', () => {
it('throws error if JWT doesnt contain 3 parts', async () => {
expect(() =>
Expand Down
1 change: 1 addition & 0 deletions packages/credentials/tests/ssi-validator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ describe('SsiValidator', () => {

afterEach(() => {
fetchStub.restore();
sinon.restore();
});

it('should throw an error if credential schema is missing', async () => {
Expand Down
4 changes: 4 additions & 0 deletions packages/credentials/tests/verifiable-credential.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ describe('Verifiable Credential Tests', () => {
) {}
}

after(() => {
sinon.restore();
});

beforeEach(async () => {
issuerDid = await DidJwk.create();
});
Expand Down
4 changes: 4 additions & 0 deletions packages/crypto-aws-kms/tests/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import { Convert } from '@web5/common';
import { mockEcdsaSecp256k1 } from './fixtures/mock-ecdsa-secp256k1.js';

describe('AWS KMS Utils', () => {
after(() => {
sinon.restore();
});

describe('convertSpkiToPublicKey()', () => {
it('converts DER-encoded SPKI public key to JWK', () => {
// Setup.
Expand Down
4 changes: 4 additions & 0 deletions packages/crypto/tests/local-key-manager.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import { LocalKeyManager } from '../src/local-key-manager.js';
describe('LocalKeyManager', () => {
let keyManager: LocalKeyManager;

after(() => {
sinon.restore();
});

beforeEach(() => {
keyManager = new LocalKeyManager();
});
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:0.4.6
image: ghcr.io/tbd54566975/dwn-server:0.4.8
ports:
- "3000:3000"
4 changes: 4 additions & 0 deletions packages/dids/tests/bearer-did.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import { BearerDid } from '../src/bearer-did.js';
describe('BearerDid', () => {
let portableDid: PortableDid;

after(() => {
sinon.restore();
});

beforeEach(() => {
portableDid = {
uri : 'did:jwk:eyJjcnYiOiJFZDI1NTE5Iiwia3R5IjoiT0tQIiwieCI6Im80MHNoWnJzY28tQ2ZFcWs2bUZzWGZjUDk0bHkzQXozZ204NFB6QVVzWG8iLCJraWQiOiJCRHAweGltODJHc3dseG5QVjhUUHRCZFV3ODB3a0dJRjhnakZidzF4NWlRIiwiYWxnIjoiRWREU0EifQ',
Expand Down
1 change: 1 addition & 0 deletions packages/dids/tests/methods/did-dht.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ describe('DidDht', () => {

afterEach(() => {
fetchStub.restore();
sinon.restore();
});

describe('create()', () => {
Expand Down
1 change: 1 addition & 0 deletions packages/dids/tests/methods/did-ion.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ describe('DidIon', () => {

afterEach(() => {
fetchStub.restore();
sinon.restore();
});

describe('create', () => {
Expand Down
4 changes: 4 additions & 0 deletions packages/dids/tests/methods/did-web.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ const fetchOkResponse = (response: any) => ({
});

describe('DidWeb', () => {
after(() => {
sinon.restore();
});

describe('resolve()', () => {
it(`returns a 'notFound' error if the HTTP GET response is not status code 200`, async () => {
// Setup stub so that a mocked response is returned rather than calling over the network.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe('DidResolverCacheLevel', () => {

after(() => {
clock.restore();
sinon.restore();
});

describe('constructor', () => {
Expand Down
36 changes: 18 additions & 18 deletions pnpm-lock.yaml

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

Loading