Welcome to Centmin Mod Community
Register Now

Nginx [nginx-announce] njs-0.4.2

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, Jul 8, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:55 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Hello,

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

    This release proceeds to extend the coverage of ECMAScript
    specification.

    You can learn more about njs:

    - Overview and introduction: http://nginx.org/en/docs/njs/
    - Presentation: https://youtu.be/Jc_L6UffFOs
    - Using node modules with njs: http://nginx.org/en/docs/njs/node_modules.html
    - Writing njs code using TypeScript definition files:
    http://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: http://mailman.nginx.org/mailman/listinfo/nginx-devel


    Changes with njs 0.4.2 07 Jul 2020

    Core:

    *) Feature: added RegExp.prototype[Symbol.replace].

    *) Feature: introduced line level backtrace.

    *) Feature: added %TypedArray%.prototype.sort().

    *) Feature: extended "fs" module. Added mkdir(), readdir(), rmdir()
    and friends.
    Thanks to Artem S. Povalyukhin.

    *) Improvement: parser refactoring.

    *) Bugfix: fixed TypedScript API description for HTTP headers.

    *) Bugfix: fixed TypedScript API description for NjsByteString type.

    *) Bugfix: fixed String.prototype.repeat() according to the
    specification.

    *) Bugfix: fixed parsing of flags for regexp literals.

    *) Bugfix: fixed index generation for global objects in generator.

    *) Bugfix: fixed String.prototype.replace() according to the
    specification.

    *) Bugfix: fixed %TypedArray%.prototype.copyWithin() with nonzero
    byte offset.

    *) Bugfix: fixed Array.prototype.splice() for sparse arrays.

    *) Bugfix: fixed Array.prototype.reverse() for sparse arrays.

    *) Bugfix: fixed Array.prototype.sort() for sparse arrays.

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

    Continue reading...

     
  2. Andy

    Andy Active Member

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    10:55 PM
    Is this used in centminmod? I see these posts here but not sure how relevant to the casual users like me.
     
  3. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:55 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    njs is an optional nginx module supported by Centmin Mod 123.09beta01 or higher LEMP stacks and is Nginx's answer to Lua nginx module like feature capabilities. But njs is NOT enabled by default on Centmin Mod. See older thread on njs security update and how Centmin Mod integrates njs Nginx - Security - Nginx Security Update For NJS Nginx Module

    If you know javascript, you can get creative with how you can leverage njs Nginx module to enhance Nginx server capabilities.

    Official NJS documentation at njs scripting language



    I'm not savy with Javascript, so if any Centmin Mod users are, would be interesting to see what you could/are doing with njs Nginx module :)