Mercurial > hg > nginx-site
changeset 2312:1a6524706c70
njs-0.2.7
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 25 Dec 2018 15:37:47 +0300 |
parents | 6ca49554d5fe |
children | 35b02ed44e4a |
files | xml/en/docs/njs/changes.xml xml/en/docs/njs/compatibility.xml xml/en/docs/njs/reference.xml xml/index.xml xml/ru/docs/njs/compatibility.xml |
diffstat | 5 files changed, 157 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/njs/changes.xml +++ b/xml/en/docs/njs/changes.xml @@ -9,9 +9,101 @@ <article name="Changes" link="/en/docs/njs/changes.html" lang="en" - rev="11" + rev="12" toc="no"> +<section id="njs0.2.7" name="Changes with 0.2.7"> + +<para> +Release Date: +25 December 2018 +</para> + +<para> +Core: +<list type="bullet"> + +<listitem> +<para> +Feature: +rest parameters syntax (destructuring is not supported). +Thanks to Alexander Pyshchev. +</para> +</listitem> + +<listitem> +<para> +Feature: +added +<link doc="reference.xml" id="object_entries"><literal>Object.entries()</literal></link> +method. +</para> +</listitem> + +<listitem> +<para> +Feature: +added +<link doc="reference.xml" id="object_values"><literal>Object.values()</literal></link> +method. +</para> +</listitem> + +<listitem> +<para> +Improvement: +code generator refactored and simplified. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed automatic semicolon insertion. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed assignment expression from compound assignment. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed comparison of Byte and UTF8 strings. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed type of iteration variable in for-in with array values. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed building on paltforms without librt. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +miscellaneous additional bugs have been fixed. +</para> +</listitem> + +</list> +</para> + +</section> + + <section id="njs0.2.6" name="Changes with 0.2.6"> <para>
--- a/xml/en/docs/njs/compatibility.xml +++ b/xml/en/docs/njs/compatibility.xml @@ -9,7 +9,7 @@ <article name="Compatibility" link="/en/docs/njs/compatibility.html" lang="en" - rev="5"> + rev="6"> <section> @@ -124,6 +124,14 @@ ES5.1: <literal>seal</literal>, <literal>isSealed</literal> </listitem> + +<listitem> +ES8: +<link doc="reference.xml" id="object_entries"><literal>entries</literal></link> +(<link doc="changes.xml" id="njs0.2.7">0.2.7</link>), +<link doc="reference.xml" id="object_values"><literal>values</literal></link> +(<link doc="changes.xml" id="njs0.2.7">0.2.7</link>) +</listitem> </list> </listitem> @@ -179,6 +187,11 @@ ES5.1 <literal>arguments</literal> objec </listitem> <listitem> +ES6 rest parameters syntax (without destructuring support) +(<link doc="changes.xml" id="njs0.2.7">0.2.7</link>) +</listitem> + +<listitem> ES5.1 global functions: <literal>isFinite</literal>, <literal>isNaN</literal>, <literal>parseFloat</literal>, <literal>parseInt</literal>,
--- a/xml/en/docs/njs/reference.xml +++ b/xml/en/docs/njs/reference.xml @@ -9,7 +9,7 @@ <article name="Reference" link="/en/docs/njs/reference.html" lang="en" - rev="16"> + rev="17"> <section id="summary"> @@ -459,6 +459,33 @@ the <link id="s_allow">s.allow()</link> <section id="core" name="Core"> +<section id="core_object" name="Object"> + +<para> +The <literal>Object</literal> constructor corresponds to a standard JS object. +<list type="tag"> + +<tag-name id="object_entries"><literal>Object.entries(<value>object</value>)</literal></tag-name> +<tag-desc> +returns an array of all enumerable property +<literal>[key, value]</literal> pairs +of the given <literal>object</literal> +(<link doc="changes.xml" id="njs0.2.7">0.2.7</link>). +</tag-desc> + +<tag-name id="object_values"><literal>Object.values(<value>object</value>)</literal></tag-name> +<tag-desc> +returns an array of all enumerable property values +of the given <literal>object</literal> +(<link doc="changes.xml" id="njs0.2.7">0.2.7</link>). +</tag-desc> + +</list> +</para> + +</section> + + <section id="string" name="String"> <para>
--- a/xml/index.xml +++ b/xml/index.xml @@ -7,6 +7,14 @@ <news name="nginx news" link="/" lang="en"> +<event date="2018-12-25"> +<para> +<link doc="en/docs/njs/index.xml">njs-0.2.7</link> +version has been released, featuring rest parameters syntax, +and <link doc="en/docs/njs/changes.xml" id="njs0.2.7">more</link>. +</para> +</event> + <event date="2018-12-20"> <para> <link url="https://unit.nginx.org/">unit-1.7</link>
--- a/xml/ru/docs/njs/compatibility.xml +++ b/xml/ru/docs/njs/compatibility.xml @@ -9,7 +9,7 @@ <article name="Совместимость" link="/ru/docs/njs/compatibility.html" lang="ru" - rev="5"> + rev="6"> <section> @@ -124,6 +124,14 @@ ES5.1: <literal>seal</literal>, <literal>isSealed</literal> </listitem> + +<listitem> +ES8: +<link doc="reference.xml" id="object_entries"><literal>entries</literal></link> +(<link doc="../njs/changes.xml" id="njs0.2.7">0.2.7</link>), +<link doc="reference.xml" id="object_values"><literal>values</literal></link> +(<link doc="../njs/changes.xml" id="njs0.2.7">0.2.7</link>) +</listitem> </list> </listitem> @@ -179,6 +187,11 @@ ES5.1 объект <literal>arguments</literal> (0.2.5) </listitem> <listitem> +ES6 синтаксис rest параметров (без поддержки деструктуризации) +(<link doc="../njs/changes.xml" id="njs0.2.7">0.2.7</link>) +</listitem> + +<listitem> ES5.1 глобальные функции: <literal>isFinite</literal>, <literal>isNaN</literal>, <literal>parseFloat</literal>, <literal>parseInt</literal>,