From d79f13dfff2a294a0316f331978c4f31b69b4cb2 Mon Sep 17 00:00:00 2001 From: izumin5210 Date: Wed, 9 Oct 2019 00:05:26 +0900 Subject: [PATCH 1/2] Add doc --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 0c3b6e3c..1580f6fa 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,29 @@ [![asciicast](https://asciinema.org/a/176280.png)](https://asciinema.org/a/176280) +## :warning: Migrate 0.4.x -> 0.5.x :warning: +[grapiserver](https://godoc.org/github.com/izumin5210/grapi/pkg/grapiserver) will not handle os signals from v0.5.x. +We recommend to use [`appctx.Global()`](https://godoc.org/github.com/srvc/appctx#Global) if you want to handle them. + +
+:memo: How to migrate + +0. Bump grapi version + - `go get -u github.com/izuimn5210/grapi@v0.5' +1. Update `cmd/server/run.go` + - ```diff + // Application context + - ctx := context.Background() + + ctx := appctx.Global() + ``` + - ```diff + - return s.ServeContext(ctx) + + return s.Serve(ctx) + ``` + +
+ + ## :warning: Migrate 0.3.x -> 0.4.x :warning: Some tools that are depended by grapi are updated. If you have a grapi project <=v0.3.x, you should migrate it. From d74957addf2aa70cd05e59c8f9079f5e5a0a5f8f Mon Sep 17 00:00:00 2001 From: izumin5210 Date: Wed, 9 Oct 2019 00:05:41 +0900 Subject: [PATCH 2/2] v0.5.0 --- cmd/grapi/consts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/grapi/consts.go b/cmd/grapi/consts.go index 14ad14cf..fceaecf8 100644 --- a/cmd/grapi/consts.go +++ b/cmd/grapi/consts.go @@ -2,7 +2,7 @@ package main const ( name = "grapi" - version = "v0.4.2" + version = "v0.5.0" ) var (