Skip to content

Releases: beanox/webservice

v1.0.0 beta 1

v1.0.0 beta 1 Pre-release
Pre-release

Choose a tag to compare

@mligor mligor released this 09 Sep 09:27

New syntax

Full Changelog: v0.6.0...v1.0.0-beta.1

v0.6.0

Choose a tag to compare

@mligor mligor released this 10 Nov 12:03
  • new user validator interface
  • support for ES256 keys
  • exposing all claims in userInfo

v0.5.1

Choose a tag to compare

@mligor mligor released this 30 Jan 09:39

New Features

PreferLdflags in Version Info

  • when PreferLdflags is true, the version set via -ldflags takes precedence over the one provided in WithBuildInfo
  -ldflags '-X github.com/beanox/webservice.Version=1.2.3'
svc := NewSimpleService(&myImpl{},
    WithBuildInfo(BuildInfo{
        Version:   "1.0.0",
        BuildTime: "2024-03-14",
        CommitSHA: "abc123",
        PreferLdflags: true, // Version will be 1.2.3
    }),
)

Introducing Enhanced Configuration and Versioning

Choose a tag to compare

@mligor mligor released this 06 Dec 14:07

Version: v0.5.0


New Features

Version Information Support

  • The module now supports embedding version information during the build process.
  • Use the following build flag to set the version dynamically:
    -ldflags '-X github.com/beanox/webservice.Version=1.2.3'
    
  • The version will be displayed in:
    • The GET /status endpoint response.
    • The --version command-line parameter.
  • Alternatively, set version info programmatically when creating a new service:
svc := NewSimpleService(&myImpl{},
    WithBuildInfo(BuildInfo{
        Version:   "1.0.0",
        BuildTime: "2024-03-14",
        CommitSHA: "abc123",
    }),
)

Breaking Changes

SimpleService Renamed to WebService

The SimpleService internal type has been renamed to WebService to better align with the module's purpose.
Service creation now supports additional options using functional parameters. Update your code as shown below:

// Before:
simpleService := webservice.NewSimpleService(&myImpl{})

// Now:
svc := NewSimpleService(&myImpl{},
    WithTimeouts(time.Second*30, time.Second*30, time.Second*120),
    WithBuildInfo(BuildInfo{
        Version:   "1.0.0",
        BuildTime: "2024-03-14",
        CommitSHA: "abc123",
    }),
)

v0.4.3

Choose a tag to compare

@mligor mligor released this 03 Dec 14:12
  • Include JwksURL in /status
  • improve callstack output
  • update go to 1.23.1

v0.4.2

Choose a tag to compare

@mligor mligor released this 13 Nov 16:29

Added possibility to control CORS max age cache

v0.4.0

Choose a tag to compare

@mligor mligor released this 05 May 14:57
  • Added automatic /status namepoint
  • added strip_path
  • added cors (cors.enabled config)
  • changed GetHTTPHandler to ConfigureRouter

v0.3.4

Choose a tag to compare

@mligor mligor released this 25 Apr 15:53

Automatic merge of JSON_VAR_* envs into viper configuration

v0.3.3

Choose a tag to compare

@mligor mligor released this 04 Jan 20:24
update dependencies + changed jwt library

Timeouts

Choose a tag to compare

@mligor mligor released this 17 Sep 06:52

Added possibly to set read/write/idle timeouts