Skip to content

Commit caceacb

Browse files
committed
feat(sds): implement sds apis and tests
1 parent cb3268d commit caceacb

14 files changed

+639
-169
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
"@hypercerts-org/sdk-core": minor
3+
"@hypercerts-org/sdk-react": patch
4+
---
5+
6+
Add pagination support and fix React hooks for SDS operations
7+
8+
**Breaking Changes (sdk-core):**
9+
- `CollaboratorOperations.list()` now returns `{ collaborators: RepositoryAccessGrant[], cursor?: string }` instead of `RepositoryAccessGrant[]`
10+
- `OrganizationOperations.list()` now returns `{ organizations: OrganizationInfo[], cursor?: string }` instead of `OrganizationInfo[]`
11+
12+
**Features:**
13+
- Add cursor-based pagination support to collaborator and organization list operations
14+
- Support optional `limit` and `cursor` parameters for paginated queries
15+
- Update internal methods (`hasAccess`, `getRole`, `get`) to handle new pagination structure
16+
17+
**Bug Fixes (sdk-react):**
18+
- Fix `useCollaborators` hook to correctly destructure paginated response
19+
- Fix `useOrganizations` hook to correctly destructure paginated response
20+
- All React hooks now properly handle the new pagination structure
21+
22+
**Documentation:**
23+
- Comprehensive README updates with clear examples for all SDK operations
24+
- Added pagination examples throughout documentation
25+
- Improved code samples with realistic use cases
26+
27+
**Tests:**
28+
- All 317 tests passing (181 sdk-core + 136 sdk-react)
29+
- Updated test mocks to match new pagination response structure
30+
- Build completes with zero warnings

0 commit comments

Comments
 (0)