こんにちは、LinuCエバンジェリストこと、鯨井貴博@opensourcetechです。
nginx njsの最新バージョン 0.3.7がリリースされました。
Changelogs
更新内容は、以下の通り。
Changes with njs 0.3.7
Release Date: 19 November 2019
nginx modules:
Improvement: refactored iteration over external objects.
Core:
Feature: added Object.assign().
Feature: added Array.prototype.copyWithin().
Feature: added support for labels in console.time().
Change: removed console.help() from CLI.
Improvement: moved constructors and top-level objects to global object.
Improvement: arguments validation for configure script.
Improvement: refactored JSON methods.
Bugfix: fixed heap-buffer-overflow in njs_array_reverse_iterator() function. The following functions were affected: Array.prototype.lastIndexOf(), Array.prototype.reduceRight().
Bugfix: fixed Prototype slot of NativeErrors.
Bugfix: fixed NativeError.prototype.message properties.
Bugfix: added conversion of this value to object in Array.prototype functions.
Bugfix: fixed iterator for Array.prototype.find() and Array.prototype.findIndex() functions.
Bugfix: fixed Array.prototype.includes() and Array.prototype.join() with undefined argument.
Bugfix: fixed constructor property of Hash and Hmac objects.
Bugfix: fixed __proto__ property of getters and setters.
Bugfix: fixed Date object string formatting.
Bugfix: fixed handling of NaN and -0 arguments in Math.min() and Math.max().
Bugfix: fixed Math.round() according to the specification.
Bugfix: reimplemented bound functions according to the specification.
https://nginx.org/en/docs/njs/changes.html
Changelogs(日本語訳)
日本語訳は、以下となります。
Changes with njs 0.3.7
Release Date: 19 November 2019
nginx modules:
機能改善:外部オブジェクトの反復をリファクタリング。
Core:
機能追加:Object.assign()を追加。
機能追加:Array.prototype.copyWithin()を追加。
機能追加:console.time()のラベルのサポートを追加。
変更:console.help()をCLIから削除。
機能改善:コンストラクターとトップレベルオブジェクトをグローバルオブジェクトに移動。
機能改善:configureスクリプトの引数検証。
機能改善:JSONメソッドをリファクタリング。
バグ修正:njs_array_reverse_iterator()関数のheap-buffer-overflowを修正。次の関数が影響を受けました:Array.prototype.lastIndexOf()、Array.prototype.reduceRight()。
バグ修正:NativeErrorsのPrototypeスロットを修正。
バグ修正:NativeError.prototype.messageプロパティを修正。
バグ修正:Array.prototype関数のオブジェクトへのこの値の変換を追加。
バグ修正:Array.prototype.find()およびArray.prototype.findIndex()関数のイテレーターを修正。
バグ修正:未定義の引数を持つArray.prototype.includes()およびArray.prototype.join()を修正。
バグ修正:HashおよびHmacオブジェクトのコンストラクタプロパティを修正。
バグ修正:ゲッターとセッターの__proto__プロパティを修正。
バグ修正:日付オブジェクトの文字列フォーマットを修正。
バグ修正:Math.min()およびMath.max()のNaNおよび-0引数の処理を修正。
バグ修正:仕様に従ってMath.round()を修正。
バグ修正:仕様に従ってバインドされた関数を再実装。