99<article name =" Движок JavaScript"
1010 link =" /ru/docs/njs/engine.html"
1111 lang =" ru"
12- rev =" 1 "
12+ rev =" 2 "
1313 toc =" no" >
1414
1515<section >
@@ -57,27 +57,19 @@ njs — встроенный движок JavaScript,
5757
5858<list type =" bullet" >
5959
60- <listitem >
61- API nginx-модулей:
62- <link doc =" reference.xml" id =" ngx_fetch" ><literal >ngx.fetch()</literal ></link >,
63- <link doc =" reference.xml" id =" dict" ><literal >ngx.shared.dict</literal ></link >.
64- </listitem >
65-
66- <listitem >
67- встроенные модули:
68- <link doc =" reference.xml" id =" njs_api_fs" ><literal >fs</literal ></link >,
69- <link doc =" reference.xml" id =" crypto" ><literal >crypto</literal ></link >,
70- <link doc =" reference.xml" id =" builtin_crypto" ><literal >WebCrypto</literal ></link >,
71- <link doc =" reference.xml" id =" xml" ><literal >xml</literal ></link >.
72- </listitem >
73-
7460<listitem >
7561API njs:
7662<link doc =" reference.xml" id =" njs_dump" ><literal >njs.dump()</literal ></link >,
77- <link doc =" reference.xml" id =" njs_on" ><literal >njs.on</literal ></link >,
63+ <link doc =" reference.xml" id =" njs_on" ><literal >njs.on() </literal ></link >,
7864<literal >console.dump()</literal >.
7965</listitem >
8066
67+ <listitem >
68+ устаревшее API:
69+ <literal >require()</literal >,
70+ вместо необходимо использовать утверждение <literal >import</literal >.
71+ </listitem >
72+
8173<listitem >
8274директива <literal >js_preload_object</literal > для
8375<link doc =" ../http/ngx_http_js_module.xml" id =" js_preload_object" >http</link >
@@ -89,6 +81,93 @@ API njs:
8981
9082</para >
9183
84+ <para >
85+ статус встроенных модулей njs:
86+
87+ <list type =" bullet" >
88+
89+ <listitem >
90+ <link doc =" reference.xml" id =" buffer" ><literal >buffer</literal ></link >:
91+ начиная с <link doc =" changes.xml" id =" njs0.8.6" >0.8.6</link >.
92+ </listitem >
93+
94+ <listitem >
95+ <link doc =" reference.xml" id =" crypto" ><literal >crypto</literal ></link >:
96+ TBD.
97+ </listitem >
98+
99+ <listitem >
100+ <link doc =" reference.xml" id =" njs_api_fs" ><literal >fs</literal ></link >:
101+ начиная с <link doc =" changes.xml" id =" njs0.8.9" >0.8.9</link >.
102+ </listitem >
103+
104+ <listitem >
105+ <link doc =" reference.xml" id =" querystring" ><literal >querystring</literal ></link >:
106+ TBD.
107+ </listitem >
108+
109+ <listitem >
110+ <link doc =" reference.xml" id =" builtin_crypto" ><literal >WebCrypto</literal ></link >:
111+ TBD.
112+ </listitem >
113+
114+ <listitem >
115+ <link doc =" reference.xml" id =" xml" ><literal >xml</literal ></link >:
116+ TBD.
117+ </listitem >
118+
119+ <listitem >
120+ <link doc =" reference.xml" id =" zlib" ><literal >zlib</literal ></link >:
121+ начиная с <link doc =" changes.xml" id =" njs0.8.5" >0.8.5</link >.
122+ </listitem >
123+
124+ </list >
125+
126+ </para >
127+
128+ <para >
129+ статус встроенных объектов njs:
130+
131+ <list type =" bullet" >
132+
133+ <listitem >
134+ <link doc =" reference.xml" id =" process" ><literal >process</literal ></link >:
135+ начиная с <link doc =" changes.xml" id =" njs0.8.8" >0.8.8</link >.
136+ </listitem >
137+
138+ <listitem >
139+ <link doc =" reference.xml" id =" textdecoder" ><literal >TextDecoder</literal ></link >:
140+ TBD.
141+ </listitem >
142+
143+ <listitem >
144+ <link doc =" reference.xml" id =" textencoder" ><literal >TextEncoder</literal ></link >:
145+ TBD.
146+ </listitem >
147+
148+ </list >
149+
150+ </para >
151+
152+ <para >
153+ статус встроенных объектов nginx:
154+
155+ <list type =" bullet" >
156+
157+ <listitem >
158+ <link doc =" reference.xml" id =" ngx_fetch" ><literal >ngx.fetch</literal ></link >:
159+ TBD.
160+ </listitem >
161+
162+ <listitem >
163+ <link doc =" reference.xml" id =" ngx_shared" ><literal >shared dictionary</literal ></link >:
164+ начиная с <link doc =" changes.xml" id =" njs0.8.8" >0.8.8</link >.
165+ </listitem >
166+
167+ </list >
168+
169+ </para >
170+
92171</section >
93172
94173</article >
0 commit comments