17
0

2 Commits

Author SHA256 Message Date
8433223751 Accepting request 1296321 from server:http
OBS-URL: https://build.opensuse.org/request/show/1296321
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nginx-module-njs?expand=0&rev=4
2025-07-30 09:45:17 +00:00
7a7744f092 - update to 0.9.1:
nginx modules:
  *  Feature: added Fetch API for QuickJS engine.
  *  Feature: added state file for a shared dictionary.
  *  Bugfix: fixed handling of Content-Length header when
     a body is provided for Fetch API.
  *  Bugfix: fixed qjs engine after bellard/quickjs@458c34d2.
  *  Bugfix: fixed NULL pointer dereference when processing
     If-* headers.
Core:
  *  Feature: added ECDH support for WebCrypto.
  *  Improvement: reduced memory consumption by the object hash.
     The new hash uses 42% less memory per element.
  *  Improvement: reduced memory consumption for concatenation of
     numbers and strings.
  *  Improvement: reduced memory consumption of
     String.prototype.concat() with scalar values.
  *  Bugfix: fixed segfault in njs_property_query().
     The issue was introduced in b28e50b1 (0.9.0).
  *  Bugfix: fixed Function constructor template injection.
  *  Bugfix: fixed GCC compilation with O3 optimization level.
  *  Bugfix: fixed constant is too large for 'long' warning
     on MIPS -mabi=n32.
  *  Bugfix: fixed compilation with GCC 4.1.
  *  Bugfix: fixed %TypedArray%.from() with the buffer is detached
     by the mapper.
  *  Bugfix: fixed %TypedArray%.prototype.slice() with overlapping
     buffers.
  *  Bugfix: fixed handling of detached buffers for typed arrays.
  *  Bugfix: fixed frame saving for async functions with

OBS-URL: https://build.opensuse.org/package/show/server:http/nginx-module-njs?expand=0&rev=7
2025-07-29 12:32:24 +00:00
4 changed files with 145 additions and 5 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:83613d1eca339ad3a0daa6c331a60f575c2e843d74399d6e89c86783ec0df676
size 869028

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9f3766ff476d608d044042a6b8703d3d59579a3aa3cfaf1c9da9ef975d253928
size 995681

View File

@@ -1,3 +1,143 @@
-------------------------------------------------------------------
Tue Jul 29 07:14:04 UTC 2025 - Alessio Biancalana <dottorblaster@opensuse.org>
- update to 0.9.1:
nginx modules:
* Feature: added Fetch API for QuickJS engine.
* Feature: added state file for a shared dictionary.
* Bugfix: fixed handling of Content-Length header when
a body is provided for Fetch API.
* Bugfix: fixed qjs engine after bellard/quickjs@458c34d2.
* Bugfix: fixed NULL pointer dereference when processing
If-* headers.
Core:
* Feature: added ECDH support for WebCrypto.
* Improvement: reduced memory consumption by the object hash.
The new hash uses 42% less memory per element.
* Improvement: reduced memory consumption for concatenation of
numbers and strings.
* Improvement: reduced memory consumption of
String.prototype.concat() with scalar values.
* Bugfix: fixed segfault in njs_property_query().
The issue was introduced in b28e50b1 (0.9.0).
* Bugfix: fixed Function constructor template injection.
* Bugfix: fixed GCC compilation with O3 optimization level.
* Bugfix: fixed constant is too large for 'long' warning
on MIPS -mabi=n32.
* Bugfix: fixed compilation with GCC 4.1.
* Bugfix: fixed %TypedArray%.from() with the buffer is detached
by the mapper.
* Bugfix: fixed %TypedArray%.prototype.slice() with overlapping
buffers.
* Bugfix: fixed handling of detached buffers for typed arrays.
* Bugfix: fixed frame saving for async functions with
closures.
* Bugfix: fixed RegExp compilation of patterns with
escaped '[' characters.
Changes with njs 0.9.0:
Core:
* Feature: refactored working with built-in strings, symbols
and small integers.
Performance improvements (arewefastyet/benchmarks/v8-v7 benchmark):
Richards: +57% (631 → 989)
Crypto: +7% (1445 → 1551)
RayTrace: +37% (562 → 772)
NavierStokes: +20% (2062 → 2465)
Overall score: +29% (1014 → 1307)
* Bugfix: fixed regexp undefined value of captured group.
* Bugfix: fixed GCC 15 build with -Wunterminated-string-initialization.
Changes with njs 0.8.10:
nginx modules:
* Feature: reading r.requestText or r.requestBuffer from
a temp file.
Previously, an exception was thrown when accessing r.requestText
or r.requestBuffer if a client request body size exceeded
client_body_buffer_size.
* Improvement: improved reporting of unhandled promise rejections.
* Bugfix: fixed name corruption in variable and header processing.
* Bugfix: fixed SharedDict.incr() with empty init argument
for QuickJS engine.
* Bugfix: accepting response headers with underscore characters
in Fetch API.
Core:
* Change: fixed serializeToString().
Previously, serializeToString() was exclusiveC14n() which returned
string instead of Buffer. According to the published documentation it
should be c14n().
* Feature: added WebCrypto API for QuickJS engine.
* Feature: added TextEncoder/TextDecoder for QuickJS engine.
* Feature: added querystring module for QuickJS engine.
* Feature: added crypto module for QuickJS engine.
* Feature: added xml module for QuickJS engine.
* Feature: added support for QuickJS-NG library.
* Bugfix: fixed buffer.concat() with a single argument in quickjs.
* Bugfix: added missed syntax error for await in template literal.
* Bugfix: fixed non-NULL terminated strings formatting in
exceptions for QuickJS engine.
* Bugfix: fixed compatibility with recent change in QuickJS
and QuickJS-NG.
Changes with njs 0.8.9:
nginx modules:
* Bugfix: removed extra VM creation per server.
This issue was introduced in 9b674412 (0.8.6) and was partially
fixed for location blocks only in 685b64f0 (0.8.7).
Core:
* Feature: added fs module for QuickJS engine.
Changes with njs 0.8.8:
nginx modules:
* Feature: implemented shared dictionary for QuickJS engine.
* Improvement: js_preload_object is refactored.
* Bugfix: fixed limit rated output.
* Bugfix: optimized use of SSL contexts for
js_fetch_trusted_certificate directive.
Core:
* Feature: implemented process object for QuickJS engine.
* Feature: implemented process.kill() method.
* Bugfix: fixed tests with libxml2 2.13 and later.
* Bugfix: fixed promise resolving when Promise is inherited.
* Bugfix: fixed absolute scope in cloned VMs.
Changes with njs 0.8.7:
nginx modules:
* Bugfix: eliminated unnecessary VM creation.
Previously, njs consumed memory proportionally to the number of
nginx locations. The issue was introduced in 9b674412 (0.8.6).
* Improvement: added strict syntax validation for js_body_filter.
* Improvement: improved error messages for module loading
failures.
Core:
* Feature: implemented fs.readlink() and friends.
* Improvement: implemented lazy stack symbolization.
* Bugfix: fixed heap-buffer-overflow in Buffer.prototype.indexOf().
The issue was introduced in 5d15a8d6 (0.8.6).
* Bugfix: fixed Buffer.prototype.lastIndexOf() when `from` is
provided.
Changes with njs 0.8.6:
nginx modules:
* Feature: introduced QuickJS engine.
* Feature: added optional nocache flag for js_set directive.
* Feature: exposed capture group variables in HTTP module.
Core:
* Feature: added Buffer module for QuickJS engine.
* Bugfix: fixed handling of empty labelled statement in a function.
* Bugfix: fixed Function constructor handling when called without
arguments.
* Bugfix: fixed Buffer.prototype.writeInt8() and friends.
* Bugfix: fixed Buffer.prototype.writeFloat() and friends.
* Bugfix: fixed Buffer.prototype.lastIndexOf().
* Bugfix: fixed Buffer.prototype.write().
* Bugfix: fixed maybe-uninitialized warnings in error creation.
* Bugfix: fixed 'ctx.codepoint' initialization in UTF-8 decoding.
* Bugfix: fixed 'length' initialization in Array.prototype.pop().
* Bugfix: fixed handling of encode arg in fs.readdir() and
fs.realpath().
-------------------------------------------------------------------
Mon Jul 22 12:42:55 UTC 2024 - Adam Majer <adam.majer@suse.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package nginx-module-njs
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: nginx-module-njs
Version: 0.8.5
Version: 0.9.1
Release: 0
Summary: NGINX module for NGINX Javascript
License: BSD-2-Clause