This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
Closure Library v20190325
New Additions
goog.db.Index.getAll
now can takegoog.db.KeyRange
as the param.- Add
SafeHtml.join
. - Add
goog.dom.isInDocument(node)
. - Add support to
KeyboardShortcutHandler
for handlingSyntheticKeyboardEvents
. This allowsKeyboardShortcutHandler
to process events not originating from the browser. goog.dom.findElement
,goog.dom.findElements
- Whitelist additional ARIA attributes in the
HtmlSanitizer
.
Backwards Incompatible Changes
goog.db.ObjectStore::getAll
andgoog.db.ObjectStore::getAllKeys
no longer haveCursor
based fallback implementations.
Other Changes
- Make mousewheel events non-passive when calling
preventDefault
. goog.dom.safe.openInWindow
opens the url in a new tab rather than a new window in IE11 if less than 3 arguments are provided.- Fixed a bug where parsing UTC ISO 8601 date times with
DateTime.fromIsoString
on dates containing a timezone boundary in the local timezone would sometimes be off by an hour. - Allow
SafeUrl
ingoog.labs.net.image.load
. - Pass
ijData
as second parameter ingoog.soy.Renderer
. - Support trusted types in
goog.dom.safe
. - Fixes parsing ISO time strings when system clock is in positive GMT time zones.
EventObserver.getEvents
now acceptsEventId
.- Fix return type annotation for
assertThrows
. - Make
goog.define
return type more specific but slightly less safe. - Allow using Trusted Types in
base.js
. - enforce a default size limit (4KB) for
WebChannel
messages sent as part of the fast handshake, which uses GET to enable QUIC 0-RTT. - Assign value returned from
goog.define
in preparation of removing the global export. - In
RelativeDateTimeFormat
, "this minute" changes to "in 1 minute" and "this hour" changes to "in 1 hour". - Remove dependency on
goog.html.SafeHtml.create
fromgoog.dom.safe.setInnerHtml
.