From d1afd130631cac8d22814b1efe3a7f80586ae566 Mon Sep 17 00:00:00 2001 From: Frank Hinek Date: Fri, 2 Jun 2023 18:34:30 -0400 Subject: [PATCH] Bump web5 package to 0.7.7 and remove mocha test timeouts Signed-off-by: Frank Hinek --- .vscode/extensions.json | 1 - README.md | 4 ++-- package-lock.json | 2 +- .../web5-user-agent/tests/common/web5-user-agent.spec.ts | 2 +- packages/web5/README.md | 4 ++-- packages/web5/package.json | 2 +- packages/web5/tests/record.spec.ts | 8 ++++---- 7 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index b1c93b8d2..fda194ca5 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -3,7 +3,6 @@ "aaron-bond.better-comments", "ambar.bundle-size", "dbaeumer.vscode-eslint", - "file-icons.file-icons", "eamodio.gitlens", "christian-kohler.npm-intellisense", "christian-kohler.path-intellisense" diff --git a/README.md b/README.md index 4e0a8130c..c6edb3ca0 100644 --- a/README.md +++ b/README.md @@ -37,11 +37,11 @@ npm install @tbd54566975/web5 _CDNs_ ```yaml -https://unpkg.com/@tbd54566975/web5@0.7.5/dist/browser.js +https://unpkg.com/@tbd54566975/web5@0.7.7/dist/browser.js ``` ```yaml -https://cdn.jsdelivr.net/npm/@tbd54566975/web5@0.7.5/dist/browser.mjs +https://cdn.jsdelivr.net/npm/@tbd54566975/web5@0.7.7/dist/browser.mjs ``` ### Importing the SDK diff --git a/package-lock.json b/package-lock.json index b6da424cb..fa7cbd533 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7757,7 +7757,7 @@ }, "packages/web5": { "name": "@tbd54566975/web5", - "version": "0.7.6", + "version": "0.7.7", "license": "Apache-2.0", "dependencies": { "@decentralized-identity/ion-tools": "1.0.7", diff --git a/packages/web5-user-agent/tests/common/web5-user-agent.spec.ts b/packages/web5-user-agent/tests/common/web5-user-agent.spec.ts index dc15082eb..43c367d93 100644 --- a/packages/web5-user-agent/tests/common/web5-user-agent.spec.ts +++ b/packages/web5-user-agent/tests/common/web5-user-agent.spec.ts @@ -72,7 +72,7 @@ describe('Web5UserAgent', () => { expect(response.reply.status).to.exist; expect(response.reply.entries).to.exist; expect(response.reply.status.code).to.equal(200); - }).timeout(10_000); + }); it('handles RecordsDelete Messages', async () => { const { did: aliceDid } = await testAgent.createProfile({ diff --git a/packages/web5/README.md b/packages/web5/README.md index 8dad7b6a1..85d7dfa7b 100644 --- a/packages/web5/README.md +++ b/packages/web5/README.md @@ -37,11 +37,11 @@ npm install @tbd54566975/web5 _CDNs_ ```yaml -https://unpkg.com/@tbd54566975/web5@0.7.5/dist/browser.js +https://unpkg.com/@tbd54566975/web5@0.7.7/dist/browser.js ``` ```yaml -https://cdn.jsdelivr.net/npm/@tbd54566975/web5@0.7.5/dist/browser.mjs +https://cdn.jsdelivr.net/npm/@tbd54566975/web5@0.7.7/dist/browser.mjs ``` ### Importing the SDK diff --git a/packages/web5/package.json b/packages/web5/package.json index 85d955731..12ea5b094 100644 --- a/packages/web5/package.json +++ b/packages/web5/package.json @@ -1,6 +1,6 @@ { "name": "@tbd54566975/web5", - "version": "0.7.6", + "version": "0.7.7", "description": "SDK for accessing the features and capabilities of Web5", "type": "module", "main": "./dist/cjs/main.cjs", diff --git a/packages/web5/tests/record.spec.ts b/packages/web5/tests/record.spec.ts index 15932c678..a7f39b54e 100644 --- a/packages/web5/tests/record.spec.ts +++ b/packages/web5/tests/record.spec.ts @@ -595,7 +595,7 @@ describe('Record', () => { expect(aliceRemoteQueryResult.records!.length).to.equal(1); const [ aliceRemoteEmailRecord ] = aliceAgentQueryResult!.records!; expect(await aliceRemoteEmailRecord.data.text()).to.equal(dataString); - }).timeout(10_000); + }); it(`writes records to remote DWNs for someone else's DID`, async () => { const dataString = 'Hello, world!'; @@ -660,7 +660,7 @@ describe('Record', () => { expect(bobQueryResult.records!.length).to.equal(1); const [ bobRemoteEmailRecord ] = bobQueryResult!.records!; expect(await bobRemoteEmailRecord.data.text()).to.equal(dataString); - }).timeout(10_000); + }); describe('with `store: false`', () => { it('writes records to your own remote DWN but not your agent DWN', async () => { @@ -714,7 +714,7 @@ describe('Record', () => { expect(aliceRemoteQueryResult.records!.length).to.equal(1); const [ aliceRemoteEmailRecord ] = aliceRemoteQueryResult!.records!; expect(await aliceRemoteEmailRecord.data.text()).to.equal(dataString); - }).timeout(10_000); + }); it(`writes records to someone else's remote DWN but not your agent DWN`, async () => { // Install a protocol on Alice's agent connected DWN. @@ -802,7 +802,7 @@ describe('Record', () => { expect(bobQueryResult.records!.length).to.equal(1); const [ bobRemoteEmailRecord ] = bobQueryResult!.records!; expect(await bobRemoteEmailRecord.data.text()).to.equal(dataString); - }).timeout(10_000); + }); it('has no effect if `store: true`', async () => { // Alice writes a message to her agent DWN with `store: true`.