Skip to content

Commit 0d73ffd

Browse files
authored
chore: release v0.20.0 (#800)
* chore: release v0.20.0
1 parent f17886c commit 0d73ffd

File tree

27 files changed

+15047
-7548
lines changed

27 files changed

+15047
-7548
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ jobs:
3131
- run: npm install -g npm
3232

3333
- run: npm install
34-
- run: pushd e2e/browser && npm install && popd
35-
- run: pushd e2e/node && npm install && popd
3634

3735
# build monorepo incl. each subpackage
3836
- run: npm run build --workspaces --if-present

demos/sample-javascript/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@dfinity/ic-agent-sample-javascript-app",
33
"private": true,
4-
"version": "0.19.3",
4+
"version": "0.20.0",
55
"scripts": {
66
"build": "webpack",
77
"develop": "webpack-dev-server",
@@ -10,9 +10,9 @@
1010
"test": ""
1111
},
1212
"dependencies": {
13-
"@dfinity/agent": "^0.19.3",
14-
"@dfinity/identity": "^0.19.3",
15-
"@dfinity/principal": "^0.19.3"
13+
"@dfinity/agent": "^0.20.0",
14+
"@dfinity/identity": "^0.20.0",
15+
"@dfinity/principal": "^0.20.0"
1616
},
1717
"devDependencies": {
1818
"assert": "^2.0.0",

e2e/browser/cypress.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { defineConfig } = require('cypress');
55
module.exports = defineConfig({
66
video: false,
77
e2e: {
8-
setupNodeEvents(on, config) {
8+
setupNodeEvents() {
99
// implement node event listeners here
1010
},
1111
},

e2e/browser/cypress/e2e/ecdsa.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ const setup = async () => {
2424
describe('ECDSAKeyIdentity tests with SubtleCrypto', () => {
2525
it('generates a new identity', () => {
2626
cy.visit('http://localhost:1234');
27-
cy.window().then(async window => {
27+
cy.window().then(async () => {
2828
const { principal1 } = await setup();
2929
const str = principal1.toString();
3030
expect(str).to.be.an('string');
3131
});
3232
});
3333
it('can persist an identity in indexeddb', () => {
3434
cy.visit('http://localhost:1234');
35-
cy.window().then(async window => {
35+
cy.window().then(async () => {
3636
const { principal1, identity1 } = await setup();
3737
const str = principal1.toString();
3838
expect(str).to.be.an('string');

e2e/browser/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@do-not-publish/ic-cypress-e2e-tests",
4-
"version": "0.19.3",
4+
"version": "0.20.0",
55
"scripts": {
66
"ci": "npm run e2e",
77
"setup": "dfx deploy; dfx generate; pm2 --name parcel start npm -- start",
@@ -27,9 +27,9 @@
2727
"size-limit": "^8.1.0"
2828
},
2929
"dependencies": {
30-
"@dfinity/agent": "^0.19.3",
31-
"@dfinity/identity": "^0.19.3",
32-
"@dfinity/principal": "^0.19.3",
30+
"@dfinity/agent": "^0.20.0",
31+
"@dfinity/identity": "^0.20.0",
32+
"@dfinity/principal": "^0.20.0",
3333
"idb-keyval": "^6.2.0"
3434
}
3535
}

e2e/node/basic/assets.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import agent from '../utils/agent';
44
import { Actor } from '@dfinity/agent';
55
import { Principal } from '@dfinity/principal';
66
import { AssetManager } from '@dfinity/assets';
7-
import { test, describe, it, expect, beforeAll, afterEach } from 'vitest';
7+
import { describe, it, expect, beforeAll, afterEach } from 'vitest';
88

99
/**
1010
* Create (pseudo) random bytes Readable

e2e/node/basic/basic.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/**
2-
* @jest-environment node
3-
*/
41
import { ActorMethod, Certificate, getManagementCanister } from '@dfinity/agent';
52
import { IDL } from '@dfinity/candid';
63
import { Principal } from '@dfinity/principal';

e2e/node/basic/identity.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
2-
import { Actor, HttpAgent, SignIdentity } from '@dfinity/agent';
2+
import { Actor, SignIdentity } from '@dfinity/agent';
33
import { IDL } from '@dfinity/candid';
44
import { Principal } from '@dfinity/principal';
55
import {
@@ -62,6 +62,7 @@ async function createEcdsaIdentityActor(
6262
idl: IDL.InterfaceFactory,
6363
identity?: SignIdentity,
6464
): Promise<any> {
65+
global.crypto;
6566
let effectiveIdentity: SignIdentity;
6667
if (identity) {
6768
effectiveIdentity = identity;

e2e/node/basic/mainnet.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Actor, AnonymousIdentity, HttpAgent, Identity, CanisterStatus } from '@
22
import { IDL } from '@dfinity/candid';
33
import { Ed25519KeyIdentity } from '@dfinity/identity';
44
import { Principal } from '@dfinity/principal';
5-
import { describe, it, expect, test, vi } from 'vitest';
5+
import { describe, it, expect, vi } from 'vitest';
66
import { makeAgent } from '../utils/agent';
77

88
const createWhoamiActor = async (identity: Identity) => {

e2e/node/basic/mitm.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { createActor } from '../canisters/declarations/counter/index';
2-
import { test, expect } from 'vitest';
2+
import { test, expect, TestAPI } from 'vitest';
33
import { makeAgent } from '../utils/agent';
44

5-
let mitmTest: any = test;
5+
let mitmTest: TestAPI | typeof test.skip = test;
66
if (!process.env['MITM']) {
77
mitmTest = test.skip;
88
}

0 commit comments

Comments
 (0)