Opensourcetechブログ

OpensourcetechによるNGINX/Kubernetes/Zabbix/Neo4j/Linuxなどオープンソース技術に関するブログです。

nginx njs-0.2.4 リリース !!

 

こんにちは、LinuCエバンジェリストこと、鯨井貴博@opensourcetechです。

 

nginx を Javascriptで拡張できる njs の新バージョン 0.2.4 がリリースされました。

f:id:opensourcetech:20180919011825p:plain

nginx news

 

更新内容は、以下の通り。

njs Changes

 

Changelogs

Release Date: 18 September 2018

nginx modules:

Change: stream module handlers refactored.
New methods and properties: s.on(), s.off(), s.allow(), s.done(), s.decline(), s.deny().
Removed properties of the Stream object: s.OK, s.ABORT, s.AGAIN, s.DECLINED, s.ERROR (replaced with s.allow(), s.done(), s.deny()).
s.buffer (for reading replaced with data argument of the corresponding callback, for writing use s.send()).
s.fromUpstream (replaced with a callback for a corresponding event).
s.eof (replaced with flags.last).

 

Core modules:
Feature: added Function.prototype.length.
Feature: introduced sandboxing mode.
Improvement: added exception strings where appropriate.
Improvement: improved wording for primitive type conversion exception.
Bugfix: throwing TypeError for attempts to change frozen properties.
Bugfix: fixed Object.defineProperty() for existing properties.
Bugfix: respecting the enumerable attribute while iterating by for in.
Bugfix: respecting writable attribute for property handlers.
Bugfix: fixed exception handling in arguments of a function.
Bugfix: fixed Object.prototype.toString for different value types.
Bugfix: fixed Object() constructor for object types arguments.
Bugfix: fixed comparison of objects and strings.
Bugfix: fixed String.slice() for undefined arguments.
Bugfix: miscellaneous additional bugs have been fixed.

 

Changelogs(日本語訳)

リリース日:2018年9月18日

nginxモジュール:

変更:streamモジュールハンドラーをリファクタリング
新しいメソッドとプロパティ:s.on()、s.off()、s.allow()、s.done()、s.decline()、s.deny()
Streamオブジェクトのプロパティが削除:s.OK、s.ABORT、s.AGAIN、s.DECLINED、s.ERROR(s.allow()、s.done()、s.deny()に置き換え)
s.buffer(読み込み用に、対応するコールバックのデータ引数で置き換えて、書き込むためにs.send()を使用)
s.fromUpstream(対応するイベントのコールバックに置き換え)
s.eof(flags.lastに置き換え)

コアモジュール:
機能追加:Function.prototype.lengthが追加
機能追加:サンドボックスモードの導入
改善:必要に応じた例外文字列を追加
改善:プリミティブ型変換例外に対する改良された表現
バグ修正:フリーズしたプロパティを変更しようとすると、TypeErrorが投げられた
バグ修正:既存のプロパティのObject.defineProperty()を修正
バグ修正:inのために反復処理中にenumerable属性を尊重
バグ修正:プロパティハンドラのwritable属性を尊重
バグ修正:関数の引数での例外処理を修正
バグ修正:異なる値の型に対してObject.prototype.toStringを修正
バグ修正:オブジェクト型引数のObject()コンストラクタが修正
バグ修正:オブジェクトと文字列の固定比較
バグ修正:未定義の引数のためのString.slice()を修正
バグ修正:その他の追加バグが修正

 

 

 

 

www.slideshare.net

github.com

www.facebook.com

twitter.com

www.instagram.com

 

 

にほんブログ村 IT技術ブログ Linuxへ
Linux

にほんブログ村 IT技術ブログ オープンソースへ
オープンソース

 

 

Opensourcetech by Takahiro Kujirai