LinuCエヴァンジェリストの鯨井貴博@opensourcetechです。
nginx njs の最新バージョン、0.7.1がリリースされました。
http://nginx.org/
更新内容は、以下の通り。
http://nginx.org/en/docs/njs/changes.html
Changes with njs 0.7.1 Release Date: 28 December 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: 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 njs 0.7.1 Release Date: 28 December 2021 nginx modules: 変更:0.4.0以降に廃止されたjs_includeディレクティブが削除されました。 変更:PCRE/PCRE2固有のコードがモジュールに移動されました。これにより、njsはnginxと同じRegExpライブラリを使用するようになります。 Core: バグ修正:無効なバイト文字列を持つdecodeURI()とdecodeURIComponent()が修正されました。このバグは0.4.3に導入されました。 バグ修正:awaitフレームのheap-use-after-freeが修正されました。バグは0.7.0で導入されました。 バグ修正:OpenSSL 3.0でWebCrypto sign()およびverify()メソッドが修正されました。 バグ修正:RegExpの一致が失敗したときの例外スローが修正されました。このバグは0.1.15で導入されました。 バグ修正:非同期関数のtryブロックでスローされた例外の捕捉が修正されました。バグは0.7.0で導入されました。 バグ修正:同期コンテキストでの非同期関数の実行が修正されました。バグは0.7.0で導入されました。 バグ修正:対話モードがオンのときのCLIでの関数再宣言が修正されました。このバグは0.6.2で導入された。 バグ修正:DataViewオブジェクトのtypeof演算子が修正されました。 バグ修正:Buffer.from()での情報漏洩をなくしました。