Hello,
I'm glad to announce a new release of NGINX JavaScript module (njs).
This release focuses on stabilization of recently released features
including async/await and HTTPS support in ngx.fetch().
The "js_include" directive deprecated since 0.4.0 was removed.
Also a series of user invisible refactoring was committed. The most
prominent one is PCRE2 support. PCRE2 is the default RegExp engine
now.
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
We are hiring:
If you are a C programmer, passionate about Open Source and you
love what we do, consider the following career opportunity:
https://ffive.wd5.myworkdayjobs.com/NGINX/job/Ireland-Homebase/Software-Eng…
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.7.1 28 Dec 2021
nginx modules:
*) Change: the "js_include" directive deprecated since 0.4.0 was
removed.
*) Change: PCRE/PCRE2-specific code was moved to the modules.
This ensures that njs uses the same RegExp library as nginx.
Core:
*) Feature: extended "fs" module. Added stat(), fstat()
and friends.
*) Change: default RegExp engine for CLI is switched
to PCRE2.
*) Bugfix: fixed decodeURI() and decodeURIComponent() with
invalid byte strings. The bug was introduced in 0.4.3.
*) Bugfix: fixed heap-use-after-free in await frame.
The bug was introduced in 0.7.0.
*) Bugfix: fixed WebCrypto sign() and verify() methods
with OpenSSL 3.0.
*) Bugfix: fixed exception throwing when RegExp match fails.
The bug was introduced in 0.1.15.
*) Bugfix: fixed catching of exception thrown in try block
of async function. The bug was introduced in 0.7.0.
*) Bugfix: fixed execution of async function in synchronous
context. The bug was introduced in 0.7.0.
*) Bugfix: fixed function redeclaration in CLI when interactive
mode is on. The bug was introduced in 0.6.2.
*) Bugfix: fixed typeof operator with DataView object.
*) Bugfix: eliminated information leak in Buffer.from().
Changes with nginx 1.21.5 28 Dec 2021
*) Change: now nginx is built with the PCRE2 library by default.
*) Change: now nginx always uses sendfile(SF_NODISKIO) on FreeBSD.
*) Feature: support for sendfile(SF_NOCACHE) on FreeBSD.
*) Feature: the $ssl_curve variable.
*) Bugfix: connections might hang when using HTTP/2 without SSL with the
"sendfile" and "aio" directives.
--
Maxim Dounin
http://nginx.org/
Hi,
I'm glad to announce a new release of NGINX Unit.
This is a minor bugfix release that aims to eliminate some annoying regressions
revealed after the release of Unit 1.26.0 two weeks ago.
Notably, the shared OPcache implementation in that release required introducing
some major architectural changes, but our functional tests didn't catch some
regressions caused by these changes. Still, thanks to our active community,
the issues were reported shortly after the release, and now we can provide an
updated version. We will also improve our functional testing to avoid such
regressions in the future.
The most painful and visible one was that sometimes Unit daemon couldn't
completely exit, leaving some zombie processes. However, the second attempt to
stop it always succeeded. Also, some DragonFly BSD kernel interfaces are
seemingly broken, preventing the Unit daemon from functioning, so we disabled
their use when compiling for DragonFly BSD.
Changes with Unit 1.26.1 02 Dec 2021
*) Bugfix: occasionally, the Unit daemon was unable to fully terminate;
the bug had appeared in 1.26.0.
*) Bugfix: a prototype process could crash on an application process
exit; the bug had appeared in 1.26.0.
*) Bugfix: the router process crashed on reconfiguration if "access_log"
was configured without listeners.
*) Bugfix: a segmentation fault occurred in the PHP module if chdir() or
fastcgi_finish_request() was called in the OPcache preloading script.
*) Bugfix: fatal errors on DragonFly BSD; the bug had appeared in
1.26.0.
To know more about the bunch of changes introduced in Unit 1.26 and the roadmap
for 1.27, please see the previous announcement:
- https://mailman.nginx.org/pipermail/unit/2021-November/000288.html
Thank you again for keeping your finger on the pulse, reporting issues and
submitting feature requests via our GitHub issue tracker:
- https://github.com/nginx/unit/issues
Stay tuned!
wbr, Valentin V. Bartenev