Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Closure Library v20220301

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Mar 17:52

New Additions

  • Add goog.html.trustedtypes.POLICY_NAME as a more specific alternative to goog.TRUSTED_TYPES_POLICY_NAME. (773acea)
  • Adds goog.collections.iters.toArray() (7891002)

Backwards Incompatible Changes

  • goog.string.linkify.linkifyPlainTextAsHtml no longer accepts positional parameters: use the options bag instead. (f809765)
  • Remove goog.defines for enforcing COOP in goog.window and using blank strings when opening blank windows. (ee29cd4)
  • goog.collections.iters functions no longer pass element index to their callbacks. (c9bdc17, b55819d)
  • Make goog.window.openBlank compatible with strict CSP. This change is backwards-incompatible on IE11, where the loading message will no longer be displayed. (c17a287)
  • Remove HAS_W3C_BUTTON, HAS_W3C_EVENT_SUPPORT, SET_KEY_CODE_TO_PREVENT_DEFAULT, HAS_NAVIGATOR_ONLINE_PROPERTY, HAS_HTML5_NETWORK_EVENT_SUPPORT, and HTML5_NETWORK_EVENTS_FIRE_ON_BODY from goog.events.BrowserFeature (617b0ff)
  • goog.collections.iters.forEach parameter type is now Iterator (674f4bd)
  • goog.iter functions now call #next on passed-in iterables/iterators, not nextValueOrThrow. (8e2982c)

Other Changes

  • Make goog.cssom.addCssText obtain nonce from correct document object. (577fd3e)
  • Load the destination of a module loader extra edge if the source of the edge has already been loaded. (72e2957)
  • Delete deprecated goog.net.cookies. (67d06cf)
  • Ensure Closure DOM is compatible with a strict CSP by default. (d97ac0b)