Welcome to Centmin Mod Community
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

    53,246
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    8:27 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Hello,

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

    This release proceeds to extend the coverage of ECMAScript
    specifications.

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

    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


    Changes with njs 0.6.2 31 Aug 2021

    nginx modules:

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

    Core:

    *) 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
    identifier.

    *) Bugfix: fixed resolve/reject callback for
    Promise.prototype.finally().

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

    *) Bugfix: fixed memory leak in interactive shell.

    _______________________________________________
    nginx-announce mailing list
    nginx-announce@nginx.org
    http://mailman.nginx.org/mailman/listinfo/nginx-announce

    Continue reading...