Skip to content

chore(deps): update backend non-major dependencies (minor)

Alexandre Boucey requested to merge renovate/backend-minor-patch into main

This MR contains the following updates:

Package Type Update Change
github.com/go-playground/validator/v10 require minor v10.15.5 -> v10.17.0
github.com/gofiber/fiber/v2 require minor v2.50.0 -> v2.52.0
github.com/spf13/cobra require minor v1.7.0 -> v1.8.0
github.com/spf13/viper require minor v1.16.0 -> v1.18.2
go.temporal.io/api require minor v1.24.0 -> v1.27.0
go.temporal.io/sdk require minor v1.24.0 -> v1.25.1

Release Notes

go-playground/validator (github.com/go-playground/validator/v10)

v10.17.0: Release 10.17.0

Compare Source

What's new

  • Add translation of requiredXXX and excludedXXX in English/Chinese/Chinese Taiwan.

What's fixed

  • Fix errors translation to work properly for aliases.

v10.16.0: Release 10.16.0

Compare Source

What's new or fixed?

  • Added new issn validator. TY @​mrcook for the MR
  • Added improvement/fix to the file url validation. TY @​nodivbyzero for the MR
  • Fix onof tag in examples. TY @​gren236 for the MR
  • Add fmt.Stringer interface support to uuid validations allowing most UUID validation libraries which implement it to work transparently now. TY @​JoshGlazebrook for the MR
  • Added new omitnil similar to omitempty but for pointers. this is mainly for code generation ease. TY @​tarampampam for the MR
gofiber/fiber (github.com/gofiber/fiber/v2)

v2.52.0

Compare Source

🚀 New

// Direct usage with default config
app.Use(healthcheck.New())

// Or extend your config for customization
app.Use(healthcheck.New(healthcheck.Config{
    LivenessEndpoint: "/live",
    LivenessProbe: func(c *fiber.Ctx) bool {
        return true
    },
    ReadinessEndpoint: "/ready",
    ReadinessProbe: func(c *fiber.Ctx) bool {
        return serviceA.Ready() && serviceB.Ready() && ...
    },
}))

🧹 Updates

  • Middlewares: don't constrain middlewares context-keys to strings (#​2751)
  • Middleware/logger: colorize logger error message #​2593 (#​2773)
  • Middleware/logger: changing default log output (#​2730)
  • Middleware/logger: log client IP address by default (#​2755)
  • Middleware/encryptcookie: update default config (#​2753)
  • Improve benchmarks for getOffer (#​2739)

🛠️ Maintenance

  • Bump github/codeql-action from 2 to 3 (#​2763)
  • Bump github.com/google/uuid from 1.4.0 to 1.5.0 (#​2762)
  • Bump actions/setup-go from 4 to 5 (#​2754)
  • Bump golang.org/x/sys from 0.14.0 to 0.15.0 (#​2744)
  • Bump github.com/valyala/fasthttp from 1.50.0 to 1.51.0 (#​2721)

🐛 Fixes

  • Middleware/redirect : fix for redirect with query params (#​2748)
  • Middleware/adaptor: Adaptor + otelfiber issue #​2641 (#​2772)
  • Middleware/cors: Should use the defined AllowedOriginsFunc config when AllowedOrigins is empty (#​2771)
  • Middleware/session: Race in session middleware tests (#​2740)
  • Middleware/csrf: Fix failing CSRF tests (#​2720)
  • Fix race condition in parallel tests (#​2734)
  • utils.IsIPv4 and net.ParseIP have inconsistent results #​2735 (#​2736)

📚 Documentation

Full Changelog: https://github.com/gofiber/fiber/compare/v2.51.0...v2.52.0

Thank you @​MehmetFiratKomurcu, @​benjajaja, @​brunodmartins, @​gilwo, @​iredmail, @​itswcg, @​luk3skyw4lker, @​muhammadkholidb, @​nickajacks1, @​sixcolors and @​tokelo-12 for making this update possible.

v2.51.0

Compare Source

🚀 New

// Consideration of parameters in the accepted headers
// Accept: text/plain, application/json; version=1; foo=bar

app.Get("/", func(c *fiber.Ctx) error {
  // Extra parameters in the accept are ignored
  c.Accepts("text/plain;format=flowed") // "text/plain;format=flowed"

  // An offer must contain all parameters present in the Accept type
  c.Accepts("application/json") // ""

  // Parameter order and capitalization does not matter. Quotes on values are stripped.
  c.Accepts(`application/json;foo="bar";VERSION=1`) // "application/json;foo="bar";VERSION=1"
})
// Passing a custom json type
ctx.JSON(fiber.Map{
    "type": "https://example.com/probs/out-of-credit",
    "title": "You do not have enough credit.",
    "status": 403,
    "detail": "Your current balance is 30, but that costs 50.",
    "instance": "/account/12345/msgs/abc",
  }, fiber.)

🧹 Updates

  • Ctx.Range: reduce allocations (#​2705)
  • Middleware/pprof: improve performance (#​2709)

🛠️ Maintenance

  • Bump golang.org/x/sys from 0.13.0 to 0.14.0 (#​2707)
  • Bump github.com/google/uuid from 1.3.1 to 1.4.0 (#​2693)
  • Bump actions/setup-node from 3 to 4 (#​2690)
  • Bump github.com/mattn/go-isatty from 0.0.19 to 0.0.20 (#​2679)

🐛 Fixes

  • Middleware/limiter: fix intermittent failures (#​2716)
  • Naming of routes works wrong after mount #​2688 (#​2689)
  • Fix method validation on route naming (#​2686)

📚 Documentation

  • Changed "Twitter" to "X (Twitter)" in README.md Contribute Section (#​2696)
  • Add additional information as to why GetReqHeaders returns a map where the values are slices of strings (#​2698)
  • Enhance csrf.md (#​2692)

Full Changelog: https://github.com/gofiber/fiber/compare/v2.50.0...v2.51.0

Thank you @​BandhiyaHardik, @​database64128, @​efectn, @​moritz157, @​nickajacks1, @​rhburt and @​sixcolors for making this update possible.

spf13/cobra (github.com/spf13/cobra)

v1.8.0

Compare Source

Features

🐛 Bug fixes

🔧 Maintenance

🧪 Testing & CI/CD

️ Documentation


Thank you everyone who contributed to this release and all your hard work! Cobra and this community would never be possible without all of you!!!! 🐍

Full Changelog: https://github.com/spf13/cobra/compare/v1.7.0...v1.8.0

spf13/viper (github.com/spf13/viper)

v1.18.2

Compare Source

tl;dr Skip 1.18.0 and 1.18.1 and upgrade to this version instead.

This release fixes a regression that appears in rare circumstances when using Unmarshal or UnmarshalExact to decode values onto pointers with multiple indirection (eg. pointer to a pointer, etc). The change was introduced in 1.18.0 as a means to resolve a long-standing bug when decoding environment variables to structs.

The feature is now disabled by default and can be enabled using the viper_bind_struct build tag. It's also considered experimental at this point, so breaking changes may be introduced in the future.

What's Changed

Bug Fixes 🐛

Full Changelog: https://github.com/spf13/viper/compare/v1.18.1...v1.18.2

v1.18.1

Compare Source

What's Changed

Bug Fixes 🐛

Full Changelog: https://github.com/spf13/viper/compare/v1.18.0...v1.18.1

v1.18.0

Compare Source

Major changes

Highlighting some of the changes for better visibility.

Please share your feedback in the Discussion forum. Thanks!

AutomaticEnv works with Unmarshal

Previously, environment variables that weren't bound manually or had no defaults could not be mapped by Unmarshal. (The problem is explained in details in this issue: #​761)

#​1429 introduced a solution that solves that issue.

What's Changed

Enhancements 🚀
Bug Fixes 🐛
Dependency Updates
Other Changes

New Contributors

Full Changelog: https://github.com/spf13/viper/compare/v1.17.0...v1.18.0

v1.17.0

Compare Source

Major changes

Highlighting some of the changes for better visibility.

Please share your feedback in the Discussion forum. Thanks!

Minimum Go version: 1.19

Viper now requires Go 1.19

This change ensures we can stay up to date with modern practices and dependencies.

log/slog support [BREAKING]

Viper v1.11.0 added an experimental Logger interface to allow custom implementations (besides jwalterweatherman).

In addition, it also exposed an experimental WithLogger function allowing to set a custom logger.

This release deprecates that interface in favor of log/slog released in Go 1.21.

[!WARNING] WithLogger accepts an *slog.Logger from now on.

To preserve backwards compatibility with older Go versions, prior to Go 1.21 Viper accepts a *golang.org/x/exp/slog.Logger.

The experimental flag is removed.

New finder implementation [BREAKING]

As of this release, Viper uses a new library to look for files, called locafero.

The new library is better covered by tests and has been built from scratch as a general purpose file finder library.

The implementation is experimental and is hidden behind a finder build tag.

[!WARNING] The io/fs based implementation (that used to be hidden behind a finder build tag) has been removed.

What's Changed

Exciting New Features 🎉
Enhancements 🚀
Breaking Changes 🛠
Dependency Updates
Other Changes

New Contributors

Full Changelog: https://github.com/spf13/viper/compare/v1.16.0...v1.17.0

temporalio/api-go (go.temporal.io/api)

v1.27.0

Compare Source

What's Changed

Full Changelog: https://github.com/temporalio/api-go/compare/v1.26.0...v1.27.0

v1.26.2

Compare Source

v1.26.1

Compare Source

v1.26.0

Compare Source

  • Add stage to UpdateWorkflowExecutionResponse and PollWorkflowExecutionUpdateResponse
  • Add update_ref to PollWorkflowExecutionUpdateResponse

v1.25.0

Compare Source

  • Add buffer size and dropped actions fields to ScheduleInfo
  • Add namespace_id in DeleteNamespaceRequest
  • Add batch operation rate limit
temporalio/sdk-go (go.temporal.io/sdk)

v1.25.1

Compare Source

Highlights

Bugfixes

Fix a regression causing some custom logger implementations to log key-values as a list.

Specific Changes

2023-10-11 - 83199af - Small docs tweaks. (#​1262) 2023-10-12 - a6cdcd7 - Add UpdateWorkflowByID to TestWorkflowEnvironment (#​1264) 2023-10-13 - b484666 - loggerWith.WithCallerSkip expand keyvals (#​1267)

v1.25.0

Compare Source

Highlights

Integration with slog

If using Go version 1.21+ the Go SDK provides built in integration with the standard slog package.

package main
import (
	"log/slog"
	"os"

	"go.temporal.io/sdk/client"
	"go.temporal.io/sdk/log"
	"go.temporal.io/sdk/worker"
)

func main() {
	clientOptions := client.Options{
		Logger: log.NewStructuredLogger(
			slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{
				AddSource: true,
				Level:     slog.LevelDebug,
			}))),
	}
	temporalClient, err := client.Dial(clientOptions)
	// ...
}
New WorkflowInfo fields

Added GetContinueAsNewSuggested() and GetCurrentHistorySize() to WorkflowInfo.

(Experimental) Start delay

Added StartDelay option to StartWorkflowOptions. StartDelay will cause Temporal to wait before dispatching the first workflow task. If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest of the delay will be ignored.

Specific Changes

2023-08-02 - 1ec43ad - Fix LA start to close timeout (#​1180) 2023-08-04 - 3aba985 - Remove mentions of elasticsearch (#​1186) 2023-08-06 - 66946b9 - fixing spelling errors in comments (#​1188) 2023-08-07 - 23ff5a7 - Add option to ignore invalid parent spans (#​1178) 2023-08-08 - 654e872 - Fix testsuite package docs (#​1192) 2023-08-08 - 793489f - Fix race condition with eager workflow start and close (#​1191) 2023-08-10 - 1fccf9c - Fix race condition in eager dispatch (#​1195) 2023-08-10 - 90fcc71 - Enabled worker versioning tests (#​1193) 2023-08-10 - c0a947b - Add note on heart beating and async activities (#​1198) 2023-08-11 - 7dbde86 - Fix flaky TestAsyncActivityCompletion (#​1199) 2023-08-11 - d5d6d3e - Update CI to Golang v1.21 (#​1200) 2023-08-19 - 9bd67dd - Add new fields to workflow info (#​1202) 2023-08-21 - 27895a9 - Clarify what happens if an error and result are returned (#​1203) 2023-08-22 - 20c550a - Fix flake in TestQueryOnlyCoroutineUsage (#​1204) 2023-08-23 - b9e5e24 - Refactor NextCommandEvents (#​1205) 2023-08-28 - d5a2f8f - Fix race condition during cache eviction (#​1210) 2023-08-29 - a7f9cdf - Add test for child wf cancel and update (#​1214) 2023-08-30 - 9345e81 - Check all functions with workflow.Context as first parameter (#​1215) 2023-08-31 - 0939af2 - Update Temporal API to v1.24.0 (#​1220) 2023-09-01 - 7485282 - Fix the documentation of ListWorkflow for querying open workflows (#​1217) 2023-09-01 - 90e7399 - Add slog adapter (#​1219) 2023-09-01 - 9dc99ed - Update readme for slog (#​1222) 2023-09-01 - c514225 - Add replay option to disable deadlock detection (#​1221) 2023-09-05 - 591ce7e - Clarify GetLastCompletionResult works with schedule (#​1225) 2023-09-05 - 6bdfec6 - chore: create UpdateCallbacks binding for the RoadRunner (#​1223) 2023-09-05 - b7931cb - Handle generic maps and channels (#​1224) 2023-09-07 - bc5e57d - Remove binary file (#​1226) 2023-09-08 - 7bf78b8 - Edit doc comments (#​1228) 2023-09-11 - 8ef6db7 - Stop using the tinycicd namespace for tests (#​1233) 2023-09-13 - ecfaa65 - Code inside workflow.SideEffect is deterministic (#​1230) 2023-09-18 - 22435a7 - Add doc links throughout our user-facing APIs (#​1239) 2023-09-18 - f1d6480 - feat(contrib/opentelemetry): add TraceID and SpanID fields to the logger (#​1232) 2023-09-23 - 6039cd3 - Disable running sessions on a versioned worker (#​1241) 2023-09-23 - a5ee832 - Decrease iterations of TestVersionLoopWorkflow (#​1242) 2023-09-23 - bfb39ac - Expose SetContinuedAsNewRunID in the TestWorkflowEnvironment (#​1246) 2023-09-23 - ff9b3f4 - Expose StartDelay in StartWorkflowOptions (#​1244) 2023-09-25 - 59d8488 - Add SDK version and name to history (#​1245) 2023-09-27 - 159a69f - Don't register a versioned worker for eager start (#​1251) 2023-10-02 - 9228307 - Convert panics in update protocol state machine to errors (#​1253) 2023-10-03 - fecfba8 - Fix selector AddSend docs (#​1254) 2023-10-04 - a001e5f - Add TaskReachability API (#​1247) 2023-10-05 - df09c35 - Allow eager workflow start on versioned worker (#​1255)


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This MR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Merge request reports