Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Node.js v13の気になる変更点 / #kng8

Node.js v13の気になる変更点 / #kng8

関西Node学園 8時限目でNode.js v13の変更点について話しました。
https://nodejs.connpass.com/event/147459/

# Topic
- V8 7.8
- full-icu is default (full support i18n)
- http_parser (legacy HTTP Parser) is removed
- remove http, http2 default server timeout
- ES Modules without flag

Masashi Hirano

October 25, 2019
Tweet

More Decks by Masashi Hirano

Other Decks in Programming

Transcript

  1. V8

  2. V8 7.8 • Objectͷ෼ׂ୅ೖ (`const {id, name} = user;`)ͳͲͷύϑΥʔϚϯεվ ળ

    • ϝϞϦ࢖༻ྔͷ࡟ݮ • WebAssembly (WASM) ͷC/C++ͷAPIΛެࣜαϙʔτɺWASMͷى ಈ࣌ؒվળ • …etc
  3. Intl.DateTimeFormatͷεϖΠϯޠͰͷྫ const january = new Date(9e8); const spanish = new

    Intl.DateTimeFormat('es', { month: 'long' }); console.log(spanish.format(january)); // 'M01' v12 // 'enero` v13 WҎલ TNBMMJDV Ͱ͸`.`ɺ WҎ߱ GVMMJDV Ͱ͸`FOFSP`
  4. ES Modules • ·ͩϦϦʔεʹؚ·Ε͍ͯͳ͍͕ɺv13ͰೖΓͦ͏ • ES Modules(import / export)͕ϑϥάͳ͠Ͱ࢖͑ΔΑ͏ʹ
 ɾ—experimental-module

    ͕ඞཁͩͬͨ • v12ʹ΋ϚΠφʔόʔδϣϯͷߋ৽ͰόοΫϙʔτ͢Δ͔΋
 ɾ12݄͕3݄ࠒʹ͸v12Ͱ΋ϑϥάͳ͠Ͱ࢖͑Δ͔΋