Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Request to work with ReadableStream polyfills #164

Merged
merged 4 commits into from
Apr 26, 2024

Conversation

nicksrandall
Copy link
Contributor

Some web frameworks (like Remix) inject polyfills for ReadableStream into the Node Runtime. This change makes sure that the server will work correctly with those polyfills. Otherwise the instanceof check would fail.

Some web frameworks (like Remix) inject polyfills for ReadableStream and this change makes sure that the server will work correctly with those polyfills.
@yusukebe
Copy link
Member

Hi @nicksrandall !

Thanks for the PR. It looks good to me. One thing, could you run yarn format:fix && yarn lint:fix to fix the format?

@nicksrandall
Copy link
Contributor Author

@yusukebe Done

@yusukebe
Copy link
Member

@nicksrandall Thanks! Merging now.

@yusukebe yusukebe merged commit d62cbbb into honojs:main Apr 26, 2024
3 checks passed
nicolewhite referenced this pull request in autoblocksai/cli Apr 29, 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 |
|---|---|---|---|---|---|
| [@hono/node-server](https://togithub.com/honojs/node-server) |
[`1.10.1` ->
`1.11.1`](https://renovatebot.com/diffs/npm/@hono%2fnode-server/1.10.1/1.11.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@hono%2fnode-server/1.11.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@hono%2fnode-server/1.11.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@hono%2fnode-server/1.10.1/1.11.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@hono%2fnode-server/1.10.1/1.11.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>honojs/node-server (@&#8203;hono/node-server)</summary>

###
[`v1.11.1`](https://togithub.com/honojs/node-server/releases/tag/v1.11.1)

[Compare
Source](https://togithub.com/honojs/node-server/compare/v1.11.0...v1.11.1)

#### What's Changed

- Update Request to work with ReadableStream polyfills by
[@&#8203;nicksrandall](https://togithub.com/nicksrandall) in
[https://github.com/honojs/node-server/pull/164](https://togithub.com/honojs/node-server/pull/164)
- refactor(serve-static): use `c.req.path` instead of `url.pathname` by
[@&#8203;yusukebe](https://togithub.com/yusukebe) in
[https://github.com/honojs/node-server/pull/166](https://togithub.com/honojs/node-server/pull/166)

#### New Contributors

- [@&#8203;nicksrandall](https://togithub.com/nicksrandall) made their
first contribution in
[https://github.com/honojs/node-server/pull/164](https://togithub.com/honojs/node-server/pull/164)

**Full Changelog**:
honojs/node-server@v1.11.0...v1.11.1

###
[`v1.11.0`](https://togithub.com/honojs/node-server/releases/tag/v1.11.0)

[Compare
Source](https://togithub.com/honojs/node-server/compare/v1.10.1...v1.11.0)

#### What's Changed

- feat: validate incoming host header by
[@&#8203;usualoma](https://togithub.com/usualoma) in
[https://github.com/honojs/node-server/pull/163](https://togithub.com/honojs/node-server/pull/163)

**Full Changelog**:
honojs/node-server@v1.10.1...v1.11.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" in timezone
America/Chicago, 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 [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/autoblocksai/cli).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMjEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjMyMS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

2 participants