This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
Closure Library v20190819
New Additions
- Add option
html
togoog.getMsg
. - Add
assertI18nContains
andaddI18nMapping
to i18n asserts. - Add
goog.object.getSuperClass
to retrieve the super class of a constructor in an ES5 and ES6 compatible way. We don't generally recommend doing this, but if you have to use this method for ES5/ES6 compatibility (e.g. this is better than accessingsuperClass_
). - Add
isValid()
function togoog.i18n.currency
. - Add
OffscreenCanvas
detection togoog.dom.BrowserFeatures
.
Backwards Incompatible Changes
goog.net.xpc.NixTransport
and associated code has been removed.- Obsolete
goog.net.xpc.FrameElementMethodTransport
has been removed. goog.net.xpc.TransportTypes.FLASH
has been removed.- Remove legacy
opt_webSafe
support from Base 64 encoders. Please use the newalphabet
parameter instead. - Delete
goog.dom.query
.
Other Changes
- Ensure that IE mouse event sequence handling works well with pointer events if control mouse handling is set to use pointer events.
- Mark
goog.abstractMethod()
as deprecated in favor of@abstract
annotations. - Support async
tearDown
methods ingoog.labs.testing.Environment
. - Allowing alpha values of
1.0
(as opposed to only1
) inrgba
(andhsla
) Javascript string colors. - Remove native promise function entry point wrappers in the closure errorhandler since they also report handled promise rejections, which is unintended. Expose a handler for the the
unhandledrejection
event instead. - Change
SavedRange.restoreInternal
and its child classes from pubic to protected to matchSavedCaretRange.restoreInternal
. goog.iter.Iterable
no longer implicitly includesgoog.iter.Iterator
.- Start leveraging
goog.FEATURESET_YEAR
forgoog.array
methods. - Enter key opens SubMenus and no longer closes every menu
- No user change, but improved performance can be seen in both download size and execution time when using ECMAScript I18n classes.