主要的
- 該模組已包含在內
ngx_stream_set_module ,它允許您為變數賦值服務器{
聽12345;
設定 $true 1;
} - 新增指令
proxy_cookie_flags 為代理連線中的 Cookie 指定標誌。 例如,要將“httponly”標誌新增至 Cookie“one”,並為所有其他 Cookie 添加“nosecure”和“samesite=strict”標誌,您可以使用下列結構:proxy_cookie_flags XNUMX httponly;
proxy_cookie_flags ~ nosecure Samesite=strict; - 類似指令
用戶標識標誌 ngx_http_userid 模組也實作了在 Cookie 中新增標誌的功能。
同時
- 增加了對數字中數字的視覺分離的支援(例如“1_000”)。
- 為%TypedArray%.prototype 實作了缺少的方法: every()、filter()、find()、findIndex()、forEach()、includes()、indexOf()、lastIndexOf()、map()、reduce( )、 reduceRight()、reverse()、some()。
- 為 %TypedArray% 實作了缺少的方法:from()、of()。
- 實作了 DataView 物件。
: >> (new DataView(buf.buffer)).getUint16()
:32974 - 實作了 Buffer 物件。
: >> var buf = Buffer.from([0x80,206,177,206,178])
: 不明確的
: >> buf.slice(1).toString()
: 'αβ'
: >> buf.toString('base64')
: 'gM6xzrI=' - 為「crypto」和「fs」方法新增了 Buffer 物件支持,並確保 fs.readFile()、Hash.prototype.digest() 和 Hmac.prototype.digest() 傳回 Buffer 物件的實例。
- TextDecoder.prototype.decode() 方法中加入了 ArrayBuffer 支援。
來源: opennet.ru