<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><pre style="font-variant-ligatures: normal; orphans: 2; widows: 2; overflow-wrap: break-word; white-space: pre-wrap;" class=""><pre style="font-variant-ligatures: normal; overflow-wrap: break-word; white-space: pre-wrap;" class="">Hello,
I'm glad to announce a new release of NGINX JavaScript module (njs).
This release proceeds to extend the coverage of ECMAScript specifications.
- Added support for ES6 rest parameters syntax.
Thanks to Alexander Pyshchev.
: > var add = function(prev, curr) { return prev + curr }
: undefined
: > function sum(...args) { return args.reduce(add) }
: undefined
: > sum(1,2,3)
: 6
: > sum(1,2,3,4)
: 10
- Added ES8 Object.values() and Object.entries() methods.
You can learn more about njs:
- Overview and introduction: <a href="http://nginx.org/en/docs/njs/" class="">http://nginx.org/en/docs/njs/</a>
- Presentation: <a href="https://youtu.be/Jc_L6UffFOs" class="">https://youtu.be/Jc_L6UffFOs</a>
Feel free to try it and give us feedback on:
- Github: <a href="https://github.com/nginx/njs/issues" class="">https://github.com/nginx/njs/issues</a>
- Mailing list: <a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" class="">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a>
Changes with njs 0.2.7 25 Dec 2018
Core:
*) Feature: rest parameters syntax (destructuring is not supported).
Thanks to Alexander Pyshchev.
*) Feature: added Object.entries() method.
*) Feature: added Object.values() method.
*) Improvement: code generator refactored and simplified.
*) Bugfix: fixed automatic semicolon insertion.
*) Bugfix: fixed assignment expression from compound assignment.
*) Bugfix: fixed comparison of Byte and UTF8 strings.
*) Bugfix: fixed type of iteration variable in for-in with array
values.
*) Bugfix: fixed building on paltforms without librt.
*) Bugfix: miscellaneous additional bugs have been fixed.</pre><div class=""><br class=""></div></pre></body></html>