Node.js 12.0.0 发布,服务器端的 JavaScript 运行环境

栏目: 软件资讯 · 发布时间: 5年前

内容简介:Node.js 最新版本 v12.0.0 已发布,这是非 LTS 版本,不过带来了比较大的改动,包括针对断言、http、模块和进程等功能的改动。 值得关注的变更: assert: validate required arguments (Ruben Bridgewater) #266...

Node.js 最新版本 v12.0.0 已发布,这是非 LTS 版本,不过带来了比较大的改动,包括针对断言、http、模块和进程等功能的改动。

值得关注的变更:

  • assert:
    • validate required arguments (Ruben Bridgewater) #26641
    • adjust loose assertions (Ruben Bridgewater) #25008
  • async_hooks:
    • remove deprecated emitBefore and emitAfter (Matteo Collina) #26530
    • remove promise object from resource (Andreas Madsen) #23443
  • bootstrap: make Buffer and process non-enumerable (Ruben Bridgewater) #24874
  • buffer:
    • use stricter range checks (Ruben Bridgewater) #27045
    • harden SlowBuffer creation (ZYSzys) #26272
    • harden validation of buffer allocation size (ZYSzys) #26162
    • do proper error propagation in addon methods (Anna Henningsen) #23939
  • http:
    • validate timeout in ClientRequest() (cjihrig) #26214
    • return HTTP 431 on HPE_HEADER_OVERFLOW error (Albert Still) #25605
    • switch default parser to llhttp (Anna Henningsen) #24870
    • Runtime-deprecate outgoingMessage._headers and outgoingMessage._headerNames (Morgan Roderick) #24167
  • module:
    • remove unintended access to deps/ (Anna Henningsen) #25138
    • improve error message for MODULE_NOT_FOUND (Ali Ijaz Sheikh) #25690
    • requireStack property for MODULE_NOT_FOUND (Ali Ijaz Sheikh) #25690
    • remove dead code (Ruben Bridgewater) #26983
    • make require('.') never resolve outside the current directory (Ruben Bridgewater) #26973
    • throw an error for invalid package.json main entries (Ruben Bridgewater) #26823
    • don't search in require.resolve.paths (cjihrig) #23683
  • process:
    • make global.process, global.Buffer getters (Guy Bedford) #26882
    • move DEP0062 (node --debug) to end-of-life (Joyee Cheung) #25828
    • exit on --debug and --debug-brk after option parsing (Joyee Cheung) #25828
    • improve --redirect-warnings handling (Ruben Bridgewater) #24965

下载地址:https://nodejs.org/en/download/current/


以上所述就是小编给大家介绍的《Node.js 12.0.0 发布,服务器端的 JavaScript 运行环境》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Building Social Web Applications

Building Social Web Applications

Gavin Bell / O'Reilly Media / 2009-10-1 / USD 34.99

Building a social web application that attracts and retains regular visitors, and gets them to interact, isn't easy to do. This book walks you through the tough questions you'll face if you're to crea......一起来看看 《Building Social Web Applications》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具