Skip to content

Commit 9ff9ec5

Browse files
authored
Merge pull request #131 from nginx/1.32.1
Add Release-Notes for 1.32.1
2 parents dbee04b + 70e6a80 commit 9ff9ec5

File tree

5 files changed

+81
-30
lines changed

5 files changed

+81
-30
lines changed

source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
project = 'NGINX Unit'
66
author = 'NGINX, Inc.'
77
copyright = '2017-2024'
8-
version = '1.32.0'
9-
release_date = 'Feb 27, 2024'
8+
version = '1.32.1'
9+
release_date = 'Mar 26, 2024'
1010
release = version
1111
needs_sphinx = '6.2'
1212

source/configuration.rst

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5025,31 +5025,21 @@ you have:
50255025
.. list-table::
50265026
:header-rows: 1
50275027
5028-
* - Option
5029-
- Description
5030-
5031-
* - **script** (required)
5032-
- String;
5033-
rack script pathname,
5034-
including the **.ru** extension,
5035-
for instance:
5036-
**/www/rubyapp/script.ru**.
5028+
* - Option
5029+
- Description
50375030
5038-
* - **hooks**
5039-
- String;
5040-
pathname of the **.rb** file
5041-
setting the event hooks
5042-
invoked during the app's lifecycle.
5031+
* - **script** (required)
5032+
- String; rack script pathname, including the **.ru** extension,
5033+
for instance: **/www/rubyapp/script.ru**.
50435034
5044-
* - **threads**
5045-
- Integer;
5046-
number of worker threads
5047-
per :ref:`app process <sec-processes>`.
5048-
When started,
5049-
each app process creates this number of threads
5050-
to handle requests.
5035+
* - **hooks**
5036+
- String; pathname of the **.rb** file setting the event hooks invoked
5037+
during the app's lifecycle.
50515038
5052-
The default is **1**.
5039+
* - **threads**
5040+
- Integer; number of worker threads per
5041+
:ref:`app process <sec-processes>`. When started, each app process
5042+
creates this number of threads to handle requests. The default is **1**.
50535043
50545044
Example:
50555045

source/news/2024/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ News of 2024
44

55
News archive for the year 2024.
66

7+
.. nxt_news_entry::
8+
:author: Unit Team
9+
:description: Version 1.32.1 is a maintenance release that fixes bugs in the new WebAssembly Language Module and in our NJS implementation.
10+
11+
:title: Unit 1.32.1 Released
12+
:url: news/2024/unit-1.32.1-released
13+
:date: 2024-03-26
14+
715
.. nxt_news_entry::
816
:author: Timo Stark
917
:description: Building Wasm Components using Fermyon's Spin SDK for Rust
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
:orphan:
2+
3+
####################
4+
Unit 1.32.1 Released
5+
####################
6+
7+
NGINX Unit 1.32.1 is a maintenance release that fixes bugs in the new WebAssembly Language Module and in our NJS implementation.
8+
9+
===============
10+
Resolved issues
11+
===============
12+
13+
This release fixes the following issues:
14+
15+
**************************************************************
16+
Applications of type `wasm-wasi-component` can't be restarted
17+
**************************************************************
18+
19+
Applications deployed as `wasm-wasi-components` can't be restarted using the `restart` endpoint.
20+
21+
After deploying a new Wasm Component binary to disk, the restart will trigger a reload of the component in Unit without restarting the server.
22+
23+
As restarts will work independently of the application type, the behavior shipped with **1.32.0** was not right. It has been fixed in this release.
24+
25+
26+
************************************************************
27+
Unit-variables in NGINX JavaScript are constantly cached
28+
************************************************************
29+
30+
In **1.32.0** we added the possibility to access all Unit variables form inside NJS.
31+
32+
As reported in GitHub issue `#1169 <https://github.com/nginx/unit/issues/1169>`__ the variables were cached and would hold the wrong value, which is not how this feature should work. With version 1.32.1, we have fixed this issue.
33+
34+
35+
==============
36+
Full Changelog
37+
==============
38+
39+
.. code-block:: none
40+
41+
Changes with Unit 1.32.1 26 Mar 2024
42+
43+
*) Bugfix: NJS variables in templates may have incorrect values due to
44+
improper caching.
45+
46+
*) Bugfix: Wasm application process hangs after receiving restart signal
47+
from the control.
48+
49+
50+
51+
For a full list of changes and bugfixes,
52+
please see the `changelog <../../../CHANGES.txt>`__.

source/news/2024/wasm-component-model-part-2.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This tutorial targets Linux-based operating systems and MacOS. If you are on Win
1919
Rust Development Setup
2020
=============================
2121

22-
Let's start by installing the Rust ecosystem, if not already done. At the time of writing, Rust 1.76 is the latest stable version.
22+
Let's start by installing the Rust ecosystem, if not already done. At the time of writing, Rust 1.76 is the latest stable version.
2323
To install Rust, see the instructions on their `website <https://www.rust-lang.org/tools/install>`__.
2424

2525
After the installation completes, you can confirm the current version of Rust by running:
@@ -45,7 +45,7 @@ The wasm32-wasi compiler target will provide general Wasm support to your rustc
4545
Install cargo-component
4646
======================================
4747

48-
**cargo-component** will add a cargo subcommand to build Wasm Components without any intermediate steps from our Rust project.
48+
**cargo-component** will add a cargo subcommand to build Wasm Components without any intermediate steps from our Rust project.
4949
To install the latest version, run the following command:
5050

5151
.. code-block:: bash
@@ -56,7 +56,7 @@ To install the latest version, run the following command:
5656
Install wasmtime runtime and CLI for testing
5757
=================================================
5858

59-
The wasmtime-cli will be used to test and play around with the Wasm component. At the time of writing, we are using Wasmtime 18.
59+
The wasmtime-cli will be used to test and play around with the Wasm component. At the time of writing, we are using Wasmtime 18.
6060
To install the latest version of Wasmtime, run:
6161

6262
.. code-block:: bash
@@ -68,6 +68,7 @@ For more information about Wasmtime and installing it, see their `GitHub reposit
6868
Once we have all the tools in place, we can create the Rust projects.
6969

7070
.. _tutorial-rust-based-wasm-component:
71+
7172
======================================
7273
Using the **wasi** Rust library
7374
======================================
@@ -152,7 +153,7 @@ Targeting the wasi crate requires some low-level Rust work by us. Not bad at all
152153
Let's build the component. Run the following command from the **test-wasi-component** directory:
153154

154155
.. code-block:: bash
155-
156+
156157
$ cargo component build --release
157158
158159
The build shows a very small dependency footprint, so is a major benefit from the wasi crate.
@@ -194,7 +195,7 @@ Sending a request to the exposed endpoint will output something like this:
194195
NGINX Unit for production grade Wasm workloads
195196
************************************************************************
196197

197-
While the **wasmtime-cli** interface is good for testing Wasm components locally, there are more requirements for production workloads.
198+
While the **wasmtime-cli** interface is good for testing Wasm components locally, there are more requirements for production workloads.
198199

199200
With NGINX Units Wasm runtime, you will be able to run your Wasm workloads next to other host applications on a single host and make use of all the other powerful Unit features. Given Units design and as we have decoupled the listeners from the application runtime, you can make full use of the Unit Router to make routing decisions before sharing a request with your Wasm Component or add HTTPS to your stack.
200201

@@ -216,7 +217,7 @@ Create a **config.json** file:
216217
"component": "path/target/wasm32-wasi/release/test_wasi_component.wasm"
217218
}
218219
}
219-
}
220+
}
220221
221222
Apply the configuration using **unitc**:
222223

0 commit comments

Comments
 (0)