-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #203 from izumin5210/izumin5210/v0.5.0
v0.5.0
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
||
<details> | ||
<summary>:memo: How to migrate</summary> | ||
|
||
0. Bump grapi version | ||
- `go get -u github.com/izuimn5210/[email protected]' | ||
1. Update `cmd/server/run.go` | ||
- ```diff | ||
// Application context | ||
- ctx := context.Background() | ||
+ ctx := appctx.Global() | ||
``` | ||
- ```diff | ||
- return s.ServeContext(ctx) | ||
+ return s.Serve(ctx) | ||
``` | ||
|
||
</details> | ||
|
||
|
||
## :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. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ package main | |
|
||
const ( | ||
name = "grapi" | ||
version = "v0.4.2" | ||
version = "v0.5.0" | ||
) | ||
|
||
var ( | ||
|