Get the most out of your Centmin Mod LEMP stack
Become a Member

Nginx [nginx-announce] njs-0.6.2

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, Sep 1, 2021.

  1. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    4:17 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x

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

    This release proceeds to extend the coverage of ECMAScript

    Notable new features:
    - Advanced Promise constructor methods
    : Promise.all( => ngx.fetch(u)))
    : .then(responses => r.return(200, JSON.stringify(responses)))

    Learn more about njs:

    - Overview and introduction:
    - NGINX JavaScript in Your Web Server Configuration:
    - Extending NGINX with Custom Code:
    - Using node modules with njs:
    - Writing njs code using TypeScript definition files:

    Feel free to try it and give us feedback on:

    - Github:
    - Mailing list:

    Changes with njs 0.6.2 31 Aug 2021

    nginx modules:

    *) Bugfix: fixed CPU hog when js_filter is registered
    in both directions.


    *) Feature: introduced AggregateError implementation.

    *) Feature: added remaining Promise constructor methods.
    The following methods were added: Promise.all(),
    Promise.allSettled(), Promise.any(), Promise.race().

    *) Improvement: removed recursion from code generator.

    *) Bugfix: fixed rest parameter parsing without binding

    *) Bugfix: fixed resolve/reject callback for

    *) Bugfix: fixed %TypedArray%.prototype.join() with
    detached buffer.

    *) Bugfix: fixed memory leak in interactive shell.

    nginx-announce mailing list

    Continue reading...