Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

njs v0.8.5 #148

Merged
merged 3 commits into from
Aug 15, 2024
Merged

njs v0.8.5 #148

merged 3 commits into from
Aug 15, 2024

Conversation

macbre
Copy link
Owner

@macbre macbre commented Aug 15, 2024

Changes with njs 0.8.5

Release Date: 25 June 2024

nginx modules:

Change: [r.variables.var](http://nginx.org/en/docs/njs/reference.html#r_variables), [r.requestText](http://nginx.org/en/docs/njs/reference.html#r_request_text), [r.responseText](http://nginx.org/en/docs/njs/reference.html#r_response_text), [s.variables.var](http://nginx.org/en/docs/njs/reference.html#s_variables), and the data argument of the [s.on()](http://nginx.org/en/docs/njs/reference.html#njs_on) callback with upload or download event types will now convert bytes invalid in UTF-8 encoding into the replacement character. When working with binary data, use [r.rawVariables.var](http://nginx.org/en/docs/njs/reference.html#r_raw_variables), [r.requestBuffer](http://nginx.org/en/docs/njs/reference.html#r_request_buffer), [r.responseBuffer](http://nginx.org/en/docs/njs/reference.html#r_response_buffer), [s.rawVariables.var](http://nginx.org/en/docs/njs/reference.html#s_raw_variables), and the upstream or downstream event type for [s.on()](http://nginx.org/en/docs/njs/reference.html#njs_on) instead.

Feature: added timeout argument for [add()](http://nginx.org/en/docs/njs/reference.html#dict_add), [set()](http://nginx.org/en/docs/njs/reference.html#dict_set), and [incr()](http://nginx.org/en/docs/njs/reference.html#dict_incr) methods of a shared dictionary.

Bugfix: fixed checking for duplicate [js_set](http://nginx.org/en/docs/http/ngx_http_js_module.html#js_set) variables.

Bugfix: fixed request Host header when the port is non-standard.

Bugfix: fixed handling of a zero-length request body in [ngx.fetch()](http://nginx.org/en/docs/njs/reference.html#ngx_fetch) and [r.subrequest()](http://nginx.org/en/docs/njs/reference.html#r_subrequest).

Bugfix: fixed heap-buffer-overflow in Headers.get().

Bugfix: fixed [r.subrequest()](http://nginx.org/en/docs/njs/reference.html#r_subrequest) error handling.

Core:

Feature: added zlib module for QuickJS engine.

Bugfix: fixed [zlib.inflate()](http://nginx.org/en/docs/njs/reference.html#zlib_inflatesync).

Bugfix: fixed String.prototype.replaceAll() with a zero-length argument.

Bugfix: fixed retval handling after an exception in Array.prototype.toSpliced(), Array.prototype.toReversed(), Array.prototype.toSorted().

Bugfix: fixed RegExp.prototype[@@replace]() with replacements containing $', $` and strings with Unicode characters.

Bugfix: fixed a one-byte overread in decodeURI() and decodeURIComponent().

Bugfix: fixed tracking of argument scope.

Bugfix: fixed integer overflow in Date.parse().

Changes with njs 0.8.5

Release Date: 25 June 2024

nginx modules:

    Change: r.variables.var, r.requestText, r.responseText, s.variables.var, and the data argument of the s.on() callback with upload or download event types will now convert bytes invalid in UTF-8 encoding into the replacement character. When working with binary data, use r.rawVariables.var, r.requestBuffer, r.responseBuffer, s.rawVariables.var, and the upstream or downstream event type for s.on() instead.

    Feature: added timeout argument for add(), set(), and incr() methods of a shared dictionary.

    Bugfix: fixed checking for duplicate js_set variables.

    Bugfix: fixed request Host header when the port is non-standard.

    Bugfix: fixed handling of a zero-length request body in ngx.fetch() and r.subrequest().

    Bugfix: fixed heap-buffer-overflow in Headers.get().

    Bugfix: fixed r.subrequest() error handling.

Core:

    Feature: added zlib module for QuickJS engine.

    Bugfix: fixed zlib.inflate().

    Bugfix: fixed String.prototype.replaceAll() with a zero-length argument.

    Bugfix: fixed retval handling after an exception in Array.prototype.toSpliced(), Array.prototype.toReversed(), Array.prototype.toSorted().

    Bugfix: fixed RegExp.prototype[@@replace]() with replacements containing $', $` and strings with Unicode characters.

    Bugfix: fixed a one-byte overread in decodeURI() and decodeURIComponent().

    Bugfix: fixed tracking of argument scope.

    Bugfix: fixed integer overflow in Date.parse().
@macbre macbre added the njs label Aug 15, 2024
@macbre macbre self-assigned this Aug 15, 2024
@macbre macbre enabled auto-merge August 15, 2024 15:51
@macbre macbre merged commit 1681115 into master Aug 15, 2024
1 check passed
@macbre macbre deleted the njs/0.8.5 branch August 15, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant