Release - v1.36.0
🚀 Features
1. SurrealDB Migration Support
- Added support for database migration operations in SurrealDB.
- Supported methods include:
// Creates a new namespace in SurrealDB. CreateNamespace(ctx context.Context, namespace string) error // Creates a new database in SurrealDB. CreateDatabase(ctx context.Context, database string) error // Deletes a namespace from SurrealDB. DropNamespace(ctx context.Context, namespace string) error // Deletes a database from SurrealDB. DropDatabase(ctx context.Context, database string) error
- Refer to our official documentation to know more.
🛠 Improvements
1. Default Metrics for SurrealDB Data Source
- Introduced default metric collection for SurrealDB at the specified
METRICS_PORT, enabling better observability and performance monitoring.
2. JWT Claim Validations
EnableOAuthnow takes an additional JWT validation options asjwt.ParserOption, allowing fine-grained control over claim validation.- Example :
app.EnableOAuth( "http://jwks-endpoint", 20, jwt.WithExpirationRequired(), // to enforce presence of exp claim in every token jwt.WithAudience("https://api.example.com"), jwt.WithIssuer("https://auth.example.com") )
- To know more about the different claim validation options, check out our official documentation.
🛠 Fixes
1. pprof Profiling Enhancements
- Previously, the
pprofendpoint was restricted to being enabled only when theAPP_ENV=DEBUGenvironment variable was set, and it ran on the specifiedHTTP_PORT. This prevented users from loading their different environments, for e.g. stage or production configurations if we setAPP_ENVasDEBUGfor profiling. - GoFr now automatically enables
pprofprofiling onMETRICS_PORT(default:2121). - Profiling endpoints include :
/debug/pprof/cmdline/debug/pprof/profile/debug/pprof/symbol/debug/pprof/trace/debug/pprof/(index)
For more information on setting up and using profiling in your application, refer to our official documentation.