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 mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to