Skip to content

Releases: x-izumin/grapi

Version 0.7.1

16 Jun 02:07

Choose a tag to compare

Changed

This version, github.com/izumin5210/grapi@v0.7.1, acts as a proxy to the new module, github.com/x-izumin/grapi@v0.8.0.

Version 0.8.0

14 Jun 12:05

Choose a tag to compare

Changed

  • The module is now github.com/x-izumin/grapi rather than github.com/izumin5210/grapi.
    You will need to fix the import paths.
  • It also references the new github.com/x-izumin/gex module in place of github.com/izumin5210/gex.

Version 0.7.0

14 Jun 12:02

Choose a tag to compare

Changed

  • Updated github.com/izumin5210/gex internally, which might break the parallel dependencies to the same module, if any.

Misc

  • Fix documentation
  • Fix CI failure

(do not use this version, use v0.8.0 instead)

14 Jun 12:04
2e66443

Choose a tag to compare

This version has been re-released as v0.8.0. Refer to that version instead.

v0.5.0

08 Oct 16:10
cf43ca2

Choose a tag to compare

Merge pull request #203 from izumin5210/izumin5210/v0.5.0

v0.5.0

v0.4.2

01 Sep 04:22

Choose a tag to compare

v0.4.2

v0.4.1

24 Aug 06:07

Choose a tag to compare

v0.4.1

v0.4.0 - Support Go Modules

31 Mar 14:07

Choose a tag to compare

  • Support Go Modules #83 #176 #179
  • Fix default project layout #181
  • Support (*grapiserver.Engine).ServerContext(context.Context) #183

How to migrate

  1. Bump grapi version
    • If you use dep, update Gopkg.toml
       [[constraint]]
         name = "github.com/izumin5210/grapi"
      -  version = "0.3.0"
      +  version = "0.4.0"
    • and run dep ensure
  2. Update gex and tools.go
    • go get -u github.com/izumin5210/gex/cmd/gex
      gex --regen
      
  3. Initialize Go Modules
    • go mod init
      go mod tidy
      
  4. Update grapi.toml
    • package = "yourcompany.yourappname"
      
      [grapi]
      server_dir = "./app/server"
      
      [protoc]
      protos_dir = "./api/protos"
      out_dir = "./api"
      import_dirs = [
        "./api/protos",
      -  "./vendor/github.com/grpc-ecosystem/grpc-gateway",
      -  "./vendor/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis",
      +  '{{ module "github.com/grpc-ecosystem/grpc-gateway" }}',
      +  '{{ module "github.com/grpc-ecosystem/grpc-gateway" }}/third_party/googleapis',
      ]
      
        [[protoc.plugins]]
        name = "go"
        args = { plugins = "grpc", paths = "source_relative" }
      
        [[protoc.plugins]]
        name = "grpc-gateway"
        args = { logtostderr = true, paths = "source_relative" }
      
        [[protoc.plugins]]
        name = "swagger"
        args = { logtostderr = true }
  5. Drop dep
    • rm Gopkg.*
      

v0.3.2

24 Dec 07:44

Choose a tag to compare

  • Display error messages from protoc #130 #136
  • Fix packages generated proto file of grapi-gen-type #134

v0.3.1

20 Dec 04:47

Choose a tag to compare

v0.3.1