こんにちは、LinuCエバンジェリストこと、鯨井貴博@opensourcetechです。
nginx njsの新バージョン 0.4.2がリリースされました。
Changelogs
変更内容は、以下の通り。
http://nginx.org/en/docs/njs/changes.html
Changes with njs 0.4.2
Release Date: 07 July 2020
Core:
Feature: added RegExp.prototype[Symbol.replace].
Feature: introduced line level backtrace.
Feature: added %TypedArray%.prototype.sort().
Feature: extended fs module. Added mkdir(), readdir(), rmdir(), and friends.
Improvement: parser refactoring.
Bugfix: fixed TypedScript API description for HTTP headers.
Bugfix: fixed TypedScript API description for NjsByteString type.
Bugfix: fixed String.prototype.repeat() according to the specification.
Bugfix: fixed String.prototype.replace() according to the specification.
Bugfix: fixed parsing of flags for regexp literals.
Bugfix: fixed index generation for global objects in generator.
Bugfix: fixed %TypedArray%.prototype.copyWithin() with nonzero byte offset.
Bugfix: fixed Array.prototype.splice() for sparse arrays.
Bugfix: fixed Array.prototype.reverse() for sparse arrays.
Bugfix: fixed Array.prototype.sort() for sparse arrays.
Changelogs(日本語訳)
日本語訳は、以下の通りです。
Changes with njs 0.4.2
Release Date: 07 July 2020
Core:
機能追加:RegExp.prototype[Symbol.replace]が追加された。
機能追加:ラインレベルのバックトレースが導入された。
機能追加:%TypedArray%.prototype.sort()が追加された。
機能追加:extended fs moduleが追加された。mkdir()、readdir()、rmdir()、およびfriendsが追加された。
改善:パーサーのリファクタリング。
バグ修正:HTTPヘッダーに関するTypedScript APIの説明が修正された。
バグ修正:NjsByteStringタイプのTypedScript APIの説明が修正された。
バグ修正:仕様に従ってString.prototype.repeat()が修正された。
バグ修正:仕様に従ってString.prototype.replace()が修正された。
バグ修正:regexpリテラルのフラグの解析が修正された。
バグ修正:ジェネレータでのグローバルオブジェクトのインデックス生成が修正された。
バグ修正:0以外のバイトオフセットを持つ%TypedArray%.prototype.copyWithin()が修正された。
バグ修正:スパース配列のArray.prototype.splice()が修正された。
バグ修正:スパース配列のArray.prototype.reverse()が修正された。
バグ修正:スパース配列のArray.prototype.sort()が修正された。