Releases: gone-io/gone
Releases · gone-io/gone
v1.2.1
What's Changed
- Introduced gone.Provider, a factory function for injecting external components (such as structs, struct pointers, functions, and interfaces) that are not Goner into Goners filed which tag by
gone
. - Fixed an issue where
gone.NewProviderPriest
failed to create a Priest for gone.Provider instances that generate interface types. - Added test cases for
goner/gorm
and completed other missing test cases; updated documentation accordingly.
Full Changelog: v1.2.0...v1.2.1
v1.2.0
What's Changed
- Introduced a new
gone.GonerOption
, enabling type-based injection by delegating the task of constructing injected type instances to a Goner that implementsSuck(conf string, v reflect.Value, field reflect.StructField) error
. - Added a helper function for implementing Goner Provider:
func NewProviderPriest[T any, P any](fn func(tagConf string, param P) (T, error)) Priest
. - Provided a strategy configuration solution for the cluster mode in
goner/xorm
. - Improved the
goner/gorm
code and conducted functional tests to support integration with multiple databases.
Full Changelog: v1.1.1...v1.2.0
v1.1.1 `gone/xorm` support database cluster and multiple Databases
What's Changed
goner/xorm
now supports clustering and multiple databases. Latest documentation: https://goner.fun/references/xorm.html- Added
goner/gorm
, a wrapper forgorm.io/gorm
for database access. Currently, only MySQL is supported, and improvements are ongoing.
- release v1.1.1 by @Degfy in #38
Full Changelog: v1.1.0...v1.1.1
v1.1.0
v1.1.0-beta4
What's Changed
Full Changelog: v1.0.8...v1.1.0-beta4
v1.1.0-beta3
Full Changelog: v1.1.0-beta2...v1.1.0-beta3
v1.1.0-beta2
Full Changelog: v1.1.0-beta...v1.1.0-beta2