Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): Update module github.com/kataras/iris/v12 to v12.2.10 (#137)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/kataras/iris/v12](https://github.com/kataras/iris) | indirect | patch | `v12.2.8` -> `v12.2.10` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>kataras/iris (github.com/kataras/iris/v12)</summary> ### [`v12.2.10`](https://github.com/kataras/iris/blob/HEAD/HISTORY.md#Thu-18-Jan-2024--v12210) [Compare Source](https://github.com/kataras/iris/compare/v12.2.9...v12.2.10) - Simplify the `/core/host` subpackage and remove its `DeferFlow` and `RestoreFlow` methods. These methods are replaced with: `Supervisor.Configure(host.NonBlocking())` before `Serve` and ` Supervisor.Wait(context.Context) error ` after `Serve`. - Fix internal `trimHandlerName` and other minor stuff. - New `iris.NonBlocking()` configuration option to run the server without blocking the main routine, `Application.Wait(context.Context) error` method can be used to block and wait for the server to be up and running. Example: ```go func main() { app := iris.New() app.Get("/", func(ctx iris.Context) { ctx.Writef("Hello, %s!", "World") }) app.Listen(":8080", iris.NonBlocking(), iris.WithoutServerError(iris.ErrServerClosed)) ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second) defer cancel() if err := app.Wait(ctx); err != nil { log.Fatal(err) } // [Server is up and running now, you may continue with other functions below]. } ``` - Add `x/mathx.RoundToInteger` math helper function. ### [`v12.2.9`](https://github.com/kataras/iris/blob/HEAD/HISTORY.md#Wed-10-Jan-2024--v1229) [Compare Source](https://github.com/kataras/iris/compare/v12.2.8...v12.2.9) - Add `x/errors.RecoveryHandler` package-level function. - Add `x/errors.Validation` package-level function to add one or more validations for the request payload before a service call of the below methods. - Add `x/errors.Handler`, `CreateHandler`, `NoContentHandler`, `NoContentOrNotModifiedHandler` and `ListHandler` ready-to-use handlers for service method calls to Iris Handler. - Add `x/errors.List` package-level function to support `ListObjects(ctx context.Context, opts pagination.ListOptions, f Filter) ([]Object, int64, error)` type of service calls. - Simplify how validation errors on `/x/errors` package works. A new `x/errors/validation` sub-package added to make your life easier (using the powerful Generics feature). - Add `x/errors.OK`, `Create`, `NoContent` and `NoContentOrNotModified` package-level generic functions as custom service method caller helpers. Example can be found [here](\_examples/routing/http-wire-errors/service/main.go). - Add `x/errors.ReadPayload`, `ReadQuery`, `ReadPaginationOptions`, `Handle`, `HandleCreate`, `HandleCreateResponse`, `HandleUpdate` and `HandleDelete` package-level functions as helpers for common actions. - Add `x/jsonx.GetSimpleDateRange(date, jsonx.WeekRange, time.Monday, time.Sunday)` which returns all dates between the given range and start/end weekday values for WeekRange. - Add `x/timex.GetMonthDays` and `x/timex.GetMonthEnd` functions. - Add `iris.CookieDomain` and `iris.CookieOverride` cookie options to handle [#​2309](https://github.com/kataras/iris/issues/2309). - New `x/errors.ErrorCodeName.MapErrorFunc`, `MapErrors`, `Wrap` methods and `x/errors.HandleError` package-level function. </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNjMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjE2My4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
- Loading branch information