Skip to content

Instantly share code, notes, and snippets.

@hugosenari
Last active August 24, 2020 21:06
Show Gist options
  • Save hugosenari/25cc8ed84148b7bb41a26caa86adcd52 to your computer and use it in GitHub Desktop.
Save hugosenari/25cc8ed84148b7bb41a26caa86adcd52 to your computer and use it in GitHub Desktop.
Node 8 to 12 features

Versions:

  • node 8 (engine V8 5.9)
  • node 10 (engine V8 6.6)
  • node 12 (engine V8 7.4)
  • node 14 (engine V8 8.4)

V8 6.0:

  • SharedArrayBuffer
  • Object rest/spread properties

V8 6.2:

  • Support for the dotAll mode (regexp)
  • Lookbehind assertions (regexp)
  • Template literal revision (no restriction on escape sequences)
  • Increased max string length (from 2^28 - 16 to 2^30 - 25)

V8 6.3:

  • dynamic module import via import()
  • Promise.prototype.finally
  • async iterators/generators.
  • Intl.PluralRules

V8 6.4:

  • named capture groups (regexp)
  • import.meta
  • Intl.NumberFormat.prototype.formatToParts

V8 6.6: (Node 10)

  • Function.prototype.toString
  • Line separator (U+2028) and paragraph separator (U+2029) (String)
  • String.prototype.trimStart() and String.prototype.trimEnd()
  • Optional catch binding
  • Array.prototype.values

V8 6.7:

  • BigInt

V8 6.9:

  • Array.prototype.flat and Array.prototype.flatMap
  • Symbol description accessor

V8 7.1:

  • The Intl.RelativeTimeFormat API
  • The globalThis

V8 7.2:

  • public class fields
  • Intl.ListFormat
  • Well-formed JSON.stringify
  • Module namespace exports

V8 7.3:

  • Object.fromEntries
  • String.prototype.matchAll
  • Atomics.notify

V8 7.4: (Node 12)

  • Private class fields
  • Intl.Locale
  • Hashbang grammar (#!)

V8 7.6:

  • Promise.allSettled

V8 v7.7:

  • The Intl.NumberFormat API

V8 v7.8

  • WebAssembly C/C++ API

V8 v8.0

  • Optional chaining
  • Nullish coalescing

V8 v8.1 (node 14.0)

  • Intl.DisplayNames

V8 v8.4 (node 14.6)

  • Weak references and finalizers
  • Private methods and accessors

V8 v8.5

  • Promise.any
  • AggregateError
  • String.prototype.replaceAll
  • Logical assignment operators
@hugosenari
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment