Skip to content

Commit

Permalink
Bump web5 package to 0.7.7 and remove mocha test timeouts
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Hinek <[email protected]>
  • Loading branch information
frankhinek committed Jun 2, 2023
1 parent 35b8f5f commit d1afd13
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 12 deletions.
1 change: 0 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ npm install @tbd54566975/web5
_CDNs_

```yaml
https://unpkg.com/@tbd54566975/[email protected].5/dist/browser.js
https://unpkg.com/@tbd54566975/[email protected].7/dist/browser.js
```

```yaml
https://cdn.jsdelivr.net/npm/@tbd54566975/[email protected].5/dist/browser.mjs
https://cdn.jsdelivr.net/npm/@tbd54566975/[email protected].7/dist/browser.mjs
```

### Importing the SDK
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
4 changes: 2 additions & 2 deletions packages/web5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ npm install @tbd54566975/web5
_CDNs_

```yaml
https://unpkg.com/@tbd54566975/[email protected].5/dist/browser.js
https://unpkg.com/@tbd54566975/[email protected].7/dist/browser.js
```

```yaml
https://cdn.jsdelivr.net/npm/@tbd54566975/[email protected].5/dist/browser.mjs
https://cdn.jsdelivr.net/npm/@tbd54566975/[email protected].7/dist/browser.mjs
```

### Importing the SDK
Expand Down
2 changes: 1 addition & 1 deletion packages/web5/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 4 additions & 4 deletions packages/web5/tests/record.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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!';
Expand Down Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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`.
Expand Down

0 comments on commit d1afd13

Please sign in to comment.