Skip to content

Upgrading To v1.4 From v1.3

High Impact Changes

Low Impact Changes

Upgrade Guide

Estimated Upgrade Time: 1 Minutes

Updating Dependencies

Likelihood Of Impact: High

Update dependencies in the go.mod file:

go
github.com/goravel/framework v1.4.0

Optimize Grpc Module

Likelihood Of Impact: High

  1. Add app/grpc/kernel.go file;
  2. Add app/grpc/interceptors folder;
  3. Add config/grpc.go file;
  4. Add routes/grpc.go file;
  5. Add register interceptor logic in app/providers/grpc_service_provider.go;
  6. Remove grpc_host in config/app.go;

For Detail

Optimize Route Register

Likelihood Of Impact: High

Move routes.Web() to Boot() from Register() in app/providers/route_service_provider.go;

Add http.Context Method

Likelihood Of Impact: Low

Add ctx.Context() Method.

For Detail

Add Request Method

Likelihood Of Impact: Low

Add ctx.Request().AbortWithStatusJson method.

For Detail

Released under the MIT License