diff --git a/CHANGELOG.md b/CHANGELOG.md index 62aabb48b..ec0be1443 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ +## (WIP) + +- Fixed typo in `Record.WithUnkownData()` -> `Record.WithUnknownData()`. + + ## v0.14.2 -- Reverted part of the old `COALESCE` handling to continue supporting empty string comparison with missing joined relation fields. +- Reverted part of the old `COALESCE` handling as a fallback to support empty string comparison with missing joined relation fields. ## v0.14.1 @@ -1150,7 +1155,7 @@ Please check the individual SDK package changelog and apply the necessary change - Added option to return serialized custom `models.Record` fields data: ```go func (m *Record) UnknownData() map[string]any - func (m *Record) WithUnkownData(state bool) + func (m *Record) WithUnknownData(state bool) ``` - Deleted `model.User`. Now the user data is stored as an auth `models.Record`. diff --git a/models/record.go b/models/record.go index 13d29788d..7be2c44e0 100644 --- a/models/record.go +++ b/models/record.go @@ -279,9 +279,9 @@ func (m *Record) IgnoreEmailVisibility(state bool) { m.ignoreEmailVisibility = state } -// WithUnkownData toggles the export/serialization of unknown data fields +// WithUnknownData toggles the export/serialization of unknown data fields // (false by default). -func (m *Record) WithUnkownData(state bool) { +func (m *Record) WithUnknownData(state bool) { m.exportUnknown = state } diff --git a/models/record_test.go b/models/record_test.go index 3cbe07401..1bdc990a3 100644 --- a/models/record_test.go +++ b/models/record_test.go @@ -380,7 +380,7 @@ func TestRecordCleanCopy(t *testing.T) { // allow the special flags and options to check whether they will be ignored m.SetExpand(map[string]any{"test": 123}) m.IgnoreEmailVisibility(true) - m.WithUnkownData(true) + m.WithUnknownData(true) copy := m.CleanCopy() copyExport, _ := copy.MarshalJSON() @@ -1343,7 +1343,7 @@ func TestRecordPublicExportAndMarshalJSON(t *testing.T) { m.Load(data) m.IgnoreEmailVisibility(s.exportHidden) - m.WithUnkownData(s.exportUnknown) + m.WithUnknownData(s.exportUnknown) exportResult, err := json.Marshal(m.PublicExport()) if err != nil {