./lang/njs, NGINX JavaScript command line utility

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.7.9, Package name: njs-0.7.9, Maintainer: osa

njs scripting language, or just 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.



Package options: pcre, ssl

Master sites:

Filesize: 602.651 KB

Version history: (Expand)


CVS history: (Expand)


   2022-11-17 17:04:27 by Sergey A. Osokin | Files touched by this commit (8) | Package updated
Log message:
*/*: update NGINX JavaScript 0.7.8 -> 0.7.9

Bump PKGREVISION for www/nginx and www/nginx-devel.

<ChangeLog>

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.

</ChangeLog>
   2022-10-25 18:35:46 by Sergey A. Osokin | Files touched by this commit (8) | Package updated
Log message:
*/*: update NGINX JavaScript 0.7.7 -> 0.7.8

Bump PKGREVISION for www/nginx and www/nginx-devel.

<ChangeLog>

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.

</ChangeLog>
   2022-08-30 20:00:49 by Sergey A. Osokin | Files touched by this commit (8) | Package updated
Log message:
*/*: update NGINX JavaScript 0.7.6 -> 0.7.7

Bump PKGREVISION for www/nginx and www/nginx-devel.

<ChangeLog>

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.

</ChangeLog>
   2022-07-19 20:09:45 by Sergey A. Osokin | Files touched by this commit (5) | Package updated
Log message:
*/*: update NGINX JavaScript: 0.7.5 -> 0.7.6

Bump PKGREVISION for www/nginx.

<ChangeLog>

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.

</ChangeLog>
   2022-07-14 14:46:21 by Thomas Klausner | Files touched by this commit (1)
Log message:
njs: use pkgsrc infrastructure for required options
   2022-07-14 12:59:52 by Sergey A. Osokin | Files touched by this commit (2)
Log message:
lang/njs: NJS requieres one of the PCRE versions

Bump PKGREVISION.
   2022-07-14 12:42:09 by Sergey A. Osokin | Files touched by this commit (2) | Package updated
Log message:
lang/njs: update 0.7.3 -> 0.7.5
   2022-04-12 16:06:28 by Sergey A. Osokin | Files touched by this commit (2) | Package updated
Log message:
lang/njs: update to the recent version 0.7.3