This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
Closure Library v20200517
New Additions
goog.module.AbstractModuleLoader
extraEdges
has been added as an optional parameter to the loadModules method.- Added
goog.html.SafeUrl.revokeObjectUrl
.
Backwards Incompatible Changes
- Disallow old templates signatures.
- Remove noop method goog.tagUnsealableClass
- goog.isArray now calls Array.isArray
Other Changes
- Update data formatting with ICU67.
- Now handles negative patterns for compact numbers.
- Workaround for https://crbug\.com/1081632\. In workers without a Secure Context (https://www\.w3\.org/TR/secure-contexts/\)
self\.trustedHTML
is defined, but has no properties. Unwrapping goog.html.SafeHtml.EMPTY_HTML in such realms caused errors. - Add callback in URI package to detect usage that is better supported by the new URL package.
- Use Array.isArray instead of goog.typeOf in more places.
- Add URL package to Closure Library.
- Create goog.html Trusted Types policy lazily.
- goog.result.DeferredAdaptor has been removed.
- Update data to ICU 67 / CLDR 37. No API changes.
- goog.html.SafeHtml and goog.html.SafeScript static properties can now be compiled out if they are not used, even when goog.TRUSTED_TYPES_POLICY_NAME is set.
- In autocomplete demos, use JSON data instead of JS data.
- Remove forwardDeclares from Closure dom by adding an abstraction for SavedRanges that use Carets (AbstractSavedCaretRange) and stopping the various Range implementations from directly using goog.dom.Range constructors for new sub-ranges.