Releases: workos/workos-go
Releases · workos/workos-go
v6.1.0
What's Changed
- Default to adding idempotecy-key to audit-logs/events if not present, added in retryability logic to endpoints#492 by @swaroopAkkineniWorkos in #475
- Add support for resending invites by @antn in #476
New Contributors
- @swaroopAkkineniWorkos made their first contribution in #475
- @antn made their first contribution in #476
Full Changelog: v6.0.0...v6.1.0
v6.0.0
What's Changed
- Add
permissionsto the ListOrganizationRoles response by @jyecusch in #468 - Fix UpdateOrganization JSON serialization by @nicknisi in #472
- Change organization metadata to map[string]*string by @nicknisi in #471
- Remove "domain" param from directories query by @ameesha in #301
- Fix CreateOrganizationOpts.Metadata to use map[string]string by @nicknisi in #474
New Contributors
Full Changelog: v5.2.0...v6.0.0
v5.2.0
What's Changed
- Add organization name field to OrganizationMembership struct by @kaylagordon in #463
- updated the UpdateOrganizationOpts fields to optional by @rarevalo13 in #460
- V5.2.0 by @rarevalo13 in #465
New Contributors
- @kaylagordon made their first contribution in #463
Full Changelog: v5.1.0...v5.2.0
v5.1.0
v5.0.0
What's Changed
Breaking Changes Summary
The v5 release includes the following breaking change:
UpdateUserOpts.Metadatafield type changed frommap[string]stringtomap[string]*string(introduced in PR #457)- This allows setting metadata values to
nilto remove them server-side
Migration Guide for Users
// v4 (old)
import "github.com/workos/workos-go/v4/pkg/usermanagement"
opts := usermanagement.UpdateUserOpts{
User: "user_123",
Metadata: map[string]string{
"department": "Engineering",
},
}
// v5 (new)
import "github.com/workos/workos-go/v5/pkg/usermanagement"
dept := "Engineering"
opts := usermanagement.UpdateUserOpts{
User: "user_123",
Metadata: map[string]*string{
"department": &dept,
"old_field": nil, // Removes this field
},
}Full Changelog: v4.46.1...v5.0.0
v4.46.1
v4.46.0
v4.45.1
v4.45.0
-
Added structured authentication error handling for AuthKit User Management API
-
New error types for authentication scenarios:
- EmailVerificationRequiredError
- MFAEnrollmentError
- MFAChallengeError
- OrganizationSelectionRequiredError
- SSORequiredError
- OrganizationAuthenticationMethodsRequiredError
-
Enhanced error parsing with user data, pending tokens, and organization info
-
Backwards compatible - existing error handling unchanged
-
Type-safe using standard Go errors.As() pattern
v4.44.0
What's Changed
- added StripeCustomerID to org struct by @rarevalo13 in #442
Full Changelog: v4.43.0...v4.44.0