Closure Library Versions Save

Google's common JavaScript library

v20230802

9 months ago

Other Changes

  • Updates I18N data with CLDR 43 information. (7511599aa6619bdf1131ef5b69e407a592caa519)
  • Fix NodeJS bootstrap. (7c9edc1eed266541c79d9ad3b60c999215ca6879)
  • Deprecates SafeHtml.createScript (7c684b7699ced2746344fb37bf9534d14d5ebd41)
  • Make it possible to render a Soy template as text without constructing a renderer. (d06d2142904165425dc4bd2ba8afc4d525cc5284)
  • Hit-detection fixes for DragScrollSupport class. (b91ebf6148dea055d9fb730d3c425a436c06bdff)
  • Make Mock.record() accept methods of mock objects as well. (5ca918f6e7854136fa846e6349d992c653fb72fe)
  • Restrict the user from navigating to unselectable dates using the home key. (f94055af5ac46eecabe937c1cb3360fb5e4659f3)

v20230502

1 year ago

Backwards Incompatible Changes

  • Add the ability to center a dialog inside a parent parent element. (eaf55f3db6fea3d14293f6fea3c9805e4f678567)

Other Changes

  • Makes closure/html types' constructors private (f3db3e6e2e998d3e52f681ee4ca91ffa38487085)
  • Deprecate setObjectData (211bb6524c96b1b8ca9d156ec12811eb3406c308) and setFrameSrc (1763bed09dc1007bf05485f974af12588b4611c9) in SafeHtml
  • Add a way to check if Html5History is using the fragment for the token. (a6fa5b05b2d305f71a7b9adf720e1c1dc8a116b6)

v20230411

1 year ago

No relevant changes

v20230228

1 year ago

Backwards Incompatible Changes

  • Remove the defaultImpl parameter from Closure Delegates helper methods. (ab6fa71dc7d922eaf4bf08151c3661a58c2f9e2c)

Other Changes

  • Soy: Add toSafeStyle. (db33484c92c7b522229bd119c23403a202e07255)
  • Revise style of MONTH_DAY_MEDIUM to use medium rather than long. (952fff64ee7a73a82a386cb72b5b518495464e31)
  • Remove versioned CLDR data. (63598703435f0873587ba851f08ae40f6543f114)
  • Add a new goog.define that lets users change the Soy stubbing behavior at runtime and another to always stub. (ecaae0ab91d4bf3b0d2711282a5f57c312f29c63)
  • Disable the Debug Loader by default. (b12e80d1e0afca4b5c9feeff44ff410e9797fb9a)
  • Stops sanitizing the #src attribute for <img>, <video>, <audio> and <source>. (6e384c96516a5f77d4a513d46a00e447c6ac3652)
  • Update DateTimeParse to handle non-ASCII spaces in date/time patterns (6b26bd21ae69560904a7a830bede17cc7f97d3f2)
  • Adds a new API BrowserChannel.setIsBuffered to allow clients to set connection status (96278c1fc837c95d2dfc90711273c1489a03ba55)

v20230206

1 year ago

New Additions

  • New DurationFormat API (92517517fd4d40e865c4c79356243072e9bcba82)

Other Changes

  • Remove CurrencyInfo and CurrencyInfoTier2 provides, as they can be accessed from the goog.i18n.currency provide (723c869cee2bee39bef89c1876843fab7f945227)
  • Suppress deprecation warnings in base.js (41a3ba0649271039d6423f85da6d6ce0b6c1135a)
  • Fix errors in errorhandler.js in Worker contexts (53b06a26a8f6d7dad6c78a173ff182452335d68e)
  • Add type annotations for goog.ui.AnimatedZippy.Events (8933907dfd47b937c6e2d999c79f55098cc60e19)
  • Add an API to conditionally render soy using IDOM constructs (35dc68adf4a58a03d34fbaa123e9cc3a6c267873)
  • Remove deprecated goog.getLocale function; goog.LOCALE should be set as a Closure Define instead (9c4766f2edd40f8432a310ae4919494b737714f5)
  • Updating data with CLDR 42 (f11273fb805ce4629bb23b771a0d7f323a8cc7c2)

v20230103

1 year ago

New Additions

  • Add goog.i18n.messages.declareIcuTemplate() as a better way to declare ICU-formatted messages. (1762f0a2ea5817cd2dfe312d0b77800dc4100054)

Other Changes

  • CLDR 42 update
    • Updating data with CLDR 42 (5fa11c8967d01f67013df3d3b6eef3b89e59b50e, 9f4d02c92b7959cceb01d02023c95ae969c8303e)
    • Update I18N test assert function to ignore white space differences (f6203e8d8052fbc43f12e0ae85e29d673d31a1da) and work better with null/empty actual values (11ed104958a29edec435498f1a39a98dbe59db66)
    • Update assertI18nContains to ignore horizontal white space in strings (d407e5c61cd77f67761da9d27228c21025c3cade)
    • Update relativedateformat data to CLDR 42 (53727e8e7773b90b81b34e9157c74f8b06b5f131)
    • Add support for non-ASCII spaces in DateTimeParse (e25a09a5d8b2bf65679e395545c940dd2e0166bd)
  • Delete deprecated methods in goog.dom.asserts, as they are superceeeded by equivalent methods in goog.asserts.dom (dbdb5a26533d148a095f7c947cec4449570b073b)
  • Fix typo in afternoon2 for zh-Hant day periods (407ff9dbe24635a22c2d4ec62a8bdf4c10faaf57)
  • Allows + characters in property values in SafeStyle (d2c1f25bc8b0afb095d93ea857680ac191ff0142)
  • Changes the safe url test vectors template to output goog.modules (01cac58f20e234ea918ed6a02cd35f4811edd008)
  • Allow types other than sanitized content to produce safeHtml (1fac3c9326efe1aa05383bab2bb4c007e4549b93)
  • Defines and URL sanitizer that only blocks javascript: URLs (fe511faa6ba73c28e6bd06b521b1d5894b2009aa)
  • goog.dom.safe SafeUrl wrappers only block javascript: URLs (64293004d4d4ced49050483981a3175f0ab7bc45)
  • Create a goog.define for whether or not soyjs should be stubbed by idom (86e9677d35a83b612d59db5c4533d91b7e2559f1)
  • Update region name from from "Turkey" to "Türkiye" (f292756e189e701fba2cdb6176ca5ebd7d959647)

v20221102

1 year ago

Other Changes

  • Deprecates the SafeHtml.create Closure builder. Recommends using a recommended templating system instead like Lit. (00facbdb50aca4d46b9ca24f6079456962c7ae91)
  • Add steps() to SafeStyle list of allowed functions (9d668cdb6a40d47acaeb168472b121107ab77810)
  • Drop support for IE10 (b15ae93e767937116ce56da9252f7b3424612be0)

v20221004

1 year ago

New Additions

  • Added a handful of goog.crypt methods with clearer string encoding semantics. (849cf9c9ed66660144c4b5226442cbcfa78dff22)

Other Changes

  • Fix for the issue when styles were not getting evaluated after insertion in DOM (fe53c01e568b90657e06fb95e063d9be12a07227)
  • goog.object.unsafeClone now clones Date objects correctly. (767dd4bbaf6f9d4a223de72190a21643f075dc5d)
  • Implement toString in UrlLike return value for IE. (ceb174a41349ce7d77d247e0e0722749f996ccbb)
  • goog.crypt.stringToByteArray (along with base64.encodeString and hash32.encodeString) will now throw asynchronously on multi-byte characters in development. (e439bfd5ff09e0efd85693fc5adf23462d5a39d4)

v20220905

1 year ago

New Additions

  • Client Hints: use fullVersionList in Chromium >=98. (50a2ae09718a4812636d1d5e16209239fdbe403d)
  • Added goog.crypt.base64.{en,de}codeStringUtf8 (19ae2f19953b89f789c29de5eab3511c2cb687e0)
  • Add goog.string.Unicode.ZERO_WIDTH_SPACE. (5feed4e1bc778ddcbf3be5b47531dbd533078fa9)

Backwards Incompatible Changes

  • Delete goog.dom.safe.setImageSrc, just assign to imageElement.src directly instead. (5c479e1d2cbfd2d9a7e1548daa8c0d313bc42829)

Other Changes

  • Fixes parsing of flexible day periods in compiled JavaScript. (653615563f34d3f1eeb4b22ca529320ee5d3b901)
  • Use native Intl.DateIntervalFormat when it's available in modern browsers. (da7658dc11839177562dd71c506c7db757abea40, 261b4201a308b28acc4d93ceed2c4c8abdbd4f4e)
  • Allow ModuleManager.prefetchModule to be called for modules that are being loaded/loading (1e90884961a4c983d69c6c5365ab7d14d51fc811)

v20220803

1 year ago

Backwards Incompatible Changes

  • The debug loader no longer downlevels sources in the browser. The alternative recommendation is to use a downleveling development server instead. (468188f4dc0d6fd756a142f2c7b72777fc0ebcb4)
  • transpile.js has been deleted (55bb681f14bc33227567a605fd6bb1f6ece28a98)
  • Remove configurability for whether window.open with noreferrer implies noopener (3e83d9679478fde7a2e2aa05f3aabb83abefb1e3)

Other Changes

  • Closure editor: fix a rare case where extra strings were inserted when a list was removed (e69cdb6acdf19ea145a7df40b99340e75b937a4b)