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

Closure Library v20180405

Compare
Choose a tag to compare
@jplaisted jplaisted released this 05 Apr 23:36

Special Note Closure Library was broken on 20180402 and 20180319, which is when there were compiler releases. Thus there is no Closure 20180402 or 20180319. To make up for it we're doing a release with the 20180402 transpiler today (20180405), so there will not be a 20180405 compiler release either. Sorry for any confusion!

New Additions

  • goog.ui.ac.Renderer can now take an optional maxWidthProvider to specify the autocomplete dropdown max width (the existing widthProvider sets the min width).
  • Support goog.userAgent.getNavigatorTyped
  • Add a new goog.bootstrap method for use when loading code through Closure. This method should now be used in place where goog.require was used to bootstrap. As we add ES6 module support bootstrap goog.requires will no longer have the same guarantees they used to. This method is a safe way to determine when the debug loaded application has finished loading.

Backwards Incompatible Changes

  • Delete goog.json.EvalJsonProcessor
  • The "callWithoutLogging" function from goog.testing.asserts has been removed.
  • When TestCase is constructed with setObject (e.g. via testSuite), global object is no longer automatically inspected for test methods.

Other Changes

  • support complete 0-RTT handshake with WebChannel.fastHandshake option.
  • Throw if testSuite() is called twice.
  • Document that assertSameElements uses strict equality
  • Adding an optional timeout to goog.net.tmpnetwork.testGoogleCom.
  • introduced a new WebChannelOption - requestRefreshingThresholds. To be implemented.
  • introduced a new WebChannel options (Options.InternalChannelParams)
  • goog.crypt.byteArrayToHex now accepts an optional separator.
  • Use the latest version of the parse5 node module in generate_closure_unit_tests
  • goog.events.EventType is updated with devicechange event.
  • Improve inter-operability between goog.Promise and $jscomp.PolyfillPromise
  • Document that MockRandom modifies the provided sequence array.
  • fix the goog.dom.safe.setButtonFormAction and goog.dom.safe.setInputFormAction
  • goog.testing.testSuite now takes an optional options parameter with an order attribute that can be used to set the order in which tests are run.
  • Support number formats with symbols that are not from the binary's locale.
  • Regenerate javascript/closure/i18n/charpickerdata.js.
  • Reworked the Closure Debug Loader to allow for clarity and ES6 module support (latter is behind a flag while in development).
  • Fix bug in SliderBase's drag handling while in RTL mode to correctly calculate the new slider value.
  • RespondingChannel can now wait for asynchronous services before sending responses to cross-channel messages.
  • Add integration tests for the debug loader using goog.require.
  • Export the logicmatcher's convenience functions via goog.provide.
  • Introduced a new WebChannel options (Options.xmlHttpFactory)
  • TestCase: Call doError() only with the completed TestCase.Test. Add a new recordError() function to report an error that comes from or is related to a test. This way, the test completion callback will always be called exactly once, even if a single test has multiple related errors (eg, from the test and from tearDown).