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

Closure Library v20170806

Compare
Choose a tag to compare
@jplaisted jplaisted released this 11 Aug 21:14

New Additions

  • More audio MIME types supported in data: and blob: URLs created with SafeUrl functions: 3gpp, 3gpp2, mp4, and mpeg.
  • Add goog.debug.errorcontext to support adding arbitrary context key-value pairs to errors. The context is reported in the closure error reporter.
  • Expose the key or mouse event that triggered a Zippy ACTION.
  • Add colindex and rowindex to goog.a11y.aria.Attributes. aria-colindex and aria-rowindex are two properties in aria 1.1 which define and element's position within a table, grid, or treegrid. See https://www\.w3\.org/TR/wai-aria-1\.1/\#aria-rowindex and https://www\.w3\.org/TR/wai-aria-1\.1/\#aria-rowindex for more information.
  • Added support for getAllKeys().
  • Added new median function, goog.testing.PerformanceTimer.median.
  • Support SafeUrl and array in SafeStyle.create.
  • audio/x-m4a in data: and blob: URLs created with SafeUrl functions.
  • Add goog.soy.data.SanitizedCss#toSafeStyleSheet.
  • Audio MIME types supported in data: and blob: URLs.
  • Add legacyconversions.safeScriptFromString.
  • Add goog.soy.data.SanitizedStyle.

Backwards Incompatible Changes

  • goog.debug.Logger no longer uses the long deprecated console.markTimeline()
  • Delete goog.net.jsloader.loadAndVerify. Use safeLoadAndVerify instead.
  • Delete goog.net.jsloader.loadMany (goog.net.jsloader.safeLoadMany is preferred).

Other Changes

  • fixed debug.Console to display INFO logs on Chrome 58+.
  • Initialize the test runner using the local, consistent variable.
  • Use switch-case instead of if-tree for i18n data
  • Fixed goog.style.bidi.getScrollLeft for IOS 10 and later.
  • goog.array.bucket's return type is now more specific.
  • Don't use document.write in unit tests; add the body tag statically.
  • Use goog.json.hybrid.parse in XhrIo.
  • goog.dom.forms supports meter and progress elements.
  • Fix multi-stroke keyboard shortcuts where consecutive strokes are the same firing too soon in Windows non-Firefox browsers.
  • doc-only change
  • Make goog.debug.RelativeTimeProvider a proper singleton so that it can be stripped by the compiler when unused.
  • Fixes Microsoft Edge 15 error "Unable to get property ‘handleEvent’ of undefined or null reference" in browserfeature.js
  • Abort XHR requests when cancelling goog.labs.net.xhr promises.
  • support WebChannelOptions.fastHandshake (enable QUIC 0-RTT).
  • Added jsdoc.