This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
Closure Library v20200504
New Additions
- goog.module.AbstractModuleLoader extraEdges has been added as an optional parameter to the loadModules method.
- goog.module.AbstractModuleLoader the type of the extraEdges parameter of the loadModules method has been updated to map to a Set
- goog.loader.AbstractModuleManager addExtraEdge and removeExtraEdge methods have been added.
- Whitelist additional ARIA attributes in the HtmlSanitizer.
- Add concat method to iterables library
Backwards Incompatible Changes
- goog.debug.deepFreeze should now be imported with destructuring.
- goog.labs.collections.iterables renamed to goog.labs.collections.iters.
- goog.module.AbstractModuleLoader optional parameters have been merged into a single options bag.
Other Changes
- goog.module.AbstractModuleLoader migrate to ES6 syntax
- Remove an old Safari behaviour workaround in goog.globalEval. This will simplify future Trusted Types integration, as eval(trustedTypes.emptyScript) might be used, and that pattern does not require creating a Trusted Types policy.
- Add optional window object in the call to getScriptNonce.
- Removed references to deprecated parts of the Trusted Types API (
window\.TrustedTypes
andTrustedTypePolicyOptions\.createURL
) - Remove goog.defineClass's support for sealing instances
- Add scripts to package.json for serving the tests and demos locally.
- Defines
Deferred::getLastValueForMigration
. - Move base.js Trusted Types policy creation to the conditional block creating the debug loaders to avoid creating the policy for binaries without the debug loader.
- Use about:blank iframe instead of an iframe with an empty source in goog.async.nextTick. Removed spurious document.write call.
- Remove noop method goog.tagUnsealableClass