Skip to content

Commit 7ef9f60

Browse files
committed
Updated package loch and added changeset file
1 parent 66ce51a commit 7ef9f60

File tree

3 files changed

+165
-202
lines changed

3 files changed

+165
-202
lines changed

.changeset/lovely-pots-feel.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
"@itwin/access-control-client": major
3+
---
4+
5+
Complete API redesign with enhanced TypeScript support and new functionality
6+
7+
BREAKING CHANGES:
8+
9+
- Renamed AccessControlAPIResponse<T> → BentleyAPIResponse<T>
10+
- Renamed Error → ApimError (avoids JS built-in conflict)
11+
- Removed 'Async' suffix from all method names (e.g., getITwinRolesAsync → getITwinRoles)
12+
- Converted all enums to string union types for better tree shaking
13+
- Response structure: Direct arrays/objects → wrapped responses with HAL links
14+
- Query parameters: AccessControlQueryArg → ODataQueryParams with OData v4 support
15+
16+
NEW FEATURES:
17+
18+
- iTwin Shares client with complete CRUD operations
19+
- Group Member Invitations client for invitation management
20+
- Enhanced type safety with conditional types for result modes
21+
- HAL specification compliance with _links navigation
22+
- Advanced mapped types for handling missing users in member responses
23+
24+
TECHNICAL IMPROVEMENTS:
25+
26+
- String unions over enums (zero runtime overhead, better tree shaking)
27+
- Conditional types for type-safe result modes
28+
- Self-documenting response wrappers with descriptive property names
29+
- Reorganized type system into dedicated files under src/types/
30+
- Enhanced error handling with proper null/undefined type safety
31+
32+
See MIGRATION-GUIDE-v3-to-v4.md for complete migration instructions.

change/@itwin-access-control-client-974a6888-59f7-4824-9356-dc0dcbee92b8.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)