Welcome to Centmin Mod Community
Become a Member

Nginx [nginx-announce] njs-0.8.4

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

  1. eva2000

    eva2000 Administrator Staff Member

    51,981
    11,976
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,473
    Local Time:
    9:34 AM
    Nginx 1.25.x
    MariaDB 10.x
    Hello,

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

    This release introduced the initial QuickJS engine support in CLI
    as well as regular bugfixes.

    Notable new features:
    - QuickJS in njs CLI:
    : $ ./configure --cc-opt="-I/path/to/quickjs -L/path/to/quickjs" && make njs
    : $ ./build/njs -n QuickJS
    :
    : >> new Map()
    : [object Map]

    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

    Additional examples and howtos can be found here:

    - Github:
    https://github.com/nginx/njs-examples

    Changes with njs 0.8.4 16 Apr 2024

    nginx modules:

    *) Feature: allowing to set Server header for outgoing headers.

    *) Improvement: validating URI and args arguments in r.subrequest().

    *) Improvement: checking for duplicate js_set variables.


    *) Bugfix: fixed clear() method of a shared dictionary without
    timeout introduced in 0.8.3.

    *) Bugfix: fixed r.send() with Buffer argument.

    Core:

    *) Feature: added QuickJS engine support in CLI.

    *) Bugfix: fixed atob() with non-padded base64 strings.
    _______________________________________________
    nginx-announce mailing list
    nginx-announce@nginx.org
    https://mailman.nginx.org/mailman/listinfo/nginx-announce

    Continue reading...