Skip to content

Bump github.com/dimfeld/httptreemux/v5 from 5.0.2 to 5.5.0#62

Open
dependabot[bot] wants to merge 1 commit intodevelopfrom
dependabot/go_modules/github.com/dimfeld/httptreemux/v5-5.5.0
Open

Bump github.com/dimfeld/httptreemux/v5 from 5.0.2 to 5.5.0#62
dependabot[bot] wants to merge 1 commit intodevelopfrom
dependabot/go_modules/github.com/dimfeld/httptreemux/v5-5.5.0

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Sep 21, 2024

Bumps github.com/dimfeld/httptreemux/v5 from 5.0.2 to 5.5.0.

Release notes

Sourced from github.com/dimfeld/httptreemux/v5's releases.

Make LookupResult.Params public

Thanks @​devillexio for the PR!

Add CaseInsensitive routing option

Thanks to @​Russman12 for the PR!

Add RouteData to Request Context before other middleware run

This allows middleware to do things like look at parameters and see the matched pattern. Thanks to @​ninthclowd for the PR!

Add AddRouteToContext method

Just adding a helper function to assist in writing handler tests.

Add ContextRoute method. Efficiency fix on Context data

The internal contextData type now uses a pointer receiver to avoid copying it on every access. Also added a ContextRoute helper method to directly extract the Route string if that's all you need. Thanks again to @​stuartclan for the help!

Place the unexpanded route path in the request Context

This is mostly to allow logging middleware to show the actual route matched without expanded wildcards.

Request context data can now be accessed using httptreemux.ContextData(r.Context()), which returns an interface ContextRouteData containing the parameters and the route path. The old ContextParams method is no longer recommended, but will continue to exist and work as before.

Thanks to @​stuartclan for the suggestion and help with the implementation and review!

Add Middleware Support

Middleware is now officially supported. Documentation coming soon. Many thanks to @​vmihailenco for the PR and @​kravemir for help with the review!

Commits
  • c997a2a Merge pull request #90 from devillexio/dv/89/expose-lookupresult-params
  • 81e8552 expose LookupResult params field
  • ce8677c Merge pull request #84 from Russman12/feature/case-insensitive-routing
  • cff09fa updated documentation
  • 11211e8 reverted search logic in favor of router level logic
  • 1af7c7d removed extra case conversions
  • 19d0f4e added documentation
  • 4767b32 added case insensitivity for route definition
  • d685567 added group test
  • 3b4153c added functionality to router
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/dimfeld/httptreemux/v5](https://github.com/dimfeld/httptreemux) from 5.0.2 to 5.5.0.
- [Release notes](https://github.com/dimfeld/httptreemux/releases)
- [Commits](dimfeld/httptreemux@5.0.2...v5.5.0)

---
updated-dependencies:
- dependency-name: github.com/dimfeld/httptreemux/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Sep 21, 2024

The following labels could not be found: dependencies, go, no-release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants