Mercurial > hg > nginx-site
comparison xml/en/docs/njs/changes.xml @ 2991:1f672755959a
njs-0.8.0.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Thu, 06 Jul 2023 18:12:53 +0100 |
parents | b9ba7c498d95 |
children | 0e29ac906426 |
comparison
equal
deleted
inserted
replaced
2990:7e83ebfac8ca | 2991:1f672755959a |
---|---|
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="60" | 12 rev="61" |
13 toc="no"> | 13 toc="no"> |
14 | |
15 <section id="njs0.8.0" name="Changes with njs 0.8.0"> | |
16 | |
17 <para> | |
18 Release Date: | |
19 06 July 2023 | |
20 </para> | |
21 | |
22 <para> | |
23 nginx modules: | |
24 <list type="bullet"> | |
25 | |
26 <listitem> | |
27 <para> | |
28 Change: | |
29 removed special treatment of forbidden headers in | |
30 <link doc="reference.xml" id="ngx_fetch">Fetch API</link> | |
31 introduced in <link id="njs0.7.10">0.7.10</link>. | |
32 </para> | |
33 </listitem> | |
34 | |
35 <listitem> | |
36 <para> | |
37 Change: | |
38 removed deprecated since <link id="njs0.5.0">0.5.0</link> | |
39 <link doc="reference.xml" id="r_request_body"><literal>r.requestBody()</literal></link> | |
40 and | |
41 <link doc="reference.xml" id="r_response_body"><literal>r.responseBody()</literal></link> | |
42 in | |
43 <link doc="../http/ngx_http_js_module.xml"><literal>http</literal></link> | |
44 module. | |
45 </para> | |
46 </listitem> | |
47 | |
48 <listitem> | |
49 <para> | |
50 Change: | |
51 throwing an exception in | |
52 <link doc="reference.xml" id="r_internal_redirect"><literal>r.internalRedirect()</literal></link> | |
53 while filtering in | |
54 <link doc="../http/ngx_http_js_module.xml"><literal>http</literal></link> | |
55 module. | |
56 </para> | |
57 </listitem> | |
58 | |
59 <listitem> | |
60 <para> | |
61 Feature: | |
62 introduced global nginx properties: | |
63 <link doc="reference.xml" id="ngx_build"><literal>ngx.build</literal></link>, | |
64 <link doc="reference.xml" id="ngx_conf_file_path"><literal>ngx.conf_file_path</literal></link>, | |
65 <link doc="reference.xml" id="ngx_error_log_path"><literal>ngx.error_log_path</literal></link>, | |
66 <link doc="reference.xml" id="ngx_prefix"><literal>ngx.prefix</literal></link>, | |
67 <link doc="reference.xml" id="ngx_version"><literal>ngx.version</literal></link>, | |
68 <link doc="reference.xml" id="ngx_version_number"><literal>ngx.version_number</literal></link>, | |
69 and | |
70 <link doc="reference.xml" id="ngx_worker_id"><literal>ngx.worker_id</literal></link>. | |
71 </para> | |
72 </listitem> | |
73 | |
74 <listitem> | |
75 <para> | |
76 Feature: | |
77 introduced the <literal>js_shared_dict_zone</literal> directive for | |
78 <link doc="../http/ngx_http_js_module.xml" id="js_shared_dict_zone">http</link> | |
79 and | |
80 <link doc="../stream/ngx_stream_js_module.xml" id="js_shared_dict_zone">stream</link> | |
81 that allows declaring a dictionary shared between worker processes. | |
82 </para> | |
83 </listitem> | |
84 | |
85 <listitem> | |
86 <para> | |
87 Improvement: | |
88 added compile-time options to disable njs modules. | |
89 For example, to disable libxslt-related code: | |
90 <example> | |
91 NJS_LIBXSLT=NO ./configure .. --add-module=/path/to/njs/module | |
92 </example> | |
93 </para> | |
94 </listitem> | |
95 | |
96 <listitem> | |
97 <para> | |
98 Bugfix: | |
99 fixed | |
100 <link doc="reference.xml" id="r_status"><literal>r.status</literal></link> | |
101 setter when filtering in | |
102 <link doc="../http/ngx_http_js_module.xml"><literal>http</literal></link> | |
103 module. | |
104 </para> | |
105 </listitem> | |
106 | |
107 <listitem> | |
108 <para> | |
109 Bugfix: | |
110 fixed setting of Location header in | |
111 <link doc="../http/ngx_http_js_module.xml"><literal>http</literal></link> | |
112 module. | |
113 </para> | |
114 </listitem> | |
115 | |
116 </list> | |
117 </para> | |
118 | |
119 <para> | |
120 Core: | |
121 <list type="bullet"> | |
122 | |
123 <listitem> | |
124 <para> | |
125 Change: | |
126 native methods are provided with <literal>retval</literal> argument. | |
127 This change breaks compatibility with C extension for njs | |
128 requiring the modification of the code. | |
129 </para> | |
130 </listitem> | |
131 | |
132 <listitem> | |
133 <para> | |
134 Change: | |
135 non-compliant deprecated String methods were removed. | |
136 The following methods were removed: | |
137 <link doc="reference.xml" id="string_bytesfrom"><literal>String.bytesFrom()</literal></link>, | |
138 <link doc="reference.xml" id="string_frombytes"><literal>String.prototype.fromBytes()</literal></link>, | |
139 <link doc="reference.xml" id="string_fromutf8"><literal>String.prototype.fromUTF8()</literal></link>, | |
140 <link doc="reference.xml" id="string_tobytes"><literal>String.prototype.toBytes()</literal></link>, | |
141 <link doc="reference.xml" id="string_toutf8"><literal>String.prototype.toUTF8()</literal></link>, | |
142 <link doc="reference.xml" id="string_toutf8"><literal>String.prototype.toString(<value>encoding</value>)</literal></link>. | |
143 </para> | |
144 </listitem> | |
145 | |
146 <listitem> | |
147 <para> | |
148 Change: | |
149 removed support for building with GNU readline. | |
150 </para> | |
151 </listitem> | |
152 | |
153 <listitem> | |
154 <para> | |
155 Feature: | |
156 added ES13-compliant <literal>Array</literal> methods: | |
157 <literal>Array.from()</literal>, | |
158 <literal>Array.prototype.toSorted()</literal>, | |
159 <literal>Array.prototype.toSpliced()</literal>, | |
160 <literal>Array.prototype.toReversed()</literal>. | |
161 </para> | |
162 </listitem> | |
163 | |
164 <listitem> | |
165 <para> | |
166 Feature: | |
167 added ES13-compliant <literal>TypedArray</literal> methods: | |
168 <literal>%TypedArray%.prototype.toSorted()</literal>, | |
169 <literal>%TypedArray%.prototype.toSpliced()</literal>, | |
170 <literal>%TypedArray%.prototype.toReversed()</literal>. | |
171 </para> | |
172 </listitem> | |
173 | |
174 <listitem> | |
175 <para> | |
176 Feature: | |
177 added | |
178 <link doc="reference.xml" id="cryptokey"><literal>CryptoKey</literal></link> | |
179 properties in | |
180 <link doc="reference.xml" id="builtin_crypto">WebCrypto API</link>. | |
181 The following properties were added: | |
182 <link doc="reference.xml" id="cryptokey_alg"><literal>algorithm</literal></link>, | |
183 <link doc="reference.xml" id="cryptokey_extractable"><literal>extractable</literal></link>, | |
184 <link doc="reference.xml" id="cryptokey_type"><literal>type</literal></link>, | |
185 <link doc="reference.xml" id="cryptokey_usages"><literal>usages</literal></link>. | |
186 </para> | |
187 </listitem> | |
188 | |
189 <listitem> | |
190 <para> | |
191 Bugfix: | |
192 fixed <literal>retval</literal> of | |
193 <link doc="reference.xml" id="crypto_get_random_values"><literal>сrypto.getRandomValues()</literal></link>. | |
194 </para> | |
195 </listitem> | |
196 | |
197 <listitem> | |
198 <para> | |
199 Bugfix: | |
200 fixed evaluation of computed property names with function expressions. | |
201 </para> | |
202 </listitem> | |
203 | |
204 <listitem> | |
205 <para> | |
206 Bugfix: | |
207 fixed implicit name for a function expression declared in arrays. | |
208 </para> | |
209 </listitem> | |
210 | |
211 <listitem> | |
212 <para> | |
213 Bugfix: | |
214 fixed parsing of <literal>for-in</literal> loops. | |
215 </para> | |
216 </listitem> | |
217 | |
218 <listitem> | |
219 <para> | |
220 Bugfix: | |
221 fixed | |
222 <literal>Date.parse()</literal> with ISO-8601 format and UTC time offset. | |
223 </para> | |
224 </listitem> | |
225 | |
226 </list> | |
227 </para> | |
228 | |
229 </section> | |
230 | |
14 | 231 |
15 <section id="njs0.7.12" name="Changes with njs 0.7.12"> | 232 <section id="njs0.7.12" name="Changes with njs 0.7.12"> |
16 | 233 |
17 <para> | 234 <para> |
18 Release Date: | 235 Release Date: |