head 1.19; access; symbols pkgsrc-2026Q1:1.19.0.6 pkgsrc-2026Q1-base:1.19 pkgsrc-2025Q4:1.19.0.4 pkgsrc-2025Q4-base:1.19 pkgsrc-2025Q3:1.19.0.2 pkgsrc-2025Q3-base:1.19 pkgsrc-2025Q2:1.18.0.2 pkgsrc-2025Q2-base:1.18 pkgsrc-2025Q1:1.16.0.2 pkgsrc-2025Q1-base:1.16 pkgsrc-2024Q4:1.14.0.2 pkgsrc-2024Q4-base:1.14 pkgsrc-2024Q3:1.13.0.2 pkgsrc-2024Q3-base:1.13 pkgsrc-2024Q2:1.12.0.2 pkgsrc-2024Q2-base:1.12 pkgsrc-2024Q1:1.11.0.4 pkgsrc-2024Q1-base:1.11 pkgsrc-2023Q4:1.11.0.2 pkgsrc-2023Q4-base:1.11 pkgsrc-2023Q3:1.10.0.2 pkgsrc-2023Q3-base:1.10 pkgsrc-2023Q2:1.8.0.2 pkgsrc-2023Q2-base:1.8 pkgsrc-2023Q1:1.7.0.4 pkgsrc-2023Q1-base:1.7 pkgsrc-2022Q4:1.7.0.2 pkgsrc-2022Q4-base:1.7 pkgsrc-2022Q3:1.5.0.2 pkgsrc-2022Q3-base:1.5 pkgsrc-2022Q2:1.2.0.2 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.1.0.2 pkgsrc-2022Q1-base:1.1; locks; strict; comment @# @; 1.19 date 2025.07.10.20.54.15; author osa; state Exp; branches; next 1.18; commitid SFjRvdVrpGmd6f2G; 1.18 date 2025.06.03.22.59.20; author osa; state Exp; branches; next 1.17; commitid NxN9z3chw9SHYuXF; 1.17 date 2025.04.17.15.14.32; author osa; state Exp; branches; next 1.16; commitid sJwNMVN3Dy4ITpRF; 1.16 date 2025.01.14.17.45.00; author osa; state Exp; branches; next 1.15; commitid ahzfPNgnvKJWJtFF; 1.15 date 2025.01.05.18.13.19; author osa; state Exp; branches; next 1.14; commitid BJrWHUcfwjjubkEF; 1.14 date 2024.10.23.13.15.19; author osa; state Exp; branches; next 1.13; commitid Z94VNC1cnASPUMuF; 1.13 date 2024.06.27.16.03.24; author osa; state Exp; branches; next 1.12; commitid vzOszguRoXnzDDfF; 1.12 date 2024.05.07.13.43.55; author osa; state Exp; branches; next 1.11; commitid daRzfoJVKZstv49F; 1.11 date 2023.10.25.16.04.47; author osa; state Exp; branches; next 1.10; commitid VdWTsdVRtQ5oy1KE; 1.10 date 2023.09.18.17.49.32; author osa; state Exp; branches; next 1.9; commitid DMAyYEjjruaZjhFE; 1.9 date 2023.07.20.15.02.51; author osa; state Exp; branches; next 1.8; commitid QwOEeoYe1k84kyxE; 1.8 date 2023.04.13.16.45.47; author osa; state Exp; branches; next 1.7; commitid sYQopl31XdlZ2YkE; 1.7 date 2022.11.17.16.04.26; author osa; state Exp; branches; next 1.6; commitid 4dmhy1losGSTx42E; 1.6 date 2022.10.25.16.35.46; author osa; state Exp; branches; next 1.5; commitid nEIMs0xF5O7vs7ZD; 1.5 date 2022.08.30.18.00.49; author osa; state Exp; branches; next 1.4; commitid wiHjrig0tun8JVRD; 1.4 date 2022.07.19.18.09.44; author osa; state Exp; branches; next 1.3; commitid MkQokETy6DzO7xMD; 1.3 date 2022.07.14.10.42.09; author osa; state Exp; branches; next 1.2; commitid WMhfWo0LKWqpOQLD; 1.2 date 2022.04.12.14.06.28; author osa; state Exp; branches; next 1.1; commitid tLa12WB628tJVUzD; 1.1 date 2022.03.14.02.52.48; author osa; state Exp; branches; next ; commitid 0nUJj2YptXoh88wD; desc @@ 1.19 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 @$NetBSD: distinfo,v 1.18 2025/06/03 22:59:20 osa Exp $ BLAKE2s (njs-0.9.1.tar.gz) = 68c19d62fb5d39cbc4c8e93bc819c99a7e21a0fd528e80ffc6bc3d069679f335 SHA512 (njs-0.9.1.tar.gz) = 9e26936d88d56d7b90387ed45c291c955cd29aa9fcbb180a6eb267e9373ccb4904c343b6acf61bf4f3a21c8ad2d84fd0fcc328228683fbe349abd59f4ca92b63 Size (njs-0.9.1.tar.gz) = 966480 bytes @ 1.18 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: distinfo,v 1.17 2025/04/17 15:14:32 osa Exp $ d3 3 a5 3 BLAKE2s (njs-0.9.0.tar.gz) = 74009bc72c3bd8510291fcf00d365765caeba4b773bf88f1b0f9cf9c574b51aa SHA512 (njs-0.9.0.tar.gz) = a8c893593606ee5f16df65e0d7214b3487e39dbc85e0d2dd907dd086b8bf9f06b0b902000d31bdaa1836ae6aaae001d2624b4499daf887b775be5e79a32956aa Size (njs-0.9.0.tar.gz) = 942562 bytes @ 1.17 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: distinfo,v 1.16 2025/01/14 17:45:00 osa Exp $ d3 3 a5 3 BLAKE2s (njs-0.8.10.tar.gz) = ac3c80ae8a08a5900728382962fd376195215329ab8639129bedc9499deb299f SHA512 (njs-0.8.10.tar.gz) = 71bcd596383ff501514adcf9baa0fd4d5cd0d3b53b2cdeee7e64b094ba12f6ee0f8fe99849dd8ad71afb6212566253ebdca2b83713d026ddfed3fe7902a5e906 Size (njs-0.8.10.tar.gz) = 942446 bytes @ 1.16 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: distinfo,v 1.15 2025/01/05 18:13:19 osa Exp $ d3 3 a5 3 BLAKE2s (njs-0.8.9.tar.gz) = 38af55d4e7eb8cc337c489339e174795ca64c945af839a2c5e69e50dd5cd65c3 SHA512 (njs-0.8.9.tar.gz) = 5c7b1f441450fe3282021c4722de889f52d81b2f446c7fbe21961a66ac12b0a899076550244081d522887919cc00d22558b8fe990e8c519a25c9696e6eb35050 Size (njs-0.8.9.tar.gz) = 900847 bytes @ 1.15 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: distinfo,v 1.14 2024/10/23 13:15:19 osa Exp $ d3 3 a5 3 BLAKE2s (njs-0.8.8.tar.gz) = 0f74c1ad275756451a48b48dd56cf160d5c0234b6238e5a5340ac627e99c1f6c SHA512 (njs-0.8.8.tar.gz) = 2929bde53863ec5099badf17fc125894bd6fbff9b3b5e5088b51d8af40895d584d0f014aae98902c7db0d5e0e48fa090ebc361fdc9dc6a6da9c2714c1d48a3ac Size (njs-0.8.8.tar.gz) = 887735 bytes @ 1.14 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: distinfo,v 1.13 2024/06/27 16:03:24 osa Exp $ d3 3 a5 3 BLAKE2s (njs-0.8.7.tar.gz) = e6e425940fa2e01ff2447dc2e88769208547f2eead4aa3e61ff0c5ac66b57a93 SHA512 (njs-0.8.7.tar.gz) = 6a31d73c458bd5a21d1d1ba3eb4a8922cb3dd9ed900c91a76964203ee1418e4694b017e97272361710da9260412bfc1d4d45290d3488ae87983a0d4a6b0916e8 Size (njs-0.8.7.tar.gz) = 880217 bytes @ 1.13 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: distinfo,v 1.12 2024/05/07 13:43:55 osa Exp $ d3 3 a5 3 BLAKE2s (njs-0.8.5.tar.gz) = d7087ba9174f8acc5fc8ac21a7eca77549d170adc6b7ff711ed9e0610edaadbe SHA512 (njs-0.8.5.tar.gz) = 09fb37d609f5cb97b0af5eb097a017233af2eacb2d38071346b49f5e03b5e37280eebb360fc824acba0c600c44d234e2d11fa55f4bc913319491d7789a94171c Size (njs-0.8.5.tar.gz) = 844437 bytes @ 1.12 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: distinfo,v 1.11 2023/10/25 16:04:47 osa Exp $ d3 3 a5 3 BLAKE2s (njs-0.8.4.tar.gz) = 41f4ace141fd0440fc77baccb57c027cad3fa6dacbb379edf515161639ba2401 SHA512 (njs-0.8.4.tar.gz) = 450f6866141f6f370767149c8749e84c4373f401d6d2237ca85365a851ebe7bdbd8a3c25e85a55747673e8bef2238a979dd237d5fc5c641b2f3f2cf7f26dffc8 Size (njs-0.8.4.tar.gz) = 743910 bytes @ 1.11 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: distinfo,v 1.10 2023/09/18 17:49:32 osa Exp $ d3 3 a5 3 BLAKE2s (njs-0.8.2.tar.gz) = fb7b480dc04259075324d0b31ecb060974adcaed154e9d2ad63ab9f77273c3ca SHA512 (njs-0.8.2.tar.gz) = 2fdaa1953d0ea9f639fcba1077b47a98c58f9d287d4c41b2551b1540279c7e4549c254f86b38ddd81b7d69adaf13bd7dd86e8d75da1c432f0d096285aa3f2363 Size (njs-0.8.2.tar.gz) = 733916 bytes @ 1.10 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: distinfo,v 1.9 2023/07/20 15:02:51 osa Exp $ d3 3 a5 3 BLAKE2s (njs-0.8.1.tar.gz) = eef919da08106468a96ea9dfadd019407d5e29116cc7b86bdf1363b1fd40f57b SHA512 (njs-0.8.1.tar.gz) = dd4541fb71d480b861cd14dc85d800ce238e1c7b8558f9277aa97bff667eff5cc5bfcda356e183f6d22afb1384d6c075a5454b6cb690c8b27810eb1c41f4da2c Size (njs-0.8.1.tar.gz) = 729780 bytes @ 1.9 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: distinfo,v 1.8 2023/04/13 16:45:47 osa Exp $ d3 3 a5 3 BLAKE2s (njs-0.8.0.tar.gz) = a65bfea36473c5e43abfb51c6e4a92573af7a8e89c56ad9cd8534d14a83c1849 SHA512 (njs-0.8.0.tar.gz) = 5e5fd3b0aba9d1a0b47207081e59d577cbd3db41e141cfa529526a778bbcd4fec1cd4dacaa1dc63ee07868ccf35f4d4cc465abff831bb03d128b0b1f1b04bb28 Size (njs-0.8.0.tar.gz) = 715391 bytes @ 1.8 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: distinfo,v 1.7 2022/11/17 16:04:26 osa Exp $ d3 3 a5 3 BLAKE2s (njs-0.7.12.tar.gz) = a4c69c83bcc81ecd593f63f6d3e2d5d9cff8185ad56e8fd4846660c132976133 SHA512 (njs-0.7.12.tar.gz) = a65a6c6aa3fbd499536284f8d8610f61b87112156885e6c3b1f73872df22195af897766f266b4569098a70e1680aef66594da17d13519f16687b4e43dce49062 Size (njs-0.7.12.tar.gz) = 662554 bytes @ 1.7 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: distinfo,v 1.6 2022/10/25 16:35:46 osa Exp $ d3 3 a5 3 BLAKE2s (njs-0.7.9.tar.gz) = de8d5fc4e85629bae7649bac0b5cdc713cfb1b9be50ac7569d55e28fd37d8d0c SHA512 (njs-0.7.9.tar.gz) = d535dd17802edd444733b59488034feb07fa696599724e05b59df1c289a4584abf90ab2b719bb950aad9dad93654943418949ccf7710a5361d2d867ee2d986f2 Size (njs-0.7.9.tar.gz) = 617115 bytes @ 1.6 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: distinfo,v 1.5 2022/08/30 18:00:49 osa Exp $ d3 3 a5 3 BLAKE2s (njs-0.7.8.tar.gz) = 39c2725134b005660cf4f2c190e35c2a65f63f02bd1cec1608ba46d044134e3f SHA512 (njs-0.7.8.tar.gz) = 086ddb2e5189a8853598870b795bfa788e9e75da9d2502541a49314e8149d7c279acca0709c4c517db26611a416dc5fb989be807cf1697c7411aded1bd5b8237 Size (njs-0.7.8.tar.gz) = 613161 bytes @ 1.5 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: distinfo,v 1.4 2022/07/19 18:09:44 osa Exp $ d3 3 a5 3 BLAKE2s (njs-0.7.7.tar.gz) = 1eb5b013280b98add1e7a0f778d8a1b3da794d5c8be929b72d486d87987294b4 SHA512 (njs-0.7.7.tar.gz) = 3fd9e9b84e416e95dbdffced78eabd76a519cccec7c386d8acaccd0d891dea5ceeb702408d4450107c7e3909586753e4eeb5e38c06657cd8f273180beb8fae74 Size (njs-0.7.7.tar.gz) = 609779 bytes @ 1.4 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: distinfo,v 1.3 2022/07/14 10:42:09 osa Exp $ d3 3 a5 3 BLAKE2s (njs-0.7.6.tar.gz) = 081ef7fa1b5f3943537caa6fa5dbf3e51e6c7f382cd1ee3c5950351d43ff12ae SHA512 (njs-0.7.6.tar.gz) = c27d6e138eba0d0fa3c029a008c09a64a6916f953d9fb2bc31cd82e1ba6eb1ae58c339523aaf124100921f01dac61aa5baedc6dc45dd65e7c0c00381ff0b7b52 Size (njs-0.7.6.tar.gz) = 600165 bytes @ 1.3 log @lang/njs: update 0.7.3 -> 0.7.5 @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.2 2022/04/12 14:06:28 osa Exp $ d3 3 a5 3 BLAKE2s (njs-0.7.5.tar.gz) = 03706004202f68f9095eed4bb78e9700258d7a363454a38222dc9977197ec4c4 SHA512 (njs-0.7.5.tar.gz) = e33dbb285ff6216acddcd213fdbd73ffadd5730680bcec742b1598fa57b4d100da32c913b1c2648b3e87867fc29bf11075d70fa5655f85c62e42eb0a48d177f1 Size (njs-0.7.5.tar.gz) = 592998 bytes @ 1.2 log @lang/njs: update to the recent version 0.7.3 @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.1 2022/03/14 02:52:48 osa Exp $ d3 3 a5 3 BLAKE2s (njs-0.7.3.tar.gz) = bc5fc802c6eadffe1a125c5cfe25c702260c7c874aa7b91b222b23f7763a4a53 SHA512 (njs-0.7.3.tar.gz) = 73e78ebfe0060699e3d9fc4a777245a3630f14b5fe67eee205f03699f76850b4de6f6a4185e1054ddd59014c3fe2801962993a8f50f841ce8e6d138d0d841086 Size (njs-0.7.3.tar.gz) = 586271 bytes @ 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$ d3 3 a5 3 BLAKE2s (njs-0.7.2.tar.gz) = 6aa7f4d62a9012badde72236cd4d2d8c32a3ea7842b582a7211a4dc836835af1 SHA512 (njs-0.7.2.tar.gz) = 7ff9c8f4e8cf1a3aeb0f2ed9f37e2b3f4966812966d1aca17dae8b454dd7fa725ccdc631b7dc1f3434f588e589f4cd419b9e087f3c745cd6ca092a683c92d82f Size (njs-0.7.2.tar.gz) = 584483 bytes @