Skip to content

2025-05-21, Version 24.1.0 (Current) #58406

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

Merged
merged 78 commits into from
May 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
4c6f73c
url: improve performance of the format function
puskin May 3, 2025
94c720c
util: add internal `assignFunctionName()` function
LiviaMedeiros Apr 17, 2025
7dabf07
child_process: give names to promisified `exec()` and `execFile()`
LiviaMedeiros Apr 17, 2025
8f1aee9
http2: give name to promisified `connect()`
LiviaMedeiros Apr 17, 2025
62dbd36
doc: update return types for eventNames method in EventEmitter
y-hsgw May 4, 2025
629a954
repl: add possibility to edit multiline commands while adding them
puskin Apr 23, 2025
714b706
repl: add proper vertical cursor movements
puskin May 1, 2025
6544663
test: reduce flakiness in test-heapdump-http2
joyeecheung May 5, 2025
2874542
test_runner: unify --require and --import behavior when isolation none
pmarchini May 6, 2025
7e4453f
build: escape > metachar in vcbuild
Flarna May 6, 2025
4c967b7
buffer: use constexpr where possible
anonrig May 6, 2025
c815f29
src: remove NonCopyableMaybe
tniessen May 6, 2025
b33e8d2
async_hooks: ensure AsyncLocalStore instances work isolated
Flarna May 6, 2025
2e54653
build: use FILE_OFFSET_BITS=64 esp. on 32-bit arch
RafaelGSS Apr 30, 2025
90d4c11
deps: update amaro to 0.5.3
nodejs-github-bot May 7, 2025
a0ca155
deps: update llhttp to 9.3.0
indutny May 7, 2025
6403aa4
crypto: merge CipherBase.initiv into constructor
tniessen May 7, 2025
09a85fd
test: skip test-buffer-tostring-rangeerror when low on memory
BridgeAR May 7, 2025
eb4f130
test: remove Float16Array flag
LiviaMedeiros May 7, 2025
908782b
sqlite: add build option to build without sqlite
mhdawson Apr 29, 2025
e75ecf8
Revert "deps: disable V8 concurrent sparkplug compilation"
targos May 6, 2025
e3193ee
Revert "deps: always define V8_EXPORT_PRIVATE as no-op"
targos May 6, 2025
f54a7a4
Revert "deps: patch V8 to support compilation with MSVC"
targos May 6, 2025
329e008
src: refactor WriteUCS2 and remove flags argument
tniessen May 8, 2025
868e72e
lib: fix sourcemaps with ts module mocking
marco-ippolito May 8, 2025
b94f63b
module: handle instantiated async module jobs in require(esm)
joyeecheung May 8, 2025
bb28e2b
src: remove overzealous tcsetattr error check
bnoordhuis May 8, 2025
7715722
http: remove unused functions and add todos
anonrig May 9, 2025
9ca4b46
src: use String::WriteV2() in TwoByteValue
tniessen May 9, 2025
f7041b9
Revert "test_runner: change ts default glob"
theoludwig May 9, 2025
ebb82aa
test: deflake test-http2-client-socket-destroy
lpinca May 9, 2025
abeb5c4
src: fix module buffer allocation
Whitecx May 9, 2025
6568373
test: fix executable flags
LiviaMedeiros May 10, 2025
6ebcce7
fs: ensure `dir.read()` does not throw synchronously
aduh95 May 8, 2025
db57f0a
deps: patch V8 to 13.6.233.10
targos May 8, 2025
5a5f6bb
deps: V8: cherry-pick 044b9b6f589d
rmahdav May 1, 2025
63f5d69
deps: V8: cherry-pick 4f38995c8295
syg May 5, 2025
30897d9
deps: V8: backport 1d3362c55396
syg May 6, 2025
a135c0a
src: remove unneeded explicit V8 flags
targos May 8, 2025
97f8037
test: add `Float16Array` to `common.getArrayBufferViews()`
LiviaMedeiros May 10, 2025
655326b
fs: glob is stable, so should not emit experimental warnings
theoludwig May 10, 2025
2cb86a3
http2: add diagnostics channel 'http2.client.stream.created'
RaisinTen May 11, 2025
c26863a
doc: fix typo of file `http.md`, `outgoingMessage.setTimeout` section
samuel871211 May 11, 2025
fcead7c
fs: add to `Dir` support for explicit resource management
aduh95 May 11, 2025
1774612
sqlite: set `name` and `length` on `sqlite.backup()`
LiviaMedeiros May 11, 2025
130c135
fs: add support for `URL` for `fs.glob`'s `cwd` option
aduh95 May 11, 2025
b8d4715
tools: support environment variables via comments
pmarchini May 11, 2025
2d5de7e
tools: add read permission to workflows that read contents
aduh95 May 11, 2025
d8e88f2
typings: add missing typings for `TypedArray`
jazelly May 12, 2025
a1b078b
buffer: give names to `Buffer.prototype.*Write()` functions
LiviaMedeiros May 12, 2025
a896eff
crypto: handle missing OPENSSL_TLS_SECURITY_LEVEL
codebytere May 12, 2025
74a807e
http,https: give names to anonymous or misnamed functions
LiviaMedeiros May 12, 2025
b66f1b0
inspector: support for worker inspection in chrome devtools
islandryu May 12, 2025
290a5ab
doc: clarify napi_get_value_string_* for bufsize 0
tniessen May 12, 2025
3b8d4e3
src: add a couple fast apis in node_os
jasnell May 7, 2025
a3af644
test: allow `tmpDir.path` to be modified
avivkeller May 12, 2025
4db5d0b
src: remove unused `shouldRetryAsESM` internal binding
dario-piotrowicz May 12, 2025
cb24fc7
src: remove unused `checkMessagePort` internal binding
dario-piotrowicz May 12, 2025
e0355b7
src: add a variant of ToV8Value() for primitive arrays
Aditi-1400 Mar 18, 2025
327095a
build: fix uvwasi pkgname
aduh95 May 12, 2025
fc30cdd
doc: update stability status for diagnostics_channel to experimental
idango10 May 13, 2025
b7d1bfa
doc: add puskin to collaborators
puskin May 13, 2025
a1b937b
doc: update commit-queue documentation
dario-piotrowicz May 13, 2025
3ed159a
watch: fix watch args not being properly filtered
dario-piotrowicz May 13, 2025
40dc092
test: remove unnecessary `console.log` from test-repl-null-thrown
dario-piotrowicz May 13, 2025
685d137
test: reduce iteration count in test-child-process-stdout-flush-exit
aduh95 May 13, 2025
a92a407
src: remove unused `internalVerifyIntegrity` internal binding
dario-piotrowicz May 13, 2025
f0cf1a0
doc: make Stability labels not sticky in Stability index
LiviaMedeiros May 14, 2025
24a9aef
http2: add diagnostics channel 'http2.client.stream.start'
RaisinTen May 14, 2025
3b9b010
doc: remove comma delimiter mention on permissions doc
RafaelGSS May 14, 2025
f04f09d
doc: mark the callback argument of crypto.generatePrime as mandatory
mureinik May 14, 2025
2bb433d
doc: fix CryptoKey.algorithm type and other interfaces in webcrypto.md
panva May 14, 2025
c35cc1b
doc: document default test-reporter change
nicojs May 14, 2025
2676ca0
doc: add latest security release steward
RafaelGSS May 15, 2025
6301b00
tools: ignore `deps/` and `benchmark/` for CodeQL
RafaelGSS May 15, 2025
570cb6f
meta: ignore mailmap changes in linux ci
JonasBa May 16, 2025
9d35b4c
doc: add JonasBa to collaborators
JonasBa May 16, 2025
587a88b
2025-05-21, Version 24.1.0 (Current)
nodejs-github-bot May 20, 2025
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
4 changes: 2 additions & 2 deletions .github/codeql-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ name: CodeQL config

paths-ignore:
- test
- deps/v8/test
- deps/v8/tools
- deps
- benchmark
1 change: 1 addition & 0 deletions .github/workflows/lint-release-proposal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
lint-release-commit:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/notify-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Linux
on:
pull_request:
paths-ignore:
- .mailmap
- README.md
- .github/**
- '!.github/workflows/test-linux.yml'
Expand All @@ -14,6 +15,7 @@ on:
- v[0-9]+.x-staging
- v[0-9]+.x
paths-ignore:
- .mailmap
- README.md
- .github/**
- '!.github/workflows/test-linux.yml'
Expand Down
2 changes: 2 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ George Adams <[email protected]> <[email protected]>
Gerhard Stöbich <[email protected]>
Gibson Fahnestock <[email protected]> <[email protected]>
Gil Pedersen <[email protected]> <[email protected]>
Giovanni Bucci <[email protected]>
Graham Fairweather <[email protected]> <xotic750@gmail>
Greg Sabia Tucker <[email protected]> <[email protected]>
Gregor Martynus <[email protected]>
Expand Down Expand Up @@ -270,6 +271,7 @@ John McGuirk <[email protected]>
John Musgrave <[email protected]>
Johnny Ray Austin <[email protected]> <http://johnnyray.me>
Jon Tippens <[email protected]>
Jonas Badalic <[email protected]> <[email protected]>
Jonas Pfenniger <[email protected]> <[email protected]>
Jonathan Gourlay <[email protected]>
Jonathan Ong <[email protected]> <[email protected]>
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V24.md#24.0.2">24.0.2</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V24.md#24.1.0">24.1.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V24.md#24.0.2">24.0.2</a><br/>
<a href="doc/changelogs/CHANGELOG_V24.md#24.0.1">24.0.1</a><br/>
<a href="doc/changelogs/CHANGELOG_V24.md#24.0.0">24.0.0</a><br/>
</td>
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -509,16 +509,24 @@ SQLITE_BINDING_SOURCES := \
$(wildcard test/sqlite/*/*.c)

# Implicitly depends on $(NODE_EXE), see the build-sqlite-tests rule for rationale.
ifndef NOSQLITE
test/sqlite/.buildstamp: $(ADDONS_PREREQS) \
$(SQLITE_BINDING_GYPS) $(SQLITE_BINDING_SOURCES)
@$(call run_build_addons,"$$PWD/test/sqlite",$@)
else
test/sqlite/.buildstamp:
endif

.PHONY: build-sqlite-tests
ifndef NOSQLITE
# .buildstamp needs $(NODE_EXE) but cannot depend on it
# directly because it calls make recursively. The parent make cannot know
# if the subprocess touched anything so it pessimistically assumes that
# .buildstamp is out of date and need a rebuild.
build-sqlite-tests: | $(NODE_EXE) test/sqlite/.buildstamp ## Build SQLite tests.
else
build-sqlite-tests:
endif

.PHONY: clear-stalled
clear-stalled: ## Clear any stalled processes.
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ For information about the governance of the Node.js project, see
**Jason Zhang** <<[email protected]>> (he/him)
* [jkrems](https://github.com/jkrems) -
**Jan Martin** <<[email protected]>> (he/him)
* [JonasBa](https://github.com/JonasBa) -
**Jonas Badalic** <<[email protected]>> (he/him)
* [joyeecheung](https://github.com/joyeecheung) -
**Joyee Cheung** <<[email protected]>> (she/her)
* [juanarbol](https://github.com/juanarbol) -
Expand Down Expand Up @@ -411,6 +413,8 @@ For information about the governance of the Node.js project, see
**Tim Perry** <<[email protected]>> (he/him)
* [pmarchini](https://github.com/pmarchini) -
**Pietro Marchini** <<[email protected]>> (he/him)
* [puskin](https://github.com/puskin) -
**Giovanni Bucci** <<[email protected]>> (he/him)
* [Qard](https://github.com/Qard) -
**Stephen Belanger** <<[email protected]>> (he/him)
* [RafaelGSS](https://github.com/RafaelGSS) -
Expand Down
5 changes: 4 additions & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
'v8_embedder_string': '-node.10',
'v8_embedder_string': '-node.16',

##### V8 defaults for Node.js #####

Expand Down Expand Up @@ -276,6 +276,9 @@
# Defines these mostly for node-gyp to pickup.
'defines': [
'_GLIBCXX_USE_CXX11_ABI=1',
# This help forks when building Node.js on a 32-bit arch as
# libuv is always compiled with _FILE_OFFSET_BITS=64
'_FILE_OFFSET_BITS=64'
],

# Forcibly disable -Werror. We support a wide range of compilers, it's
Expand Down
20 changes: 18 additions & 2 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,12 @@
default=None,
help='build without NODE_OPTIONS support')

parser.add_argument('--without-sqlite',
action='store_true',
dest='without_sqlite',
default=None,
help='build without SQLite (disables SQLite and Web Stoage API)')

parser.add_argument('--ninja',
action='store_true',
dest='use_ninja',
Expand Down Expand Up @@ -1816,6 +1822,16 @@ def without_ssl_error(option):

configure_library('openssl', o)

def configure_sqlite(o):
o['variables']['node_use_sqlite'] = b(not options.without_sqlite)
if options.without_sqlite:
def without_sqlite_error(option):
error(f'--without-sqlite is incompatible with {option}')
if options.shared_sqlite:
without_sqlite_error('--shared-sqlite')
return

configure_library('sqlite', o, pkgname='sqlite3')

def configure_static(o):
if options.fully_static or options.partly_static:
Expand Down Expand Up @@ -2259,8 +2275,8 @@ def make_bin_override():
configure_library('nghttp2', output, pkgname='libnghttp2')
configure_library('nghttp3', output, pkgname='libnghttp3')
configure_library('ngtcp2', output, pkgname='libngtcp2')
configure_library('sqlite', output, pkgname='sqlite3')
configure_library('uvwasi', output, pkgname='libuvwasi')
configure_sqlite(output);
configure_library('uvwasi', output)
configure_library('zstd', output, pkgname='libzstd')
configure_v8(output, configurations)
configure_openssl(output)
Expand Down
6 changes: 3 additions & 3 deletions deps/amaro/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion deps/amaro/dist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"강동윤 <[email protected]>"
],
"description": "wasm module for swc",
"version": "1.11.21",
"version": "1.11.24",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion deps/amaro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "amaro",
"version": "0.5.2",
"version": "0.5.3",
"description": "Node.js TypeScript wrapper",
"license": "MIT",
"type": "commonjs",
Expand Down
7 changes: 4 additions & 3 deletions deps/llhttp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.5.1)
cmake_minimum_required(VERSION 3.25.0)
cmake_policy(SET CMP0069 NEW)

project(llhttp VERSION 9.2.1)
project(llhttp VERSION 9.3.0)
include(GNUInstallDirs)

set(CMAKE_C_STANDARD 99)
Expand Down Expand Up @@ -49,7 +49,7 @@ function(config_library target)

target_include_directories(${target} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)

set_target_properties(${target} PROPERTIES
Expand All @@ -61,6 +61,7 @@ function(config_library target)

install(TARGETS ${target}
EXPORT llhttp
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
Expand Down
22 changes: 22 additions & 0 deletions deps/llhttp/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
This software is licensed under the MIT License.

Copyright Fedor Indutny, 2018.

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the
following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.
9 changes: 7 additions & 2 deletions deps/llhttp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ int main() {
if (err == HPE_OK) {
fprintf(stdout, "Successfully parsed!\n");
} else {
fprintf(stderr, "Parse error: %s %s\n", llhttp_errno_name(err), parser.reason);
fprintf(stderr, "Parse error: %s %s\n", llhttp_errno_name(err), llhttp_get_error_reason(&parser));
}
}
```
Expand All @@ -112,6 +112,7 @@ The following callbacks can return `0` (proceed normally), `-1` (error) or `HPE_
* `on_message_complete`: Invoked when a request/response has been completedly parsed.
* `on_url_complete`: Invoked after the URL has been parsed.
* `on_method_complete`: Invoked after the HTTP method has been parsed.
* `on_protocol_complete`: Invoked after the HTTP version has been parsed.
* `on_version_complete`: Invoked after the HTTP version has been parsed.
* `on_status_complete`: Invoked after the status code has been parsed.
* `on_header_field_complete`: Invoked after a header name has been parsed.
Expand All @@ -130,6 +131,7 @@ The following callbacks can return `0` (proceed normally), `-1` (error) or `HPE_
* `on_method`: Invoked when another character of the method is received.
When parser is created with `HTTP_BOTH` and the input is a response, this also invoked for the sequence `HTTP/`
of the first message.
* `on_protocol`: Invoked when another character of the protocol is received.
* `on_version`: Invoked when another character of the version is received.
* `on_header_field`: Invoked when another character of a header name is received.
* `on_header_value`: Invoked when another character of a header value is received.
Expand Down Expand Up @@ -187,7 +189,8 @@ Parse full or partial request/response, invoking user callbacks along the way.

If any of `llhttp_data_cb` returns errno not equal to `HPE_OK` - the parsing interrupts,
and such errno is returned from `llhttp_execute()`. If `HPE_PAUSED` was used as a errno,
the execution can be resumed with `llhttp_resume()` call.
the execution can be resumed with `llhttp_resume()` call. In that case the input should be advanced
to the last processed byte from the parser, which can be obtained via `llhttp_get_error_pos()`.

In a special case of CONNECT/Upgrade request/response `HPE_PAUSED_UPGRADE` is returned
after fully parsing the request/response. If the user wishes to continue parsing,
Expand All @@ -196,6 +199,8 @@ they need to invoke `llhttp_resume_after_upgrade()`.
**if this function ever returns a non-pause type error, it will continue to return
the same error upon each successive call up until `llhttp_init()` is called.**

If this function returns `HPE_OK`, it means all the input has been consumed and parsed.

### `llhttp_errno_t llhttp_finish(llhttp_t* parser)`

This method should be called when the other side has no further bytes to
Expand Down
10 changes: 7 additions & 3 deletions deps/llhttp/include/llhttp.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#define INCLUDE_LLHTTP_H_

#define LLHTTP_VERSION_MAJOR 9
#define LLHTTP_VERSION_MINOR 2
#define LLHTTP_VERSION_PATCH 1
#define LLHTTP_VERSION_MINOR 3
#define LLHTTP_VERSION_PATCH 0

#ifndef INCLUDE_LLHTTP_ITSELF_H_
#define INCLUDE_LLHTTP_ITSELF_H_
Expand Down Expand Up @@ -90,7 +90,8 @@ enum llhttp_errno {
HPE_CB_HEADER_VALUE_COMPLETE = 29,
HPE_CB_CHUNK_EXTENSION_NAME_COMPLETE = 34,
HPE_CB_CHUNK_EXTENSION_VALUE_COMPLETE = 35,
HPE_CB_RESET = 31
HPE_CB_RESET = 31,
HPE_CB_PROTOCOL_COMPLETE = 38
};
typedef enum llhttp_errno llhttp_errno_t;

Expand Down Expand Up @@ -326,6 +327,7 @@ typedef enum llhttp_status llhttp_status_t;
XX(34, CB_CHUNK_EXTENSION_NAME_COMPLETE, CB_CHUNK_EXTENSION_NAME_COMPLETE) \
XX(35, CB_CHUNK_EXTENSION_VALUE_COMPLETE, CB_CHUNK_EXTENSION_VALUE_COMPLETE) \
XX(31, CB_RESET, CB_RESET) \
XX(38, CB_PROTOCOL_COMPLETE, CB_PROTOCOL_COMPLETE) \


#define HTTP_METHOD_MAP(XX) \
Expand Down Expand Up @@ -567,6 +569,7 @@ struct llhttp_settings_s {
llhttp_cb on_message_begin;

/* Possible return values 0, -1, HPE_USER */
llhttp_data_cb on_protocol;
llhttp_data_cb on_url;
llhttp_data_cb on_status;
llhttp_data_cb on_method;
Expand All @@ -592,6 +595,7 @@ struct llhttp_settings_s {

/* Possible return values 0, -1, `HPE_PAUSED` */
llhttp_cb on_message_complete;
llhttp_cb on_protocol_complete;
llhttp_cb on_url_complete;
llhttp_cb on_status_complete;
llhttp_cb on_method_complete;
Expand Down
8 changes: 4 additions & 4 deletions deps/llhttp/libllhttp.pc.in
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
includedir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@
exec_prefix=@CMAKE_INSTALL_FULL_BINDIR@
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@

Name: libllhttp
Description: Node.js llhttp Library
Version: @PROJECT_VERSION@
Libs: -L${libdir} -lllhttp
Cflags: -I${includedir}
Cflags: -I${includedir}
45 changes: 22 additions & 23 deletions deps/llhttp/src/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,29 +57,14 @@ static int wasm_on_headers_complete_wrap(llhttp_t* p) {
}

const llhttp_settings_t wasm_settings = {
wasm_on_message_begin,
wasm_on_url,
wasm_on_status,
NULL,
NULL,
wasm_on_header_field,
wasm_on_header_value,
NULL,
NULL,
wasm_on_headers_complete_wrap,
wasm_on_body,
wasm_on_message_complete,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
.on_message_begin = wasm_on_message_begin,
.on_url = wasm_on_url,
.on_status = wasm_on_status,
.on_header_field = wasm_on_header_field,
.on_header_value = wasm_on_header_value,
.on_headers_complete = wasm_on_headers_complete_wrap,
.on_body = wasm_on_body,
.on_message_complete = wasm_on_message_complete,
};


Expand Down Expand Up @@ -341,6 +326,20 @@ int llhttp__on_message_begin(llhttp_t* s, const char* p, const char* endp) {
}


int llhttp__on_protocol(llhttp_t* s, const char* p, const char* endp) {
int err;
SPAN_CALLBACK_MAYBE(s, on_protocol, p, endp - p);
return err;
}


int llhttp__on_protocol_complete(llhttp_t* s, const char* p, const char* endp) {
int err;
CALLBACK_MAYBE(s, on_protocol_complete);
return err;
}


int llhttp__on_url(llhttp_t* s, const char* p, const char* endp) {
int err;
SPAN_CALLBACK_MAYBE(s, on_url, p, endp - p);
Expand Down
Loading
Loading