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

Closure Library v20200204

Compare
Choose a tag to compare
@rrdelaney rrdelaney released this 07 Feb 22:21

Note: the last two releases were not pushed to npm. To keep a complete changelog these release notes include the last two as well.

New Additions

  • Add TrustedResourceUrl.fromSafeScript().
  • New htmlsanitizer builder API addition.
  • Extract the version from Headless Chrome user-agent strings.

Backwards Incompatible Changes

  • goog.net.WebSocket no longer accepts direct autoReconnect and getNextReconnect arguments; specify these as fields in an options object instead.
  • Delete goog.is(Def|Null|DefAndNotNull|String|Boolean|Number) from base.js.
  • goog.base has been removed.
  • Remove returnValue_ from goog.events.Event.
  • Add getter accessor for propagationStopped field on goog.events.Event.
  • goog.net.Cookies.prototype.set only accepts options objects for optional parameters.

Other Changes

  • Fix a bug when emoji picker is used with urlPrefix
  • Fix a keyboard navigation bug in goog.ui.Palette when it's used within a scrollable container.
  • All Closure-compiled binaries using Closure Library will now contain Closure's short license.
  • Calling MockClock.tick() reentrantly no longer makes time go backwards
  • Mark goog.forwardDeclare as deprecated. Users who need type-only imports should use goog\.requireType instead.
  • Migration from goog.fs.getBlob to goog.fs.blob.getBlob.
  • Remove usages of goog.structs.Set, use ES6 Set instead
  • Fix type annotation of getBlobWithProperties.
  • goog.functions.create is now deprecated.
  • Fix goog.getUid to work correctly with class-side inheritance
  • Split goog.fs.getBlob and goog.fs.getBlobWithProperties into a separate goog.fs.blob module.
  • Update auto-scrolling implementation in filtered menu highlighting.
  • Refactor internal usages of goog.net.Cookies.prototype.set to use the options object.
  • Remove instances of goog.getObjectByName in webchannelbase.js.
  • Delete deprecated goog.fs.getBlob methods.
  • Mark goog.scope() as deprecated.