Skip to content

Commit 167d0c0

Browse files
chore: version packages (beta) - 0.10.0-beta.6
1 parent a173e63 commit 167d0c0

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
lines changed

.changeset/pre.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"make-activity-dates-optional",
1616
"move-schema-docs-to-autogenerated-file",
1717
"refactor-collection-items-array",
18+
"refactor-contributions-structure",
1819
"remove-bidirectional-project-link",
1920
"remove-collection-project",
2021
"rollup-build-system",

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# @hypercerts-org/lexicon
22

3+
## 0.10.0-beta.6
4+
5+
### Minor Changes
6+
7+
- [#102](https://github.com/hypercerts-org/hypercerts-lexicon/pull/102) [`68011ae`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/68011ae1f58dcc35408e2400c02dfa16559e18d6) Thanks [@holkexyz](https://github.com/holkexyz)! - Refactor contributions structure and split contributor lexicon
8+
9+
**Breaking Changes:**
10+
- **Activity lexicon (`org.hypercerts.claim.activity`):**
11+
- Renamed `contributions` field to `contributors`
12+
- Replaced `contributions` array (array of strongRefs) with new `contributors` array containing contributor objects
13+
- Each contributor object has three fields:
14+
- `contributorInformation` (required): string (DID/identifier) or strongRef to `org.hypercerts.claim.contributorInformation#main`
15+
- `weight` (optional): positive number (stored as string)
16+
- `contributionDetails` (optional): string or strongRef to `org.hypercerts.claim.contributionDetails#main`
17+
- Renamed internal `contribution` object type to `contributor`
18+
- Renamed string wrapper defs: `contributorInformationString``contributorIdentity`, `contributionDetailsString``contributorRole`
19+
- Updated `contributorRole` string limits: maxLength 10000, maxGraphemes 1000
20+
- **Contributor lexicon (`org.hypercerts.claim.contributor`):**
21+
- Split into two separate lexicon files:
22+
- `org.hypercerts.claim.contributorInformation`: new lexicon file containing `identifier`, `displayName`, `image` (contributor profile information)
23+
- `org.hypercerts.claim.contributionDetails`: new lexicon file containing `role`, `contributionDescription`, `startDate`, `endDate` (contribution-specific details)
24+
- The original `org.hypercerts.claim.contributor` lexicon has been removed
25+
26+
Existing contributions using the old structure will need to be migrated to the new format.
27+
328
## 0.10.0-beta.5
429

530
### Minor Changes

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hypercerts-org/lexicon",
3-
"version": "0.10.0-beta.5",
3+
"version": "0.10.0-beta.6",
44
"description": "ATProto lexicon definitions and TypeScript types for the Hypercerts protocol",
55
"type": "module",
66
"main": "./dist/index.cjs",

0 commit comments

Comments
 (0)