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

Closure Library v20190819

Compare
Choose a tag to compare
@tjgq tjgq released this 21 Aug 03:02

New Additions

  • Add option html to goog.getMsg.
  • Add assertI18nContains and addI18nMapping 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 accessing superClass_).
  • Add isValid() function to goog.i18n.currency.
  • Add OffscreenCanvas detection to goog.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 new alphabet 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 in goog.labs.testing.Environment.
  • Allowing alpha values of 1.0 (as opposed to only 1) in rgba (and hsla) 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 match SavedCaretRange.restoreInternal.
  • goog.iter.Iterable no longer implicitly includes goog.iter.Iterator.
  • Start leveraging goog.FEATURESET_YEAR for goog.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.