Releases: moonrhythm/hime
Releases · moonrhythm/hime
Release 0.6.0
Breaking Changes
- Context become struct
your code must change
from
func index(ctx hime.Context) hime.Result { ... }
to
func index(ctx *hime.Context) hime.Result { ... }
Features
- Add ctx.FormFileHeader and ctx.FormFileHeaderNotEmpty
Others
- Add more tests
Release 0.5.3
- fix file not close if file is empty
Release 0.5.2
- Fix ctx.FormFileNotEmpty panic if field not exists in form
Release 0.5.1
Features
- Apps graceful shutdown, respect each app's wait time
Release 0.5.0
Breaking Changes
- Remove GracefulShutdownApp.Before()
Features
- Multiple Graceful Shutdown Apps 🔥🔥🔥
Release 0.4.2
Breaking Changes:
- rename hime.Config to hime.AppConfig
Features:
- add template.Config, template.ParseConfig, template.ParseConfigFile
- add app.TemplateFunc to add a function
- add template.Func to add a function
- more tests 🔥
Release 0.4.1
Hot Fixes!!!
- fix graceful shutdown
Release 0.4.0
Breaking Changes
- move graceful config inside server and rename to gracefulShutdown
- rename Load and LoadConfig to Config and ParseConfigFile
Features
- auto enable graceful shutdown mode when start web server on normal mode
- add ParseConfig to parses config from []bytes
Release 0.3.0
Breaking Changes
- Template relates functions move into app.Template()
- Rename Template to Parse
Features
- Config can loads via YAML
- Split template load logic
- Add some tests
Release 0.2.0
Breaking Changes
- hime.App becomes struct
- Remove app.Server
Your code must change from
func MakeHandler(app hime.App) http.Handler {
...
}
to
func MakeHandler(app *hime.App) http.Handler {
...
}
Features
- Add ListenAndServeTLS
- Add Server config
- Move init out from hime.New()
Now you can create App likes normal struct
app := &hime.App{
IdleTimeout: 10 * time.Minute,
}