Skip to content

Releases: pivotal-cf/brokerapi

v11.0.0

02 Apr 15:59
127bd5b
Compare
Choose a tag to compare

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 #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

  • chore(deps): bump github.com/go-chi/chi/v5 from 5.0.11 to 5.0.12 by @dependabot in #293
  • chore(deps): bump honnef.co/go/tools from 0.4.6 to 0.4.7 by @dependabot in #294
  • chore(deps): bump github.com/onsi/ginkgo/v2 from 2.15.0 to 2.17.1 by @dependabot in #295 #297 #298
  • chore(deps): bump github.com/onsi/gomega from 1.31.1 to 1.32.0 by @dependabot in #296
  • feat!: introduce logger choice via slog by @blgm in #292
  • docs: fix test badge in README by @blgm in #300
  • feat!: update import path to v11 by @blgm in #299

Full Changelog: v10.2.0...v11.0.0

v10.2.0

05 Feb 21:14
70c69f2
Compare
Choose a tag to compare

What's Changed

  • feat: WithAdditionalMiddleware() option by @blgm in #291

New Contributors

Full Changelog: v10.1.1...v10.2.0

v10.1.1

27 Oct 11:28
2aaf36d
Compare
Choose a tag to compare

What's Changed

  • chore(deps): bump golang.org/x/net from 0.14.0 to 0.17.0 by @dependabot in #276
  • chore(deps): bump github.com/onsi/gomega from 1.28.0 to 1.28.1 by @dependabot in #277
  • chore(deps): bump github.com/onsi/gomega from 1.28.1 to 1.29.0 by @dependabot in #278

Full Changelog: v10.1.0...v10.1.1

v10.1.0

11 Oct 13:37
8972c10
Compare
Choose a tag to compare

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: v10.0.0...v10.0.1

v10.0.0

30 May 13:57
eac41c2
Compare
Choose a tag to compare

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

  • chore(deps): bump github.com/onsi/ginkgo/v2 from 2.9.2 to 2.9.4 by @dependabot in #244
  • chore(deps): bump github.com/onsi/ginkgo/v2 from 2.9.4 to 2.9.5 by @dependabot in #245
  • chore(deps): bump github.com/onsi/gomega from 1.27.6 to 1.27.7 by @dependabot in #247
  • feat!: swap gorilla/mux for go-chi/chi by @blgm in #246
  • feat!: update import path to v10 by @blgm in #248
  • docs: fix typo by @blgm in #249

Full Changelog: v9.0.1...v10.0.0

v9.0.1

27 Apr 15:17
52f712d
Compare
Choose a tag to compare

What's Changed

  • chore(deps): bump github.com/onsi/ginkgo/v2 from 2.8.4 to 2.9.0 by @dependabot in #235
  • chore(deps): bump github.com/onsi/ginkgo/v2 from 2.9.0 to 2.9.1 by @dependabot in #237
  • chore(deps): bump github.com/onsi/gomega from 1.27.3 to 1.27.4 by @dependabot in #238
  • chore(deps): bump honnef.co/go/tools from 0.4.2 to 0.4.3 by @dependabot in #239
  • chore(deps): bump github.com/onsi/gomega from 1.27.4 to 1.27.5 by @dependabot in #241
  • chore(deps): bump code.cloudfoundry.org/lager/v3 from 3.0.0 to 3.0.1 by @dependabot in #242
  • chore(deps): bump github.com/onsi/gomega from 1.27.5 to 1.27.6 by @dependabot in #243

Full Changelog: v9.0.0...v9.0.1

v9.0.0

02 Mar 15:58
1ac5c7a
Compare
Choose a tag to compare

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

  • chore(deps): bump github.com/onsi/gomega from 1.22.1 to 1.23.0 by @dependabot in #214
  • chore(deps): bump github.com/onsi/gomega from 1.23.0 to 1.24.0 by @dependabot in #215
  • chore(deps): bump github.com/onsi/gomega from 1.24.0 to 1.24.1 by @dependabot in #216
  • chore(deps): bump github.com/onsi/gomega from 1.24.1 to 1.24.2 by @dependabot in #217
  • chore(deps): bump github.com/onsi/gomega from 1.24.2 to 1.25.0 by @dependabot in #219
  • chore: Update to ginkgo v2 and lager v3 by @silvestre in #218
  • chore(deps): bump github.com/onsi/gomega from 1.25.0 to 1.26.0 by @dependabot in #220
  • chore(deps): bump github.com/onsi/ginkgo/v2 from 2.7.0 to 2.7.1 by @dependabot in #221
  • chore(deps): bump github.com/onsi/ginkgo/v2 from 2.7.1 to 2.8.0 by @dependabot in #222
  • chore(deps): bump github.com/maxbrunsfeld/counterfeiter/v6 from 6.5.0 to 6.6.1 by @dependabot in #223
  • chore(deps): bump honnef.co/go/tools from 0.3.3 to 0.4.0 by @dependabot in #224
  • test: update for Go 1.20 by @blgm in #225
  • chore(deps): bump github.com/onsi/ginkgo/v2 from 2.8.0 to 2.8.1 by @dependabot in #226
  • chore(deps): bump honnef.co/go/tools from 0.4.0 to 0.4.1 by @dependabot in #227
  • chore(deps): bump github.com/onsi/gomega from 1.26.0 to 1.27.0 by @dependabot in #228
  • chore(deps): bump honnef.co/go/tools from 0.4.1 to 0.4.2 by @dependabot in #229
  • chore(deps): bump github.com/onsi/gomega from 1.27.0 to 1.27.1 by @dependabot in #231
  • chore(deps): bump github.com/onsi/ginkgo/v2 from 2.8.1 to 2.8.3 by @dependabot in #232
  • chore(deps): bump github.com/onsi/ginkgo/v2 from 2.8.3 to 2.8.4 by @dependabot in #233
  • chore(deps): bump github.com/onsi/gomega from 1.27.1 to 1.27.2 by @dependabot in #234

New Contributors

Full Changelog: v8.2.3...v9.0.0

v8.2.3

26 Oct 16:09
@abg abg
Compare
Choose a tag to compare

Features

  • Update to Go 1.19
  • Other dependency updates

v8.2.2

14 Jul 10:51
Compare
Choose a tag to compare

Features

  • Update to Go 1.18
  • Other dependency updates

v8.2.1

04 Feb 11:21
90f556b
Compare
Choose a tag to compare
  • Dependency updates