<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ports/devel/libnjs, branch 14.2-eol</title>
<subtitle>FreeBSD ports tree</subtitle>
<id>https://cgit-dev.freebsd.org/ports/atom?h=14.2-eol</id>
<link rel='self' href='https://cgit-dev.freebsd.org/ports/atom?h=14.2-eol'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/ports/'/>
<updated>2025-07-10T19:14:08Z</updated>
<entry>
<title>*/*: update NGINX JavaScript: 0.9.0 -&gt; 0.9.1 (+)</title>
<updated>2025-07-10T19:14:08Z</updated>
<author>
<name>Sergey A. Osokin</name>
<email>osa@FreeBSD.org</email>
</author>
<published>2025-07-10T19:13:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/ports/commit/?id=4741ef7810a4b005af6c8498d281b35e2780e8ca'/>
<id>urn:sha1:4741ef7810a4b005af6c8498d281b35e2780e8ca</id>
<content type='text'>
Bump PORTREVISION for www/unit.

&lt;ChangeLog&gt;

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.

&lt;/ChangeLog&gt;
</content>
</entry>
<entry>
<title>devel/libnjs: fix build with the modern version of clang</title>
<updated>2025-05-11T09:27:31Z</updated>
<author>
<name>Sergey A. Osokin</name>
<email>osa@FreeBSD.org</email>
</author>
<published>2025-05-11T09:27:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/ports/commit/?id=7eb0d303b0a0aa91ab952aaca60c6304688874b1'/>
<id>urn:sha1:7eb0d303b0a0aa91ab952aaca60c6304688874b1</id>
<content type='text'>
Bump PORTREVISION.

Reported by:	vanilla
</content>
</entry>
<entry>
<title>*/*: update NGINX JavaScript: 0.8.10 -&gt; 0.9.0 (+)</title>
<updated>2025-05-11T00:49:23Z</updated>
<author>
<name>Sergey A. Osokin</name>
<email>osa@FreeBSD.org</email>
</author>
<published>2025-05-11T00:49:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/ports/commit/?id=641386d44e516f2a4bb9f90e48a257fb8500c129'/>
<id>urn:sha1:641386d44e516f2a4bb9f90e48a257fb8500c129</id>
<content type='text'>
The patches applied to the www/unit are based on
https://github.com/nginx/unit/pull/1611/

Thanks to:	Andrew Clayton &lt;a.clayton@nginx.com&gt;

&lt;ChangeLog&gt;

 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.

&lt;/ChangeLog&gt;
</content>
</entry>
<entry>
<title>*/*: update NGINX JavaScript: 0.8.9 -&gt; 0.8.10 (+)</title>
<updated>2025-04-17T01:05:19Z</updated>
<author>
<name>Sergey A. Osokin</name>
<email>osa@FreeBSD.org</email>
</author>
<published>2025-04-17T01:04:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/ports/commit/?id=07186699fd99bfa1f28f7c39c3d342f4aa8cf0e6'/>
<id>urn:sha1:07186699fd99bfa1f28f7c39c3d342f4aa8cf0e6</id>
<content type='text'>
&lt;ChangeLog&gt;

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.

&lt;/ChangeLog&gt;
</content>
</entry>
<entry>
<title>*/*: chase lang/quickjs SONAME change</title>
<updated>2025-02-18T16:13:27Z</updated>
<author>
<name>Robert Clausecker</name>
<email>fuz@FreeBSD.org</email>
</author>
<published>2025-02-13T14:00:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/ports/commit/?id=cc097e05ab6e5ebdcb180747ea2dbf4a853dc173'/>
<id>urn:sha1:cc097e05ab6e5ebdcb180747ea2dbf4a853dc173</id>
<content type='text'>
PR:		275087
</content>
</entry>
<entry>
<title>*/*: update NGINX JavaScript: 0.8.8 -&gt; 0.8.9 (+)</title>
<updated>2025-01-14T15:14:42Z</updated>
<author>
<name>Sergey A. Osokin</name>
<email>osa@FreeBSD.org</email>
</author>
<published>2025-01-14T15:14:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/ports/commit/?id=1193803f644b5ea41bfb47ea0f91adcfc73c8609'/>
<id>urn:sha1:1193803f644b5ea41bfb47ea0f91adcfc73c8609</id>
<content type='text'>
&lt;ChangeLog&gt;

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.

&lt;/ChangeLog&gt;
</content>
</entry>
<entry>
<title>*/*njs: fix build on FreeBSD 15</title>
<updated>2024-12-21T20:00:20Z</updated>
<author>
<name>Sergey A. Osokin</name>
<email>osa@FreeBSD.org</email>
</author>
<published>2024-12-21T20:00:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/ports/commit/?id=e038a67fc3ca1630ff947d6e61d487f3fd7e8810'/>
<id>urn:sha1:e038a67fc3ca1630ff947d6e61d487f3fd7e8810</id>
<content type='text'>
/usr/local/include/quickjs/quickjs.h:996:34: error: cast from 'JSCFunctionMagic *' (aka 'struct JSValue (*)(struct JSContext *, struct JSValue, int, struct JSValue *, int)') to 'JSCFunction *' (aka 'struct JSValue (*)(struct JSContext *, struct JSValue, int, struct JSValue *)') converts to incompatible function type [-Werror,-Wcast-function-type-mismatch]
  996 |     return JS_NewCFunction2(ctx, (JSCFunction *)func, name, length, cproto, magic);
      |                                  ^~~~~~~~~~~~~~~~~~~
1 error generated.
</content>
</entry>
<entry>
<title>*/*njs: remove needless patch</title>
<updated>2024-12-20T01:06:29Z</updated>
<author>
<name>Sergey A. Osokin</name>
<email>osa@FreeBSD.org</email>
</author>
<published>2024-12-20T01:06:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/ports/commit/?id=395f14f433d38f518bea770462ea324e058428f9'/>
<id>urn:sha1:395f14f433d38f518bea770462ea324e058428f9</id>
<content type='text'>
Let's use a set of arguments for configure script instead.

Bump PORTREVISION.
</content>
</entry>
<entry>
<title>*/*: update NGINX JavaScript: 0.8.7 -&gt; 0.8.8 (+)</title>
<updated>2024-12-17T18:45:53Z</updated>
<author>
<name>Sergey A. Osokin</name>
<email>osa@FreeBSD.org</email>
</author>
<published>2024-12-17T18:45:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/ports/commit/?id=bda86431bbd3091a035fd2653fa21a0d00b285f4'/>
<id>urn:sha1:bda86431bbd3091a035fd2653fa21a0d00b285f4</id>
<content type='text'>
Bump PORTREVISION for the www/unit.

&lt;ChangeLog&gt;

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.

&lt;/ChangeLog&gt;
</content>
</entry>
<entry>
<title>*/*: update NGINX JavaScript: 0.8.5 -&gt; 0.8.7 (+)</title>
<updated>2024-10-23T14:22:45Z</updated>
<author>
<name>Sergey A. Osokin</name>
<email>osa@FreeBSD.org</email>
</author>
<published>2024-10-23T14:22:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/ports/commit/?id=71f2853031b0011270fb43669b551246588ab125'/>
<id>urn:sha1:71f2853031b0011270fb43669b551246588ab125</id>
<content type='text'>
&lt;ChangeLog&gt;

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().

&lt;/ChangeLog&gt;
</content>
</entry>
</feed>
