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

Node.js v12の気になる変更点 / #kng6

Node.js v12の気になる変更点 / #kng6

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

Masashi Hirano

May 08, 2019
Tweet

More Decks by Masashi Hirano

Other Decks in Programming

Transcript

  1. ฏ໺ ণ࢜ / Masashi Hirano ɹɹɹɹ Kyoto office @shisama_ @shisama

    Node.js Core Collaborator ؔ੢NodeֶԂOrganizer
  2. Array#{flat,flatMap} var arr1 = [1, 2, [3, 4]]; arr1.flat(); //

    [1, 2, 3, 4] arr1.flatMap(x => [x * 2]); // [2, 4, 6, 8]
  3. Private Class Field class Counter { #count = 0; get

    value() { return this.#count; } increment() { this.#count++; } } const counter = new Counter(); counter.increment(); counter.#counter; // Error counter.value; // OK QSJWBUFʹ͍ͨ͠ϑΟʔϧυʹ͸Λ͚ͭΔ
  4. Node.js v12ͰյΕΔύοέʔδ͕͋Δ • uglify-js΍bcryptͳͲ༗໊ͳͱ͜Ζ͕ର৅ • طʹରԠࡁͷ΋ͷ΋͋Δ • CITGMͱ͍͏Node.js CoreͷCIδϣϒͰᖰΓग़͍ͯ͠Δ •

    Α͘࢖ΘΕΔύοέʔδͷςετ͕௨Δ͔ݕূ • https://github.com/nodejs/citgm • ੈͷதͷશͯͷnpmύοέʔδΛݕূ͍ͯ͠ΔΘ͚Ͱ͸ͳ͍