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

Closure Library v20211107

Compare
Choose a tag to compare
@github-actions github-actions released this 22 Nov 23:08

New Additions

  • Define ES6 Iterator #next on goog.iter.Iterator, in preparation for implementing it on all subclasses. (d5fc48c)
  • Add goog.labs.userAgent.testUtil. (d860c5a)
  • Add APIs to get userAgentData-aware browser and platform versions. For the browser, the version can now be retrieved for a specific brand. For both browser and platform, the full version is supplied as a "high-entropy" object. (246750e)
  • Closure Library goog.iter.Iterator instances implement the ES6 iteration protocol alongside the existing ES4 implementation (available via the #nextValueOrThrow function). Iterators still call (and transform) the ES4 iterator function in child iterators, and this will be changed in future versions of Closure Library (to call the ES6 interface). (cd81947)
  • Add browser.loadFullVersions. Additionally, remove an assumption that fullVersionList will be available in a particular future version of Chrome. (57beea4)
  • Improve the types for goog.iter.reduce so that the accumulator can be a different type than values in the iterator. (55b2883)

Backwards Incompatible Changes

  • goog.dom.TextRangeIterator#skipTag no longer directly throws goog.iter.StopIteration. Instead, if it has skipped to (or over) the end of the range, iteration end will be signaled on the next call to #nextValueOrThrow. (06dc75f)
  • Make ModuleManager filter "synthetic" modules to ensure the list of loading module ids is accurate. (f74bfb1)
  • Re-map the goog.define goog.events.USE_LAYER_XY_AS_OFFSET_XY to goog.events.BrowserEvent.USE_LAYER_XY_AS_OFFSET_XY. (2870103)
  • Use a stable-sort when sorting css rules by specificity (5411d96)

Other Changes

  • goog.string.padNumber now handles negative numbers. (acc79f7)
  • Add HTMLElement helper methods to dom.js. (7a9f000)
  • Implemented the support for the new WebChannel option: encodeInitMessageHeaders. (cfb2e44)
  • Add '#' to SafeStyle list of allowed characters inside functions. (0726fde)
  • Added configure function to activeModuleManager (a63fcec)
  • Do not assume userAgentData brand names for browsers that don't support it yet. (6a9094d)
  • Do not check userAgentData.brands to determine whether the current browser is Amazon Silk. (c8961ac)
  • Move the check that determines loader support for extra edges to the point at which the manager delegates to the module loader. (c70f4b7)
  • add a custom pluggable equality interface for findDifferences and assertObjectEquals. (99d0955)* Add '/' to SafeStyle list of allowed value characters. (2f27077)
  • Add capital letters to SafeStyle list of allowed characters in functions. (e762b3b)
  • Fix an issue with repeated VoiceOver messages. (0fd0574)
  • Add opt_preserveSpacesAndTabs param to linkifyPlainTextAsHtml. (e904648)
  • IE9 and previous are no longer supported with goog.require code loading. (ff4763f)
  • Update with CLDR 40 data. (2a21f12)
  • Dates now implement ISO8601 more accurately for very large or negative years. (2dd8283)
  • Support Amazon Silk in versionOf, and fix Silk support for newer browsers. (91f1ccf)
  • Delete 'goog.i18n.DateTimeParse.prototype.strictParse'. (21c7f05)
  • added check for synthetic module before setting module constructor (c152058)
  • Use navigator.userAgentData to identify platforms in goog.labs.userAgent. (b729e7f)
  • Don't assume that the presence of userAgentData indicates that the browser is definitely not Firefox or Safari. Also, respect ASSUME_USER_AGENT_DATA in all browser brand checks. (9b0ee8d)
  • Update with ICU70 / CLDR40 data (b5188f0)