This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
Closure Library v20180204
New Additions
- Add a fromConstantAndArgs() method to goog.html.SafeScript.
- Adding 'video/quicktime' as an allowed type to goog.html.SafeUrl.fromBlob(...) and goog.html.SafeUrl.fromDataURL(...)
- Added Chromecast OS type to goog.labs.userAgent.platform.
- Added extra check in Disposable.dispose() that, when Disposable.MonitoringMode is on, ensures that all disposables that have been registered to an object (via object.registerDisposable) have been disposed of and that all callbacks (added via object.addOnDisposeCallback) have been called.
Backwards Incompatible Changes
- Backwards compatible change.
- Remove now unused goog.date.fromIsoString() in favor of goog.date.DateTime.fromIsoString().
- goog.html.TrustedResourceUrl.format now disallows the format string starting with "about:blank".
Other Changes
- Fix FetchXmlHttp to not crash when reading headers that haven't been received.
- Deprecate old date formatting methods that don't use CLDR data
- Adding nullability annotations
- CLDR 32 locale data update.
- goog.async.Deferred.fromPromise() now accepts all Thenable types.
- Custom Module Managers can now be specified with goog.loader.activeModuleManager.set()
- Removed goog.labs.structs.Map. We recommend the JavaScript Map class instead: https://developer\.mozilla\.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Map
- Fixed a typo in the comments that the linter flagged. "Overridden" was misspelled.
- Applicable goog.module.ModuleManager methods now enforce on-nullability.
- Added util function for detecting string is html or not.
- goog.labs.structs.Multimap now accepts any type of key, not just a string. This is accomplished using the ES6 Map class, which means Multimap cannot be used on IE8 and below, and will require ES6-to-ES5 transpilation for some browsers.
- remove the newly introduced WebChannel FailureRecovery option (to be implemented later).
- Add test utils that allows function to return value after throw.
- Better documentation for the DateFormat creation
- No-op re-implementation of goog.structs.Map.addAll.
- Work around bug Chrome that causes referrer to be retained when using goog.window.open() with the 'noreferrer' option.
- Change in the way goog.module() files are represented in deps.js files. See https://github\.com/google/closure-compiler/issues/2786 for details
- fixing a bug to avoid starting traces with the ids of the outstanding traces also adding an optional parameter to the stop callback function.
- moving StopTraceDetail definition to goog.debug to avoid JS compiler NTI problems.
- a new WebChannel option to support custom Failure-Recovery algorithms for back-channels. API spec only.