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

Closure Library v20160619

Compare
Choose a tag to compare
@blickly blickly released this 21 Jun 22:37

New Additions

  • Add a new JSTD Async wrapper to Closure.
  • Add ability to submit untrusted forms in new windows without leaking opener reference.
  • goog.math.IRect record type added for rect like objects.
  • Add a goog.dom.constHtmlToNode function.
  • added commit/onCommit/ackCommit to goog.net.WebChannel.RuntimeProperties. No implementation and the spec for the commit algorithm can be found at https://github.com/bidiweb/webchannel/blob/master/commit.md Removed setServerFlowControl (no implementation) and updated the semantics of the existing getNonAckedMessageCount.
  • Add goog.dom.TypedTagName and allow using it in goog.dom.createDom and similar.

Backwards Incompatible Changes

  • "this" in the scope of a goog.module is no longer the global "this". use goog.global instead.
  • The @define for disabling debug-loader transpilation has changed from goog.NEVER_TRANSPILE=true to goog.TRANSPILER="".
  • goog.math.Rect now implements goog.math.IRect. Additionally, most methods now accept IRect rather than just goog.math.Rect. This allows operations between things like ClientRect and goog.math.Rect.

Other Changes

  • Fix the .replace metacharacters handling in editor/plugins/removeformatting.js
  • Update the debug loader transpiler.
  • Few performance fixes to goog.html.sanitizer.sanitize.
  • goog.Math.Long.fromNumber returns max/min value for Infinity/-Infinity
  • goog.i18n.currencyCodeMap has been deprecated in favor of goog.i18n.currency.getLocalCurrencyPattern
  • Allow Promises to be resolved with the string '[object Object]'.
  • goog.dom.ConstHtmlToNode now takes varargs constants that will be concatenated.
  • Fix goog.dom.dataset.remove for Safari in strict mode. Different version not using hasOwnProperty.
  • fixes synchronous XHR in FF11
  • Allow target attributes in tags in goog.html.sanitizer.HtmlSanitizer.
  • goog.loadModule is no longer disabled if goog.DEPENDENCIES_ENABLED or goog.ENABLE_DEBUG_LOADER are false.
  • goog.events.EventType is updated with media events.
  • Update closure transpiler with support for destructuring the ...rest parameter.
  • Fix a bug in inOrderTraverse/reverseOrderTraverse when startValue is 0.
  • Fix debug loading regression for local files.