[nginx-announce] njs-0.6.0

Maxim Konovalov maxim at nginx.com
Tue Jun 15 17:21:48 UTC 2021


Brilliant!

Big thanks to everyone who contributed code, time and energy into this release. 

-- Maxim Konovalov


> 15 июня 2021 г., в 20:14, Dmitry Volyntsev <xeioex at nginx.com> написал(а):
> 
> 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:
> - let and const declarations support
> : >> fuction test() { x = 1; let x; }
> : undefined
> : >> test()
> : ReferenceError: cannot access variable before initialization
> : >> function test2() {const x = 1; x = 2; }
> : undefined
> : >> test2()
> : TypeError: assignment to constant variable
> 
> You can learn more about njs:
> 
> - Overview and introduction: http://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:
> 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.6.0                                    15 Jun 2021
> 
>    Core:
> 
>    *) Feature: added let and const declaration support.
> 
>    *) Feature: added RegExp.prototype[Symbol.split].
> 
>    *) Feature: added sticky flag support for RegExp.
> 
>    *) Bugfix: fixed heap-buffer-overflow in
>       String.prototype.lastIndexOf().
> 
>    *) Bugfix: fixed RegExp.prototype.test() according to the
>       specification.
> 
>    *) Bugfix: fixed String.prototype.split() according to the
>       specification.
> 
>    *) Bugfix: fixed use-of-uninitialized-value while tracking
>       rejected promises.
> 
>    *) Bugfix: fixed njs.dump() for objects with circular
>       references.
> 
> _______________________________________________
> nginx-announce mailing list
> nginx-announce at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-announce


More information about the nginx mailing list