diff --git a/package-lock.json b/package-lock.json index 75163a1..bfe9d29 100644 --- a/package-lock.json +++ b/package-lock.json @@ -66,55 +66,6 @@ "node": ">= 10.0.0" } }, - "node_modules/@dfinity/agent": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.20.2.tgz", - "integrity": "sha512-xy90wXH4jn3KOi1vyeZ5ji8gnUUY4Iy8k8Juk8/P/IftTDUPmgWL5uLpL3wVV1qnna418Pms1kXSFtbf8OFM0Q==", - "dependencies": { - "@noble/curves": "^1.2.0", - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "buffer": "^6.0.3", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.20.2", - "@dfinity/principal": "^0.20.2" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.20.2.tgz", - "integrity": "sha512-pBKk7J+IzX6mnyU8T35751DjDxU2c+roMyrN5UU6fhems1ciITcOm29bPhGzQEe3f8hz/K4arlVMqWTYwOrdEg==", - "peerDependencies": { - "@dfinity/principal": "^0.20.2" - } - }, - "node_modules/@dfinity/identity": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@dfinity/identity/-/identity-0.20.2.tgz", - "integrity": "sha512-0mrbJPSva8wei8KYpybFGVD2tWfx0Jd9EJDrAuWiW++JDtZTYql2e2/8Vg5vcrGuqWLP3qMP2YC1dziJqgcUdA==", - "dependencies": { - "@noble/curves": "^1.2.0", - "@noble/hashes": "^1.3.1", - "borc": "^2.1.1" - }, - "peerDependencies": { - "@dfinity/agent": "^0.20.2", - "@dfinity/principal": "^0.20.2", - "@peculiar/webcrypto": "^1.4.0" - } - }, - "node_modules/@dfinity/principal": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.20.2.tgz", - "integrity": "sha512-xNysODrIxepNjo0ytBrpdCZOkoFCeD5zATyPDXT8tshpBeeQQlgSekDvfHqq7+DeGq9NkGfwTr8IPOmLpltKcg==", - "peer": true, - "dependencies": { - "@noble/hashes": "^1.3.1" - } - }, "node_modules/@esbuild/aix-ppc64": { "version": "0.19.11", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.11.tgz", @@ -8072,12 +8023,12 @@ } }, "packages/ic-use-siwe-identity": { - "version": "0.0.5", + "version": "0.0.7", "license": "MIT", "dependencies": { - "@dfinity/agent": "^=0.20.0", - "@dfinity/candid": "^=0.20.0", - "@dfinity/identity": "^=0.20.0" + "@dfinity/agent": "^1.0.1", + "@dfinity/candid": "^1.0.1", + "@dfinity/identity": "^1.0.1" }, "devDependencies": { "@types/node": "^20.10.6", @@ -8100,6 +8051,55 @@ "viem": ">=1.19.8", "wagmi": ">=1.4.7" } + }, + "packages/ic-use-siwe-identity/node_modules/@dfinity/agent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-1.0.1.tgz", + "integrity": "sha512-QoCiKIWEgsXoaiHpb76M2qLXYDS9IdfvC81dLJYvX9KVXRq8Ojo4S82tBqBFGtM0j0EKEC6mIAJV/bqhOJTtjQ==", + "dependencies": { + "@noble/curves": "^1.2.0", + "@noble/hashes": "^1.3.1", + "base64-arraybuffer": "^0.2.0", + "borc": "^2.1.1", + "buffer": "^6.0.3", + "simple-cbor": "^0.4.1" + }, + "peerDependencies": { + "@dfinity/candid": "^1.0.1", + "@dfinity/principal": "^1.0.1" + } + }, + "packages/ic-use-siwe-identity/node_modules/@dfinity/candid": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-1.0.1.tgz", + "integrity": "sha512-PfZNV1fTOWtl+NhLOw71ACLYGugKF9HdEJKtkyBJqbj+6pqshvK6rllCUkGwMsmXfP8YopLzmoNVdy1rp/eOgg==", + "peerDependencies": { + "@dfinity/principal": "^1.0.1" + } + }, + "packages/ic-use-siwe-identity/node_modules/@dfinity/identity": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@dfinity/identity/-/identity-1.0.1.tgz", + "integrity": "sha512-ArajyKSkiA4LjOq/ocGLMd66svgMVntF9j9P7irZScrzTCPcEXk5c7VteAqRGMwHCpI4LRipjmuZA1agwmUzRw==", + "dependencies": { + "@noble/curves": "^1.2.0", + "@noble/hashes": "^1.3.1", + "borc": "^2.1.1" + }, + "peerDependencies": { + "@dfinity/agent": "^1.0.1", + "@dfinity/principal": "^1.0.1", + "@peculiar/webcrypto": "^1.4.0" + } + }, + "packages/ic-use-siwe-identity/node_modules/@dfinity/principal": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-1.0.1.tgz", + "integrity": "sha512-pCAuTLcvZEZ8fYgVzTVhfUfFGadxeWN4v2z8Q0rizeiqcHKhbJVfWUiXXjzPGG5lNz2DxKyUHQ/WS4UTbTaxvg==", + "peer": true, + "dependencies": { + "@noble/hashes": "^1.3.1" + } } } } diff --git a/packages/ic-use-siwe-identity/CHANGELOG.md b/packages/ic-use-siwe-identity/CHANGELOG.md index 4b80216..baa53b1 100644 --- a/packages/ic-use-siwe-identity/CHANGELOG.md +++ b/packages/ic-use-siwe-identity/CHANGELOG.md @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.0.8] - 2024-03-07 + +### Changed +- Upgraded @dfinity/xxx dependencies to latest versions. + ## [0.0.7] - 2021-10-31 ### Added diff --git a/packages/ic-use-siwe-identity/package.json b/packages/ic-use-siwe-identity/package.json index f03c9ec..869c48e 100644 --- a/packages/ic-use-siwe-identity/package.json +++ b/packages/ic-use-siwe-identity/package.json @@ -1,6 +1,6 @@ { "name": "ic-use-siwe-identity", - "version": "0.0.7", + "version": "0.0.8", "description": "React hook and context provider for easy frontend integration with SIWE enabled Internet Computer canisters.", "author": "Kristofer Lund ", "repository": { @@ -32,9 +32,9 @@ "dev:esbuild": "npm run build --watch" }, "dependencies": { - "@dfinity/agent": "^=0.20.0", - "@dfinity/candid": "^=0.20.0", - "@dfinity/identity": "^=0.20.0" + "@dfinity/agent": "^1.0.1", + "@dfinity/candid": "^1.0.1", + "@dfinity/identity": "^1.0.1" }, "peerDependencies": { "react": ">=18.0.0", diff --git a/packages/ic-use-siwe-identity/src/index.tsx b/packages/ic-use-siwe-identity/src/index.tsx index 8c89b44..c08b51f 100644 --- a/packages/ic-use-siwe-identity/src/index.tsx +++ b/packages/ic-use-siwe-identity/src/index.tsx @@ -1,5 +1,11 @@ /* eslint-disable react-refresh/only-export-components */ -import { createContext, useContext } from "react"; +import { + createContext, + useContext, + type ReactNode, + useEffect, + useState, +} from "react"; import { type ActorConfig, type HttpAgentOptions } from "@dfinity/agent"; import { Delegation, @@ -8,7 +14,6 @@ import { Ed25519KeyIdentity, type SignedDelegation, } from "@dfinity/identity"; -import { type ReactNode, useEffect, useState } from "react"; import type { SiweIdentityContextType } from "./context.type"; import { useAccount, useSignMessage } from "wagmi"; import { IDL } from "@dfinity/candid";