comparison xml/en/docs/njs/changes.xml @ 2628:0ce45b4edb75

njs-0.5.0.
author Yaroslav Zhuravlev <yar@nginx.com>
date Wed, 02 Dec 2020 09:28:09 +0000
parents 5528961da54d
children 6e5ef4a0707f
comparison
equal deleted inserted replaced
2627:9ded17b148f5 2628:0ce45b4edb75
7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> 7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd">
8 8
9 <article name="Changes" 9 <article name="Changes"
10 link="/en/docs/njs/changes.html" 10 link="/en/docs/njs/changes.html"
11 lang="en" 11 lang="en"
12 rev="38" 12 rev="39"
13 toc="no"> 13 toc="no">
14
15 <section id="njs0.5.0" name="Changes with njs 0.5.0">
16
17 <para>
18 Release Date:
19 01 December 2020
20 </para>
21
22 <para>
23 nginx modules:
24 <list type="bullet">
25
26 <listitem>
27 <para>
28 Feature:
29 introduced global
30 <link doc="reference.xml" id="ngx"><literal>ngx</literal></link> object.
31 </para>
32
33 <para>
34 The following methods were added:
35 <list type="bullet">
36
37 <listitem>
38 <para>
39 <link doc="reference.xml" id="ngx_log"><literal>ngx.log(level,
40 message)</literal></link>
41 </para>
42 </listitem>
43
44 </list>
45 </para>
46
47 <para>
48 The following properties were added:
49 <list type="bullet">
50
51 <listitem>
52 <para>
53 <literal>ngx.INFO</literal>,
54 <literal>ngx.WARN</literal>,
55 <literal>ngx.ERR</literal>.
56 </para>
57 </listitem>
58
59 </list>
60 </para>
61
62 </listitem>
63
64 <listitem>
65 <para>
66 Feature:
67 added support for
68 <literal>Buffer</literal> object where string is expected.
69 </para>
70 </listitem>
71
72 <listitem>
73 <para>
74 Feature:
75 added Buffer version of existing properties.
76 </para>
77
78 <para>
79 The following properties were added:
80 <list type="bullet">
81
82 <listitem>
83 <para>
84 <link doc="reference.xml" id="r_request_buffer"><literal>r.requestBuffer</literal></link>
85 (<link doc="reference.xml" id="r_request_body"><literal>r.requestBody</literal></link>),
86 <link doc="reference.xml" id="r_response_buffer"><literal>r.responseBuffer</literal></link>
87 (<link doc="reference.xml" id="r_response_body"><literal>r.responseBody</literal></link>),
88 <link doc="reference.xml" id="r_raw_variables"><literal>r.rawVariables</literal></link>
89 (<link doc="reference.xml" id="r_variables"><literal>r.variables</literal></link>),
90 <link doc="reference.xml" id="s_raw_variables"><literal>s.rawVariables</literal></link>
91 (<link doc="reference.xml" id="s_variables"><literal>s.variables</literal></link>).
92 </para>
93 </listitem>
94
95 </list>
96 </para>
97
98 <para>
99 The following events were added in the stream module:
100 <list type="bullet">
101
102 <listitem>
103 <para>
104 <link doc="reference.xml" id="s_on"><literal>upstream</literal></link>
105 (upload),
106 <link doc="reference.xml" id="s_on"><literal>downstream</literal></link>
107 (download).
108 </para>
109 </listitem>
110
111 </list>
112 </para>
113
114 </listitem>
115
116 <listitem>
117 <para>
118 Improvement:
119 added aliases to existing properties.
120 </para>
121
122 <para>
123 The following properties were added:
124 <list type="bullet">
125
126 <listitem>
127 <para>
128 <link doc="reference.xml" id="r_request_text"><literal>r.requestText</literal></link>
129 (<link doc="reference.xml" id="r_request_body"><literal>r.requestBody</literal></link>),
130 <link doc="reference.xml" id="r_response_text"><literal>r.responseText</literal></link>
131 (<link doc="reference.xml" id="r_response_body"><literal>r.responseBody</literal></link>).
132 </para>
133 </listitem>
134
135 </list>
136 </para>
137
138 </listitem>
139
140 <listitem>
141 <para>
142 Improvement:
143 throwing an exception in
144 <link doc="reference.xml" id="r_internal_redirect"><literal>r.internalRedirect()</literal></link>
145 for a subrequest.
146 </para>
147 </listitem>
148
149 <listitem>
150 <para>
151 Bugfix:
152 fixed promise
153 <link doc="reference.xml" id="r_subrequest"><literal>r.subrequest()</literal></link>
154 with
155 <link doc="../http/ngx_http_core_module.xml" id="error_page"><literal>error_page</literal></link>
156 redirect.
157 </para>
158 </listitem>
159
160 <listitem>
161 <para>
162 Bugfix:
163 fixed
164 <literal>promise</literal> events handling.
165 </para>
166 </listitem>
167
168 </list>
169 </para>
170
171 <para>
172 Core:
173 <list type="bullet">
174
175 <listitem>
176 <para>
177 Feature:
178 added
179 <literal>TypeScript</literal> definitions for built-in modules.
180 Thanks to Jakub Jirutka.
181 </para>
182 </listitem>
183
184 <listitem>
185 <para>
186 Feature:
187 tracking unhandled <literal>promise</literal> rejection.
188 </para>
189 </listitem>
190
191 <listitem>
192 <para>
193 Feature:
194 added initial iterator support.
195 Thanks to Artem S. Povalyukhin.
196 </para>
197 </listitem>
198
199 <listitem>
200 <para>
201 Improvement:
202 <literal>TypeScript</literal> definitions are refactored.
203 Thanks to Jakub Jirutka.
204 </para>
205 </listitem>
206
207 <listitem>
208 <para>
209 Improvement:
210 added forgotten support for
211 <literal>Object.prototype.valueOf()</literal>
212 in
213 <literal>Buffer.from()</literal>.
214 </para>
215 </listitem>
216
217 <listitem>
218 <para>
219 Bugfix:
220 fixed heap-use-after-free in
221 <literal>JSON.parse()</literal>.
222 </para>
223 </listitem>
224
225 <listitem>
226 <para>
227 Bugfix:
228 fixed heap-use-after-free in
229 <literal>JSON.stringify()</literal>.
230 </para>
231 </listitem>
232
233 <listitem>
234 <para>
235 Bugfix:
236 fixed
237 <literal>JSON.stringify()</literal> for arrays resizable via getters.
238 </para>
239 </listitem>
240
241 <listitem>
242 <para>
243 Bugfix:
244 fixed heap-buffer-overflow for
245 <literal>RegExp.prototype[Symbol.replace]</literal>.
246 </para>
247 </listitem>
248
249 <listitem>
250 <para>
251 Bugfix:
252 fixed returned value for
253 <literal>Buffer.prototype.write*</literal>
254 functions.
255 </para>
256 </listitem>
257
258 <listitem>
259 <para>
260 Bugfix:
261 fixed
262 <link doc="reference.xml" id="querystring_stringify"><literal>querystring.stringify()</literal></link>.
263 Thanks to Artem S. Povalyukhin.
264 </para>
265 </listitem>
266
267 <listitem>
268 <para>
269 Bugfix:
270 fixed the catch handler for
271 <literal>Promise.prototype.finally()</literal>.
272 </para>
273 </listitem>
274
275 <listitem>
276 <para>
277 Bugfix:
278 fixed
279 <link doc="reference.xml" id="querystring_parse"><literal>querystring.parse()</literal></link>.
280 </para>
281 </listitem>
282
283 </list>
284 </para>
285
286 </section>
287
14 288
15 <section id="njs0.4.4" name="Changes with njs 0.4.4"> 289 <section id="njs0.4.4" name="Changes with njs 0.4.4">
16 290
17 <para> 291 <para>
18 Release Date: 292 Release Date: