Skip to content

refactor(backport v4.x): hasRoute method comparison with case insensitive#5513

Merged
mcollina merged 2 commits intofastify:4.xfrom
SMNBLMRR:backport-5508-to-4.x
Jun 11, 2024
Merged

refactor(backport v4.x): hasRoute method comparison with case insensitive#5513
mcollina merged 2 commits intofastify:4.xfrom
SMNBLMRR:backport-5508-to-4.x

Conversation

@SMNBLMRR
Copy link
Contributor

@SMNBLMRR SMNBLMRR commented Jun 9, 2024

fix for issue: #5503

Checklist

@SMNBLMRR SMNBLMRR changed the title [Backport 4.x] fix: hasRoute method comparison with case insensitive refactor(backport v4.x): hasRoute method comparison with case insensitive Jun 9, 2024
Copy link
Member

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for the backport!

I think the reason we still have findRoute here was that hasRoute is breakingly different

You should just uppercase it and pass to findRoute

@SMNBLMRR
Copy link
Contributor Author

Got it! I've made the changes, hope it works!

Copy link
Member

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit 1d7b955 into fastify:4.x Jun 11, 2024
renovate bot referenced this pull request in tomacheese/telcheck Jun 14, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [fastify](https://fastify.dev/)
([source](https://togithub.com/fastify/fastify)) | [`4.27.0` ->
`4.28.0`](https://renovatebot.com/diffs/npm/fastify/4.27.0/4.28.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/fastify/4.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/fastify/4.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/fastify/4.27.0/4.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/fastify/4.27.0/4.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>fastify/fastify (fastify)</summary>

###
[`v4.28.0`](https://togithub.com/fastify/fastify/releases/tag/v4.28.0)

[Compare
Source](https://togithub.com/fastify/fastify/compare/v4.27.0...v4.28.0)

#### What's Changed

- test: fix closing - pipelining by
[@&#8203;climba03003](https://togithub.com/climba03003) in
[https://github.com/fastify/fastify/pull/5486](https://togithub.com/fastify/fastify/pull/5486)
- refactor(backport v4.x): change `reply.redirect()` signature
([#&#8203;5483](https://togithub.com/fastify/fastify/issues/5483)) by
[@&#8203;gurgunday](https://togithub.com/gurgunday) in
[https://github.com/fastify/fastify/pull/5484](https://togithub.com/fastify/fastify/pull/5484)
- refactor(backport v4.x): hasRoute method comparison with case
insensitive by [@&#8203;SMNBLMRR](https://togithub.com/SMNBLMRR) in
[https://github.com/fastify/fastify/pull/5513](https://togithub.com/fastify/fastify/pull/5513)
- fix: (backport) Type inferrence with auxilliary hook handlers by
[@&#8203;aadito123](https://togithub.com/aadito123) in
[https://github.com/fastify/fastify/pull/5518](https://togithub.com/fastify/fastify/pull/5518)

**Full Changelog**:
fastify/fastify@v4.27.0...v4.28.0

</details>

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **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 [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/tomacheese/telcheck).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in redwoodjs/graphql Jul 20, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [fastify](https://fastify.dev/)
([source](https://togithub.com/fastify/fastify)) | [`4.27.0` ->
`4.28.1`](https://renovatebot.com/diffs/npm/fastify/4.27.0/4.28.1) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/fastify/4.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/fastify/4.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/fastify/4.27.0/4.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/fastify/4.27.0/4.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>fastify/fastify (fastify)</summary>

###
[`v4.28.1`](https://togithub.com/fastify/fastify/releases/tag/v4.28.1)

[Compare
Source](https://togithub.com/fastify/fastify/compare/v4.28.0...v4.28.1)

#### What's Changed

- \[Backport 4.x] fix: server.listen listener is not cleanup properly by
[@&#8203;github-actions](https://togithub.com/github-actions) in
[https://github.com/fastify/fastify/pull/5523](https://togithub.com/fastify/fastify/pull/5523)
- \[Backport 4.x] test: fix test finished earlier than expected by
[@&#8203;github-actions](https://togithub.com/github-actions) in
[https://github.com/fastify/fastify/pull/5541](https://togithub.com/fastify/fastify/pull/5541)
- fix(v4): update .npmignore by
[@&#8203;Eomm](https://togithub.com/Eomm) in
[https://github.com/fastify/fastify/pull/5538](https://togithub.com/fastify/fastify/pull/5538)

**Full Changelog**:
fastify/fastify@v4.28.0...v4.28.1

###
[`v4.28.0`](https://togithub.com/fastify/fastify/releases/tag/v4.28.0)

[Compare
Source](https://togithub.com/fastify/fastify/compare/v4.27.0...v4.28.0)

#### What's Changed

- test: fix closing - pipelining by
[@&#8203;climba03003](https://togithub.com/climba03003) in
[https://github.com/fastify/fastify/pull/5486](https://togithub.com/fastify/fastify/pull/5486)
- refactor(backport v4.x): change `reply.redirect()` signature
([#&#8203;5483](https://togithub.com/fastify/fastify/issues/5483)) by
[@&#8203;gurgunday](https://togithub.com/gurgunday) in
[https://github.com/fastify/fastify/pull/5484](https://togithub.com/fastify/fastify/pull/5484)
- refactor(backport v4.x): hasRoute method comparison with case
insensitive by [@&#8203;SMNBLMRR](https://togithub.com/SMNBLMRR) in
[https://github.com/fastify/fastify/pull/5513](https://togithub.com/fastify/fastify/pull/5513)
- fix: (backport) Type inferrence with auxilliary hook handlers by
[@&#8203;aadito123](https://togithub.com/aadito123) in
[https://github.com/fastify/fastify/pull/5518](https://togithub.com/fastify/fastify/pull/5518)

**Full Changelog**:
fastify/fastify@v4.27.0...v4.28.0

</details>

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/redwoodjs/redwood).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjQzMS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants