Learn about Centmin Mod LEMP Stack today
Become a Member

Nginx [nginx-announce] njs-0.8.5

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, Jun 26, 2024.

  1. eva2000

    eva2000 Administrator Staff Member

    54,918
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    7:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Hello,

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

    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.5 25 Jun 2024

    nginx modules:

    *) Change: r.variables.var, r.requestText, r.responseText,
    s.variables.var, and the "data" argument of the s.on() callback
    with "upload" or "download" event types will now convert bytes
    invalid in UTF-8 encoding into the replacement character. When
    working with binary data, use r.rawVariables.var, r.requestBuffer,
    r.responseBuffer, s.rawVariables.var, and the "upstream" or
    "downstream" event type for s.on() instead.

    *) Feature: added timeout argument for shared dictionary methods
    add(), set() and incr().

    *) Bugfix: fixed checking for duplicate js_set variables.

    *) Bugfix: fixed request Host header when the port is non-standard.

    *) Bugfix: fixed handling of a zero-length request body in ngx.fetch()
    and r.subrequest().

    *) Bugfix: fixed heap-buffer-overflow in Headers.get().

    *) Bugfix: fixed r.subrequest() error handling.

    Core:

    *) Feature: added zlib module for QuickJS engine.

    *) Bugfix: fixed zlib.inflate().

    *) Bugfix: fixed String.prototype.replaceAll() with zero-length
    argument.

    *) Bugfix: fixed retval handling after an exception in
    Array.prototype.toSpliced(), Array.prototype.toReversed(),
    Array.prototype.toSorted().

    *) Bugfix: fixed RegExp.prototype[@@replace]() with replacements
    containing "$'", "$\`" and strings with Unicode characters.

    *) Bugfix: fixed a one-byte overread in decodeURI() and
    decodeURIComponent().


    *) Bugfix: fixed tracking of argument scope.

    *) Bugfix: fixed integer overflow in Date.parse().
    _______________________________________________
    nginx-announce mailing list
    nginx-announce@nginx.org
    https://mailman.nginx.org/mailman/listinfo/nginx-announce

    Continue reading...