# HG changeset patch # User Yaroslav Zhuravlev # Date 1571758176 -10800 # Node ID 32b945768dea8a7351f9afd43ec98c7c074cbcbb # Parent 192d136633b5256887c6ef731292c9aa3d6a8fe5 njs-0.3.6 diff -r 192d136633b5 -r 32b945768dea xml/en/docs/njs/changes.xml --- a/xml/en/docs/njs/changes.xml Tue Oct 22 18:24:04 2019 +0300 +++ b/xml/en/docs/njs/changes.xml Tue Oct 22 18:29:36 2019 +0300 @@ -9,9 +9,255 @@
+
+ + +Release Date: +22 October 2019 + + + +nginx modules: + + + + +Improvement: +getting special headers from +r.headersIn{}. + + + + + + + +Core: + + + + +Feature: +added new Function() support. + + + + + +Feature: +added Number.prototype.toFixed(). + + + + + +Feature: +added Number.prototype.toPrecision(). + + + + + +Feature: +added Number.prototype.toExponential(). + + + + + +Improvement: +making prototype property of function instances writable. + + + + + +Improvement: +limiting recursion depth while compiling. + + + + + +Improvement: +moving global functions to the global object. + + + + + +Bugfix: +fixed prototype mutation for object literals. + + + + + +Bugfix: +fixed heap-buffer-overflow while parsing regexp literals. + + + + + +Bugfix: +fixed integer-overflow while parsing exponent of number literals. + + + + + +Bugfix: +fixed parseFloat(). + + + + + +Bugfix: +fixed Array.prototype functions +according to the specification. +The following functions were fixed: +every, +includes, +indexOf, +filter, +find, +findIndex, +forEach, +lastIndexOf, +map, +pop, +push, +reduce, +reduceRight, +shift, +some, +unshift. + + + + + +Bugfix: +fixed handing of accessor descriptors in Object.freeze(). + + + + + +Bugfix: +fixed +String.prototype.replace() +when first argument is not a string. + + + + + +Bugfix: +fixed stack-use-after-scope in Array.prototype.map(). + + + + + +Bugfix: +Date.prototype.toUTCString() +format was aligned to ES9. + + + + + +Bugfix: +fixed buffer overflow in +Number.prototype.toString(radix). + + + + + +Bugfix: +fixed +Regexp.prototype.test() +for regexps with backreferences. + + + + + +Bugfix: +fixed +Array.prototype.map() +for objects with nonexistent values. + + + + + +Bugfix: +fixed +Array.prototype.pop() and +shift() for sparse objects. + + + + + +Bugfix: +fixed Date.UTC() according to the specification. + + + + + +Bugfix: +fixed Date() constructor according to the specification. + + + + + +Bugfix: +fixed type of Date.prototype. +Thanks to Artem S. Povalyukhin. + + + + + +Bugfix: +fixed Date.prototype.setTime(). +Thanks to Artem S. Povalyukhin. + + + + + +Bugfix: +fixed default number of arguments expected by built-in functions. + + + + + +Bugfix: +fixed caller and arguments +properties of a function instance. +Thanks to Artem S. Povalyukhin. + + + + + + +
+ +
diff -r 192d136633b5 -r 32b945768dea xml/en/docs/njs/compatibility.xml --- a/xml/en/docs/njs/compatibility.xml Tue Oct 22 18:24:04 2019 +0300 +++ b/xml/en/docs/njs/compatibility.xml Tue Oct 22 18:29:36 2019 +0300 @@ -9,7 +9,7 @@
@@ -33,7 +33,9 @@ Boolean values, numbers, strings, objects, arrays, -functions, and regular expressions +functions, function constructors +(0.3.6), +and regular expressions @@ -160,6 +162,23 @@ +Number instance methods: + + + +ES6: +toExponential +(0.3.6), +toFixed +(0.3.6), +toPrecision +(0.3.6) + + + + + + String methods: diff -r 192d136633b5 -r 32b945768dea xml/en/docs/njs/reference.xml --- a/xml/en/docs/njs/reference.xml Tue Oct 22 18:24:04 2019 +0300 +++ b/xml/en/docs/njs/reference.xml Tue Oct 22 18:29:36 2019 +0300 @@ -9,7 +9,7 @@
+ rev="32">
@@ -57,9 +57,10 @@ can be accessed with the syntax headersIn.foo or headersIn['Foo'] -For headers that can appear multiple times such as +Before version 0.3.6, +for headers that could appear multiple times such as
Cookie
or
X-Forwarded-For
, -only the first value will be returned. +only the first value was returned. To get all cookies, r.variables.http_cookie should be used. diff -r 192d136633b5 -r 32b945768dea xml/index.xml --- a/xml/index.xml Tue Oct 22 18:24:04 2019 +0300 +++ b/xml/index.xml Tue Oct 22 18:29:36 2019 +0300 @@ -14,6 +14,15 @@ + + +njs-0.3.6 +version has been released, featuring +function constructors +and more. + + + unit-1.12.0 diff -r 192d136633b5 -r 32b945768dea xml/ru/docs/njs/compatibility.xml --- a/xml/ru/docs/njs/compatibility.xml Tue Oct 22 18:24:04 2019 +0300 +++ b/xml/ru/docs/njs/compatibility.xml Tue Oct 22 18:29:36 2019 +0300 @@ -9,7 +9,7 @@
@@ -33,7 +33,9 @@ Логические значения, числа, строки, объекты, массивы, -функции и регулярные выражения +функции, конструкторы функций +(0.3.6) +и регулярные выражения @@ -61,7 +63,11 @@ -ES6 методы и свойства Math: +Свойства Math: + + + +ES6: E, LN10, LN2, @@ -69,8 +75,17 @@ LOG2E, PI, SQRT1_2, -SQRT2, -__proto__, +SQRT2 + + + + + +Методы Math: + + + +ES6: abs, acos, acosh, @@ -107,9 +122,15 @@ tanh, trunc + + -ES6 методы и свойства Number: +Свойства Number: + + + +ES6: EPSILON, MAX_SAFE_INTEGER, MAX_VALUE, @@ -119,14 +140,16 @@ NaN, POSITIVE_INFINITY - - -ES6 методы Number: + -ES6 методы и свойства Number: +Методы Number: + + + +ES6: isFinite, isInteger, isNaN, @@ -134,6 +157,26 @@ parseFloat, parseInt + + + + + +Методы экземпляра класса Number: + + + +ES6: +toExponential +(0.3.6), +toFixed +(0.3.6), +toPrecision +(0.3.6) + + + + diff -r 192d136633b5 -r 32b945768dea xml/ru/docs/njs/reference.xml --- a/xml/ru/docs/njs/reference.xml Tue Oct 22 18:24:04 2019 +0300 +++ b/xml/ru/docs/njs/reference.xml Tue Oct 22 18:29:36 2019 +0300 @@ -58,9 +58,10 @@ можно получить при помощи синтаксиса headersIn.foo или headersIn['Foo'] -Если заголовок может быть указан несколько раз, например +До версии 0.3.6 +если заголовок был указан несколько раз, например
Cookie
или
X-Forwarded-For
, -будет возвращено только первое значение. +то возвращалось только первое значение. Чтобы получить все cookie необходимо использовать r.variables.http_cookie.