Skip to content

Commit

Permalink
Chore/adhere to spec (#116)
Browse files Browse the repository at this point in the history
* chore: comply with refresh of watch subscriptions

* feat: add getNotificationTypes

* chore: fix all tests

* chore: run prettier

* chore: add test for getNotificationTypes

* chore: run prettier

* chore: use allSettled

* chore: use 5 minutes

* chore: run prettier

* chore: bump core

* chore: force symkeys to be in sync

* chore: use smarter timer

* chore: run prettier

* chore: add margins for error

* chore: ammend comment

* chore: run prettier

* chore: bump minor

* chore: bump sdk version

* chore: add logs

* chore: guard timer reset

* chore: run prettier

* chore: bump canary version

* chore: bump canary version

* chore: bump patch

* chore: pin versions

* chore: bump patch
  • Loading branch information
devceline authored Apr 12, 2024
1 parent 41304c9 commit d962314
Show file tree
Hide file tree
Showing 10 changed files with 188 additions and 121 deletions.
98 changes: 32 additions & 66 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"devDependencies": {
"@rollup/plugin-commonjs": "22.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-json": "6.1.0",
"@rollup/plugin-node-resolve": "13.3.0",
"@types/node": "18.6.1",
"@types/pino": "6.3.3",
Expand All @@ -48,13 +48,13 @@
"eslint-plugin-promise": "6.0.0",
"eslint-plugin-react": "7.30.1",
"eslint-plugin-standard": "5.0.0",
"lokijs": "^1.5.12",
"lokijs": "1.5.12",
"prettier": "2.7.1",
"rollup": "2.77.0",
"rollup-plugin-esbuild": "4.9.1",
"rollup-plugin-polyfill-node": "0.10.2",
"sinon": "14.0.0",
"typescript": "4.7.4",
"vitest": "^1.1.3"
"vitest": "1.1.3"
}
}
22 changes: 11 additions & 11 deletions packages/notify-client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@walletconnect/notify-client",
"description": "WalletConnect Notify Client",
"version": "1.2.3",
"version": "1.3.1",
"author": "WalletConnect, Inc. <walletconnect.com>",
"homepage": "https://github.com/walletconnect/notify-client-js/",
"license": "Apache-2.0",
Expand Down Expand Up @@ -30,21 +30,21 @@
"prepublishOnly": "npm run test && npm run build"
},
"dependencies": {
"@noble/ed25519": "^1.7.3",
"@noble/ed25519": "1.7.3",
"@walletconnect/cacao": "1.0.2",
"@walletconnect/core": "^2.11.0-canary.0",
"@walletconnect/core": "2.12.2",
"@walletconnect/did-jwt": "2.0.1",
"@walletconnect/identity-keys": "^2.0.1",
"@walletconnect/identity-keys": "2.0.1",
"@walletconnect/jsonrpc-utils": "1.0.7",
"@walletconnect/time": "1.0.2",
"@walletconnect/utils": "^2.11.0",
"axios": "^1.4.0",
"jwt-decode": "^3.1.2"
"@walletconnect/utils": "2.12.2",
"axios": "1.4.0",
"jwt-decode": "3.1.2"
},
"devDependencies": {
"@ethersproject/wallet": "^5.7.0",
"@types/lodash.clonedeep": "^4.5.7",
"@walletconnect/types": "^2.11.0",
"lodash.clonedeep": "^4.5.0"
"@ethersproject/wallet": "5.7.0",
"@types/lodash.clonedeep": "4.5.7",
"@walletconnect/types": "2.12.2",
"lodash.clonedeep": "4.5.0"
}
}
11 changes: 11 additions & 0 deletions packages/notify-client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,17 @@ export class NotifyClient extends INotifyClient {
}
};

public getNotificationTypes: INotifyClient["getNotificationTypes"] = (
params
) => {
try {
return this.engine.getNotificationTypes(params);
} catch (error: any) {
this.logger.error(error.message);
throw error;
}
};

public getActiveSubscriptions: INotifyClient["getActiveSubscriptions"] = (
params
) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/notify-client/src/constants/sdk_version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const NOTIFY_SDK_VERSION = "1.2.3";
export const NOTIFY_SDK_VERSION = "1.3.1";
Loading

0 comments on commit d962314

Please sign in to comment.