Skip to content

v1.36.0

Compare
Choose a tag to compare
@Umang01-hash Umang01-hash released this 25 Mar 15:02
· 64 commits to development since this release
ab76d66

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 as jwt.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 the APP_ENV=DEBUG environment variable was set, and it ran on the specified HTTP_PORT. This prevented users from loading their different environments, for e.g. stage or production configurations if we set APP_ENV as DEBUG for profiling.
  • GoFr now automatically enables pprof profiling on METRICS_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.