📃 May 2018 release notes
Newly available
The following features are newly available:
-
Array iterators:
Arrays are iterable with the
for … ofstatement and enumerable with the methodsentries(),keys(), andvalues(). -
JavaScript modules:
JavaScript modules allow code to be organized into reusable units. Modules use
importto load other modules andexportto declare what is available to import from other modules. In HTML, modules are loaded with<script type="module">.
Widely available
The following features are now widely available:
-
initial:
The
initialkeyword resets any CSS property to its initial value as defined by the specification. For example, theinitialvalue of thedisplayproperty isinline, regardless of the element being styled. Not to be confused withrevert, which resets to the user or browser default style. -
<template>:
The
<template>HTML element holds HTML fragments which you can clone and insert into the document using JavaScript.
New in Chrome
The following features are now available in Chrome:
-
BigInt:
The
BigIntJavaScript type represents integers of any size, including integers too large for the primitiveNumbertype. -
BigInt64Array:
The
BigInt64ArrayandBigUint64Arraytyped arrays represent 64-bit integers, signed and unsigned respectively. -
Customized built-in elements:
Customized built-in elements are HTML elements that extend built-in elements using the
isattribute, to add new behaviors that you define. -
Gyroscope:
The
GyroscopeAPI reads the angular velocity of a device in three dimensions. -
Network Information:
The
navigator.connectionAPI provides information about the network connection a device is using and fires events when the connection type changes. -
Orientation Sensor:
The
AbsoluteOrientationSensorandRelativeOrientationSensorAPIs describe the physical orientation of a device in three-dimensional space, either in relation to the Earth's coordinate system or in relation to the device's own orientation, respectively. - Streams: The streams API creates, composes, and consumes continuously generated data.
- Web authentication: The web authentication API allows you to create public key-based credentials and use them for authentication, such as when signing in. Also known as WebAuthn.
New in Chrome Android
The following features are now available in Chrome Android:
-
BigInt:
The
BigIntJavaScript type represents integers of any size, including integers too large for the primitiveNumbertype. -
BigInt64Array:
The
BigInt64ArrayandBigUint64Arraytyped arrays represent 64-bit integers, signed and unsigned respectively. -
Customized built-in elements:
Customized built-in elements are HTML elements that extend built-in elements using the
isattribute, to add new behaviors that you define. -
Gyroscope:
The
GyroscopeAPI reads the angular velocity of a device in three dimensions. -
Network Information:
The
navigator.connectionAPI provides information about the network connection a device is using and fires events when the connection type changes. -
Orientation Sensor:
The
AbsoluteOrientationSensorandRelativeOrientationSensorAPIs describe the physical orientation of a device in three-dimensional space, either in relation to the Earth's coordinate system or in relation to the device's own orientation, respectively. - Streams: The streams API creates, composes, and consumes continuously generated data.
New in Firefox
The following features are now available in Firefox:
-
Credential management:
The
navigator.credentialsAPI provides generic storage for authentication credentials. Other credential APIs represent specific kinds of credentials, such as password or public key credentials, that the credential management API stores. - Web authentication: The web authentication API allows you to create public key-based credentials and use them for authentication, such as when signing in. Also known as WebAuthn.
New in Firefox for Android
The following features are now available in Firefox for Android:
-
Credential management:
The
navigator.credentialsAPI provides generic storage for authentication credentials. Other credential APIs represent specific kinds of credentials, such as password or public key credentials, that the credential management API stores.