# HG changeset patch # User Yaroslav Zhuravlev # Date 1565708980 -10800 # Node ID 3b7223f9aac82019ada7aa9ef81b4b45e8ce993b # Parent c6581f9aefa3ed3a8d73fe202de7cb37ebf95efb njs-0.3.4 diff -r c6581f9aefa3 -r 3b7223f9aac8 xml/en/docs/njs/changes.xml --- a/xml/en/docs/njs/changes.xml Wed Aug 07 21:04:14 2019 +0300 +++ b/xml/en/docs/njs/changes.xml Tue Aug 13 18:09:40 2019 +0300 @@ -9,9 +9,268 @@
+
+ + +Release Date: +13 August 2019 + + + +Core: + + + + +Feature: +added Object shorthand methods and computed property names. +Thanks to 洪志道 (Hong Zhi Dao) and Artem S. Povalyukhin. + + + + + +Feature: +added getter/setter literal support. +Thanks to 洪志道 (Hong Zhi Dao) and Artem S. Povalyukhin. + + + + + +Feature: +added +fs.renameSync(). + + + + + +Feature: +added +String.prototype.trimEnd() +and +String.prototype.trimStart(). + + + + + +Improvement: +added memory-sanitizer support. + + + + + +Improvement: +Unicode case tables updated to version 12.1. + + + + + +Improvement: +added UTF8 validation for string literals. + + + + + +Bugfix: +fixed reading files with zero size in +fs.readFileSync(). + + + + + +Bugfix: +extended the list of space separators in +String.prototype.trim(). + + + + + +Bugfix: +fixed using of uninitialized value in +String.prototype.padStart(). + + + + + +Bugfix: +fixed +String.prototype.replace() for $0 and $& replacement string. + + + + + +Bugfix: +fixed +String.prototype.replace() +for byte strings with regex argument. + + + + + +Bugfix: +fixed global match in +String.prototype.replace() +with regexp argument. + + + + + +Bugfix: +fixed +Array.prototype.slice() +for primitive types. + + + + + +Bugfix: +fixed heap-buffer-overflow while importing module. + + + + + +Bugfix: +fixed UTF-8 character escaping. + + + + + +Bugfix: +fixed +Object.values() +and +Object.entries() +for shared objects. + + + + + +Bugfix: +fixed uninitialized memory access in +String.prototype.match(). + + + + + +Bugfix: +fixed +String.prototype.match() +for byte strings with regex argument. + + + + + +Bugfix: +fixed +Array.prototype.lastIndexOf() +with undefined arguments. + + + + + +Bugfix: +fixed +String.prototype.substring() +with empty substring. + + + + + +Bugfix: +fixed invalid memory access in +String.prototype.substring(). + + + + + +Bugfix: +fixed +String.fromCharCode() +for code points more than 65535 and NaN. + + + + + +Bugfix: +fixed +String.prototype.toLowerCase() +and +String.prototype.toUpperCase(). + + + + + +Bugfix: +fixed Error() constructor with no arguments. + + + + + +Bugfix: +fixed in operator for values with accessor descriptors. + + + + + +Bugfix: +fixed +Object.defineProperty() +for non-boolean descriptor props. + + + + + +Bugfix: +fixed +Error.prototype.toString() +with UTF8 string properties. + + + + + +Bugfix: +fixed +Error.prototype.toString() +with non-string values for name and message. + + + + + + +
+ +
@@ -73,7 +332,7 @@ Feature: added -process +process global object. @@ -163,8 +422,6 @@ - - Bugfix: diff -r c6581f9aefa3 -r 3b7223f9aac8 xml/en/docs/njs/compatibility.xml --- a/xml/en/docs/njs/compatibility.xml Wed Aug 07 21:04:14 2019 +0300 +++ b/xml/en/docs/njs/compatibility.xml Tue Aug 13 18:09:40 2019 +0300 @@ -9,7 +9,7 @@
@@ -214,6 +214,14 @@ +ES9: +trimEnd +(0.3.4), +trimStart +(0.3.4) + + + non-standard: bytesFrom (0.2.3), fromBytes, @@ -231,8 +239,10 @@ ES5.1: create (support without properties list), -defineProperties (support without accessor descriptors), -defineProperty (support without accessor descriptors), +defineProperties (accessor descriptors support +since 0.3.3), +defineProperty (accessor descriptors support +since 0.3.3), freeze, getOwnPropertyDescriptor, getOwnPropertyDescriptors @@ -488,7 +498,9 @@ File system methods: fs.appendFileSync, fs.readFileSync, -fs.writeFileSync +fs.writeFileSync, +fs.renameSync +(0.3.4) diff -r c6581f9aefa3 -r 3b7223f9aac8 xml/en/docs/njs/reference.xml --- a/xml/en/docs/njs/reference.xml Wed Aug 07 21:04:14 2019 +0300 +++ b/xml/en/docs/njs/reference.xml Tue Aug 13 18:09:40 2019 +0300 @@ -9,7 +9,7 @@
+ rev="30">
@@ -857,6 +857,26 @@ +String.prototype.trimEnd() + +Removes whitespaces from the end of a string +(0.3.4). + +>> ' abc '.trimEnd() +' abc' + + + +String.prototype.trimStart() + +Removes whitespaces from the beginning of a string +(0.3.4). + +>> ' abc '.trimStart() +'abc ' + + + encodeURI(URI) Encodes a URI by replacing each instance of certain characters @@ -1217,6 +1237,20 @@ +renameSync(oldPath, +newPath) + +Synchronously changes the name or location of a file from +oldPath to newPath +(0.3.4). + +>> var fs = require('fs') +undefined +>> var file = fs.renameSync('hello.txt', 'HelloWorld.txt') +undefined + + + diff -r c6581f9aefa3 -r 3b7223f9aac8 xml/index.xml --- a/xml/index.xml Wed Aug 07 21:04:14 2019 +0300 +++ b/xml/index.xml Tue Aug 13 18:09:40 2019 +0300 @@ -7,6 +7,15 @@ + + +njs-0.3.4 +version has been released, featuring +getter/setter literals support +and more. + + + nginx-1.17.2 diff -r c6581f9aefa3 -r 3b7223f9aac8 xml/ru/docs/njs/compatibility.xml --- a/xml/ru/docs/njs/compatibility.xml Wed Aug 07 21:04:14 2019 +0300 +++ b/xml/ru/docs/njs/compatibility.xml Tue Aug 13 18:09:40 2019 +0300 @@ -9,7 +9,7 @@
@@ -192,6 +192,14 @@ +ES9: +trimEnd +(0.3.4), +trimStart +(0.3.4) + + + нестандартные: bytesFrom (0.2.3), fromBytes, @@ -209,8 +217,10 @@ ES5.1: create (поддержка без списка свойств), -defineProperties (поддержка без дескрипторов доступа), -defineProperty (поддержка без дескрипторов доступа), +defineProperties (поддержка дескрипторов доступа +начиная с версии 0.3.3), +defineProperty (поддержка дескрипторов доступа +начиная с версии 0.3.3), freeze, getOwnPropertyDescriptor, getOwnPropertyDescriptors @@ -466,7 +476,9 @@ Методы File system: fs.appendFileSync, fs.readFileSync, -fs.writeFileSync +fs.writeFileSync, +fs.renameSync +(0.3.4) diff -r c6581f9aefa3 -r 3b7223f9aac8 xml/ru/docs/njs/reference.xml --- a/xml/ru/docs/njs/reference.xml Wed Aug 07 21:04:14 2019 +0300 +++ b/xml/ru/docs/njs/reference.xml Tue Aug 13 18:09:40 2019 +0300 @@ -844,6 +844,26 @@ +String.prototype.trimEnd() + +Удаляет пробелы в конце строки. +(0.3.4). + +>> ' abc '.trimEnd() +' abc' + + + +String.prototype.trimStart() + +Удаляет пробелы в начале строки. +(0.3.4). + +>> ' abc '.trimStart() +'abc ' + + + encodeURI(URI) Кодирует URI путём замены определённых символов