Skip to content

Commit

Permalink
Merge pull request #203 from izumin5210/izumin5210/v0.5.0
Browse files Browse the repository at this point in the history
v0.5.0
  • Loading branch information
izumin5210 authored Oct 8, 2019
2 parents e2831ba + d74957a commit cf43ca2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion cmd/grapi/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

const (
name = "grapi"
version = "v0.4.2"
version = "v0.5.0"
)

var (
Expand Down

0 comments on commit cf43ca2

Please sign in to comment.