This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
Releases: google/closure-library
Releases · google/closure-library
Closure Library v20220719
New Additions
- Update setSafeHtml to not flush pending delayed change events when opt_stopDelayedChange=true (52f9400)
Backwards Incompatible Changes
- Setting noreferrer when opening a popup now implies noopener if goog.DEBUG is true (70b8632)
- Setting noreferrer when opening a popup now implies noopener (99a2e56)
- Removes APIs that expose the directionality of SafeHtml. (504d78f)
- Removes the logic associated with Directionality in SafeHtml. (d193f31)
- Removes directionality support in Closure's SafeUrl and TrustedResourceUrl. (1fb53f1)
Other Changes
- Cleanup python2 future imports (4698ce7)
- Deprecates directionality support in SafeHtml. (567d46e)
- Make Deferred.STRICT_ERRORS ignore promises (79dfce7)
- Fixed bug switching between list types (a8d677b)
- Web Animation API (WAAPI) animation playback event names added to the EventType Object. (164ee95)
- Update parse and format for flexible day periods. (8f2a4aa)
- Updates the expected URL formatting in Safari as it seems to have changed. (ae13055)
- Don't sanitize data: URLs as they are safe. (7d0377d)
Closure Library v20220601
Backwards Incompatible Changes
- Closure Compiler now requires OpenJDK 11. (a22e75e)
- remove the goog.json.Processor interface (e5b4faf)
- Remove deprecated goog.net.xpc.CfgFields.DIRECT_TRANSPORT_SYNC_MODE as the Direct Transport mechanism has been removed from Closure. (461dc5f)
- Remove
goog.json.TRY_NATIVE_JSON
(2d41ea4) DateTimeParse
now correctly rejects abutted numeric runs that are shorter than the minimum length. (7030d40)- Make deprecated goog.labs.userAgent.browser.versionOf a private function. (54f139f)
Other Changes
- Modernize
thenable.js
fromgoog.provide
togoog.module
. (8f420ee) - ListFormat includes UNIT, AND, and OR types, each with LONG, SHORT, and NARROW styles. (b994f40)
- Modernize
async/freelist.js
fromgoog.provide
togoog.module
. (021c3f3) - Prevents the inlining of constants in the builders. (6fbd2d6)
- Defines
toString
in ES6 method style. (d22672b) - Modernize
async/run.js
fromgoog.provide
togoog.module
. (5241b0e) - Adding HEIC & HEIF image formats to Safe URLs (18e7be6)
- Support mocking accessor descriptors in goog.labs.mock. (ab4ab53)
- Changes the value of the innocuous url. (e69beb1)
- Add WEEKDAY_MONTH_DAY_FULL option for formatted date (35d9385)
Closure Library v20220502
New Additions
- Allow overriding the
goog.net.XhrManager
's underlingXhrIoPool
in tests. (3d36f21)
Backwards Incompatible Changes
- Remove deprecated
goog.nullFunction
(27be5f4)
Other Changes
- Maintain cursor position when inserting lists (705ac0c)
- Don't add
<br>
tag on the first<li>
removed ingoog.editor.plugins.RemoveFormatting
. (7d36ac4) - Fix debug window options closing from throwing when new loggers get added after it was opened. (7f2c86c)
- Updated data for ICU71 & CLDR 41 (1df687a)
- Update test to account for removed
goog.nullFunction
(35b3ced)
Closure Library v20220405
New Additions
- Fix
goog.editor.Field
sohandleChanges
is called when content is changed on mobile devices. (605aa47) - Add
ListFormat
class withconjunction
anddisjunction
options. (f6e0a87)
Backwards Incompatible Changes
- Removed aliases
goog.module.ModuleManager.FailureType
andgoog.loader.AbstractModuleManager.FailureType
(e6e6c5c) - Remove deprecated
goog.mixin
. (d9aace7) - Remove the
dir
parameter in theSafeHtml
unchecked conversion. (09bdaa2) - Change
ModuleLoadFailureType
to class for containing extra status code (8e3cd9f) - Removed labs/i18n. All users should move to use closure/i18n/listformat. (4884ab9)
- Remove deprecated
goog.net.xpc.DirectTransport
(7736beb)
Other Changes
- Ensure more of Closure is compatible with a strict CSP by default. (8889f54)
goog.getLocale()
is now deprecated: usegoog.LOCALE
instead (b50a9d5)SafeHtml.createWithDir
is now package private. (49cbea5)goog.getMsg
: addexample
andoriginal_code
fields toopt_options
(8236d38)- Fixed issue with preserving link formatting in
removeFormatting
(64ca04b) - Stub
goog.async.nextTick
implementation more directly inMockClock
. (ebba7d9) - Fixed
closure-make-deps
to return a nonzero exit code on failure (b8600bd)
Closure Library v20220301
New Additions
- Add
goog.html.trustedtypes.POLICY_NAME
as a more specific alternative togoog.TRUSTED_TYPES_POLICY_NAME
. (773acea) - Adds
goog.collections.iters.toArray()
(7891002)
Backwards Incompatible Changes
goog.string.linkify.linkifyPlainTextAsHtml
no longer accepts positional parameters: use the options bag instead. (f809765)- Remove
goog.define
s for enforcing COOP ingoog.window
and using blank strings when opening blank windows. (ee29cd4) goog.collections.iters
functions no longer pass element index to their callbacks. (c9bdc17, b55819d)- Make
goog.window.openBlank
compatible with strict CSP. This change is backwards-incompatible on IE11, where the loading message will no longer be displayed. (c17a287) - Remove
HAS_W3C_BUTTON, HAS_W3C_EVENT_SUPPORT
,SET_KEY_CODE_TO_PREVENT_DEFAULT
,HAS_NAVIGATOR_ONLINE_PROPERTY
,HAS_HTML5_NETWORK_EVENT_SUPPORT
, andHTML5_NETWORK_EVENTS_FIRE_ON_BODY
fromgoog.events.BrowserFeature
(617b0ff) goog.collections.iters.forEach
parameter type is nowIterator
(674f4bd)goog.iter
functions now call#next
on passed-in iterables/iterators, notnextValueOrThrow
. (8e2982c)
Other Changes
- Make
goog.cssom.addCssText
obtain nonce from correct document object. (577fd3e) - Load the destination of a module loader extra edge if the source of the edge has already been loaded. (72e2957)
- Delete deprecated
goog.net.cookies
. (67d06cf) - Ensure Closure DOM is compatible with a strict CSP by default. (d97ac0b)
Closure Library v20220202
New Additions
- Avoid using an empty string as the meta-refresh tag URL value as this can cause race conditions when users later update the blank document's location. (32be570)
- Add
Long#toUnsignedString
to convert a Long to its unsigned (385ae7b)
Backwards Incompatible Changes
- the
goog.provide
forgoog.asserts.AssertionError
has been removed, access the same value/type instead via requiringgoog.asserts
. (e4bd60f)
Other Changes
- Remove special support for Chrome 21- in
goog.db.Error
(bf304a4) - Give closure dialogs the option to keep track of their amount of surrounding space. (73847ba)
- Avoid unnecessary mime check for data urls. (987094d)
- Delete extra edge entry if all edges for a given "fromModuleId" have been removed. (22513da)
- Add radial-gradient to
SafeStyle
list of allowed functions (6bde623) - Mark deprecated
goog.structs.Map
as final. (45037fb)
Closure Library v20220104
Other Changes
- Change visibility of function so that it can be overriden by child classes. (8b9590a)
- Add remove link message, to be used with screenreaders. (8d12f80)
- Announce link removal to screenreaders. (ccae5f3)
- Fix the behavior of
goog.testing.asserts.findDifferences
when custom predicates are supplied, to augment builtin predicates rather than override them. (58a0598) - Fix a daylight saving time bug in
formatDay
. (84c9372) - goog.string.linkify.linkifyPlainTextAsHtml now accepts an options bag as its second parameter. (f4e2047)
- Allows 'type' attribute in
createScript
to allow for json scripts. (80f8313)
Closure Library v20211201
Closure Library v20211107
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)
Closure Library v20211006
New Additions
- Provide goog.labs.userAgent.USE_CLIENT_HINTS_OVERRIDE as a runtime-override mechanism for overriding USE_CLIENT_HINTS in production builds. (41e7935)
- Add new functions to goog.iter to support rewriting existing ES4 iterators to use ES6 iteration semantics. (a73ad89)
Backwards Incompatible Changes
- Remove implementations of goog.iter.Iterator#next within Closure Library. As of this change, it's expected that all users of goog.iter.Iterator are calling the new name for this function, #nextValueOrThrow. (0fc677a)
- Deleted goog.dom.pattern package (54209b6)
- The
noreferrer
option can no longer be set for modern browsers on sites that set a referrer-policy ofunsafe-url
(f2c85d1)
Other Changes
- Add native ECMAScript support for modern browsers. (16d7b83)
- Introduces a new configuration object that can be passed to the MockClock constructor. (fd93eae)
- Make bubble innerHTML assignment Trusted Types compatible. (83aa32c)
- Add support for aria-current to goog.a11y.aria.State. (08f8ee4)
- Fixes error in Safari browser in native ECMAScript mode. (5a49c85)
- Add Intl native support in DateTimeFormat. (ed3f217)
- Make deps array of ModuleInfo non-nullable. (1c8d94c)
- Improve EqualToIgnoringWhitespaceMatches to ignore whitespace on both strings. (09d924f)
- Clean up 'var' to 'const' or 'let'. (fcb893e)