Discover Centmin Mod today
Register Now

Nginx [nginx-announce] njs-0.3.4

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, Aug 14, 2019.

  1. eva2000

    eva2000 Administrator Staff Member

    41,080
    9,189
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,098
    Local Time:
    5:48 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Hello,

    I'm glad to announce a new release of NGINX JavaScript module (njs).

    This release proceeds to extend the coverage of ECMAScript
    specifications. Apart from specs conformance fuzzing under
    Memory-Sanitizer is introduced which allowed to catch new types of bugs.

    Notable new features:
    - Shorthand method names (ES2015):
    : > ({foo(){return 123}}).foo() // ({foo:function(){return 123}})
    : 123

    - Computed property names (ES2015)
    : > ({['b' + 'ar']:123}).bar
    : 123

    - added getter/setter literal support:
    : > ({get foo(){return 123}}).foo
    : 123
    : > ({get ['f' + 'oo'](){return 123}}).foo
    : 123

    You can learn more about njs:

    - Overview and introduction: http://nginx.org/en/docs/njs/
    - Presentation: https://youtu.be/Jc_L6UffFOs

    Feel free to try it and give us feedback on:

    - Github: https://github.com/nginx/njs/issues
    - Mailing list: http://mailman.nginx.org/mailman/listinfo/nginx-devel

    Changes with njs 0.3.4 13 Aug 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.trimStart() and
    String.prototype.trimEnd().

    *) 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 > 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".
    _______________________________________________
    nginx-announce mailing list
    [email protected]
    http://mailman.nginx.org/mailman/listinfo/nginx-announce

    Continue reading...
     
  2. Dnyan

    Dnyan Member

    55
    9
    8
    Sep 16, 2017
    Ratings:
    +11
    Local Time:
    1:18 AM
    1.17.2
    10.1.41
    Is it comes as a default in centminmod installation?
     
  3. eva2000

    eva2000 Administrator Staff Member

    41,080
    9,189
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,098
    Local Time:
    5:48 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x