v1.36.0
·
64 commits
to development
since this release
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
EnableOAuth
now 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
pprof
endpoint was restricted to being enabled only when theAPP_ENV=DEBUG
environment 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_ENV
asDEBUG
for profiling. - GoFr now automatically enables
pprof
profiling 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.