From ac5d1634dc22063b3dac70e5898a18b909464e7a Mon Sep 17 00:00:00 2001 From: Kyle Peacock Date: Tue, 22 Aug 2023 10:56:37 -0700 Subject: [PATCH] feat: replaces the `js-sha256` library with `@noble/hashes` (#753) * feat: replaces js-sha256 library with @noble/hashes * adding dep to identity and principal * adds missing dependency for identity-secp256k1 --- docs/generated/changelog.html | 4 +++ package-lock.json | 30 ++++++++++++++----- packages/agent/package.json | 2 +- packages/agent/src/request_id.ts | 6 ++-- packages/agent/src/utils/buffer.ts | 9 ++++++ packages/assets/package.json | 2 +- packages/assets/src/index.ts | 27 +++++++++-------- packages/identity-secp256k1/package.json | 1 + .../identity-secp256k1/src/secp256k1.test.ts | 2 +- packages/identity-secp256k1/src/secp256k1.ts | 4 +-- packages/identity/package.json | 2 +- packages/identity/src/identity/ecdsa.test.ts | 2 +- packages/principal/package.json | 10 +++---- packages/principal/src/utils/sha224.ts | 6 ++-- 14 files changed, 68 insertions(+), 39 deletions(-) diff --git a/docs/generated/changelog.html b/docs/generated/changelog.html index 895775af7..025f0f0f8 100644 --- a/docs/generated/changelog.html +++ b/docs/generated/changelog.html @@ -12,6 +12,10 @@

Agent-JS Changelog

Version x.x.x