Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Closure Library v20190325

Compare
Choose a tag to compare
@tjgq tjgq released this 27 Mar 22:17

New Additions

  • goog.db.Index.getAll now can take goog.db.KeyRange as the param.
  • Add SafeHtml.join.
  • Add goog.dom.isInDocument(node).
  • Add support to KeyboardShortcutHandler for handling SyntheticKeyboardEvents. This allows KeyboardShortcutHandler 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 and goog.db.ObjectStore::getAllKeys no longer have Cursor 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 in goog.labs.net.image.load.
  • Pass ijData as second parameter in goog.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 accepts EventId.
  • 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 from goog.dom.safe.setInnerHtml.