Mercurial > hg > nginx-site
comparison xml/en/docs/njs/njs_changes.xml @ 2237:5268c13196f2
Documented njs changes triggered by njs-0.2.4.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Thu, 13 Sep 2018 21:10:42 +0300 |
parents | 821807549005 |
children |
comparison
equal
deleted
inserted
replaced
2236:9f0f4f5c1a30 | 2237:5268c13196f2 |
---|---|
7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> | 7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> |
8 | 8 |
9 <article name="njs Changes" | 9 <article name="njs Changes" |
10 link="/en/docs/njs/njs_changes.html" | 10 link="/en/docs/njs/njs_changes.html" |
11 lang="en" | 11 lang="en" |
12 rev="6" | 12 rev="7" |
13 toc="no"> | 13 toc="no"> |
14 | |
15 <section id="njs0.2.4" name="Changes with 0.2.4"> | |
16 | |
17 <para> | |
18 Release Date: | |
19 18 September 2018 | |
20 </para> | |
21 | |
22 <para> | |
23 nginx modules: | |
24 <list type="bullet"> | |
25 | |
26 <listitem> | |
27 <para> | |
28 Change: | |
29 stream module handlers refactored. | |
30 </para> | |
31 | |
32 <para> | |
33 New methods and properties: | |
34 <link doc="njs_api.xml" id="s_on">s.on()</link>, | |
35 <link doc="njs_api.xml" id="s_off">s.off()</link>, | |
36 <link doc="njs_api.xml" id="s_allow">s.allow()</link>, | |
37 <link doc="njs_api.xml" id="s_done">s.done()</link>, | |
38 <link doc="njs_api.xml" id="s_decline">s.decline()</link>, | |
39 <link doc="njs_api.xml" id="s_deny">s.deny()</link>. | |
40 </para> | |
41 | |
42 <para> | |
43 Removed properties of the | |
44 <link doc="njs_api.xml" id="stream">Stream</link> object: | |
45 <literal>s.OK</literal>, | |
46 <literal>s.ABORT</literal>, | |
47 <literal>s.AGAIN</literal>, | |
48 <literal>s.DECLINED</literal>, | |
49 <literal>s.ERROR</literal> | |
50 (replaced with | |
51 <link doc="njs_api.xml" id="s_allow">s.allow()</link>, | |
52 <link doc="njs_api.xml" id="s_done">s.done()</link>, | |
53 <link doc="njs_api.xml" id="s_deny">s.deny()</link>). | |
54 </para> | |
55 | |
56 <para> | |
57 <literal>s.buffer</literal> | |
58 (for reading replaced with data argument of | |
59 the corresponding callback, for writing use | |
60 <link doc="njs_api.xml" id="s_send">s.send()</link>). | |
61 </para> | |
62 | |
63 <para> | |
64 <literal>s.fromUpstream</literal> | |
65 (replaced with a callback for a corresponding event). | |
66 </para> | |
67 | |
68 <para> | |
69 <literal>s.eof</literal> | |
70 (replaced with <literal></literal> | |
71 <link doc="njs_api.xml" id="s_on_callback_last">flags.last</link>). | |
72 </para> | |
73 | |
74 </listitem> | |
75 | |
76 </list> | |
77 </para> | |
78 | |
79 <para> | |
80 Core: | |
81 <list type="bullet"> | |
82 | |
83 <listitem> | |
84 <para> | |
85 Feature: | |
86 added <literal>Function.prototype.length</literal>. | |
87 </para> | |
88 </listitem> | |
89 | |
90 <listitem> | |
91 <para> | |
92 Feature: | |
93 introduced sandboxing mode. | |
94 </para> | |
95 </listitem> | |
96 | |
97 <listitem> | |
98 <para> | |
99 Improvement: | |
100 added exception strings where appropriate. | |
101 </para> | |
102 </listitem> | |
103 | |
104 <listitem> | |
105 <para> | |
106 Improvement: | |
107 improved wording for primitive type conversion exception. | |
108 </para> | |
109 </listitem> | |
110 | |
111 <listitem> | |
112 <para> | |
113 Bugfix: | |
114 throwing <literal>TypeError</literal> | |
115 for attempts to change frozen properties. | |
116 </para> | |
117 </listitem> | |
118 | |
119 <listitem> | |
120 <para> | |
121 Bugfix: | |
122 fixed <literal>Object.defineProperty()</literal> for existing properties. | |
123 </para> | |
124 </listitem> | |
125 | |
126 <listitem> | |
127 <para> | |
128 Bugfix: | |
129 respecting the enumerable attribute while iterating by for in. | |
130 </para> | |
131 </listitem> | |
132 | |
133 <listitem> | |
134 <para> | |
135 Bugfix: | |
136 respecting writable attribute for property handlers. | |
137 </para> | |
138 </listitem> | |
139 | |
140 <listitem> | |
141 <para> | |
142 Bugfix: | |
143 fixed exception handling in arguments of a function. | |
144 </para> | |
145 </listitem> | |
146 | |
147 <listitem> | |
148 <para> | |
149 Bugfix: | |
150 fixed <literal>Object.prototype.toString</literal> for different value types. | |
151 </para> | |
152 </listitem> | |
153 | |
154 <listitem> | |
155 <para> | |
156 Bugfix: | |
157 fixed <literal>Object()</literal> constructor for object types arguments. | |
158 </para> | |
159 </listitem> | |
160 | |
161 <listitem> | |
162 <para> | |
163 Bugfix: | |
164 fixed comparison of objects and strings. | |
165 </para> | |
166 </listitem> | |
167 | |
168 <listitem> | |
169 <para> | |
170 Bugfix: | |
171 fixed <literal>String.slice()</literal> for undefined arguments. | |
172 </para> | |
173 </listitem> | |
174 | |
175 <listitem> | |
176 <para> | |
177 Bugfix: | |
178 miscellaneous additional bugs have been fixed. | |
179 </para> | |
180 </listitem> | |
181 | |
182 </list> | |
183 </para> | |
184 | |
185 </section> | |
186 | |
14 | 187 |
15 <section id="njs0.2.3" name="Changes with 0.2.3"> | 188 <section id="njs0.2.3" name="Changes with 0.2.3"> |
16 | 189 |
17 <para> | 190 <para> |
18 Release Date: | 191 Release Date: |