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

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

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

Masashi Hirano

May 08, 2019

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

32 slides
  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ύοέʔδΛݕূ͍ͯ͠ΔΘ͚Ͱ͸ͳ͍

More Decks by Masashi Hirano

Other Decks in Programming