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

Closure Library v20180716

Compare
Choose a tag to compare
@jplaisted jplaisted released this 18 Jul 17:56

New Additions

  • Remove goog.require by path (was meant to be used to require ES6 modules). Add a new goog.module.declareNamespace for use within ES6 module to associate a Closure namespace with ES6 modules.
  • Add a new assertRejects function to goog.asserts that asserts that an IThenable rejects.
  • Added KaiOS type to goog.labs.userAgent.platform. Added goog.userAgent.KAIOS constant.
  • Propagate CSP nonce to scripts created via document.write().
  • Have Closure transpile to what the browser needs rather than always to ES3.
  • Added support for year of week in Date and DateTimeFormatter.
  • Add goog.testing.asserts.assertNullOrUnderfined for asserting that an expression can be either null or undefined.
  • Use setAttribute instead of IDL property. Firefox doesn't support nonce assignment via IDL yet.

Backwards Incompatible Changes

  • Throw if cloneWithParams is used on a URL with #.

Other Changes

  • i18n datetime constants are now marked @const
  • Use an integer uniqueId.
  • If a tearDown() method logs two JSUnit exceptions, then throws the first one, the test will no longer incorrectly pass.
  • rolling back to fix a gmail release blocker
  • Loosen the type signature of a few methods so the signature does not actually change with up coming compiler changes.
  • Adds a faster code path for goog.math.Long.toString for numbers fit 53 bits.
  • Make remove function have same argument types as set.
  • Allow additional types for "content" in testing/net/xhrio.js to match net/xhrio.js
  • Adds a faster code path for goog.math.Long.fromString for numbers fit 53 bits.
  • Add missing property types for goog.ui.Dialog.Event
  • Suppressing deprecation warnings from using goog.ui.Dialog.ButtonSet, which happens to rely on a deprecated Map implementation for now.
  • Update KeyHandler and ActionHandler to use keydown events as the source for KeyEvents when using Gecko, rather than keypress events. This was only necessary pre-Gecko 4. T...
  • Improve TestCase error stripping to match changes in Chrome reporting.
  • On IE load ES6 modules during load rather than after completion.
  • n/a. comment change only
  • Correct goog.testing.net.XhrIo to extend from goog.net.XhrIo.
  • Addresses an issue where goog.i18n.mime.encode() doesn't correctly encode Unicode characters outside Unicode's Basic Multilingual Plane.
  • Optimizes goog.math.Long#negate
  • KeyboardEvent.key now includes home, end, enter, and arrow keys.
  • Reduce size of DateIntervalFormat locale data.
  • Fix a bug in goog.Timer where there can be more than one pending timeouts.
  • Expose ModuleManager module info Object to subclasses.
  • Bug fix for datetimeformat.format milliseconds with dates before Unix epoch.
  • Don't use PointerAsMouseEventType for MOUSEOVER/MOUSEOUT events.
  • Update KeyHandler and ActionHandler to use keydown events as the source for KeyEvents when using Gecko, rather than keypress events. This was only necessary pre-Gecko 4. This brings the handling in line with other browsers and fixes https://github\.com/google/closure-library/issues/883\.
  • CLDR 33.1 locale data update.
  • Attempt to fill in the keyCode value for the events fired by goog.testing.events.fireNonAsciiKeySequence.