@@ -115,29 +115,24 @@ revision numbers, respectively); omit the packages you won't use.
115115 :hash: source-njs
116116
117117 To build Unit with `njs <https://nginx.org/en/docs/njs/ >`__ support,
118- download the :program: `njs ` code
119- to the same parent directory
118+ download the :program: `njs ` code to the same parent directory
120119 as the Unit code.
121120
122- If you'd like to use `Mercurial <https://www.mercurial-scm.org/downloads >`_:
121+ **0.8.2 ** is the latest version of :program: `njs ` that Unit supports.
122+ Make sure you are in the correct branch before configuring the binaries.
123123
124124 .. code-block :: console
125125
126- $ cd ..
127- $ hg clone https://hg.nginx.org/njs
128-
129- If you prefer `Git <https://git-scm.com/downloads >`_:
130-
131- .. code-block :: console
132-
133- $ cd ..
134- $ git clone https://github.com/nginx/njs
126+ $ git clone https://github.com/nginx/njs.git
127+ $ cd njs
128+ $ git checkout -b 0.8.2 0.8.2
135129
136- Next, configure and build the :program: `njs ` binaries:
130+ Next, configure and build the :program: `njs ` binaries. Make sure to use the
131+ `--no-zlib ` and `--no-libxml2 ` options to avoid
132+ conflicts with Unit's dependencies:
137133
138134 .. code-block :: console
139135
140- $ cd njs
141136 $ ./configure :nxt_hint:`--no-zlib --no-libxml2 <Ensures Unit can link against the resulting library>` && make
142137
143138 Point to the resulting source and build directories when :ref: `configuring
@@ -166,7 +161,7 @@ revision numbers, respectively); omit the packages you won't use.
166161 .. warning ::
167162 The **unit-wasm ** module is deprecated.
168163 We recommend using **wasm-wasi-component ** instead,
169- available in Unit 1.32.0 and later, which supports
164+ available in Unit 1.32.0 and later, which supports
170165 WebAssembly Components using standard WASI 0.2 interfaces.
171166
172167 To build Unit with the `WebAssembly <https://webassembly.org >`__
0 commit comments