head 1.37; access; symbols pkgsrc-2026Q3:1.35.0.2 pkgsrc-2026Q3-base:1.35 pkgsrc-2026Q2:1.33.0.4 pkgsrc-2026Q2-base:1.33 pkgsrc-2026Q1:1.33.0.2 pkgsrc-2026Q1-base:1.33 pkgsrc-2025Q4:1.31.0.2 pkgsrc-2025Q4-base:1.31 pkgsrc-2025Q3:1.29.0.2 pkgsrc-2025Q3-base:1.29 pkgsrc-2025Q2:1.28.0.2 pkgsrc-2025Q2-base:1.28 pkgsrc-2025Q1:1.25.0.2 pkgsrc-2025Q1-base:1.25 pkgsrc-2024Q4:1.23.0.2 pkgsrc-2024Q4-base:1.23 pkgsrc-2024Q3:1.19.0.2 pkgsrc-2024Q3-base:1.19 pkgsrc-2024Q2:1.18.0.2 pkgsrc-2024Q2-base:1.18 pkgsrc-2024Q1:1.16.0.4 pkgsrc-2024Q1-base:1.16 pkgsrc-2023Q4:1.16.0.2 pkgsrc-2023Q4-base:1.16 pkgsrc-2023Q3:1.13.0.2 pkgsrc-2023Q3-base:1.13 pkgsrc-2023Q2:1.11.0.2 pkgsrc-2023Q2-base:1.11 pkgsrc-2023Q1:1.9.0.4 pkgsrc-2023Q1-base:1.9 pkgsrc-2022Q4:1.9.0.2 pkgsrc-2022Q4-base:1.9 pkgsrc-2022Q3:1.7.0.2 pkgsrc-2022Q3-base:1.7 pkgsrc-2022Q2:1.3.0.2 pkgsrc-2022Q2-base:1.3 pkgsrc-2022Q1:1.2.0.2 pkgsrc-2022Q1-base:1.2; locks; strict; comment @# @; 1.37 date 2026.09.29.06.06.16; author wiz; state Exp; branches; next 1.36; commitid qal4xgy1mkCzPtXG; 1.36 date 2026.09.27.11.37.19; author tnn; state Exp; branches; next 1.35; commitid QJQtnAYom0oZIfXG; 1.35 date 2026.09.02.19.03.12; author wiz; state Exp; branches; next 1.34; commitid vXszxoxOqka005UG; 1.34 date 2026.08.04.20.29.03; author wiz; state Exp; branches; next 1.33; commitid NqgRXEqcORbApmQG; 1.33 date 2026.01.07.08.47.38; author wiz; state Exp; branches; next 1.32; commitid 1wQ3ICD8eebefrpG; 1.32 date 2026.01.04.10.50.10; author wiz; state Exp; branches; next 1.31; commitid FHXNWCjdBmgg24pG; 1.31 date 2025.10.25.01.54.58; author osa; state Exp; branches; next 1.30; commitid t6syRq5oiqO1mTfG; 1.30 date 2025.10.23.20.38.04; author wiz; state Exp; branches; next 1.29; commitid 1V2hBZn9ypXaCJfG; 1.29 date 2025.07.10.20.54.15; author osa; state Exp; branches; next 1.28; commitid SFjRvdVrpGmd6f2G; 1.28 date 2025.06.03.22.59.20; author osa; state Exp; branches; next 1.27; commitid NxN9z3chw9SHYuXF; 1.27 date 2025.04.17.21.51.20; author wiz; state Exp; branches; next 1.26; commitid xcIXAVA292fk6sRF; 1.26 date 2025.04.17.15.14.32; author osa; state Exp; branches; next 1.25; commitid sJwNMVN3Dy4ITpRF; 1.25 date 2025.01.14.17.45.00; author osa; state Exp; branches; next 1.24; commitid ahzfPNgnvKJWJtFF; 1.24 date 2025.01.05.18.13.19; author osa; state Exp; branches; next 1.23; commitid BJrWHUcfwjjubkEF; 1.23 date 2024.11.14.22.20.29; author wiz; state Exp; branches; next 1.22; commitid JmuDYqwL4erbdFxF; 1.22 date 2024.11.01.12.53.13; author wiz; state Exp; branches; next 1.21; commitid QB4Wk02mZPuBuWvF; 1.21 date 2024.11.01.00.52.27; author wiz; state Exp; branches; next 1.20; commitid QT27BdVP362gvSvF; 1.20 date 2024.10.23.13.15.19; author osa; state Exp; branches; next 1.19; commitid Z94VNC1cnASPUMuF; 1.19 date 2024.06.27.16.03.24; author osa; state Exp; branches; next 1.18; commitid vzOszguRoXnzDDfF; 1.18 date 2024.05.29.16.33.14; author adam; state Exp; branches; next 1.17; commitid n8aFyEjEVZA0JUbF; 1.17 date 2024.05.07.13.43.55; author osa; state Exp; branches; next 1.16; commitid daRzfoJVKZstv49F; 1.16 date 2023.11.08.13.19.50; author wiz; state Exp; branches; next 1.15; commitid PsuHTklAIsF4bOLE; 1.15 date 2023.10.25.16.04.47; author osa; state Exp; branches; next 1.14; commitid VdWTsdVRtQ5oy1KE; 1.14 date 2023.10.24.22.09.37; author wiz; state Exp; branches; next 1.13; commitid MTsrqKm6aGrQAVJE; 1.13 date 2023.09.18.17.49.32; author osa; state Exp; branches; next 1.12; commitid DMAyYEjjruaZjhFE; 1.12 date 2023.07.20.15.02.51; author osa; state Exp; branches; next 1.11; commitid QwOEeoYe1k84kyxE; 1.11 date 2023.04.19.08.10.35; author adam; state Exp; branches; next 1.10; commitid B8gCWhWtMX9vZGlE; 1.10 date 2023.04.13.16.45.47; author osa; state Exp; branches; next 1.9; commitid sYQopl31XdlZ2YkE; 1.9 date 2022.11.17.16.04.26; author osa; state Exp; branches; next 1.8; commitid 4dmhy1losGSTx42E; 1.8 date 2022.10.25.16.35.46; author osa; state Exp; branches; next 1.7; commitid nEIMs0xF5O7vs7ZD; 1.7 date 2022.08.30.18.00.49; author osa; state Exp; branches; next 1.6; commitid wiHjrig0tun8JVRD; 1.6 date 2022.07.19.18.09.44; author osa; state Exp; branches; next 1.5; commitid MkQokETy6DzO7xMD; 1.5 date 2022.07.14.10.59.51; author osa; state Exp; branches; next 1.4; commitid O7u12QHTcXpnUQLD; 1.4 date 2022.07.14.10.42.09; author osa; state Exp; branches; next 1.3; commitid WMhfWo0LKWqpOQLD; 1.3 date 2022.04.12.14.06.28; author osa; state Exp; branches; next 1.2; commitid tLa12WB628tJVUzD; 1.2 date 2022.03.19.23.20.27; author osa; state Exp; branches; next 1.1; commitid eBTKfH8rILhELSwD; 1.1 date 2022.03.14.02.52.48; author osa; state Exp; branches; next ; commitid 0nUJj2YptXoh88wD; desc @@ 1.37 log @*: recursive bump for pcre2 10.49 @ text @# $NetBSD: Makefile,v 1.36 2026/09/27 11:37:19 tnn Exp $ DISTNAME= njs-0.9.1 PKGREVISION= 5 CATEGORIES= lang www MASTER_SITES= ${MASTER_SITE_GITHUB:=nginx/} GITHUB_TAG= ${PKGVERSION_NOREV} MAINTAINER= pkgsrc-users@@NetBSD.org HOMEPAGE= https://nginx.org/en/docs/njs COMMENT= NGINX JavaScript command line utility LICENSE= 2-clause-bsd USE_LANGUAGES= c HAS_CONFIGURE= yes # lang/quickjs needs to be update to a recent snapshot, so # disable it for now CONFIGURE_ARGS+= --cc-opt="-I${LOCALBASE}/include" CONFIGURE_ARGS+= --ld-opt="-L${LOCALBASE}/lib" #CONFIGURE_ARGS+= --with-quickjs CONFIGURE_ARGS+= --no-quickjs BUILDLINK_TRANSFORM+= rm:-Werror INSTALLATION_DIRS+= bin do-build: ${RUN} cd ${WRKSRC} && ${BUILD_MAKE_CMD} njs do-install: ${INSTALL_PROGRAM} ${WRKSRC}/build/njs ${DESTDIR}${PREFIX}/bin/njs # FIXME: replace by proper LDFLAGS handling _WRAP_EXTRA_ARGS.CC+= ${_RELRO_LDFLAGS} _WRAP_EXTRA_ARGS.CXX+= ${_RELRO_LDFLAGS} CWRAPPERS_PREPEND.cc+= ${_RELRO_LDFLAGS} CWRAPPERS_PREPEND.cxx+= ${_RELRO_LDFLAGS} .include "options.mk" .include "../../mk/bsd.pkg.mk" @ 1.36 log @*: revbump for pcre2 symbol versioning change @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.35 2026/09/02 19:03:12 wiz Exp $ d4 1 a4 1 PKGREVISION= 4 @ 1.35 log @*: recursive bump for pcre2 10.48 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.34 2026/08/04 20:29:03 wiz Exp $ d4 1 a4 1 PKGREVISION= 3 @ 1.34 log @*: add LDFLAGS overide that was previously in mk This is a workaround and should be fixed properly per-package - they should use the pkgsrc LDFLAGS, but this restores what happened before the mk/ cleanup. Fixes relro build for packages that do not honor LDFLAGS. Package list provided by mef@@, thanks! Workaround commit requested by bsiegert on tech-pkg. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.33 2026/01/07 08:47:38 wiz Exp $ d4 1 a4 1 PKGREVISION= 2 @ 1.33 log @*: recursive bump for icu 78.1 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.32 2026/01/04 10:50:10 wiz Exp $ d34 6 @ 1.32 log @njs: remove -Werror, fixes build on NetBSD-current @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.31 2025/10/25 01:54:58 osa Exp $ d4 1 a4 1 PKGREVISION= 1 @ 1.31 log @lang/njs: release maintainership @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.30 2025/10/23 20:38:04 wiz Exp $ d24 2 @ 1.30 log @*: recursive bump for pcre2 Running an old binary against the new pcre doesn't work: /usr/pkg/lib/libpcre2-8.so.0: version PCRE2_10.47 required by /usr/pkg/lib/libglib-2.0.so.0 not defined @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.29 2025/07/10 20:54:15 osa Exp $ d9 1 a9 1 MAINTAINER= osa@@NetBSD.org @ 1.29 log @*/*: update NGINX JavaScript 0.9.0 -> 0.9.1 Bump PKGREVISION for www/nginx, www/nginx-devel, www/unit. 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. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.28 2025/06/03 22:59:20 osa Exp $ d4 1 @ 1.28 log @*/*: update NGINX JavaScript 0.8.9 -> 0.9.0 Bump PKGREVISION for www/nginx, www/nginx-devel, www/unit. Core: *) Feature: refactored working with built-in strings, symbols and small integers. Performance improvements (arewefastyet/benchmarks/v8-v7 benchmark): Richards: +57% (631 → 989) Crypto: +7% (1445 → 1551) RayTrace: +37% (562 → 772) NavierStokes: +20% (2062 → 2465) Overall score: +29% (1014 → 1307) *) Bugfix: fixed regexp undefined value of captured group. *) Bugfix: fixed GCC 15 build with -Wunterminated-string-initialization. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.27 2025/04/17 21:51:20 wiz Exp $ d3 1 a3 1 DISTNAME= njs-0.9.0 @ 1.27 log @*: recursive bump for icu 77 and libxml2 2.14 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.26 2025/04/17 15:14:32 osa Exp $ d3 1 a3 2 DISTNAME= njs-0.8.10 PKGREVISION= 1 @ 1.26 log @*/*: update NGINX Javascript from 0.8.9 to 0.8.10 While I'm here, cleanup pcre1 dependency, since it's EoLed, so please use pcre2 instead. Bump PKGREVISIONs where it needed. nginx modules: *) Feature: reading r.requestText or r.requestBuffer from a temp file. Previously, an exception was thrown when accessing r.requestText or r.requestBuffer if a client request body size exceeded client_body_buffer_size. *) Improvement: improved reporting of unhandled promise rejections. *) Bugfix: fixed name corruption in variable and header processing. *) Bugfix: fixed SharedDict.incr() with empty init argument for QuickJS engine. *) Bugfix: accepting response headers with underscore characters in Fetch API. Core: *) Change: fixed serializeToString(). Previously, serializeToString() was exclusiveC14n() which returned string instead of Buffer. According to the published documentation it should be c14n(). *) Feature: added WebCrypto API for QuickJS engine. *) Feature: added TextEncoder/TextDecoder for QuickJS engine. *) Feature: added querystring module for QuickJS engine. *) Feature: added crypto module for QuickJS engine. *) Feature: added xml module for QuickJS engine. *) Feature: added support for QuickJS-NG library. *) Bugfix: fixed buffer.concat() with a single argument in quickjs. *) Bugfix: added missed syntax error for await in template literal. *) Bugfix: fixed non-NULL terminated strings formatting in exceptions for QuickJS engine. *) Bugfix: fixed compatibility with recent change in QuickJS and QuickJS-NG. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.25 2025/01/14 17:45:00 osa Exp $ d4 1 @ 1.25 log @*/*: update NGINX JavaScript 0.8.8 -> 0.8.9 Bump PKGREVISIONs for www/nginx, www/nginx-devel, www/unit. nginx modules: *) Bugfix: removed extra VM creation per server. Previously, when js_import was declared in http or stream blocks, an extra copy of the VM instance was created for each server block. This was not needed and consumed a lot of memory for configurations with many server blocks. This issue was introduced in 9b674412 (0.8.6) and was partially fixed for location blocks only in 685b64f0 (0.8.7). Core: *) Feature: added fs module for QuickJS engine. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.24 2025/01/05 18:13:19 osa Exp $ d3 1 a3 1 DISTNAME= njs-0.8.9 d18 2 a19 2 #CONFIGURE_ARGS+= --cc-opt="-I${LOCALBASE}/include/quickjs" #CONFIGURE_ARGS+= --ld-opt="-L${LOCALBASE}/lib" @ 1.24 log @*/*: update NGINX JavaScript 0.8.7 -> 0.8.8 Bump PKGREVISION for www/nginx, www/nginx-devel. nginx modules: *) Feature: implemented shared dictionary for QuickJS engine. *) Improvement: js_preload_object is refactored. *) Bugfix: fixed limit rated output. *) Bugfix: optimized use of SSL contexts for js_fetch_trusted_certificate directive. Core: *) Feature: implemented process object for QuickJS engine. *) Feature: implemented process.kill() method. *) Bugfix: fixed tests with libxml2 2.13 and later. *) Bugfix: fixed promise resolving when Promise is inherited. *) Bugfix: fixed absolute scope in cloned VMs. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.23 2024/11/14 22:20:29 wiz Exp $ d3 1 a3 1 DISTNAME= njs-0.8.8 @ 1.23 log @*: recursive bump for icu 76 shlib major version bump @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.22 2024/11/01 12:53:13 wiz Exp $ d3 1 a3 2 DISTNAME= njs-0.8.7 PKGREVISION= 3 d16 6 @ 1.22 log @*: revbump for icu downgrade @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.21 2024/11/01 00:52:27 wiz Exp $ d4 1 a4 1 PKGREVISION= 2 @ 1.21 log @*: recursive bump for icu 76.1 shlib bump @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.20 2024/10/23 13:15:19 osa Exp $ d4 1 a4 1 PKGREVISION= 1 @ 1.20 log @*/*: update NGINX JavaScript 0.8.5 -> 0.8.7 Bump PKGREVISIONs for www/nginx, www/nginx-devel, www/unit. Changes with njs 0.8.7 22 Oct 2024 nginx modules: *) Bugfix: eliminated unnecessary VM creation. Previously, njs consumed memory proportionally to the number of nginx locations. The issue was introduced in 9b674412 (0.8.6). *) Improvement: added strict syntax validation for js_body_filter. *) Improvement: improved error messages for module loading failures. Core: *) Feature: implemented fs.readlink() and friends. *) Improvement: implemented lazy stack symbolization. *) Bugfix: fixed heap-buffer-overflow in Buffer.prototype.indexOf(). The issue was introduced in 5d15a8d6 (0.8.6). *) Bugfix: fixed Buffer.prototype.lastIndexOf() when `from` is provided. Changes with njs 0.8.6 02 Oct 2024 nginx modules: *) Feature: introduced QuickJS engine. *) Feature: added optional nocache flag for js_set directive. Thanks to Thomas P. *) Feature: exposed capture group variables in HTTP module. Thanks to Thomas P. Core: *) Feature: added Buffer module for QuickJS engine. *) Bugfix: fixed handling of empty labelled statement in a function. *) Bugfix: fixed Function constructor handling when called without arguments. *) Bugfix: fixed Buffer.prototype.writeInt8() and friends. *) Bugfix: fixed Buffer.prototype.writeFloat() and friends. *) Bugfix: fixed Buffer.prototype.lastIndexOf(). *) Bugfix: fixed Buffer.prototype.write(). *) Bugfix: fixed maybe-uninitialized warnings in error creation. *) Bugfix: fixed 'ctx.codepoint' initialization in UTF-8 decoding. *) Bugfix: fixed 'length' initialization in Array.prototype.pop(). *) Bugfix: fixed handling of encode arg in fs.readdir() and fs.realpath(). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.19 2024/06/27 16:03:24 osa Exp $ d4 1 @ 1.19 log @*/*: update NGINX JavaScript 0.8.4 -> 0.8.5 Bump PKGREVISIONs for www/nginx, www/nginx-devel, www/unit. nginx modules: *) Change: r.variables.var, r.requestText, r.responseText, s.variables.var, and the "data" argument of the s.on() callback with "upload" or "download" event types will now convert bytes invalid in UTF-8 encoding into the replacement character. When working with binary data, use r.rawVariables.var, r.requestBuffer, r.responseBuffer, s.rawVariables.var, and the "upstream" or "downstream" event type for s.on() instead. *) Feature: added timeout argument for shared dictionary methods add(), set() and incr(). *) Bugfix: fixed checking for duplicate js_set variables. *) Bugfix: fixed request Host header when the port is non-standard. *) Bugfix: fixed handling of a zero-length request body in ngx.fetch() and r.subrequest(). *) Bugfix: fixed heap-buffer-overflow in Headers.get(). *) Bugfix: fixed r.subrequest() error handling. Core: *) Feature: added zlib module for QuickJS engine. *) Bugfix: fixed zlib.inflate(). *) Bugfix: fixed String.prototype.replaceAll() with zero-length argument. *) Bugfix: fixed retval handling after an exception in Array.prototype.toSpliced(), Array.prototype.toReversed(), Array.prototype.toSorted(). *) Bugfix: fixed RegExp.prototype[@@@@replace]() with replacements containing "$'", "$\`" and strings with Unicode characters. *) Bugfix: fixed a one-byte overread in decodeURI() and decodeURIComponent(). *) Bugfix: fixed tracking of argument scope. *) Bugfix: fixed integer overflow in Date.parse(). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2024/05/29 16:33:14 adam Exp $ d3 1 a3 1 DISTNAME= njs-0.8.5 @ 1.18 log @revbump after icu and protobuf updates @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2024/05/07 13:43:55 osa Exp $ d3 1 a3 2 DISTNAME= njs-0.8.4 PKGREVISION= 1 @ 1.17 log @*/*: update NGINX JavaScript 0.8.2 -> 0.8.4 Bump PKGREVISION for www/nginx, www/nginx-devel. Changes with njs 0.8.4 16 Apr 2024 nginx modules: *) Feature: allowing to set Server header for outgoing headers. *) Improvement: validating URI and args arguments in r.subrequest(). *) Improvement: checking for duplicate js_set variables. *) Bugfix: fixed clear() method of a shared dictionary without timeout introduced in 0.8.3. *) Bugfix: fixed r.send() with Buffer argument. Core: *) Feature: added QuickJS engine support in CLI. *) Bugfix: fixed atob() with non-padded base64 strings. Changes with njs 0.8.3 07 Feb 2024 nginx modules: *) Bugfix: fixed Headers.set(). *) Bugfix: fixed js_set with Buffer values. *) Bugfix: fixed clear() method of a shared dictionary when a timeout is not specified. *) Bugfix: fixed stub_status statistics when js_periodic is enabled. Core: *) Bugfix: fixed building with libxml2 2.12 and later. *) Bugfix: fixed Date constructor for overflows and with NaN values. *) Bugfix: fixed underflow in querystring.parse(). *) Bugfix: fixed potential buffer overread in String.prototype.match(). *) Bugfix: fixed parsing of for-in loops. *) Bugfix: fixed parsing of hexadecimal, octal, and binary literals with no digits. Changes with njs 0.8.2 24 Oct 2023 nginx modules: *) Feature: introduced console object. The following methods were introduced: error(), info(), log(), time(), timeEnd(), warn(). Changes with njs 0.8.4 16 Apr 2024 nginx modules: *) Feature: allowing to set Server header for outgoing headers. *) Improvement: validating URI and args arguments in r.subrequest(). *) Improvement: checking for duplicate js_set variables. *) Bugfix: fixed clear() method of a shared dictionary without timeout introduced in 0.8.3. *) Bugfix: fixed r.send() with Buffer argument. Core: *) Feature: added QuickJS engine support in CLI. *) Bugfix: fixed atob() with non-padded base64 strings. Changes with njs 0.8.3 07 Feb 2024 nginx modules: *) Bugfix: fixed Headers.set(). *) Bugfix: fixed js_set with Buffer values. *) Bugfix: fixed clear() method of a shared dictionary when a timeout is not specified. *) Bugfix: fixed stub_status statistics when js_periodic is enabled. Core: *) Bugfix: fixed building with libxml2 2.12 and later. *) Bugfix: fixed Date constructor for overflows and with NaN values. *) Bugfix: fixed underflow in querystring.parse(). *) Bugfix: fixed potential buffer overread in String.prototype.match(). *) Bugfix: fixed parsing of for-in loops. *) Bugfix: fixed parsing of hexadecimal, octal, and binary literals with no digits. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2023/11/08 13:19:50 wiz Exp $ d4 1 @ 1.16 log @*: recursive bump for icu 74.1 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2023/10/25 16:04:47 osa Exp $ d3 1 a3 2 DISTNAME= njs-0.8.2 PKGREVISION= 1 @ 1.15 log @*/*: update NGINX JavaScript 0.8.1 -> 0.8.2 Bump PKGREVISION for www/nginx, www/nginx-devel, and www/unit. nginx modules: *) Feature: introduced console object. The following methods were introduced: error(), info(), log(), time(), timeEnd(), warn(). *) Bugfix: fixed HEAD response handling with large Content-Length in fetch API. *) Bugfix: fixed items() method for a shared dictionary. *) Bugfix: fixed delete() method for a shared dictionary. Core: *) Feature: extended "fs" module. Added existsSync(). *) Bugfix: fixed "xml" module. Fixed broken XML exception handling in parse() method. *) Bugfix: fixed RegExp.prototype.exec() with global regexp and unicode input. *) Bugfix: fixed return statement parsing with invalid expression. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2023/10/24 22:09:37 wiz Exp $ d4 1 @ 1.14 log @*: bump for openssl 3 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2023/09/18 17:49:32 osa Exp $ d3 1 a3 2 DISTNAME= njs-0.8.1 PKGREVISION= 1 @ 1.13 log @*/*: update NGINX JavaScript 0.8.0 -> 0.8.1 Bump PKGREVISION for www/nginx, www/nginx-devel, and www/unit. nginx modules: *) Feature: introduced js_periodic directive. The directive specifies a JS handler to run at regular intervals. *) Feature: implemented items() method for a shared dictionary. The method returns all the non-expired key-value pairs. *) Bugfix: fixed size() and keys() methods of a shared dictionary. *) Bugfix: fixed erroneous exception in r.internalRedirect() introduced in 0.8.0. Core: *) Bugfix: fixed incorrect order of keys in Object.getOwnPropertyNames(). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2023/07/20 15:02:51 osa Exp $ d4 1 @ 1.12 log @*/*: update NGINX JavaScript 0.7.12 -> 0.8.0 Bump PKGREVISION for www/nginx, www/nginx-devel, and www/unit. nginx modules: *) Change: removed special treatment of forbidden headers in Fetch API introduced in 0.7.10. *) Change: removed deprecated since 0.5.0 r.requestBody and r.responseBody in HTTP module. *) Change: throwing an exception in r.internalRedirect() while filtering in HTTP module. *) Feature: introduced global nginx properties. ngx.build - an optional nginx build name, corresponds to --build=name argument of configure script, by default is "". ngx.conf_file_path - the file path to current nginx configuration file. ngx.error_log_path - the file path to current error log file. ngx.prefix - the directory that keeps server files. ngx.version - the nginx version as a string, for example: "1.25.0". ngx.version_number - the nginx version as a number, for example: 1025000. ngx.worker_id - corresponds to an nginx internal worker id. The value is between 0 and worker_processes - 1. *) Feature: introduced js_shared_dict_zone directive. The directive allows to declare a dictionary that is shared among the working processes. *) Improvement: added compile-time options to disable njs modules. For example to disable libxslt related code: NJS_LIBXSLT=NO ./configure .. --add-module=/path/to/njs/module *) Bugfix: fixed r.status setter when filtering in HTTP module. *) Bugfix: fixed setting of Location header in HTTP module. Core: *) Change: native methods are provided with retval argument. This change breaks compatibility with C extension for njs requiring to modify the code. *) Change: non-compliant deprecated String methods were removed. The following methods were removed: String.bytesFrom(), String.prototype.fromBytes(), String.prototype.fromUTF8(), String.prototype.toBytes(), String.prototype.toUTF8(), String.prototype.toString(encoding). *) Change: removed support for building with GNU readline. *) Feature: added Array.from(), Array.prototype.toSorted(), Array.prototype.toSpliced(), Array.prototype.toReversed(). *) Feature: added %TypedArray%.prototype.toSorted(), %TypedArray%.prototype.toSpliced(), %TypedArray%.prototype.toReversed(). *) Feature: added CryptoKey properties in WebCrypto. The following properties for CryptoKey were added: algorithm, extractable, type, usages. *) Bugfix: fixed retval of crypto.getRandomValues(). *) Bugfix: fixed evaluation of computed property names with function expressions. *) Bugfix: fixed implicit name for a function expression declared in arrays. *) Bugfix: fixed parsing of for-in loops. *) Bugfix: fixed Date.parse() with ISO-8601 format and UTC time offset. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2023/04/19 08:10:35 adam Exp $ d3 1 a3 1 DISTNAME= njs-0.8.0 @ 1.11 log @revbump after textproc/icu update @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2023/04/13 16:45:47 osa Exp $ d3 1 a3 2 DISTNAME= njs-0.7.12 PKGREVISION= 1 @ 1.10 log @*/*: update NGINX JavaScript 0.7.9 -> 0.7.12 Bump PKGREVISION for www/nginx and www/nginx-devel. Changes with njs 0.7.12 10 Apr 2023 nginx modules: *) Bugfix: fixed Headers() constructor in Fetch API. Core: *) Feature: added Hash.copy() method in "crypto" module. *) Feature: added "zlib" module. *) Improvement: added support for export {name as default} statement. *) Bugfix: fixed Number constructor according to the spec. Changes with njs 0.7.11 9 Mar 2023 nginx modules: *) Bugfix: added missed linking with libxml2 for the dynamic module. The bug was introduced in 0.7.10. Core: *) Feature: added XMLNode API to modify XML documents. *) Change: removed XML_PARSE_DTDVALID during parsing of XML document due to security implications. The issue was introduced in 0.7.10. When XML_PARSE_DTDVALID is enabled, libxml2 parses and executes external entities present inside an XML document. *) Bugfix: fixed the detection of await in arguments. *) Bugfix: fixed Error() instance dumping when "name" prop is not primitive. *) Bugfix: fixed array instance with a getter property dumping. *) Bugfix: fixed njs_object_property() with NJS_WHITEOUT properties. *) Bugfix: fixed func instance dumping with "name" as getter. *) Bugfix: fixed attaching of a stack to an error object. *) Bugfix: fixed String.prototype.replace() with replacement containing "$'", "$`". Changes with njs 0.7.10 7 Feb 2023 nginx modules: *) Feature: added Request, Response and Headers ctors in Fetch API. *) Bugfix: fixed nginx logger callback for calls in master process. Core: *) Feature: added signal support in CLI. *) Feature: added "xml" module for working with XML documents. *) Feature: extended support for symmetric and asymmetric keys in WebCrypto. Most notably JWK format for importKey() was added. *) Feature: extended support for symmetric and asymmetric keys in WebCrypto. Most notably JWK format for importKey() was added. generateKey() and exportKey() were also implemented. *) Feature: added String.prototype.replaceAll(). *) Bugfix: fixed for(expr1; conditional syntax error handling. *) Bugfix: fixed Object.values() and Object.entries() with external objects. *) Bugfix: fixed RegExp.prototype[@@@@replace](). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2022/11/17 16:04:26 osa Exp $ d4 1 @ 1.9 log @*/*: update NGINX JavaScript 0.7.8 -> 0.7.9 Bump PKGREVISION for www/nginx and www/nginx-devel. nginx modules: *) Bugfix: fixed Fetch Response prototype reinitialization. When at least one js_import directive was declared in both HTTP and Stream, ngx.fetch() returned inapproriate response in Stream. The bug was introduced in 0.7.7. Core: *) Bugfix: fixed String.prototype.replace(re) if re.exec() returns non-flat array. *) Bugfix: fixed Array.prototype.fill() when start object changes "this". *) Bugfix: fixed description for fs.mkdir() and fs.rmdir() methods. *) Bugfix: fixed %TypedArray%.prototype.set(s) when s element changes "this". *) Bugfix: fixed Array.prototype.splice(s, d) when d resizes "this" during evaluation. *) Bugfix: fixed for-in loop with left and right hand side expressions. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2022/10/25 16:35:46 osa Exp $ d3 1 a3 1 DISTNAME= njs-0.7.9 @ 1.8 log @*/*: update NGINX JavaScript 0.7.7 -> 0.7.8 Bump PKGREVISION for www/nginx and www/nginx-devel. nginx modules: *) Feature: added js_preload_object directive. *) Feature: added ngx.conf_prefix property. *) Feature: added s.sendUpstream() and s.sendDownstream() in stream module. *) Feature: added support for HEAD method in Fetch API. *) Improvement: improved async callback support for s.send() in stream module. Core: *) Feature: added "name" instance property for a function object. *) Feature: added njs.memoryStats object. *) Bugfix: fixed String.prototype.trimEnd() with unicode string. *) Bugfix: fixed Object.freeze() with fast arrays. *) Bugfix: fixed Object.defineProperty() with fast arrays. *) Bugfix: fixed async token as a property name of an object. *) Bugfix: fixed property set instruction when key modifies base binding. *) Bugfix: fixed complex assignments. *) Bugfix: fixed handling of unhandled promise rejection. *) Bugfix: fixed process.env when duplicate environ variables are present. *) Bugfix: fixed double declaration detection in modules. *) Bugfix: fixed bound function calls according to the spec. *) Bugfix: fixed break label for if statement. *) Bugfix: fixed labeled empty statements. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2022/08/30 18:00:49 osa Exp $ d3 1 a3 1 DISTNAME= njs-0.7.8 @ 1.7 log @*/*: update NGINX JavaScript 0.7.6 -> 0.7.7 Bump PKGREVISION for www/nginx and www/nginx-devel. nginx modules: *) Feature: the number of nginx configuration contexts where js directives can be specified is extended. HTTP: js_import, js_path, js_set and js_var are allowed in server and location contexts. js_content, js_body_filter and js_header_filter are allowed in 'if' context. Stream: js_import, js_path, js_set and js_var are allowed in server context. *) Feature: added r.internal property. *) Bugfix: fixed reading response body in fetch API. *) Bugfix: fixed "js_fetch_timeout" in stream module. *) Bugfix: fixed socket leak with 0 fetch timeout. Core: *) Feature: extended "fs" module. Added fs.openSync(), fs.promises.open(), fs.fstatSync(), fs.readSync(), fs.writeSync(). The following properties of FileHandle are implemented: fd, read(), stat(), write(), close(). *) Bugfix: fixed parseInt(), parseFloat(), Symbol.for() with no arguments. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2022/07/19 18:09:44 osa Exp $ d3 1 a3 1 DISTNAME= njs-0.7.7 @ 1.6 log @*/*: update NGINX JavaScript: 0.7.5 -> 0.7.6 Bump PKGREVISION for www/nginx. nginx modules: *) Feature: improved r.args object. Added support for multiple arguments with the same key. Added case sensitivity for keys. Keys and values are percent-decoded now. *) Bugfix: fixed r.headersOut setter for special headers. Core: *) Feature: added Symbol.for() and Symbol.keyfor(). *) Feature: added btoa() and atob() from WHATWG spec. *) Bugfix: fixed large non-decimal literals. *) Bugfix: fixed unicode argument trimming in parseInt(). *) Bugfix: fixed break instruction in a try-catch block. *) Bugfix: fixed async function declaration in CLI. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2022/07/14 10:59:51 osa Exp $ d3 1 a3 1 DISTNAME= njs-0.7.6 @ 1.5 log @lang/njs: NJS requieres one of the PCRE versions Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2022/07/14 10:42:09 osa Exp $ d3 1 a3 2 DISTNAME= njs-0.7.5 PKGREVISION= 1 @ 1.4 log @lang/njs: update 0.7.3 -> 0.7.5 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2022/04/12 14:06:28 osa Exp $ d4 1 @ 1.3 log @lang/njs: update to the recent version 0.7.3 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2022/03/19 23:20:27 osa Exp $ d3 1 a3 1 DISTNAME= njs-0.7.3 @ 1.2 log @lang/njs: fix fetching Reported by: wiz @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2022/03/14 02:52:48 osa Exp $ d3 1 a3 1 DISTNAME= njs-0.7.2 @ 1.1 log @lang/njs: add new port NGINX JavaScript (njs) command line utility NGINX JavaScript, also knows as njs, is a subset of the JavaScript language that allows extending nginx functionality. njs is created in compliance with ECMAScript 5.1 (strict mode) with some ECMAScript 6 and later extensions. It's easy to use njs command line utility to develop and debug additional functionality. Also, it's light-weight and very useful as a shebang in some cases as the nodejs substitutor. @ text @d1 1 a1 1 # $NetBSD$ d6 1 a6 1 GITHUB_TAG= v${PKGVERSION_NOREV} @