diff options
-rw-r--r-- | docs/changes.xml | 6 | ||||
-rw-r--r-- | src/nodejs/unit-http/loader.mjs | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/docs/changes.xml b/docs/changes.xml index 2dd1b472..9aaec9e5 100644 --- a/docs/changes.xml +++ b/docs/changes.xml @@ -69,6 +69,12 @@ compatibility with PHP 8.2. <change type="feature"> <para> +compatibility with Node.js 19.0. +</para> +</change> + +<change type="feature"> +<para> support rack v3 in ruby applications. </para> </change> diff --git a/src/nodejs/unit-http/loader.mjs b/src/nodejs/unit-http/loader.mjs index 546548f5..83985b0f 100644 --- a/src/nodejs/unit-http/loader.mjs +++ b/src/nodejs/unit-http/loader.mjs @@ -4,13 +4,15 @@ export async function resolve(specifier, context, defaultResolver) { case "websocket": return { url: new URL("./websocket.js", import.meta.url).href, - format: "commonjs" + format: "commonjs", + shortCircuit: true, } case "http": return { url: new URL("./http.js", import.meta.url).href, - format: "commonjs" + format: "commonjs", + shortCircuit: true, } } |