From d9d13d3a50ab8fdd56f14234b1fa8fe80f7afb19 Mon Sep 17 00:00:00 2001 From: Maciej Brencz Date: Fri, 11 Jul 2025 14:48:59 +0200 Subject: [PATCH 1/3] Bump njs to v0.9.1 Changes with njs 0.9.1 10 Jul 2025 nginx modules: *) Feature: added Fetch API for QuickJS engine. *) Feature: added state file for a shared dictionary. *) Bugfix: fixed handling of Content-Length header when a body is provided for Fetch API. *) Bugfix: fixed qjs engine after bellard/quickjs@458c34d2. *) Bugfix: fixed NULL pointer dereference when processing If-* headers. Core: *) Feature: added ECDH support for WebCrypto. *) Improvement: reduced memory consumption by the object hash. The new hash uses 42% less memory per element. *) Improvement: reduced memory consumption for concatenation of numbers and strings. *) Improvement: reduced memory consumption of String.prototype.concat() with scalar values. *) Bugfix: fixed segfault in njs_property_query(). The issue was introduced in b28e50b1 (0.9.0). *) Bugfix: fixed Function constructor template injection. *) Bugfix: fixed GCC compilation with O3 optimization level. *) Bugfix: fixed constant is too large for 'long' warning on MIPS -mabi=n32. *) Bugfix: fixed compilation with GCC 4.1. *) Bugfix: fixed %TypedArray%.from() with the buffer is detached by the mapper. *) Bugfix: fixed %TypedArray%.prototype.slice() with overlapping buffers. *) Bugfix: fixed handling of detached buffers for typed arrays. *) Bugfix: fixed frame saving for async functions with closures. *) Bugfix: fixed RegExp compilation of patterns with escaped '[' characters. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 46bb40c..b4f4d53 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,8 @@ ARG NGX_BROTLI_COMMIT=a71f9312c2deb28875acc7bacfdd5695a111aa53 # https://github.com/google/boringssl #ARG BORINGSSL_COMMIT=fae0964b3d44e94ca2a2d21f86e61dabe683d130 -# https://github.com/nginx/njs/releases/tag/0.9.0 -ARG NJS_COMMIT=fcb99b68f86a72c96e21b81b3b78251174dbd3bf +# https://github.com/nginx/njs/releases/tag/0.9.1 +ARG NJS_COMMIT=4fd3ff98e413ede57c88456cf84b116a8382061a # https://github.com/openresty/headers-more-nginx-module#installation # we want to have https://github.com/openresty/headers-more-nginx-module/commit/e536bc595d8b490dbc9cf5999ec48fca3f488632 From ebf0f64a446053d2c3671368f4f2bee149e49f16 Mon Sep 17 00:00:00 2001 From: Maciej Brencz Date: Fri, 11 Jul 2025 14:49:44 +0200 Subject: [PATCH 2/3] dockerimage.yml: assert "Using njs v0.9.1" --- .github/workflows/dockerimage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index 8bc9b8e..9f218fb 100644 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -110,7 +110,7 @@ jobs: - name: Test njs command line run: | - echo "console.log('Using njs v' + njs.version)" | docker run -i --rm macbre/nginx njs -q - | grep "Using njs v0.9.0" + echo "console.log('Using njs v' + njs.version)" | docker run -i --rm macbre/nginx njs -q - | grep "Using njs v0.9.1" - name: Show logs if: always() From ba7c3a1687e2d0538464610e9e13411d706077be Mon Sep 17 00:00:00 2001 From: Maciej Brencz Date: Fri, 11 Jul 2025 14:50:09 +0200 Subject: [PATCH 3/3] Update readme.md: njs 0.9.1 --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index c5a7bcf..7e7ba9e 100644 --- a/readme.md +++ b/readme.md @@ -89,7 +89,7 @@ configure arguments: $ docker run -it macbre/nginx-http3 njs -v -0.9.0 +0.9.1 ``` ## SSL Grade A+ handling