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

Closure Library v20180910

Compare
Choose a tag to compare
@jplaisted jplaisted released this 19 Sep 20:16

New Additions

  • Move activeModuleManager.get() getDefault parameter to a global function.
  • Added function goog.html.SafeUrl.fromSmsUrl to generate 'sms:' urls in a fashion similar to 'tel:' urls.
  • Add isSafeInteger public API to goog.math.Long
  • Added status codes from RFC 4918 to the HttpStatus enum

Backwards Incompatible Changes

  • Make Long.isSafeInteger behave like Number.isSafeInteger
  • AbstractModuleManager no longer extends Disposable.
  • Removed CRLF from Drag and drop base64.

Other Changes

  • Shorter implementation of getLowBitsUnsigned.
  • Add a $waitAndVerify() function to MockInterface and a $waitAndVerifyAll() function to MockControl that returns a goog.Promise that resolves when expectations have been registered.
  • Include RTL ranges in both the Basic Multilingual Plane (BMP) and Supplementary Planes of Unicode
  • Fixing a typo in a comment
  • AutoComplete: Fix type annotation for object parameter.
  • afterLoadModuleCode() is now a no-op, pending removal.
  • simplify long multiplication
  • Initialize TWO_PWR_63_DBL_ with exact value as jscompiler doesn't fold constants where precision might be lost.
  • Add getters for minimum and maximum number of fraction digits.
  • Optimize Long.toString
  • Rearrange 'if'-statements in Long.div to minimize number of executed checks.
  • goog.html.SAFE_URL_PATTERN_ is publicly available through goog.html.SafeUrl.SAFE_URL_PATTERN
  • Fix bug with quoted elements in csv parser
  • Fix bug in loading ES6 modules on firefox.
  • improve Long.fromNumber performance.
  • Use bit shift operation instead of mask in isSafeInteger method.