notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
NOW FIXED. We had a known problem with lists of packages - they were out of date. The fix has been applied to production. See packages-import/issues/3 & packages-import/issues/4
Port details
libnjs NGINX JavaScript static library
0.8.9 devel on this many watch lists=2 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 0.8.8_1Version of this port present on the latest quarterly branch.
Maintainer: osa@FreeBSD.org search for ports maintained by this maintainer
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.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (76 items)
Collapse this list.
  1. /usr/local/share/licenses/libnjs-0.8.9/catalog.mk
  2. /usr/local/share/licenses/libnjs-0.8.9/LICENSE
  3. /usr/local/share/licenses/libnjs-0.8.9/BSD2CLAUSE
  4. include/njs.h
  5. include/njs_addr2line.h
  6. include/njs_arr.h
  7. include/njs_array.h
  8. include/njs_array_buffer.h
  9. include/njs_assert.h
  10. include/njs_async.h
  11. include/njs_auto_config.h
  12. include/njs_boolean.h
  13. include/njs_buffer.h
  14. include/njs_chb.h
  15. include/njs_clang.h
  16. include/njs_date.h
  17. include/njs_diyfp.h
  18. include/njs_djb_hash.h
  19. include/njs_dtoa.h
  20. include/njs_dtoa_fixed.h
  21. include/njs_encoding.h
  22. include/njs_error.h
  23. include/njs_event.h
  24. include/njs_flathsh.h
  25. include/njs_function.h
  26. include/njs_generator.h
  27. include/njs_iterator.h
  28. include/njs_json.h
  29. include/njs_lexer.h
  30. include/njs_lexer_tables.h
  31. include/njs_lvlhsh.h
  32. include/njs_main.h
  33. include/njs_malloc.h
  34. include/njs_math.h
  35. include/njs_module.h
  36. include/njs_mp.h
  37. include/njs_murmur_hash.h
  38. include/njs_number.h
  39. include/njs_object.h
  40. include/njs_object_hash.h
  41. include/njs_object_prop_declare.h
  42. include/njs_parser.h
  43. include/njs_promise.h
  44. include/njs_queue.h
  45. include/njs_random.h
  46. include/njs_rbtree.h
  47. include/njs_regex.h
  48. include/njs_regexp.h
  49. include/njs_regexp_pattern.h
  50. include/njs_scope.h
  51. include/njs_sprintf.h
  52. include/njs_str.h
  53. include/njs_string.h
  54. include/njs_strtod.h
  55. include/njs_symbol.h
  56. include/njs_trace.h
  57. include/njs_typed_array.h
  58. include/njs_types.h
  59. include/njs_unicode.h
  60. include/njs_unicode_lower_case.h
  61. include/njs_unicode_upper_case.h
  62. include/njs_unix.h
  63. include/njs_utf16.h
  64. include/njs_utf8.h
  65. include/njs_utils.h
  66. include/njs_value.h
  67. include/njs_value_conversion.h
  68. include/njs_variable.h
  69. include/njs_vm.h
  70. include/njs_vmcode.h
  71. include/qjs.h
  72. lib/libnjs.a
  73. libdata/pkgconfig/njs.pc
  74. @owner
  75. @group
  76. @mode
Collapse this list.
Dependency lines:
  • libnjs>0:devel/libnjs
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):
libnjs
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest0.8.90.8.9-0.8.90.8.9---
FreeBSD:13:quarterly0.8.8_10.8.8_10.7.12_10.8.8_10.8.8_10.8.2_10.8.2_10.8.2_1
FreeBSD:14:latest0.8.90.8.90.7.90.8.8_10.8.90.7.12_1-0.7.12_1
FreeBSD:14:quarterly0.8.8_10.8.8_1-0.8.8_10.8.8_10.8.2_10.8.2_10.8.2_1
FreeBSD:15:latest0.8.90.8.9n/a0.8.9n/a0.8.2_10.8.2_10.8.2_1
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Library dependencies:
  1. libpcre2-8.so : devel/pcre2
  2. 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:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/nginx/njs/tar.gz/0.8.9?dummy=/
Collapse this list.

Number of commits found: 22

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.8.9
14 Jan 2025 15:14:42
commit hash: 1193803f644b5ea41bfb47ea0f91adcfc73c8609commit hash: 1193803f644b5ea41bfb47ea0f91adcfc73c8609commit hash: 1193803f644b5ea41bfb47ea0f91adcfc73c8609commit hash: 1193803f644b5ea41bfb47ea0f91adcfc73c8609 files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
*/*: 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
commit hash: e038a67fc3ca1630ff947d6e61d487f3fd7e8810commit hash: e038a67fc3ca1630ff947d6e61d487f3fd7e8810commit hash: e038a67fc3ca1630ff947d6e61d487f3fd7e8810commit hash: e038a67fc3ca1630ff947d6e61d487f3fd7e8810 files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
*/*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
commit hash: 395f14f433d38f518bea770462ea324e058428f9commit hash: 395f14f433d38f518bea770462ea324e058428f9commit hash: 395f14f433d38f518bea770462ea324e058428f9commit hash: 395f14f433d38f518bea770462ea324e058428f9 files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
*/*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
commit hash: bda86431bbd3091a035fd2653fa21a0d00b285f4commit hash: bda86431bbd3091a035fd2653fa21a0d00b285f4commit hash: bda86431bbd3091a035fd2653fa21a0d00b285f4commit hash: bda86431bbd3091a035fd2653fa21a0d00b285f4 files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
*/*: 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 View all of this commit message)
0.8.7
23 Oct 2024 14:22:45
commit hash: 71f2853031b0011270fb43669b551246588ab125commit hash: 71f2853031b0011270fb43669b551246588ab125commit hash: 71f2853031b0011270fb43669b551246588ab125commit hash: 71f2853031b0011270fb43669b551246588ab125 files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
*/*: 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 View all of this commit message)
0.8.5_1
22 Sep 2024 03:44:52
commit hash: 567f9d7fb0f0e80d1a5f1bcee4dd80ab7d38fb88commit hash: 567f9d7fb0f0e80d1a5f1bcee4dd80ab7d38fb88commit hash: 567f9d7fb0f0e80d1a5f1bcee4dd80ab7d38fb88commit hash: 567f9d7fb0f0e80d1a5f1bcee4dd80ab7d38fb88 files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
devel/libnjs: fix prefix path in the pkgconfig file

Bump PORTREVISION.
0.8.5
26 Jun 2024 22:15:46
commit hash: d9836accc3f15bc168b128007680e930013b2ebbcommit hash: d9836accc3f15bc168b128007680e930013b2ebbcommit hash: d9836accc3f15bc168b128007680e930013b2ebbcommit hash: d9836accc3f15bc168b128007680e930013b2ebb files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
*/*: 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 View all of this commit message)
0.8.4
30 Apr 2024 22:27:10
commit hash: 86ecf207153e777a60781d799eceb985bd5a146fcommit hash: 86ecf207153e777a60781d799eceb985bd5a146fcommit hash: 86ecf207153e777a60781d799eceb985bd5a146fcommit hash: 86ecf207153e777a60781d799eceb985bd5a146f files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
*/*: 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
commit hash: 422dc9e9d5812cbff37f8f64a5b27df75a581057commit hash: 422dc9e9d5812cbff37f8f64a5b27df75a581057commit hash: 422dc9e9d5812cbff37f8f64a5b27df75a581057commit hash: 422dc9e9d5812cbff37f8f64a5b27df75a581057 files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
*/*: 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 View all of this commit message)
0.8.2_1
26 Oct 2023 15:56:18
commit hash: c2205ac0a162628b536c382c6b8dfd4ae86c4750commit hash: c2205ac0a162628b536c382c6b8dfd4ae86c4750commit hash: c2205ac0a162628b536c382c6b8dfd4ae86c4750commit hash: c2205ac0a162628b536c382c6b8dfd4ae86c4750 files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
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
commit hash: 33d962f83d36fc12ddd64bf310ac4004fa91c6b7commit hash: 33d962f83d36fc12ddd64bf310ac4004fa91c6b7commit hash: 33d962f83d36fc12ddd64bf310ac4004fa91c6b7commit hash: 33d962f83d36fc12ddd64bf310ac4004fa91c6b7 files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
*/*: 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 View all of this commit message)
0.8.1
16 Sep 2023 17:34:55
commit hash: 586a94981355618809e3cac8ba0e56bb4f21dba9commit hash: 586a94981355618809e3cac8ba0e56bb4f21dba9commit hash: 586a94981355618809e3cac8ba0e56bb4f21dba9commit hash: 586a94981355618809e3cac8ba0e56bb4f21dba9 files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
*/*: 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
commit hash: 4fd25f1452ad64c38ad4ce0bb3d82cfabb28bd25commit hash: 4fd25f1452ad64c38ad4ce0bb3d82cfabb28bd25commit hash: 4fd25f1452ad64c38ad4ce0bb3d82cfabb28bd25commit hash: 4fd25f1452ad64c38ad4ce0bb3d82cfabb28bd25 files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
devel/libnjs: fix %%LOCALBASE%% substitution

Bump PORTREVISION.
0.8.0_1
12 Jul 2023 02:31:31
commit hash: 1bfd8f025069b06f89e348ac797d34d9301ec45acommit hash: 1bfd8f025069b06f89e348ac797d34d9301ec45acommit hash: 1bfd8f025069b06f89e348ac797d34d9301ec45acommit hash: 1bfd8f025069b06f89e348ac797d34d9301ec45a files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
devel/libnjs: fix NGINX JavaScript library exposion (+)

Bump PORTREVISION.
0.8.0
12 Jul 2023 02:20:38
commit hash: 30ba18e2a5f12cfd52d8ea1f732f4602a0ba4659commit hash: 30ba18e2a5f12cfd52d8ea1f732f4602a0ba4659commit hash: 30ba18e2a5f12cfd52d8ea1f732f4602a0ba4659commit hash: 30ba18e2a5f12cfd52d8ea1f732f4602a0ba4659 files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
*/*: 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 View all of this commit message)
0.7.12_1
12 May 2023 14:26:39
commit hash: 3eafde277e28167a6727bd70e537dc8f4f4d1459commit hash: 3eafde277e28167a6727bd70e537dc8f4f4d1459commit hash: 3eafde277e28167a6727bd70e537dc8f4f4d1459commit hash: 3eafde277e28167a6727bd70e537dc8f4f4d1459 files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
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
commit hash: 58b083f0d756acccc30a30997585d85dc23f5114commit hash: 58b083f0d756acccc30a30997585d85dc23f5114commit hash: 58b083f0d756acccc30a30997585d85dc23f5114commit hash: 58b083f0d756acccc30a30997585d85dc23f5114 files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
*/*: 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
commit hash: ea54114ca5fac09640c1074c4c69472781b27995commit hash: ea54114ca5fac09640c1074c4c69472781b27995commit hash: ea54114ca5fac09640c1074c4c69472781b27995commit hash: ea54114ca5fac09640c1074c4c69472781b27995 files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
*/*: 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 View all of this commit message)
0.7.10
07 Feb 2023 23:49:06
commit hash: d1b04483c52a818a56054ddb3bbe8b706e3f3cd7commit hash: d1b04483c52a818a56054ddb3bbe8b706e3f3cd7commit hash: d1b04483c52a818a56054ddb3bbe8b706e3f3cd7commit hash: d1b04483c52a818a56054ddb3bbe8b706e3f3cd7 files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
*/*: 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 View all of this commit message)
0.7.9
18 Dec 2022 17:06:56
commit hash: ecf6c6babd9ca9c35ef0c9d77bbaec9644558eb1commit hash: ecf6c6babd9ca9c35ef0c9d77bbaec9644558eb1commit hash: ecf6c6babd9ca9c35ef0c9d77bbaec9644558eb1commit hash: ecf6c6babd9ca9c35ef0c9d77bbaec9644558eb1 files touched by this commit
Sergey A. Osokin (osa) search for other commits by this committer
devel/libnjs: fix build

Do not bump PORTREVISION, the port has no successful builds.
0.7.9
16 Dec 2022 08:14:51
commit hash: 73c9df8a5968f30c63d0c80bf9e986ce6d3d69c9commit hash: 73c9df8a5968f30c63d0c80bf9e986ce6d3d69c9commit hash: 73c9df8a5968f30c63d0c80bf9e986ce6d3d69c9commit hash: 73c9df8a5968f30c63d0c80bf9e986ce6d3d69c9 files touched by this commit
Piotr Kubaj (pkubaj) search for other commits by this committer
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
commit hash: 65e729092681ede8724a0d8768db4517d0d18ec5commit hash: 65e729092681ede8724a0d8768db4517d0d18ec5commit hash: 65e729092681ede8724a0d8768db4517d0d18ec5commit hash: 65e729092681ede8724a0d8768db4517d0d18ec5 files touched by this commit Sanity Test Failure Refresh
Sergey A. Osokin (osa) search for other commits by this committer
devel/libnjs: add NGINX JavaScript static library

Number of commits found: 22