v1.42.4
🛠️ Improvements
-
Elasticsearch Migrator for Versioned Changes
GoFr now includes a dedicated Elasticsearch migrator under
pkg/migrationfor managing version-controlled changes like index creation, mapping updates, and analyzer definitions.
Key Features:- Seamless integration with GoFr’s internal migrator interface.
- Uses Elasticsearch’s REST API for all operations.
- Maintains migration state for reliable deployments.
Refer to gofr.dev/migrations for more details and examples.
🐞 Bug Fixes
-
Fixed Panic in Context Logging in GoFr CMD Apps
A bug that caused a panic when using
ctx.Warnfinstead ofctx.Logger.Warnfhas been fixed.Behavior Before:
Calling
ctx.Warnfin GoFr CMD Apps resulted in:panic: runtime error: invalid memory address or nil pointer dereferenceNow:
ctx.Warnffunctions correctly and logs without causing runtime crashes.