# HG changeset patch # User Yaroslav Zhuravlev # Date 1580755327 0 # Node ID 805c4b84cc6193b4ec83f851f9a04fa1ef28fd49 # Parent 9dddac1420fedb069cf268fb7421f530d6ecc241 Added missing feature and links to njs-0.3.8 Changes. 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,7 +9,7 @@
@@ -26,10 +26,11 @@ nginx modules: Feature: -added Promise support -for r.subrequest(). +added Promise support for +r.subrequest(). If a callback is not provided, -r.subrequest() returns an ordinary +r.subrequest() +returns an ordinary Promise object that resolves to a subrequest response object. @@ -38,7 +39,8 @@ that resolves to a subrequest response o Change: -r.parent property handler now returns +r.parent() +property handler now returns undefined instead of throwing an exception if a parent object is not available. @@ -89,7 +91,8 @@ Thanks to Artem S. Povalyukhin. Feature: -added externals support for JSON.stringify(). +added externals support for +JSON.stringify(). @@ -111,6 +114,13 @@ Thanks to Artem S. Povalyukhin. +Feature: +introduced nullish coalescing operator. + + + + + Bugfix: fixed Object.getPrototypeOf() @@ -131,7 +141,7 @@ according to the specification. Bugfix: fixed -JSON.stringify() +JSON.stringify() with unprintable values and replacer function. 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="35">
@@ -104,7 +104,7 @@ it is considered a named location. HTTP method, read-only -r.parent +r.parent references the parent request object