Skip to content

Releases: workos/workos-go

v6.4.0

04 Feb 20:14
5f0f621

Choose a tag to compare

What's Changed

  • Make Pipes interface a little more idiomatic Go by @dandorman in #488
  • Bump version to 6.3.0 by @workos-sdk-automation[bot] in #489
  • Add custom_attributes field to OrganizationMembership by @ajworkos in #490
  • add list session method by @petarTenderly in #470
  • Bump version to 6.4.0 by @workos-sdk-automation[bot] in #491

New Contributors

  • @workos-sdk-automation[bot] made their first contribution in #489
  • @petarTenderly made their first contribution in #470

Full Changelog: v6.3.0...v6.4.0

v6.3.0

29 Jan 18:46
b511552

Choose a tag to compare

What's Changed

New Contributors

  • @dandorman made their first contribution in #487
  • @workos-sdk-automation[bot] made their first contribution in #489

Full Changelog: v6.2.0...v6.3.0

v6.2.0

03 Dec 20:27
a02885c

Choose a tag to compare

What's Changed

Full Changelog: v6.1.0...v6.2.0

v6.1.0

21 Nov 12:12
3035d56

Choose a tag to compare

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

Full Changelog: v6.0.0...v6.1.0

v6.0.0

06 Nov 15:59
33538f0

Choose a tag to compare

What's Changed

  • Add permissions to 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

02 Oct 15:46
c3c94a5

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v5.1.0...v5.2.0

v5.1.0

25 Sep 18:27
8ef75a4

Choose a tag to compare

What's Changed

Full Changelog: v5.0.0...v5.1.0

v5.0.0

05 Sep 18:07
bb98743

Choose a tag to compare

What's Changed

  • Re-introduce metadata removal support (breaking change) by @nicknisi in #457

Breaking Changes Summary

The v5 release includes the following breaking change:

  • UpdateUserOpts.Metadata field type changed from map[string]string to map[string]*string (introduced in PR #457)
  • This allows setting metadata values to nil to 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

05 Sep 17:43
c4165ba

Choose a tag to compare

What's Changed

  • Fix: Revert breaking change in v4.46.0 to maintain backward compatibility by @nicknisi in #455

Full Changelog: v4.46.0...v4.46.1

v4.46.0

04 Sep 20:53
84e44c5

Choose a tag to compare

  • Adds ability to pass in nil values to metadata keys when updating a user. This allows for clearing of existing metadata fields on a user.