changeset 2601:5528961da54d

njs-0.4.4.
author Yaroslav Zhuravlev <yar@nginx.com>
date Tue, 29 Sep 2020 18:22:17 +0100
parents 2fd28cd4f2f8
children 90b32c2c0155
files xml/en/docs/njs/changes.xml xml/en/docs/njs/reference.xml xml/index.xml
diffstat 3 files changed, 200 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/njs/changes.xml
+++ b/xml/en/docs/njs/changes.xml
@@ -9,9 +9,194 @@
 <article name="Changes"
         link="/en/docs/njs/changes.html"
         lang="en"
-        rev="37"
+        rev="38"
         toc="no">
 
+<section id="njs0.4.4" name="Changes with njs 0.4.4">
+
+<para>
+Release Date:
+29 September 2020
+</para>
+
+<para>
+nginx modules:
+<list type="bullet">
+
+<listitem>
+<para>
+Bugfix:
+fixed location merge.
+</para>
+</listitem>
+
+<listitem>
+<para>
+Bugfix:
+fixed
+<link doc="reference.xml" id="r_http_version"><literal>r.httpVersion</literal></link>
+for HTTP/2.
+</para>
+</listitem>
+
+</list>
+</para>
+
+<para>
+Core:
+<list type="bullet">
+
+<listitem>
+<para>
+Feature:
+added support for numeric separators (ES12).
+</para>
+</listitem>
+
+<listitem>
+<para>
+Feature:
+added remaining methods for
+<literal>%TypedArray%.prototype</literal>.
+The following methods were added:
+<literal>every()</literal>,
+<literal>filter()</literal>,
+<literal>find()</literal>,
+<literal>findIndex()</literal>,
+<literal>forEach()</literal>,
+<literal>includes()</literal>,
+<literal>indexOf()</literal>,
+<literal>lastIndexOf()</literal>,
+<literal>map()</literal>,
+<literal>reduce()</literal>,
+<literal>reduceRight()</literal>,
+<literal>reverse()</literal>,
+<literal>some()</literal>.
+</para>
+</listitem>
+
+<listitem>
+<para>
+Feature:
+added <literal>%TypedArray%</literal> remaining methods.
+The following methods were added:
+<literal>from()</literal>,
+<literal>of()</literal>.
+</para>
+</listitem>
+
+<listitem>
+<para>
+Feature:
+added <literal>DataView</literal> object.
+</para>
+</listitem>
+<listitem>
+<para>
+Feature:
+added <literal>Buffer</literal> object implementation.
+</para>
+</listitem>
+
+<listitem>
+<para>
+Feature:
+added support for <literal>ArrayBuffer</literal> in
+<link doc="reference.xml" id="textdecoder_decode"><literal>TextDecoder.prototype.decode()</literal></link>
+</para>
+</listitem>
+
+<listitem>
+<para>
+Feature:
+added support for <literal>Buffer</literal> object in
+<link doc="reference.xml" id="crypto"><literal>crypto</literal></link>
+methods.
+</para>
+</listitem>
+
+<listitem>
+<para>
+Feature:
+added support for <literal>Buffer</literal> object in
+<link doc="reference.xml" id="njs_api_fs"><literal>fs</literal></link>
+methods.
+</para>
+</listitem>
+
+<listitem>
+<para>
+Change:
+<link doc="reference.xml" id="crypto_hash_digest"><literal>Hash.prototype.digest()</literal></link>
+and
+<link doc="reference.xml" id="crypto_hmac_digest"><literal>Hmac.prototype.digest()</literal></link>
+now return a <literal>Buffer</literal> instance instead of a byte string when
+encoding is not provided.
+</para>
+</listitem>
+
+<listitem>
+<para>
+Change:
+<link doc="reference.xml" id="readfilesync"><literal>fs.readFile()</literal></link>
+and friends now return a <literal>Buffer</literal> instance
+instead of a byte string when encoding is not provided.
+</para>
+</listitem>
+
+<listitem>
+<para>
+Bugfix:
+fixed function <literal>prototype</literal> property handler while setting.
+</para>
+</listitem>
+
+<listitem>
+<para>
+Bugfix:
+fixed function <literal>constructor</literal> property handler while setting.
+</para>
+</listitem>
+
+<listitem>
+<para>
+Bugfix:
+fixed <literal>String.prototype.indexOf()</literal>
+for byte strings.
+</para>
+</listitem>
+
+<listitem>
+<para>
+Bugfix:
+fixed <literal>RegExpBuiltinExec()</literal>
+with a global flag and byte strings.
+</para>
+</listitem>
+
+<listitem>
+<para>
+Bugfix:
+fixed <literal>RegExp.prototype[Symbol.replace]</literal>
+the when replacement value is a function.
+</para>
+</listitem>
+
+<listitem>
+<para>
+Bugfix:
+fixed
+<link doc="reference.xml" id="textdecoder_decode"><literal>TextDecoder.prototype.decode()</literal></link>
+with non-zero <literal>TypedArray</literal> offset.
+</para>
+</listitem>
+
+</list>
+</para>
+
+</section>
+
+
 <section id="njs0.4.3" name="Changes with njs 0.4.3">
 
 <para>
--- 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="53">
+        rev="54">
 
 <section id="summary">
 
@@ -910,12 +910,12 @@ The algorithm can be
 <para>
 <list type="tag">
 
-<tag-name><literal>hash.update(<value>data</value>)</literal></tag-name>
+<tag-name id="crypto_hash_update"><literal>hash.update(<value>data</value>)</literal></tag-name>
 <tag-desc>
 Updates the hash content with the given <value>data</value>.
 </tag-desc>
 
-<tag-name><literal>hash.digest([<value>encoding</value>])</literal></tag-name>
+<tag-name id="crypto_hash_digest"><literal>hash.digest([<value>encoding</value>])</literal></tag-name>
 <tag-desc>
 Calculates the digest of all of the data passed using
 <literal>hash.update()</literal>.
@@ -947,12 +947,12 @@ undefined
 <para>
 <list type="tag">
 
-<tag-name><literal>hmac.update(<value>data</value>)</literal></tag-name>
+<tag-name id="crypto_hmac_update"><literal>hmac.update(<value>data</value>)</literal></tag-name>
 <tag-desc>
 Updates the HMAC content with the given <value>data</value>.
 </tag-desc>
 
-<tag-name><literal>hmac.digest([<value>encoding</value>])</literal></tag-name>
+<tag-name id="crypto_hmac_digest"><literal>hmac.digest([<value>encoding</value>])</literal></tag-name>
 <tag-desc>
 Calculates the HMAC digest of all of the data passed using
 <literal>hmac.update()</literal>.
--- a/xml/index.xml
+++ b/xml/index.xml
@@ -9,6 +9,15 @@
 
 <event date="2020-09-29">
 <para>
+<link doc="en/docs/njs/index.xml">njs-0.4.4</link>
+version has been
+<link doc="en/docs/njs/changes.xml" id="njs0.4.4">released</link>,
+featuring Buffer object.
+</para>
+</event>
+
+<event date="2020-09-29">
+<para>
 <link doc="en/download.xml">nginx-1.19.3</link>
 mainline version has been released.
 </para>