Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x, 22.x, 24.x]
node-version: [20.x, 22.x, 24.x]

steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,7 @@ Statistics Avg Stdev Max

## Requirements

It works on Node.js versions greater than 18.x. The specific required Node.js versions are as follows:

- 18.x => 18.14.1+
- 19.x => 19.7.0+
- 20.x => 20.0.0+

Essentially, you can simply use the latest version of each major release.
It works on Node.js versions greater than 20.x.

## Installation

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"access": "public"
},
"engines": {
"node": ">=18.14.1"
"node": ">=20"
},
"devDependencies": {
"@hono/eslint-config": "^1.0.1",
Expand Down
6 changes: 0 additions & 6 deletions src/globals.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
buildOutgoingHttpHeaders,
} from './utils'
import { X_ALREADY_SENT } from './utils/response/constants'
import './globals'

const outgoingEnded = Symbol('outgoingEnded')
type OutgoingHasOutgoingEnded = Http2ServerResponse & {
Expand Down
4 changes: 2 additions & 2 deletions src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export class Request extends GlobalRequest {
}
// Check if body is ReadableStream like. This makes it compatbile with ReadableStream polyfills.
if (typeof (options?.body as ReadableStream)?.getReader !== 'undefined') {
// node 18 fetch needs half duplex mode when request body is stream
// if already set, do nothing since a Request object was passed to the options or explicitly set by the user.
// Half duplex mode is required when request body is a stream.
// If already set, do nothing since a Request object was passed to the options or explicitly set by the user.
;(options as any).duplex ??= 'half'
}
super(input, options)
Expand Down
Loading