diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 6a6df44a..c5f8627b 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,3 +1,125 @@ +# [3.0.0](https://github.com/energywebfoundation/iam-client-lib/compare/v2.2.0...v3.0.0) (2021-09-21) + + +### Bug Fixes + +* add subject in claim request ([7859337](https://github.com/energywebfoundation/iam-client-lib/commit/7859337fe91320ff474622ca2debaa9563fd72c0)) +* adds build:api_docs to deployment process ([f191600](https://github.com/energywebfoundation/iam-client-lib/commit/f1916000a5827a62eb23ef6d6d9d3e362620459c)) +* adds build:api_docs to deployment process ([6343e86](https://github.com/energywebfoundation/iam-client-lib/commit/6343e86fb9a07160f91179819e253caaf904a958)) +* adds method to parse did ([8107ce8](https://github.com/energywebfoundation/iam-client-lib/commit/8107ce897a941a71579edd6baa47c091b86ebef4)) +* auth semantic-release to gh ([4fa4c95](https://github.com/energywebfoundation/iam-client-lib/commit/4fa4c9503c030a2026ed932a33211681c9431d97)) +* catch env detect error ([8c8edca](https://github.com/energywebfoundation/iam-client-lib/commit/8c8edca1ed9ea4b696cd81a3b1ca72e3e6358eee)) +* check pub key from cache ([4f6180f](https://github.com/energywebfoundation/iam-client-lib/commit/4f6180fd9abe0f1aba34cc7a894c34bbaa77df48)) +* check sub is DID ([4c8513f](https://github.com/energywebfoundation/iam-client-lib/commit/4c8513f16e11939103a41a4bf1484cacf468c525)) +* correct description ([3fc3653](https://github.com/energywebfoundation/iam-client-lib/commit/3fc3653e5b0dc5f51b3d8c0122071c4ad4f666dc)) +* create proxy operator for identity addr ([3e799a4](https://github.com/energywebfoundation/iam-client-lib/commit/3e799a42a059047a40ebb3b86d15750d5c055392)) +* default claim subject to requester ([390d8fa](https://github.com/energywebfoundation/iam-client-lib/commit/390d8fa02dcaf47291705e4d3a8f41ad32efd47f)) +* dont commit unstage ([eaf521b](https://github.com/energywebfoundation/iam-client-lib/commit/eaf521baeda8fba1b72db96b14d5a1dd48896ab3)) +* double node migration ([101e4d2](https://github.com/energywebfoundation/iam-client-lib/commit/101e4d2b8fd6e29cb95343a018ef9d95b297566c)) +* exporting interfaces for claim data. ([ac9d5d2](https://github.com/energywebfoundation/iam-client-lib/commit/ac9d5d269724a3190ac1081f464e82d78890685e)) +* init did signer from Metamask ([d783d44](https://github.com/energywebfoundation/iam-client-lib/commit/d783d44b372ba1ae79b8d5c84c4d5e679d88a7df)) +* login as different account issus ([5f75176](https://github.com/energywebfoundation/iam-client-lib/commit/5f75176ac6c07c214ac5e452354520a00ed46018)) +* maintain login on reload ([9018f07](https://github.com/energywebfoundation/iam-client-lib/commit/9018f0747ee8a75baf1535aeb9f810d44fe13abf)) +* make did to be address agnostic ([1831949](https://github.com/energywebfoundation/iam-client-lib/commit/1831949cdfbc7581fcb50783b075055e68b54e49)) +* merge published master in dev ([5c7493d](https://github.com/energywebfoundation/iam-client-lib/commit/5c7493d53d2376c5991928af0c0c7caac3eaac67)) +* no sense setting DID if address hasn't been set ([8b182df](https://github.com/energywebfoundation/iam-client-lib/commit/8b182df9f291bf09d1f526e6399fbeb9109ddffd)) +* not create asset document ([9b91177](https://github.com/energywebfoundation/iam-client-lib/commit/9b91177d814de61a00960f120145f843168ebb60)) +* persist gh token in action ([8ed156f](https://github.com/energywebfoundation/iam-client-lib/commit/8ed156f6d139bb8e8d1d45a70ae353d2d15f3bff)) +* rename get claim flags ([435e360](https://github.com/energywebfoundation/iam-client-lib/commit/435e360c6ba0e8689a67570b74b22f926d2ce0dc)) +* rename getIssuedClaims ([6dde43b](https://github.com/energywebfoundation/iam-client-lib/commit/6dde43bbf4de929dafc34343a0cf83fc87223a2d)) +* rename getRequestedClaims ([3657128](https://github.com/energywebfoundation/iam-client-lib/commit/3657128121d7474b7df9b7515d43e3b1d7c3bff8)) +* rename namespace query param ([11d7001](https://github.com/energywebfoundation/iam-client-lib/commit/11d7001d5b21a236e8e284642151074b262e24ba)) +* replace GITHUB_TOKEN with PAT ([3c81daf](https://github.com/energywebfoundation/iam-client-lib/commit/3c81dafaa8efe6c64511cb92c57aa2f2a03f8af4)) +* rm double develop fetch ([d2b5ac8](https://github.com/energywebfoundation/iam-client-lib/commit/d2b5ac86ce1c6ceb20e39d3dd56ec8ab8dc1b9ba)) +* rm double develop fetch ([b1ef6b1](https://github.com/energywebfoundation/iam-client-lib/commit/b1ef6b1cf2453fd93adfc5b5a7294f4f70ef247d)) +* scripts for building and testing in windows operating system ([50d02d5](https://github.com/energywebfoundation/iam-client-lib/commit/50d02d538d12461970b1beedb5e62707dd49959e)) +* setting session in local storage after successful login. ([206bcaa](https://github.com/energywebfoundation/iam-client-lib/commit/206bcaaddde1f3b2795e27ac8526b30a65acc06c)) +* throwing an error when initializing wallet provider. ([bea90e3](https://github.com/energywebfoundation/iam-client-lib/commit/bea90e3e2811a0580151ca080d915a2495476b07)) +* use precise version of ew-did-registry packages ([4361bf5](https://github.com/energywebfoundation/iam-client-lib/commit/4361bf563b96f8db79ed79591f37400b4d618e3b)) +* **cacheServerClient:** log in if refresh token is expired ([557a767](https://github.com/energywebfoundation/iam-client-lib/commit/557a76787a869a007475c06d941472d0e9ab77cf)) +* **chainConfig:** fixed public RPC url for Volta ([8faf28f](https://github.com/energywebfoundation/iam-client-lib/commit/8faf28f009a9c47d21a9bd897096093ac121cc8a)) +* **change_resolver:** remove import from ethers subpaths ([8397652](https://github.com/energywebfoundation/iam-client-lib/commit/83976526abc60d98f088afc6706c0efd214284ff)) +* **claims:** revert rm Claim.subject ([8cebeee](https://github.com/energywebfoundation/iam-client-lib/commit/8cebeee4eb34b8815aa3eaa1a2f6fb77bf2dc0d5)) +* **createClaimRequest:** use subjectAgreement ([427f4a8](https://github.com/energywebfoundation/iam-client-lib/commit/427f4a89b666501871abdacdb918c05410da84d3)) +* **deleteClaim:** throw CacheClientNotProvided if necessary ([3af43ee](https://github.com/energywebfoundation/iam-client-lib/commit/3af43ee7cd3b386ae1523fefbd3183a78991be10)) +* **iam:** parse claimData from requested token ([8de9935](https://github.com/energywebfoundation/iam-client-lib/commit/8de99356be7513c29fc046265c52173da7f534b7)) +* **iam.issueClaim:** move claimTypeVersion into claimData ([3a72523](https://github.com/energywebfoundation/iam-client-lib/commit/3a72523bba45c841ff1b34f4492faf322ce28b1c)) +* **iam.issueClaimRequest:** remove claimTypeVersion from jwt.decode ([5665ba1](https://github.com/energywebfoundation/iam-client-lib/commit/5665ba1c7e50adb2442119e65d8e00922a6c5596)) +* **init:** prioritize loginToCacheServer key if available ([905fa75](https://github.com/energywebfoundation/iam-client-lib/commit/905fa75144cad794dc133021a736c41180ad65b9)) +* **staking:** blockchain now ([768dc5d](https://github.com/energywebfoundation/iam-client-lib/commit/768dc5d7757beb921c462fad21c7d07e9050d1c9)) +* **staking:** delay getters to return number ([253888f](https://github.com/energywebfoundation/iam-client-lib/commit/253888f01e5b8af9c603736e61629ba75ad58f00)) +* **staking:** hardcode tx overrides ([5ed6eda](https://github.com/energywebfoundation/iam-client-lib/commit/5ed6edafed3235f023119886c422c164af04a925)) +* **staking:** update iam-contracts ([bcd3bc9](https://github.com/energywebfoundation/iam-client-lib/commit/bcd3bc9cae41b3e34aa1f35ea120e7de65c6df7d)) +* update asset manager ([2edbe6e](https://github.com/energywebfoundation/iam-client-lib/commit/2edbe6e875b498ff2244f0fa7b638da108bf3d37)) +* updates documentation to state DID document perequisite ([4057da9](https://github.com/energywebfoundation/iam-client-lib/commit/4057da98a5e56c88fc7a472c79929babf7417a7f)) +* verify prerequisites registered onchain ([3491357](https://github.com/energywebfoundation/iam-client-lib/commit/3491357234d88e329d7ffe91c9d6abf7a0768ca6)) +* **staking:** withdrawalDelay ([f97fedf](https://github.com/energywebfoundation/iam-client-lib/commit/f97fedf24b1b606c6c6ee4d1b1bc5287b9ff2737)) + + +### Performance Improvements + +* decrease staking delay ([4eb64ad](https://github.com/energywebfoundation/iam-client-lib/commit/4eb64ad31a2a35343cc7d7ef6d8e7c88d689fe3e)) +* mock ipfs in tests ([f710747](https://github.com/energywebfoundation/iam-client-lib/commit/f710747234e99ba3d3897e268ef908cee055aee4)) +* remove listeners in tests ([3122275](https://github.com/energywebfoundation/iam-client-lib/commit/3122275c7bffb01285658c16f46d7b4b29f817ff)) + + +* Merge pull request #254 from energywebfoundation/transfer_assets_use_address ([624e37c](https://github.com/energywebfoundation/iam-client-lib/commit/624e37c6844acdc7f728c0f023eea88ce63dc173)), closes [#254](https://github.com/energywebfoundation/iam-client-lib/issues/254) +* refactor!: rename verifyPublicToken param name ([1d65b89](https://github.com/energywebfoundation/iam-client-lib/commit/1d65b897484a7760a80c3fbfc87223a8287f6707)) + + +### chore + +* unsubscribe from given subscription ([6984c11](https://github.com/energywebfoundation/iam-client-lib/commit/6984c114a882561d6a739074984d4f67d2c571de)) + + +### Code Refactoring + +* **asset:** drop support for DID format when offering asset. Use address instead ([8e2836f](https://github.com/energywebfoundation/iam-client-lib/commit/8e2836fa7899f0926d1f4bf8f88b71ac1c949c38)) +* rename initDID to createDocument ([585a4ee](https://github.com/energywebfoundation/iam-client-lib/commit/585a4ee012b7e3b16d4839d8f903c9aeec760665)) +* rename initDID to createDocument ([bc86ec1](https://github.com/energywebfoundation/iam-client-lib/commit/bc86ec15d17151065f9a6875f4b17eeb1ff6150e)) +* rename initDID to createDocument ([9a895ab](https://github.com/energywebfoundation/iam-client-lib/commit/9a895ab8c1e4616f9c7724d9bff7e6e191670cfb)) +* rename initDID to createDocument ([b08a68a](https://github.com/energywebfoundation/iam-client-lib/commit/b08a68ad334d19e8ba60fbf30b437999ae751ec2)) + + +### Features + +* init signer by provider type ([00b4e56](https://github.com/energywebfoundation/iam-client-lib/commit/00b4e565f5fb91cf4ac110b25bf8222efd5e0a51)) +* separate conn to cache and DID reg ([06b990b](https://github.com/energywebfoundation/iam-client-lib/commit/06b990b4b6b714e04756d43c2e9a582a5b8f0969)) +* stake whole balance ([07ad380](https://github.com/energywebfoundation/iam-client-lib/commit/07ad380046bcf73a2739517216c786e9d56f9906)) +* update did-reg package to fix EDR-36 ([f5dd772](https://github.com/energywebfoundation/iam-client-lib/commit/f5dd772f04314b16d78d40400f116b8ed971b1a2)) +* update ew-did-registry ([639ff91](https://github.com/energywebfoundation/iam-client-lib/commit/639ff9171ad9e67c751108bcbbe6abea66a11ec7)) +* **iam:** migrate legacy definitions during edit ([9656515](https://github.com/energywebfoundation/iam-client-lib/commit/9656515fc35235081bdcceea6e71ee2351d8cb7e)) +* **staking:** check balance is sufficient ([0f049ee](https://github.com/energywebfoundation/iam-client-lib/commit/0f049ee55a270f85b58a83b2200394677fc79e26)) +* **staking:** expose staking API ([6d6936f](https://github.com/energywebfoundation/iam-client-lib/commit/6d6936fe952240021f1975e47cb44d169c6c1aee)) +* **staking:** speed up tx ([572d9dd](https://github.com/energywebfoundation/iam-client-lib/commit/572d9dded69392ce2e6cf9cc6250b0154596dd12)) +* add @energyweb/iam-contracts ([00376e8](https://github.com/energywebfoundation/iam-client-lib/commit/00376e8703ef1e3e4137d39e6d020241e7ceefa7)) +* add RegistrationTypes export ([1881b60](https://github.com/energywebfoundation/iam-client-lib/commit/1881b60270af22ed2014a49ada06183b517be1da)) +* enroll with registration types ([d8f12d7](https://github.com/energywebfoundation/iam-client-lib/commit/d8f12d773eb51a3cf71fd567a3136c5c14ba403a)) +* get claims by subjects ([0728bc4](https://github.com/energywebfoundation/iam-client-lib/commit/0728bc4371350621346fe8198bb5931f77777881)) +* get role registration types ([ffd22ec](https://github.com/energywebfoundation/iam-client-lib/commit/ffd22ec1bbdf10287c7aa3b89082404db8ebc009)) +* issue on-chain role ([db0d42a](https://github.com/energywebfoundation/iam-client-lib/commit/db0d42ad5baa5423d0fbb17a50fa8c7ba1e16e4c)) +* issued claim includes only role info ([0d403a0](https://github.com/energywebfoundation/iam-client-lib/commit/0d403a0e1e0168fb2735fd6ba463ffb4303c646d)) +* no need to provide issues to request role ([95dab41](https://github.com/energywebfoundation/iam-client-lib/commit/95dab417b83d136c844c69e56922eebbb395ce78)) +* publish owned identity claim ([da8e375](https://github.com/energywebfoundation/iam-client-lib/commit/da8e375de66016c7974de101f93f3bdb1da8c3dc)) +* read and write of new roledefinition smart contract ([dc632c8](https://github.com/energywebfoundation/iam-client-lib/commit/dc632c89cf3740eaed07ee378e854ac5708d68eb)) +* request asset enrollment ([c65e883](https://github.com/energywebfoundation/iam-client-lib/commit/c65e88338c4c7405006a972eb9230fda5e5a716a)) +* update iam-contracts to 1.15.2 ([c7dff19](https://github.com/energywebfoundation/iam-client-lib/commit/c7dff1998f67f91b3bd43f5342accd3083ec1c58)) +* update identity manager address ([75bd012](https://github.com/energywebfoundation/iam-client-lib/commit/75bd0121763a2e92688b9d22751a6e238d78ce17)) +* using IPublicClaim to issue credential ([12dcedf](https://github.com/energywebfoundation/iam-client-lib/commit/12dcedf47dc633d8f53fa005f815665bd4be8063)) +* **assets:** add asset smart contract integration ([68b68db](https://github.com/energywebfoundation/iam-client-lib/commit/68b68dbdd1ec710a4132721eb06719cef730f2aa)) + + +### BREAKING CHANGES + +* transferring asset do not allow anymore to use DID format. Allowed is address. +* **asset:** transferring asset do not allow anymore to use DID format. Allowed is address. +* Rename the prop name from `issuedToken` to `claimUrl` in method `verifyPublicClaim` in `IAM` class. +* change initialization API +* change initialization API +* change initialization API +* change initialization API +* signature of unsubscribe and subscribe changed + # [3.0.0-alpha.53](https://github.com/energywebfoundation/iam-client-lib/compare/v3.0.0-alpha.52...v3.0.0-alpha.53) (2021-09-17)