git: b6be12359247 - main - */*: update NGINX JavaScript to 0.9.5

From: Jochen Neumeister <joneum_at_FreeBSD.org>
Date: Sat, 31 Jan 2026 12:10:15 UTC
The branch main has been updated by joneum:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b6be123592472af1df051613bb0f6340fa1a61fc

commit b6be123592472af1df051613bb0f6340fa1a61fc
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2026-01-31 12:08:38 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2026-01-31 12:10:06 +0000

    */*: update NGINX JavaScript to 0.9.5
    
    Changes with njs 0.9.5
    
    Release Date: 13 January 2026
    
    nginx modules:
    
        Feature: added native module support for qjs engine for http and
    stream.
    
        Bugfix: fixed js_body_filter with multiple chunks for qjs engine.
    
        Bugfix: fixed buffer_type inheritance in if blocks for
    js_body_filter. Previously, when js_body_filter was used inside an if
    block, the data parameter received Buffer type instead of the expected
    String type.
    
        Bugfix: fixed js_body_filter when data is not in memory. Previously,
    when upstream data was delivered from nginx cache, js_body_filter was
    not able to process it correctly.
    
        Bugfix: improved r.subrequest() error handling. Fixed a problem of a
    lost write event when the njs handler making r.subrequest() is called
    from a lua handler as a subrequest.
    
    Core:
    
        Bugfix: fixed XMLAttr object. Pointer to xmlAttr could become
    invalid when the parent XMLNode was modified.
    
        Bugfix: fixed XMLNode update.
    
        Bugfix: fixed ArrayBuffer with detached buffers.
    
        Bugfix: added missing detached array checks.
    
        Bugfix: fixed fs.mkdir() and friends.
    
        Bugfix: fixed path restoration in fs.mkdir() and friends on error.
    
        Bugfix: fixed missed allocation check in promise code.
    
    Sponsored by:   Netzkommune GmbH
---
 devel/libnjs/Makefile           | 2 +-
 devel/libnjs/distinfo           | 6 +++---
 devel/libnjs/pkg-plist          | 4 +---
 lang/njs/Makefile               | 2 +-
 lang/njs/distinfo               | 6 +++---
 www/freenginx/Makefile          | 2 +-
 www/freenginx/Makefile.extmod   | 2 +-
 www/freenginx/distinfo          | 6 +++---
 www/nginx-devel/Makefile        | 2 +-
 www/nginx-devel/Makefile.extmod | 2 +-
 www/nginx-devel/distinfo        | 6 +++---
 www/nginx/Makefile              | 2 +-
 www/nginx/Makefile.extmod       | 2 +-
 www/nginx/distinfo              | 6 +++---
 14 files changed, 24 insertions(+), 26 deletions(-)

diff --git a/devel/libnjs/Makefile b/devel/libnjs/Makefile
index 73b54afb049f..797d19e7e916 100644
--- a/devel/libnjs/Makefile
+++ b/devel/libnjs/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	libnjs
-DISTVERSION=	0.9.4
+DISTVERSION=	0.9.5
 CATEGORIES=	devel www
 
 MAINTAINER=	joneum@FreeBSD.org
diff --git a/devel/libnjs/distinfo b/devel/libnjs/distinfo
index 49d8cb5c2994..81185dcf13e5 100644
--- a/devel/libnjs/distinfo
+++ b/devel/libnjs/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1762713196
-SHA256 (nginx-njs-0.9.4_GH0.tar.gz) = 7b3a9f14b0f09311d9031c2a252cb0e23c06baac2e586a7d12c75aa6cba4ca0e
-SIZE (nginx-njs-0.9.4_GH0.tar.gz) = 939082
+TIMESTAMP = 1769850566
+SHA256 (nginx-njs-0.9.5_GH0.tar.gz) = 351a857abfd48c1e5e9c5d01bea046f3cbd2aa1c8ba956703920a5d57e046d7a
+SIZE (nginx-njs-0.9.5_GH0.tar.gz) = 947532
diff --git a/devel/libnjs/pkg-plist b/devel/libnjs/pkg-plist
index 6ff572cce5ea..30c3896df172 100644
--- a/devel/libnjs/pkg-plist
+++ b/devel/libnjs/pkg-plist
@@ -12,11 +12,10 @@ include/njs_boolean.h
 include/njs_buffer.h
 include/njs_chb.h
 include/njs_clang.h
+include/njs_cutils.h
 include/njs_date.h
-include/njs_diyfp.h
 include/njs_djb_hash.h
 include/njs_dtoa.h
-include/njs_dtoa_fixed.h
 include/njs_encoding.h
 include/njs_error.h
 include/njs_event.h
@@ -47,7 +46,6 @@ include/njs_scope.h
 include/njs_sprintf.h
 include/njs_str.h
 include/njs_string.h
-include/njs_strtod.h
 include/njs_symbol.h
 include/njs_trace.h
 include/njs_typed_array.h
diff --git a/lang/njs/Makefile b/lang/njs/Makefile
index ccec702120d5..aacaecf09f83 100644
--- a/lang/njs/Makefile
+++ b/lang/njs/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	njs
-DISTVERSION=	0.9.4
+DISTVERSION=	0.9.5
 CATEGORIES=	lang www
 
 MAINTAINER=	joneum@FreeBSD.org
diff --git a/lang/njs/distinfo b/lang/njs/distinfo
index 0ae0dbb48e7e..b95b8b6130ae 100644
--- a/lang/njs/distinfo
+++ b/lang/njs/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1762713232
-SHA256 (nginx-njs-0.9.4_GH0.tar.gz) = 7b3a9f14b0f09311d9031c2a252cb0e23c06baac2e586a7d12c75aa6cba4ca0e
-SIZE (nginx-njs-0.9.4_GH0.tar.gz) = 939082
+TIMESTAMP = 1769850598
+SHA256 (nginx-njs-0.9.5_GH0.tar.gz) = 351a857abfd48c1e5e9c5d01bea046f3cbd2aa1c8ba956703920a5d57e046d7a
+SIZE (nginx-njs-0.9.5_GH0.tar.gz) = 947532
diff --git a/www/freenginx/Makefile b/www/freenginx/Makefile
index 0b6c4a4d884c..1ea84f894ce3 100644
--- a/www/freenginx/Makefile
+++ b/www/freenginx/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	freenginx
 PORTVERSION=	1.28.0
-PORTREVISION?=	8
+PORTREVISION?=	9
 CATEGORIES=	www
 MASTER_SITES=	https://freenginx.org/download/ \
 		LOCAL/joneum
diff --git a/www/freenginx/Makefile.extmod b/www/freenginx/Makefile.extmod
index 2213211bfc4b..d040b893ce43 100644
--- a/www/freenginx/Makefile.extmod
+++ b/www/freenginx/Makefile.extmod
@@ -239,7 +239,7 @@ NAXSI_VARS=		DSO_EXTMODS+=naxsi NAXSI_SUBDIR=/naxsi_src
 NAXSI_EXTRA_PATCHES=	${PATCHDIR}/extra-patch-naxsi-libinjection__sqli_c \
 			${PATCHDIR}/extra-patch-naxsi_config
 
-NJS_GH_TUPLE=		nginx:njs:0.9.4:njs
+NJS_GH_TUPLE=		nginx:njs:0.9.5:njs
 NJS_VARS=		DSO_EXTMODS+=njs NJS_SUBDIR=/nginx
 NJS_IMPLIES=		STREAM
 
diff --git a/www/freenginx/distinfo b/www/freenginx/distinfo
index 1f976b6051de..d0c76d9ab78d 100644
--- a/www/freenginx/distinfo
+++ b/www/freenginx/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1767729768
+TIMESTAMP = 1769850378
 SHA256 (freenginx-1.28.0.tar.gz) = 28651bf51ff95de027262d7af23000e5862fb3d1b2252ac83d97ce4c9a4a18a2
 SIZE (freenginx-1.28.0.tar.gz) = 1228344
 SHA256 (nginx_mogilefs_module-1.0.4.tar.gz) = 7ac230d30907f013dff8d435a118619ea6168aa3714dba62c6962d350c6295ae
@@ -105,8 +105,8 @@ SHA256 (wargio-naxsi-1.6_GH0.tar.gz) = e5920fdd09cae155b89eb21a94a21c029ebfdb056
 SIZE (wargio-naxsi-1.6_GH0.tar.gz) = 1116227
 SHA256 (libinjection-libinjection-4aa3894_GH0.tar.gz) = ededea133e89e238ef2e60d0d62ef7ef9e741449eed8c5d856007132505bcd5b
 SIZE (libinjection-libinjection-4aa3894_GH0.tar.gz) = 2218294
-SHA256 (nginx-njs-0.9.4_GH0.tar.gz) = 7b3a9f14b0f09311d9031c2a252cb0e23c06baac2e586a7d12c75aa6cba4ca0e
-SIZE (nginx-njs-0.9.4_GH0.tar.gz) = 939082
+SHA256 (nginx-njs-0.9.5_GH0.tar.gz) = 351a857abfd48c1e5e9c5d01bea046f3cbd2aa1c8ba956703920a5d57e046d7a
+SIZE (nginx-njs-0.9.5_GH0.tar.gz) = 947532
 SHA256 (osokin-nginx-otel-51273ec_GH0.tar.gz) = a2107ba0be94c8561ae50773163c7946a58e508be46920f588d05a347c867d9c
 SIZE (osokin-nginx-otel-51273ec_GH0.tar.gz) = 28076
 SHA256 (konstruxi-ngx_postgres-8aa7359_GH0.tar.gz) = c69ad4495de7c7883ebc23e1e6c4cc83a4ac6a7fddd4d5c12e49d33b65f7c50b
diff --git a/www/nginx-devel/Makefile b/www/nginx-devel/Makefile
index 74b27d3e09ab..ae280e855b9c 100644
--- a/www/nginx-devel/Makefile
+++ b/www/nginx-devel/Makefile
@@ -1,7 +1,7 @@
 PORTNAME?=	nginx
 PORTVERSION=	${NGINX_VERSION}
 .include "version.mk"
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www
 MASTER_SITES=	https://nginx.org/download/ \
 		LOCAL/osa
diff --git a/www/nginx-devel/Makefile.extmod b/www/nginx-devel/Makefile.extmod
index 96408278ce32..0825cf02ffee 100644
--- a/www/nginx-devel/Makefile.extmod
+++ b/www/nginx-devel/Makefile.extmod
@@ -240,7 +240,7 @@ NAXSI_VARS=		DSO_EXTMODS+=naxsi NAXSI_SUBDIR=/naxsi_src
 NAXSI_EXTRA_PATCHES=	${PATCHDIR}/extra-patch-naxsi-libinjection__sqli_c \
 			${PATCHDIR}/extra-patch-naxsi_config
 
-NJS_GH_TUPLE=		nginx:njs:0.9.4:njs
+NJS_GH_TUPLE=		nginx:njs:0.9.5:njs
 NJS_CONFIGURE_ON=	--with-cc-opt="-I ${LOCALBASE}/include/quickjs"
 NJS_LIB_DEPENDS=	libquickjs.so:lang/quickjs \
 			libxml2.so:textproc/libxml2 \
diff --git a/www/nginx-devel/distinfo b/www/nginx-devel/distinfo
index 424c886c2392..c4d2dec4c473 100644
--- a/www/nginx-devel/distinfo
+++ b/www/nginx-devel/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1767699196
+TIMESTAMP = 1769850136
 SHA256 (nginx-1.29.4.tar.gz) = 5a7d37eee505866fbab5810fa9f78247d6d5d9157a595c4e7a72043141ddab25
 SIZE (nginx-1.29.4.tar.gz) = 1309500
 SHA256 (nginx_mogilefs_module-1.0.4.tar.gz) = 7ac230d30907f013dff8d435a118619ea6168aa3714dba62c6962d350c6295ae
@@ -107,8 +107,8 @@ SHA256 (wargio-naxsi-1.7_GH0.tar.gz) = adee817da71913f64a9fb0fca142d9520bb0e5014
 SIZE (wargio-naxsi-1.7_GH0.tar.gz) = 1132392
 SHA256 (libinjection-libinjection-b9fcaaf_GH0.tar.gz) = 7812e1316b61a7a7d3a65a57a07c6d5235ac40fe35e6edda983f31a44661a38e
 SIZE (libinjection-libinjection-b9fcaaf_GH0.tar.gz) = 2218207
-SHA256 (nginx-njs-0.9.4_GH0.tar.gz) = 7b3a9f14b0f09311d9031c2a252cb0e23c06baac2e586a7d12c75aa6cba4ca0e
-SIZE (nginx-njs-0.9.4_GH0.tar.gz) = 939082
+SHA256 (nginx-njs-0.9.5_GH0.tar.gz) = 351a857abfd48c1e5e9c5d01bea046f3cbd2aa1c8ba956703920a5d57e046d7a
+SIZE (nginx-njs-0.9.5_GH0.tar.gz) = 947532
 SHA256 (osokin-nginx-otel-3a655df_GH0.tar.gz) = 71ee1561303c289d4562148f8719b60796c36abe16de1b3c10d10b8e6f03a952
 SIZE (osokin-nginx-otel-3a655df_GH0.tar.gz) = 27169
 SHA256 (konstruxi-ngx_postgres-8aa7359_GH0.tar.gz) = c69ad4495de7c7883ebc23e1e6c4cc83a4ac6a7fddd4d5c12e49d33b65f7c50b
diff --git a/www/nginx/Makefile b/www/nginx/Makefile
index 7a6484252ccf..a38c81a264bb 100644
--- a/www/nginx/Makefile
+++ b/www/nginx/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	nginx
 PORTVERSION=	${NGINX_VERSION}
 .include "version.mk"
-PORTREVISION=	10
+PORTREVISION=	11
 PORTEPOCH=	3
 CATEGORIES=	www
 MASTER_SITES=	https://nginx.org/download/ \
diff --git a/www/nginx/Makefile.extmod b/www/nginx/Makefile.extmod
index 1c68cfdd85d6..47209263ae24 100644
--- a/www/nginx/Makefile.extmod
+++ b/www/nginx/Makefile.extmod
@@ -234,7 +234,7 @@ NAXSI_VARS=		DSO_EXTMODS+=naxsi NAXSI_SUBDIR=/naxsi_src
 NAXSI_EXTRA_PATCHES=	${PATCHDIR}/extra-patch-naxsi-libinjection__sqli_c \
 			${PATCHDIR}/extra-patch-naxsi_config
 
-NJS_GH_TUPLE=		nginx:njs:0.9.4:njs
+NJS_GH_TUPLE=		nginx:njs:0.9.5:njs
 NJS_VARS=		DSO_EXTMODS+=njs NJS_SUBDIR=/nginx
 NJS_IMPLIES=		STREAM
 
diff --git a/www/nginx/distinfo b/www/nginx/distinfo
index ecf24cad3ea7..d9f37c53323b 100644
--- a/www/nginx/distinfo
+++ b/www/nginx/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1767729194
+TIMESTAMP = 1769849746
 SHA256 (nginx-1.28.0.tar.gz) = c6b5c6b086c0df9d3ca3ff5e084c1d0ef909e6038279c71c1c3e985f576ff76a
 SIZE (nginx-1.28.0.tar.gz) = 1280111
 SHA256 (nginx_mogilefs_module-1.0.4.tar.gz) = 7ac230d30907f013dff8d435a118619ea6168aa3714dba62c6962d350c6295ae
@@ -103,8 +103,8 @@ SHA256 (wargio-naxsi-1.6_GH0.tar.gz) = e5920fdd09cae155b89eb21a94a21c029ebfdb056
 SIZE (wargio-naxsi-1.6_GH0.tar.gz) = 1116227
 SHA256 (libinjection-libinjection-4aa3894_GH0.tar.gz) = ededea133e89e238ef2e60d0d62ef7ef9e741449eed8c5d856007132505bcd5b
 SIZE (libinjection-libinjection-4aa3894_GH0.tar.gz) = 2218294
-SHA256 (nginx-njs-0.9.4_GH0.tar.gz) = 7b3a9f14b0f09311d9031c2a252cb0e23c06baac2e586a7d12c75aa6cba4ca0e
-SIZE (nginx-njs-0.9.4_GH0.tar.gz) = 939082
+SHA256 (nginx-njs-0.9.5_GH0.tar.gz) = 351a857abfd48c1e5e9c5d01bea046f3cbd2aa1c8ba956703920a5d57e046d7a
+SIZE (nginx-njs-0.9.5_GH0.tar.gz) = 947532
 SHA256 (osokin-nginx-otel-51273ec_GH0.tar.gz) = a2107ba0be94c8561ae50773163c7946a58e508be46920f588d05a347c867d9c
 SIZE (osokin-nginx-otel-51273ec_GH0.tar.gz) = 28076
 SHA256 (konstruxi-ngx_postgres-8aa7359_GH0.tar.gz) = c69ad4495de7c7883ebc23e1e6c4cc83a4ac6a7fddd4d5c12e49d33b65f7c50b