This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
Closure Library v20170626
New Additions
- Add TrustedResourceUrl.formatWithParams.
- Add goog.dom.getElementByTagNameAndClass.
- Adds a goog.html.textextractor module to extract textual content from HTML strings.
- Add goog.dom.asserts.
- Add SafeStyleSheet.createRule.
- duration get function added to goog.fx.animation
- Add goog.fx.Dragger#disableSetCapture() to avoid breaking interactive draggable elements on browsers with setCapture().
- Add argument matchers to goog.html.testing.
- Expose new events for the entire dragger clone lifecycle in goog.fx.DragListGroup.
- goog.events.listen(Once) & EventHandler now accept {passive: true} for DOM elements.
Backwards Incompatible Changes
- Remove eval from RichRemoteArrayMatcher.
- Delete goog.json.hybrid.unsafeParse.
- Deleted goog.structs.weak.
Other Changes
- Give subclasses access to goog.ui.ac.Renderer's widthProvider_ field by making it protected.
- Support translate(), scale() and rotate() in SafeStyle.
- "Add exa (E), zetta (Z), and yotta (Y) SI and Binary scale prefixes to goog.format number formatters."
- Enables turning on channel-test as part of the webchannel initial handshake.
- Override goog.ui.Dialog.ButtonSet#clear() to clear default / cancel buttons too.
- Support DOM assertions across frames.
- Fix bug when parsing numbers using NumberFormat.parse().
- Fix bug when parsing dates using DateTimeParse.
- Add Offshore Chinese Yuan (CNH) to the tier 2 Closure currencies.
- Change the channel-test to enabled by default.
- Replace the implicit dependency on G_testRunner with one on TestCase.
- clarify the WebChannel API spec on ERROR and CLOSE event dispatching behavior.
- make WebChannelOptions.backgroundChannelTest default to true.
- Allow multiple functions in SafeStyle values.
- Remove extra stack frames from synchronous test cases.
- Add a unique ID each time a TestCase is initialized.
- Depswriter allows importing multiple dependencies from a module.
- Add goog.iter.es6.ShimIterable to adapt between goog.iter and ES6 iterators.
- Add option uuid to isFinished() to verify that the page has not navigated.
- Fix blocker for w3c IndexedDB API update.
- Add getter to static instance of goog.net.Cookies
- Record time taken by each test function, available in callback.
- turn off channel-test as part of the webchannel initial handshake, by default.
- goog.structs.Map and goog.structs.Set are deprecated.
- Make DragScrollSupport support <body>.
- Support sanitized url() in SafeStyle, take 2.
- PropertyReplacer.replace optionally permits the changing of a value to/from null and undefined.
- goog.fx.Dragger works with touch.
- Make DragScrollSupport support <html>.
- Stop checking whether setTimeout was restored or not after all the tests have finished.