Brokerapi Versions Save

A Go package for implementing the V2 Open Service Broker API

v11.0.0

2 months ago

Breaking Changes

This package now accepts a *slog.Logger from the Go standard library, rather than a Lager logger. This allows the use of alternative loggers.

  • This package no longer requires you to import code.cloudfoundry.org/lager/v3.
  • The constructors New(), NewWithCustomAuth(), NewWithOptions(), and also AttachRoutes() all take a *slog.Logger
  • apiresponses.FailureResponse errors with a ValidatedStatusCode() method also take a *slog.Logger rather than a Lager logger
  • The middleware middlewares.APIVersionMiddleware has had the LoggerFactory field removed, and a new field Logger added with type *slog.Logger.

See https://github.com/pivotal-cf/brokerapi/pull/292 for details

Quick Fix

If you want to continue to use Lager, you can just convert it to a *slog.Logger, for which you will need Lager v3.0.3 for example:

logger := lager.NewLogger("a-lager-logger")
router := brokerapi.New(serviceBroker, slog.New(lager.NewHandler(logger)), credentials)

What's Changed

Full Changelog: https://github.com/pivotal-cf/brokerapi/compare/v10.2.0...v11.0.0

v10.2.0

4 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/pivotal-cf/brokerapi/compare/v10.1.1...v10.2.0

v10.1.1

7 months ago

What's Changed

Full Changelog: https://github.com/pivotal-cf/brokerapi/compare/v10.1.0...v10.1.1

v10.1.0

8 months ago

What's Changed

  • fix: AttachRoutes() and WithRouter() should accept chi.Router
  • fix: NewFailureResponse() should return type error
  • chore: change support of Go versions to 1.20 & 1.21. Go 1.19 is now out of support.
  • Other dependency updates

New Contributors

Full Changelog: https://github.com/pivotal-cf/brokerapi/compare/v10.0.0...v10.0.1

v10.0.0

1 year ago

Breaking Changes

Because the gorilla/mux project has been archived, brokerapi now depends on go-chi/chi:

  • Function signatures that referred to gorilla/mux now refer to go-chi/chi. This affects AttachRoutes() and WithRouter().
  • Previously gorilla/mux would have treated /v2/service_instances/foo%2Fbar as /v2/service_instances/foo/bar unless the WithEncodedPath() option was used. This behavior is now the default and /v2/service_instances/foo%2Fbar will interpret foo%2Fbar as an instance ID. The WithEncodedPath() option is now a no-op.

What's Changed

Full Changelog: https://github.com/pivotal-cf/brokerapi/compare/v9.0.1...v10.0.0

v9.0.1

1 year ago

What's Changed

Full Changelog: https://github.com/pivotal-cf/brokerapi/compare/v9.0.0...v9.0.1

v9.0.0

1 year ago

Features

  • Depends on code.cloudfoundry.org/lager/v3 as a replacement for code.cloudfoundry.org/lager - see #218 for more details. Thanks @silvestre!
  • Update to support Go 1.20 and Go 1.19, Go 1.18 is now out of support
  • Other dependency updates

What's Changed

New Contributors

Full Changelog: https://github.com/pivotal-cf/brokerapi/compare/v8.2.3...v9.0.0

v8.2.3

1 year ago

Features

  • Update to Go 1.19
  • Other dependency updates

v8.2.2

1 year ago

Features

  • Update to Go 1.18
  • Other dependency updates

v8.2.1

2 years ago
  • Dependency updates