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:
github.com/goravel/framework v1.4.0
Optimize Grpc Module
Likelihood Of Impact: High
- Add app/grpc/kernel.go file;
- Add app/grpc/interceptors folder;
- Add config/grpc.go file;
- Add routes/grpc.go file;
- Add register interceptor logic in app/providers/grpc_service_provider.go;
- Remove
grpc_host
in config/app.go;
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.
Add Request Method
Likelihood Of Impact: Low
Add ctx.Request().AbortWithStatusJson
method.