njs-0.8.6

2024-10-02 Thread Dmitry Volyntsev

Hello,

I'm glad to announce a new release of NGINX JavaScript module (njs).

This release introduced the QuickJS engine support in nginx modules.
Read more here: https://nginx.org/en/docs/njs/engine.html

Notable new features:
- QuickJS in nginx:
: nginx.conf:
: location /engine {
: js_engine qjs;
: js_content main.entry;
: }
:
: main.js:
: function entry(r) {
: let  m = new Map();
: m.set(1, "QJS");
: r.return(200, "Hello from " + m.get(1));
: }

Learn more about njs:

- Overview and introduction:
  https://nginx.org/en/docs/njs/
- NGINX JavaScript in Your Web Server Configuration:
  https://youtu.be/Jc_L6UffFOs
- Extending NGINX with Custom Code:
  https://youtu.be/0CVhq4AUU7M
- Using node modules with njs:
  https://nginx.org/en/docs/njs/node_modules.html
- Writing njs code using TypeScript definition files:
  https://nginx.org/en/docs/njs/typescript.html

Feel free to try it and give us feedback on:

- Github:
  https://github.com/nginx/njs/issues

Additional examples and howtos can be found here:

- Github:
  https://github.com/nginx/njs-examples

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().
___
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx


nginx-1.27.2

2024-10-02 Thread Sergey Kandaurov
Changes with nginx 1.27.202 Oct 2024

*) Feature: SSL certificates, secret keys, and CRLs are now cached on
   start or during reconfiguration.

*) Feature: client certificate validation with OCSP in the stream
   module.

*) Feature: OCSP stapling support in the stream module.

*) Feature: the "proxy_pass_trailers" directive in the
   ngx_http_proxy_module.

*) Feature: the "ssl_client_certificate" directive now supports
   certificates with auxiliary information.

*) Change: now the "ssl_client_certificate" directive is not required
   for client SSL certificates verification.


-- 
Sergey Kandaurov
___
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx