This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
Closure Library v20170910
New Additions
- Support arrays in goog.html.TrustedResourceUrl.formatWithParams.
- Whitelist additional ARIA attributes in the HtmlSanitizer.
- Added binaryType support to goog.net.WebSocket.
- goog.dom.uri.normalizeUri which uses a DOM anchor element to normalize a URI.
- Add goog.debug.freeze() which freezes its argument, but only in debug mode.
- Add basic support for pointer event types.
- Add toTrustedResourceUrl to Soy.
Backwards Incompatible Changes
- goog.dom.dataset now only accepts valid dataset property names.
- Re-add goog.dom.uri.normalizeUri.
- Delete deprecated goog.json.unsafeParse. Use JSON.parse instead.
- Delete deprecated goog.net.jsloader.load. Use .safeLoad instead, take 2.
- Delete deprecated goog.style.setStyles. Use setSafeStyleSheet.
- goog.object.getValueByKeys is now null-safe, returning undefined when it encounters a null along the path, whereas previously it would throw a TypeError exception. If the final value is null, the function will continue to return null.
- Use https in media URLs.
- Allow text/csv in data: SafeUrls.
- Require TrustedResourceUrl in goog.editor.Field#makeEditable.
- Deleted string HTML versions of goog.ui.editor.messages messages. Use SafeHtml getters instead.
- Delete deprecated goog.style.installStyles. Use installSafeStyleSheet instead.
Other Changes
- Fixed a bug in goog.getObjectByName where invalid paths could return incorrect values.
- Cleaning up files to suppress closure warnings.
- Make it clear that tickPromise does not work with native browser promises.
- Rolling back API.
- Fixed negative numbers being prefixed with unlocalized minus sign.
- Clarify the webchannel 0-RTT send() behavior.
- Add Unicode 10 support to goog.i18n.GraphemeBreak.
- Allows compiler to enforce that only constructors implementing the goog.events.Listenable interface be marked as implementing said interface.
- Make SafeHtmlFormatter work with DETECT_DOUBLE_ESCAPING.
- Report correct value for goog.events.BrowserFeature.TOUCH_ENABLED in Microsoft Edge 15 browser.
- new API: goog.net.WebChannel.RuntimeProperties.getPendingRequestCount()
- Fixed goog.style.bidi.setScrollLeft for Safari 10 and later.
- Fixes issue where fullscreenchange events weren't being captured in Edge because the string for the event was 'fullscreenchange' when it should be 'webkitfullscreenchange'
- Add convenience method to goog.debug that allows for adding context to an error object and simultaneously converting the object to an Error.
- fixed the WebChannel message delivery latency from chrome/firefox background tabs.
- Allow goog.json.hybrid.parse('null').
- Deprecate goog.json.parse. Use JSON.parse.