diff --git a/CHANGELOG.md b/CHANGELOG.md index 986e2de9..dda3ce99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,10 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [unreleased] -## [0.24.3] - 2024-09-24 +## [0.25.0] - 2024-09-25 -- Adds support for form field related improvements by making fields accept any type of values -- Adds support for optional fields to properly optional +### Changes + +- Removes use of `UserContext` in user GET API in dashboard recipe. +- Makes optional fields properly optional (i:e the value can be omitted entirely) + +### Breaking changes + +- Changes the type of `value` in `TypeFormField` to `interface{}` instead of `string` to add support for any type of value in form fields. ## [0.24.2] - 2024-09-03 diff --git a/recipe/dashboard/api/usersGet.go b/recipe/dashboard/api/usersGet.go index 9c20e5f1..ccb86c95 100644 --- a/recipe/dashboard/api/usersGet.go +++ b/recipe/dashboard/api/usersGet.go @@ -121,7 +121,11 @@ func UsersGet(apiImplementation dashboardmodels.APIInterface, tenantId string, o User map[string]interface{} `json:"user"` }) { defer processingGroup.Done() - userMetadataResponse, err := usermetadata.GetUserMetadata(userObj.User["id"].(string), userContext) + + // NOTE: If userContext is passed in the following call, it could + // possibly lead to a concurrent map write error so it's important + // to be careful while adding that. + userMetadataResponse, err := usermetadata.GetUserMetadata(userObj.User["id"].(string)) <-sem if err != nil { errInBackground = err diff --git a/supertokens/constants.go b/supertokens/constants.go index 1ac2c115..40e7b7a7 100644 --- a/supertokens/constants.go +++ b/supertokens/constants.go @@ -21,7 +21,7 @@ const ( ) // VERSION current version of the lib -const VERSION = "0.24.3" +const VERSION = "0.25.0" var ( cdiSupported = []string{"3.1"}