fix(deps): update module github.com/kataras/iris/v12 to v12.2.11 #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v12.2.6-0.20230908161203-24ba4e8933b9->v12.2.11Release Notes
kataras/iris (github.com/kataras/iris/v12)
v12.2.11Compare Source
Dear Iris Community,
You might have noticed a recent lull in activity on the Iris repository. I want to assure you that this silence is not without reason. For the past 3-4 months, I've been diligently working on the next major release of Iris.
This upcoming version is poised to be a significant leap forward, fully embracing the Generics feature introduced in Go. We're not just stopping at Generics, though. Expect a suite of new features, enhancements, and optimizations that will elevate your development experience to new heights.
My journey with Go spans over 8 years, and with each year, my expertise and understanding of the language deepen. This accumulated knowledge is being poured into Iris, ensuring that the framework not only evolves with the language but also with the community's growing needs.
Stay tuned for more updates, and thank you for your continued support and patience. The wait will be worth it.
Warm regards,
Gerasimos (Makis) Maropoulos
This is the last release for the version 12 family.
Security improvements and dependencies upgrade.
New
Application/Party.MiddlewareExists(handlerNameOrHandler)method added, example:x/errors.Intercept(func(ctx iris.Context, req *CreateRequest, resp *CreateResponse) error{ ... })package-level function.x/errors/ContextValidator.ValidateContext(iris.Context) errortox/errors/RequestHandler.HandleRequest(iris.Context) error.v12.2.10Compare Source
/core/hostsubpackage and remove itsDeferFlowandRestoreFlowmethods. These methods are replaced with:Supervisor.Configure(host.NonBlocking())beforeServeandSupervisor.Wait(context.Context) errorafterServe.trimHandlerNameand other minor stuff.iris.NonBlocking()configuration option to run the server without blocking the main routine,Application.Wait(context.Context) errormethod can be used to block and wait for the server to be up and running. Example:x/mathx.RoundToIntegermath helper function.v12.2.9Compare Source
x/errors.RecoveryHandlerpackage-level function.x/errors.Validationpackage-level function to add one or more validations for the request payload before a service call of the below methods.x/errors.Handler,CreateHandler,NoContentHandler,NoContentOrNotModifiedHandlerandListHandlerready-to-use handlers for service method calls to Iris Handler.x/errors.Listpackage-level function to supportListObjects(ctx context.Context, opts pagination.ListOptions, f Filter) ([]Object, int64, error)type of service calls./x/errorspackage works. A newx/errors/validationsub-package added to make your life easier (using the powerful Generics feature).x/errors.OK,Create,NoContentandNoContentOrNotModifiedpackage-level generic functions as custom service method caller helpers. Example can be found here.x/errors.ReadPayload,ReadQuery,ReadPaginationOptions,Handle,HandleCreate,HandleCreateResponse,HandleUpdateandHandleDeletepackage-level functions as helpers for common actions.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.x/timex.GetMonthDaysandx/timex.GetMonthEndfunctions.iris.CookieDomainandiris.CookieOverridecookie options to handle #2309.x/errors.ErrorCodeName.MapErrorFunc,MapErrors,Wrapmethods andx/errors.HandleErrorpackage-level function.v12.2.8Compare Source
A new way to customize the handler's parameter among with the
heroandmvcpackages. Newiris.NewContextWrapperandiris.NewContextPoolmethods were added to wrap a handler (.Handler,.Handlers,.HandlerReturnError,HandlerReturnDuration,FilterandFallbackViewFuncmethods) and use a custom context instead of the iris.Context directly. Example at: https://github.com/kataras/iris/tree/main/\_examples/routing/custom-context.The
cachesub-package has an update, 4 years after:cachepackage, through theHandler#Storemethod.cachepackage, trough theHandler#MaxAgemethod.cachepackage.cache.Handlerinput and output arguments remain as it is.cache.Cacheinput argument changed fromtime.Durationtofunc(iris.Context) time.Duration.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.
This PR has been generated by Mend Renovate. View repository job log here.