Skip to content

Commit 7087f8f

Browse files
chore: new release (#10)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 6527e01 commit 7087f8f

File tree

3 files changed

+45
-45
lines changed

3 files changed

+45
-45
lines changed

.changeset/violet-suits-roll.md

-44
This file was deleted.

CHANGELOG.md

+44
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,49 @@
11
# @peeramid-labs/eds
22

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+
347
## 1.0.1
448

549
### Patch Changes

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@peeramid-labs/eds",
3-
"version": "1.0.1",
3+
"version": "2.0.0",
44
"files": [
55
"abi",
66
"deployments",

0 commit comments

Comments
 (0)