Upgrading To v1.11 From v1.10
Last updated
Last updated
[[toc]]
The problem that the hashing configuration does not take effect under some situations(1.11.0)
Non-thread safety problems in RateLimiter(1.11.0)
Please upgrade the framework step by step according to the content in this section.
Estimated Upgrade Time: 1 Minutes
Update dependencies in the go.mod
file:
This section does not involve code changes, only enhancements.
Version: v1.10.1
Orm models dispatch several events, allowing you to hook into the following moments in a model's lifecycle: Retrieved
, Creating
, Created
, Updating
, Updated
, Saving
, Saved
, Deleting
, Deleted
, ForceDeleting
, ForceDeleted
.
Version: v1.10.1
Decrement
Increment
Lock
Store
Get
, GetBool
, GetInt
, GetInt64
, GetString
, Pull
no longer need to pass a default value(Backwards compatible).
Version: v1.10.1
You may define a route that will be executed when no other route matches the incoming request.
Version: v1.10.1
db.Raw
LockForUpdate
SharedLock
Version: v1.11.0
The configuration
parameter of facades.Config.Add()
changes to any
from map[string]any
, make configuration more flexible.
Because github.com/mattn/go-sqlite3
requires CGO
to be started, so replacing a third-party package that does not require CGO
: github.com/glebarez/go-sqlite
.
Version: v1.11.0
You can use http.MethodGet
in controller directly, instead of import net/http
.
Version: v1.11.1
Version: v1.11.1
All
Host
Queries
About to be deprecated the Form
, Json
methods, please use Input
instead.
Version: v1.11.1
LastModified
MimeType
Version: v1.11.1
LastModified
MimeType
Size
Version: v1.11.1
There is a wrong slash in windows system.
Version: v1.11.1
ctx.Request().Header( key: "token")
will panic.
Version: v1.11.2
Request.Input()
will clear Request.Body
, if you use Request.Bind()
after that, you will not be able to get the data correctly.
Version: v1.11.3
The Schedule process will interruption when occurring panic, all tasks wil lbe affected.
Version: v1.11.3
Fix the problem that DailyAt
will be executed every minute: