[nginx-announce] njs-0.8.4

Dmitry Volyntsev xeioex at nginx.com
Tue Apr 16 21:22:22 UTC 2024


Hello,

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

This release introduced the initial QuickJS engine support in CLI
as well as regular bugfixes.

Notable new features:
- QuickJS in njs CLI:
: $ ./configure --cc-opt="-I/path/to/quickjs -L/path/to/quickjs" && make njs
: $ ./build/njs -n QuickJS
:
: >> new Map()
: [object Map]

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
- Mailing list:
       https://mailman.nginx.org/mailman/listinfo/nginx-devel

Additional examples and howtos can be found here:

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

Changes with njs 0.8.4                                       16 Apr 2024

     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.


More information about the nginx-announce mailing list