Port details |
- libnjs NGINX JavaScript static library
- 0.8.9 devel =2 0.8.8_1Version of this port present on the latest quarterly branch.
- Maintainer: osa@FreeBSD.org
- Port Added: 2022-12-16 03:33:09
- Last Update: 2025-01-14 15:14:42
- Commit Hash: 1193803
- People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py39-PyOpenGL, p5-Sane
- Also Listed In: www
- License: BSD2CLAUSE
- WWW:
- https://nginx.org/en/docs/njs/
- Description:
- The library of the njs scripting language. 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. The compliance is still evolving.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- To install the port:
- cd /usr/ports/devel/libnjs/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/libnjs
- pkg install libnjs
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: libnjs
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1736811947
SHA256 (nginx-njs-0.8.9_GH0.tar.gz) = 918accac7ec252baac1146e49fdc0f5c101c66ef3b9ceba7ce1b59be704acebf
SIZE (nginx-njs-0.8.9_GH0.tar.gz) = 900847
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Library dependencies:
-
- libpcre2-8.so : devel/pcre2
- libquickjs.so : lang/quickjs
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- devel_libnjs
- USES:
- compiler:c11 cpe ssl
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
0.8.9 14 Jan 2025 15:14:42 |
Sergey A. Osokin (osa) |
*/*: update NGINX JavaScript: 0.8.8 -> 0.8.9 (+)
<ChangeLog>
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.
</ChangeLog> |
0.8.8_1 21 Dec 2024 20:00:20 |
Sergey A. Osokin (osa) |
*/*njs: fix build on FreeBSD 15
/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. |
0.8.8_1 20 Dec 2024 01:06:29 |
Sergey A. Osokin (osa) |
*/*njs: remove needless patch
Let's use a set of arguments for configure script instead.
Bump PORTREVISION. |
0.8.8 17 Dec 2024 18:45:53 |
Sergey A. Osokin (osa) |
*/*: update NGINX JavaScript: 0.8.7 -> 0.8.8 (+)
Bump PORTREVISION for the www/unit.
<ChangeLog>
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 (Only the first 15 lines of the commit message are shown above ) |
0.8.7 23 Oct 2024 14:22:45 |
Sergey A. Osokin (osa) |
*/*: update NGINX JavaScript: 0.8.5 -> 0.8.7 (+)
<ChangeLog>
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 (Only the first 15 lines of the commit message are shown above ) |
0.8.5_1 22 Sep 2024 03:44:52 |
Sergey A. Osokin (osa) |
devel/libnjs: fix prefix path in the pkgconfig file
Bump PORTREVISION. |
0.8.5 26 Jun 2024 22:15:46 |
Sergey A. Osokin (osa) |
*/*: update NGINX JavaScript: 0.8.4 -> 0.8.5 (+)
<ChangeLog>
*) 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().
(Only the first 15 lines of the commit message are shown above ) |
0.8.4 30 Apr 2024 22:27:10 |
Sergey A. Osokin (osa) |
*/*: update NGINX JavaScript: 0.8.3 -> 0.8.4 (+)
<ChangeLog>
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.
</ChangeLog> |
0.8.3 18 Mar 2024 14:46:50 |
Sergey A. Osokin (osa) |
*/*: update NGINX JavaScript: 0.8.2 -> 0.8.3 (+)
<ChangeLog>
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. (Only the first 15 lines of the commit message are shown above ) |
0.8.2_1 26 Oct 2023 15:56:18 |
Sergey A. Osokin (osa) |
devel/libnjs: change order for the include directories
The change helps to build package when its previous version is
installed.
Bump PORTREVISION. |
0.8.2 24 Oct 2023 12:44:18 |
Sergey A. Osokin (osa) |
*/*: update NGINX JavaScript: 0.8.1 -> 0.8.2 (+)
<ChangeLog>
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.
(Only the first 15 lines of the commit message are shown above ) |
0.8.1 16 Sep 2023 17:34:55 |
Sergey A. Osokin (osa) |
*/*: update NGINX JavaScript: 0.8.0 -> 0.8.1 (+)
<ChangeLog>
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().
</ChangeLog> |
0.8.0_2 13 Sep 2023 15:30:57 |
Sergey A. Osokin (osa) |
devel/libnjs: fix %%LOCALBASE%% substitution
Bump PORTREVISION. |
0.8.0_1 12 Jul 2023 02:31:31 |
Sergey A. Osokin (osa) |
devel/libnjs: fix NGINX JavaScript library exposion (+)
Bump PORTREVISION. |
0.8.0 12 Jul 2023 02:20:38 |
Sergey A. Osokin (osa) |
*/*: update NGINX JavaScript: 0.7.12 -> 0.8.0 (+)
<ChangeLog>
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.
(Only the first 15 lines of the commit message are shown above ) |
0.7.12_1 12 May 2023 14:26:39 |
Sergey A. Osokin (osa) |
devel/libnjs: update build target to libnjs and install njs.pc
Make portlint(1) happy by moving LIB_DEPENDS up.
Bump PORTREVISION. |
0.7.12 10 Apr 2023 21:10:30 |
Sergey A. Osokin (osa) |
*/*: update NGINX JavaScript 0.7.11 -> 0.7.12
<ChangeLog>
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.
</ChangeLog> |
0.7.11 09 Mar 2023 23:39:06 |
Sergey A. Osokin (osa) |
*/*: update NGINX JavaScript 0.7.10 -> 0.7.11
While I'm here drop pcre flavor support for lang/njs.
Bump PORTREVISION for www/nginx-devel.
<ChangeLog>
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. (Only the first 15 lines of the commit message are shown above ) |
0.7.10 07 Feb 2023 23:49:06 |
Sergey A. Osokin (osa) |
*/*: update NGINX JavaScript 0.7.9 -> 0.7.10
Bump PORTREVISION for www/nginx-devel.
<ChangeLog>
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.
(Only the first 15 lines of the commit message are shown above ) |
0.7.9 18 Dec 2022 17:06:56 |
Sergey A. Osokin (osa) |
devel/libnjs: fix build
Do not bump PORTREVISION, the port has no successful builds. |
0.7.9 16 Dec 2022 08:14:51 |
Piotr Kubaj (pkubaj) |
devel/libnjs: fix bulk build
[00:01:21] Warning: (devel/libnjs): Error: devel/libnjs has incorrect
CATEGORIES, first should be 'devel'. Please contact maintainer of the port to
fix this. |
16 Dec 2022 03:32:21
|
Sergey A. Osokin (osa) |
devel/libnjs: add NGINX JavaScript static library |