# HG changeset patch # User Yaroslav Zhuravlev # Date 1553609977 -10800 # Node ID 21f3a93fbe97a0d9b42f5aa5e63df60d6dd2aac2 # Parent 1101e24c6d1451f7fc3c87c46b2281f01ec0dbb5 njs-0.3.0 diff --git a/xml/en/docs/njs/changes.xml b/xml/en/docs/njs/changes.xml --- a/xml/en/docs/njs/changes.xml +++ b/xml/en/docs/njs/changes.xml @@ -9,9 +9,126 @@
+
+ + +Release Date: +26 March 2019 + + + +nginx modules: + + + + +Feature: +added the js_path directive for +http and +stream. + + + + + +Change: +returning undefined value instead of empty strings +for absent properties in the following objects: +r.args{}, +r.headersIn{}, +r.headersOut{}, +r.variables{}, +s.variables{}. + + + + + +Change: +returning undefined value instead of throwing an exception for +r.requestBody +when request body is unavailable. + + + + + +Bugfix: +fixed crash while iterating over +r.args{} +when a value is absent in a key-value pair. + + + + + + + +Core: + + + + +Feature: +added initial ES6 modules support. +Default import and default export statements are supported. +Thanks to 洪志道 (Hong Zhi Dao). + + + + + +Feature: +added Object.prototype.propertyIsEnumerable(). + + + + + +Feature: +reporting file name and function name in disassembler output. + + + + + +Bugfix: +fixed function redeclarations in interactive shell. +Thanks to 洪志道 (Hong Zhi Dao). + + + + + +Bugfix: +fixed RegExp literals parsing. + + + + + +Bugfix: +fixed setting length of UTF8 string in +fs.readFileSync(). + + + + + +Bugfix: +fixed nxt_file_dirname() for paths with no dir component. + + + + + + +
+ +
diff --git a/xml/en/docs/njs/compatibility.xml b/xml/en/docs/njs/compatibility.xml --- a/xml/en/docs/njs/compatibility.xml +++ b/xml/en/docs/njs/compatibility.xml @@ -124,7 +124,9 @@ ES5.1: freeze, isFrozen, seal, -isSealed +isSealed, +isEnumerable +(0.3.0) @@ -231,6 +233,13 @@ functions (0.2.0) crypto.createHmac + +ES6 modules support: +default import and +default export statements +(0.3.0) + + diff --git a/xml/en/docs/njs/reference.xml b/xml/en/docs/njs/reference.xml --- a/xml/en/docs/njs/reference.xml +++ b/xml/en/docs/njs/reference.xml @@ -9,7 +9,7 @@
+ rev="26">
@@ -33,7 +33,7 @@ All string properties of the object are -r.args{} +r.args{} request arguments object, read-only @@ -49,7 +49,7 @@ on the error level of finishes sending a response to the client -r.headersIn{} +r.headersIn{} incoming headers object, read-only. @@ -113,7 +113,7 @@ and a sufficient buffer size should be s . -r.responseBody +r.responseBody holds the subrequest response body, read-only. The size of r.responseBody is limited by the diff --git a/xml/index.xml b/xml/index.xml --- a/xml/index.xml +++ b/xml/index.xml @@ -9,6 +9,14 @@ +njs-0.3.0 +version has been released, featuring ES6 modules support +and more. + + + + + nginx-1.15.10 mainline version has been released. diff --git a/xml/ru/docs/njs/compatibility.xml b/xml/ru/docs/njs/compatibility.xml --- a/xml/ru/docs/njs/compatibility.xml +++ b/xml/ru/docs/njs/compatibility.xml @@ -124,7 +124,9 @@ ES5.1: freeze, isFrozen, seal, -isSealed +isSealed, +isEnumerable +(0.3.0) @@ -232,6 +234,14 @@ ES5.1 глобальные функции: crypto.createHmac + +ES6 поддержка модулей: +инструкции +import по умолчанию и +export по умолчанию +(0.3.0) + + diff --git a/xml/ru/docs/njs/reference.xml b/xml/ru/docs/njs/reference.xml --- a/xml/ru/docs/njs/reference.xml +++ b/xml/ru/docs/njs/reference.xml @@ -34,7 +34,7 @@ -r.args{} +r.args{} объект аргументов запроса, только чтение @@ -50,7 +50,7 @@ завершает отправку ответа клиенту -r.headersIn{} +r.headersIn{} объект входящих заголовков, только чтение. @@ -60,7 +60,7 @@ -r.headersOut{} +r.headersOut{} объект исходящих заголовков, доступно для записи. @@ -114,7 +114,7 @@ HTTP метод, только чтение . -r.responseBody +r.responseBody хранит тело ответа подзапроса, только чтение. Размер r.responseBody ограничивается директивой