|
1 | 1 | # @peeramid-labs/eds
|
2 | 2 |
|
| 3 | +## 2.0.0 |
| 4 | + |
| 5 | +### Major Changes |
| 6 | + |
| 7 | +- [#9](https://github.com/peeramid-labs/eds/pull/9) [`6527e018db4e137cef1d5669e713fd9159cfd15b`](https://github.com/peeramid-labs/eds/commit/6527e018db4e137cef1d5669e713fd9159cfd15b) Thanks [@peersky](https://github.com/peersky)! - # Breaking changes |
| 8 | + |
| 9 | + ## Deprecated getMetadata in favor of contractURI |
| 10 | + |
| 11 | + contractURI is more widely used and we want to align with the standard. |
| 12 | + |
| 13 | + ## Merged VersionedDistributor into Distributor |
| 14 | + |
| 15 | + Now there is only a single `IDistributor` interface. Distribution creators still have two methods of adding distributions - either by specifying repository address, or by specifying a distribution hash id directly. |
| 16 | + |
| 17 | + The `VersionedDistributor` is now deprecated and will be removed in the next major version. |
| 18 | + |
| 19 | + Instantiation function will now automatically detect if the provided address is a repository or a distribution id and call the appropriate method. |
| 20 | + |
| 21 | + ERC7746 checks will now also automatically detect if the provided address is a repository or a distribution and will enforce version control accordingly. |
| 22 | + |
| 23 | + ### Instantiated event |
| 24 | + |
| 25 | + Now emits also a version indexed parameter, arshHash was removed, args are availible as not indexed object in data |
| 26 | + |
| 27 | + ## addDistribution for versioned repositories |
| 28 | + |
| 29 | + `addDistribution` now takes `LibSemver.VersionRequirement` as an argument, which is more convenient way to pack both version and requirement in a single argument. |
| 30 | + |
| 31 | + ## Repository now requires cURI |
| 32 | + |
| 33 | + The `cURI` is now required for all repositories. This is to ensure that all repositories are compliant with the standard contractURI method |
| 34 | + |
| 35 | + ## Reposotory `get` function |
| 36 | + |
| 37 | + Repostory `get` function now takes `LibSemver.VersionRequirement` as an argument, which is more convenient way to pack both version and requirement in a single argument. |
| 38 | + |
| 39 | + ## LibSemver.compare |
| 40 | + |
| 41 | + `compare` now takes `LibSemver.VersionRequirement` as an argument, which is more convenient way to pack both version and requirement in a single argument. |
| 42 | + |
| 43 | + ## LibSemver compare(version version) -> areEqual |
| 44 | + |
| 45 | + `compare(Version memory _version1, Version memory _version2)` now returns a boolean instead of an integer. |
| 46 | + |
3 | 47 | ## 1.0.1
|
4 | 48 |
|
5 | 49 | ### Patch Changes
|
|
0 commit comments