Skip to content

refactor(backport v4.x): change reply.redirect() signature (#5483)#5484

Merged
climba03003 merged 1 commit intofastify:4.xfrom
gurgunday:backport-deprecation-reply
May 27, 2024
Merged

refactor(backport v4.x): change reply.redirect() signature (#5483)#5484
climba03003 merged 1 commit intofastify:4.xfrom
gurgunday:backport-deprecation-reply

Conversation

@gurgunday
Copy link
Member

  • feat: change reply.redirect() signature

  • feat: change reply.redirect() signature

  • docs

  • docs

  • update message

  • fix deprecation

  • update message

Checklist

@gurgunday gurgunday added the backport 4.x Issue or pr that should be backported to Fastify v4 label May 26, 2024
@gurgunday
Copy link
Member Author

Alternative Runtimes node 18 never passes

@gurgunday gurgunday requested a review from a team May 26, 2024 10:26
@gurgunday gurgunday removed the backport 4.x Issue or pr that should be backported to Fastify v4 label May 26, 2024
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

ci is not happy

@gurgunday
Copy link
Member Author

gurgunday commented May 27, 2024

Only NodeSource's node 18 fails, all other versions including the vanilla node 18 and NodeSource 20 pass:

not ok Should close the socket abruptly - pipelining - return503OnClosing: false, skip Node < v18.19.x # time=36.597ms

Interesting, I haven't verified but maybe it should skip this test (< v18.19) - in any case it's not about this PR

@climba03003
Copy link
Member

climba03003 commented May 27, 2024

See #5486 for the reason
The current main branch is not affected because it does not run v18.
We can cleanup the test at the final stage before release fastify@5.

* feat: change `reply.redirect()` signature

* feat: change `reply.redirect()` signature

* docs

* docs

* update message

* fix deprecation

* update message
@climba03003 climba03003 force-pushed the backport-deprecation-reply branch from fd5cb9a to b04805d Compare May 27, 2024 08:45
@climba03003 climba03003 changed the title refactor: (backport) change reply.redirect() signature (#5483) [Backport v4.x] refactor: change reply.redirect() signature (#5483) May 27, 2024
@climba03003 climba03003 changed the title [Backport v4.x] refactor: change reply.redirect() signature (#5483) refactor(backport v4.x): change reply.redirect() signature (#5483) May 27, 2024
@climba03003
Copy link
Member

You can use the label: backport 4.x label in the original PR next time.
It will automatically cherry-pick to the 4.x branch.

@climba03003 climba03003 merged commit 369858d into fastify:4.x May 27, 2024
@gurgunday gurgunday deleted the backport-deprecation-reply branch May 27, 2024 09:29
@gurgunday
Copy link
Member Author

gurgunday commented May 27, 2024

When can we release this? To give users as much time as possible to see the deprecation

Cc @mcollina

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 May 28, 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.

3 participants