v20210106
版本发布时间: 2021-01-16 07:22:06
google/closure-library最新发布版本:v20230802(2023-08-11 01:43:27)
New Additions
- Add goog.dom.Attr.ROLE (513c25454cfecc3ea2109ed8590c768f930fce09)
- goog.debug.*Formatter have been moved into goog.debug.formatter. The older namespaces still exist temporarily for compatability reasons, but will be deleted shortly. (437fd96838c26e7ede717da1a7ca3499a04b4b5d)
Backwards Incompatible Changes
- WorkerGlobalScope may no longer be passed to FetchXmlHttpFactory constructor without an options object. (94f94f7127474cce42a64e7bfdbce2cc19fb4db1)
- Deleted goog.locale.genericFontNames API. (e91c2e71d6ee9b34ad693ed21f61816bbbaf2b0d)
- XhrLike.prototype.getResponseHeader now returns a nullable string, per the spec. (1497e55647577e7ea66f8d656de3dd45684347c8)
- goog.async.WorkItem is no longer provided by workqueue.js. (5c46105b0a1c575677dc8506a2c4d756386bc6d3)
- Remove goog.debug.FpsDisplay which is obsolete with DevTools instrumentation. (90b2b149d4dbe026db3c1af7eaf682bf3d3a7915)
- Removed goog.debug.ErrorHandler#setAddTracersToProtectedFunctions (3a21a38c6f16be529e1b33d1e6a885f07776f1bc)
Other Changes
- Updating Closure with data from ICU 68 / CLDR 38 (fe6132b4117ede79157c85d0c8ae4486b775cd84)
- Allow "defer" attribute to be set on script elements (9256256934f94077a99877a10c835ea217d544f7)
- Soy templates can now be rendered to a ShadowRoot. (97eb5d995c6260ae89689a30e689d63843b32e05)
- Deprecate almost all of goog.debug.(Logger|LogManager|LogRecord|Loggable). (d336feb1f031cf289b6401444d5c466d50ec9116)
- Make getAllLoggers actually return a list of goog.log.Loggers. (b7c7b427aac662eaab21ac472cd3300fe11b6ebb)
- Update macOS user agent regex to match macOS Big Sur versions. (f4ae8e19af0ec8c4b1a7fc29c5dbe169afcafefd)
- Add missing type annotations in override methods in base.js (8c140125d11ea7ffcb08490029c285b1ff7990d7)
- Fix all ArrayBuffer objects appearing to be equal when passed to assertObjectEquals. (44af52b0ffc4b7a79078ef90eb0ccb775d53e6a2)
- Add goog.soy.data.SanitizedJs.toSafeScript (916cdebf942606e1c516c52c25f12a0cbad99bb8)
- Underused method goog.tweak.overrideDefaultValue has been removed. (be909f2fab9441aaef750cb467cdfcdda04607a3)
- Fix overflow issues in Vec2's magnitude functions. (3ad4e1071191a4891b5da0438a77dae60fb7d370)
- Provide a fix to correct the initial position of the dragged element when its size is smaller than the original element. This can be controlled via the compiler flag
goog\.fx\.DragListGroup\.DRAGLISTGROUP\_CORRECT\_POSITION\_DRAG\_START
as well as the override methodoverrideCorrectDraggedElementInitialPos
. By default this behavior is not enabled. (09013c70d3d5b33b0f50b9fae434e6d6b75131e1) - Remove stale TODOs (93760cea2528b53df0f933705a28bd9a5d1da33f)
- SafeScript.toString is a value unwrapper. (4f5062c82cf9045a6bb52ac4e08fa6c69c34e2d7)
- SafeStyleSheet.toString is a value unwrapper. (180ee10905ede56d0087c4ad588292d5959f4447)
- SafeStyle.toString is a value unwrapper. (4152909c70ea9a30af0f909c5a29b7389538bb2d)
- SafeUrl.toString is a value unwrapper. (d328d8ef1a23bc0f82bed5891c9da6bc4aad1335)
- Internal change (4e91fed9b0af1aeb6b9d7a71bc4db872d929b904, ca802374a4d781635e5bc6aab1885ab8e473ac14)
- Move TableRow and TableCell to separate single-provide files. (1c1af22f8ce7eda1adb419ee036ed5970035ad21)
- SafeHtml.toString is a value unwrapper. (4acf7d6d791b66b0a926668cbefc66c31e1eaf9c)
- Move goog.events.EventLike to a single-provide file. (ca20e8a39e584ffe80ecb09d0106325cbd9bda20)
- Move goog.events.ListenableKey to a single-provide file. (290c369a10892d8dacd4058c80f67c345ade1182)
- Use basic for-loop instead of for-of loop to iterate through true types. (65a05182279757fe7db03966089d893c1a8f026d)
- Make pre-Chromium Edge follow the same load order as IE. (ae85a9f81ecd91206384a5a68277717ffc8e91ec)
- Move HTMLSanitizer allowlists to modules. (43629543707ccbe4510cf95c1fd60b41ee62b7f1)
- Defines TrustedResourceUrl.toString outside of goog.DEBUG. (caf92b3a05d91a3eb7c08f2c080b5005bdb76207)
- Defines SafeUrl.toString outside of goog.DEBUG. (efd77204662ed6ca96c0724d32017a5987aaf92f)
- Defines SafeStyleSheet.toString outside of goog.DEBUG. (79079e05c6c84a608a6389380e1ea042108447ab)
- Defines SafeStyle.toString outside of goog.DEBUG. (be71af6e67d2efb78a140169af4a492a6df04be5)
- Defines SafeScript.toString outside of goog.DEBUG. (8ed35e178e78b5d0710439f474e57dd80ec1d0a6)
- Update Closure Editor Field unit tests to pass on Firefox v83. Update the logic for detecting Firefox's BR tag that it uses for empty line padding - see https://bugzilla.mozilla.org/show_bug.cgi?id=1569902 for more information. (5daeface23e7ee32940067dfa78d6a375ae629d3)
- Move goog.ui.KeyboardShortcutEvent to a single-provide file. (f1dfb9ece5cd9acb2497cbeda3ed8f7684be2708)
- Closure HTML Sanitizer namespace is now provided as 'goog.html.sanitizer', adjust CssSanitizer not to store a private property in another file's namespace. (ff5bc5cbd6c142a3f70162ad496f1350f64205ba)
- Stop recording a goog.debug.Tracer from goog.module.ModuleManager (e25b1975b3eec0f5f2e1f882f9eb6a426969410d)
- Fix for bug impeding vertical drag behavior when initial position is recomputed due to size difference between the source and the dragged item. (ad91bb503f6f05bdb8bd16b0ec21364c50f3c2a3)
- Move goog.net.cookies out of the same file as goog.net.Cookies to fix multi-provide issues. Mark goog.net.cookies as deprecated in favor of goog.net.Cookies#getInstance. (0e59bb8ba395dbca3e9e320a67b29fade5c427b2)
- Defines SafeHtml.toString outside of goog.DEBUG. (afe3ef77896ebb64092680af3a40dc5397443cac)