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

5cf7e9533a457726cd51232e06c1da9a?s=128

Masashi Hirano

October 25, 2019
Tweet

Transcript

  1. 7.

    V8

  2. 9.

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

    • ϝϞϦ࢖༻ྔͷ࡟ݮ • WebAssembly (WASM) ͷC/C++ͷAPIΛެࣜαϙʔτɺWASMͷى ಈ࣌ؒվળ • …etc
  3. 15.

    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. 16.
  5. 28.

    ES Modules • ·ͩϦϦʔεʹؚ·Ε͍ͯͳ͍͕ɺv13ͰೖΓͦ͏ • ES Modules(import / export)͕ϑϥάͳ͠Ͱ࢖͑ΔΑ͏ʹ
 ɾ—experimental-module

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