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

Closure Library v20170218

Compare
Choose a tag to compare
@shicks shicks released this 24 Feb 00:12

New Additions

  • SanitizedContent.prototype.toSafeUrl().
  • Add SafeUrl.fromTrustedResourceUrl, take 2.
  • Add goog.editor.Field#setSafeHtml and deprecate setHtml, take 2.
  • Enhance MockIframeIo to simulate response text, and make active state bit and last URI actually work.
  • New API documentation (goog.net.WebChannel.ErrorStatus)

Backwards Incompatible Changes

  • Ignore prototype members in goog.exportPath_.
  • Where findDifferences did not detect differences between two un-equal Maps or Sets, it will now find them, meaning that assertObjectEquals will fail on un-equal Maps and Sets where it used to pass.

Other Changes

  • Extended comments on AbstractDialogPlugin.
  • Workaround Safari 10 ES6 scoping bugs when loading goog.modules.
  • goog.i18n.DateIntervalFormat API has been added to format date intervals in a locale-sensitive manner.
  • goog.events.EventType is updated with devicemotion event.
  • Prefer script['nonce'] over script.getAttribute('nonce') because of a change in Chrome.
  • new API (webchannel option: httpHeadersOverwriteParam)
  • keyboardshortcuthandler now uses KeyboardEvent.key if available
  • Added support for returning promises from setUpPage in test. Added support for returning promises from the test environment's setUp and setUpPage methods.
  • closurebuilder.py now handles non-ASCII goog.module identifiers.
  • Set the aria label attribute for each date cell in the Closure date picker so that screen readers vocalize the current date when changing the selected date via the keyboard ("1/2", "1/3", etc). Aria hide and disable tabbing to the previous and next month (<< and >>) buttons in simple navigation mode, because pressing enter while they are focused closes the picker instead of switching months (also changing months doesn't announce the new month).
  • Update the TEXTINPUT event name to be 'textinput' instead of 'textInput' for IE, as IE does not fire event listeners for the camel-cased version.
  • stop sealing functions directly assigned to goog.module exports values.
  • new API added (goog.net.rpc.httpcors)
  • Fixed documentation for matchUserAgent and matchUserAgentIgnoreCase.
  • new API ("initMessageHeaders" option in WebChannel)