v20220301
版本发布时间: 2022-03-18 01:52:28
google/closure-library最新发布版本:v20230802(2023-08-11 01:43:27)
New Additions
- Add
goog.html.trustedtypes.POLICY_NAME
as a more specific alternative togoog.TRUSTED_TYPES_POLICY_NAME
. (773acea1e20c2bed03208563f9fe67250cb0c57e) - Adds
goog.collections.iters.toArray()
(7891002a76b5022e0d85e00c7ab4a8d0c64e146b)
Backwards Incompatible Changes
-
goog.string.linkify.linkifyPlainTextAsHtml
no longer accepts positional parameters: use the options bag instead. (f809765544b047b6682199f1c3b31eb7ab0548c2) - Remove
goog.define
s for enforcing COOP ingoog.window
and using blank strings when opening blank windows. (ee29cd491869d2d664f8969467b287de3a97dfde) -
goog.collections.iters
functions no longer pass element index to their callbacks. (c9bdc173e35c1a67189a7c40d23a1c2d97b07903, b55819dc727d0770db00cede0738bfb9fa378256) - Make
goog.window.openBlank
compatible with strict CSP. This change is backwards-incompatible on IE11, where the loading message will no longer be displayed. (c17a287c40027c7d72a260e1c787bfb6ac143773) - Remove
HAS_W3C_BUTTON, HAS_W3C_EVENT_SUPPORT
,SET_KEY_CODE_TO_PREVENT_DEFAULT
,HAS_NAVIGATOR_ONLINE_PROPERTY
,HAS_HTML5_NETWORK_EVENT_SUPPORT
, andHTML5_NETWORK_EVENTS_FIRE_ON_BODY
fromgoog.events.BrowserFeature
(617b0ff74db4458d9dd42d62427e7bc7b001962f) -
goog.collections.iters.forEach
parameter type is nowIterator
(674f4bd2d5b52895d5dfdf06c381056c39d855c8) -
goog.iter
functions now call#next
on passed-in iterables/iterators, notnextValueOrThrow
. (8e2982c4606cf8e7da6f9db2edbca29915cd5d07)
Other Changes
- Make
goog.cssom.addCssText
obtain nonce from correct document object. (577fd3e8485768f6112ea6b02da9dac457f33954) - Load the destination of a module loader extra edge if the source of the edge has already been loaded. (72e2957d18223120dcc61a586900da4af678f97d)
- Delete deprecated
goog.net.cookies
. (67d06cf7b73c3e228916218c12a500c7c930c880) - Ensure Closure DOM is compatible with a strict CSP by default. (d97ac0b6bfd7ef2f2a23eaadb45894d5f6e95b04)