njs 0.8.0 released, the JavaScript scripting language for nginx

njs 0.8.0 has been released. This release adds a shared dictionary for http and stream, and a global ngx property.

njs exists as an nginx plug-in. It is a subset of JavaScript/ECMAscript and implements most of the JavaScript language functions. It does not fully comply with the ECMAScript standard and discards the difficult parts of JavaScript. njs is not implemented by the V8 engine, but by a smaller virtual machine with lower energy consumption and more suitable for nginx application scenarios. It can be understood that nginx has implemented its own set of lexical analysis for it.

As a plug-in for nginx, njs is installed by recompiling nginx.

New version download link: http://nginx.org/en/docs/njs/install.html

major changes

nginx modules

NJS_LIBXSLT=NO ./configure .. --add-module=/path/to/njs/module

  • Bugfix: Fix the setter problem httpwhen filtering in the moduler.status

  • Bugfix: Fix httpthe setting problem of Location header in the module

See the Changelog for details .

Guess you like

Origin www.oschina.net/news/248321/njs-0-8-0-released