[nginx-announce] njs-0.8.7

Dmitry Volyntsev xeioex at nginx.com
Tue Oct 22 20:51:30 UTC 2024


Hello,

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

This release fixes excessive memory consumption introduced in 0.8.6.

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.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 0.8.6.

     *) Improvement: added strict syntax validation for js_body_filter.

     *) Improvement: improved error messages for module loading
        failures.

     Core:

     *) Feature: implemented fs.readlink() and friends.

     *) Improvement: implemented lazy stack symbolization.

     *) Bugfix: fixed heap-buffer-overflow in Buffer.prototype.indexOf().
        The issue was introduced in 0.8.6.

     *) Bugfix: fixed Buffer.prototype.lastIndexOf() when `from` is
        provided.



More information about the nginx-announce mailing list