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

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

For Detail

Optimize Route Register

Likelihood Of Impact: High

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

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

Last Updated:
Contributors: Bowens