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

Closure Library v20170409

Compare
Choose a tag to compare
@joeltine joeltine released this 12 Apr 17:07

New Additions

  • Add goog.json.TRY_NATIVE_JSON.
  • goog.net.MockIFrameIo is deprecated in favor of goog.testing.net.MockIFrameIo
  • Add goog.soy.Renderer#renderStrictOfKind and renderStrictUri.
  • Add goog.async.AnimationDelay#startIfNotActive

Backwards Incompatible Changes

  • goog.db.ObjectStore.remove now accepts either an IDBKeyType or a
  • Fixed Deferred.addFinally to pass correct 'this'.
  • Remove the deprecated goog.debug.exposeException/goog.debug.exposeExceptionAsHtml functions.
  • Fixed the bug: Using goog.html.sanitizer.HtmlSanitizer constructor instead of HtmlSanitizer.Builder prevented the sanitizer from applying some attribute whitelists, allowing for XSS.
  • goog.html.sanitizer.HtmlSanitizer.Builder build() may only be called once. Calling it multiple times left the Builder in an inconsistent state.
  • Require SanitizedHtml templates in renderStrict.
  • Allow specifying error logger for goog.json.TRY_NATIVE_JSON.
  • Refactor goog.dom.AbstractRange (adding an abstract method) to break a circular reference.

Other Changes

  • Optimized goog.i18n.MessageFormat to defer work until first use and to share NumberFormat instances.
  • goog.events.EventType is updated with Media Source Extensions events.
  • In goog.db.ObjectStore.add/put, pass the key to the resolved Deferred on success.
  • Move goog.debug.exposeException/exposeExceptionHtml to goog.debug.HtmlFormatter
  • Fix goog.style types to prepare for adding correct type for Element.prototype.currentStyle in externs
  • Add ArrayBufferView as a permitted type for xhr.PostData.
  • Fix a rare debug loader bug in IE<=9.
  • improve error reporting of uncaught exceptions for unit tests.
  • Deprecated goog.string.isEmpty/goog.string.isEmptySafe
  • Document that goog.net.XhrIo.getResponseJson throws Error if response is not JSON.
  • new API ("backgroundChannelTest" option in WebChannel)
  • Fix goog.array.concat to work in a certain version of Rhino with Array.prototype polyfills.
  • The removeformatting plugin no longer captures a keyboard shortcut when the shift key is pressed.
  • new API spec, WebChannel client-side flow-control via notifyNonAckedMessageCount().
  • Fix types related to Document.defaultView for upcoming change in externs.
  • Adds iOS Chrome to goog.userAgent.
  • split goog.testing.JsUnitException into its own file.
  • Remove under utilized goog.ui.ColorButton, goog.ui.ColorButtonRenderer, goog.ui.ColorSplitBehavior, and goog.ui.SplitBehavior
  • Fix parsing empty cookies in IE/Edge
  • goog.events.EventType is updated with beforeinput event.
  • goog.i18n.currency.isAvailable(currencyCode) has been added to test if a currency is available.
  • Stop deleting "this.logger" during dispose in AbstractChannel
  • Add anyNumber(), anyString(), and anyObject() matchers to goog.labs.testing.
  • Deprecates goog.math.IsFiniteNumber in favor of isFinite
  • TestCase report can now say "[NO TESTS RUN]" in addition to pass and fail.
  • Only set aria-expanded on BaseNodes with children. The aria-expanded state will be added on addition of the first child (and removed on removal of the last child).
  • Stop using obsolete IDBDatabaseException type annotation.
  • Stack traces in test output changed slightly.
  • corrected the return type of goog.a11y.aria.Role
  • Replace deprecated references to goog.math.isFiniteNumber() in the library with isFinite().
  • Fixes the XhrIo testing library to more closely emulate the actual behavior of Xhrio.