kjin
released this
New Additions
- Add
goog.log.getAllLoggers. (0fe1819) - Add goog.dom.safe.createContextualFragment. (d263cd0)
- Introduce goog.functions.UNDEFINED and goog.functions.EMPTY (28a10ae)
Backwards Incompatible Changes
- Tighten strictness in Closure Library functions in goog.provide files. (ea7f68e)
- Improve error message for failing to load a module. (7c2fc01)
- Removing Safari 10 Workarounds in debug loader. (b46b6bf)
Other Changes
- base.js now logs but does not throw on missing goog.requires. (21ae791)
- Allow Trusted Types in loading resources. (39e9faa)
- Make code Trusted Types compatible, take 2. (7e12ddc)
- Add proper support for
InfinityfornumericValueToStringandstringToNumericValue. (e9d776c) - Add browser detection for ES2019 and ES2020. (89d98af)
Assets
2
New Additions
Backwards Incompatible Changes
- Tighten strictness in Closure Library functions in goog.provide files. (1fa7999)
Other Changes
- Remove forwardDeclares from net/BrowserChannel, and resolve a circular dependency between BrowserChannel and BrowserTestChannel. (1b19054)
- Fix forwardDeclare between module and loader packages by moving a shared enum into a separate file. (58b8677)
- Document that using goog.url is preferred over goog.Uri and goog.uri.utils and outline one way to identify URIs that should be manipulated using the URL package. (e9ba54f)
Assets
2
New Additions
- Added a goog.provide for goog.log.LogBuffer. (c4e1260)
Backwards Incompatible Changes
- Calls to goog.now now use the current value of Date.now (4af6950)
- Remove obsolete browser selection code from AbstractRange now that getSelection is supported across all Closure Library supported browsers. (b41ef3c)
- goog.format.EmailAddress.parse now ignores unicode bidi markers (ac1c88d)
- Mark AbstractRange#getBrowserSelectionForWindow as deprecated, as it is now identical to Window#getSelection. (d1b8bfd)
- Make goog.functions.partialRight return a strict mode partial function. (ba03d72)
- goog.isFunction has been deleted. Use goog.functions.isFunction or
typeof x === 'function'instead. (6342251) - RecordFunction now runs in strict mode. (ccd76bd)
- Tighten strictness in Closure Library functions in various goog.provide files.
- Modernized various Closure Library classes.
Other Changes
- Fixed goog.style.bidi.usesNegativeScrollLeftInRtl_ to include Chrome 85+. (e168856)
- Fix lint errors in calcdeps.py (34c45b9)
- add
unescapeHtmlEntitiesoption to goog.getMsg(). (9a1733d) - Remove forwardDeclare from goog.editor.PluginImpl (c10c2b4)
- Remove forwardDeclare from testing.fs.FileSystem and testing.fs.FileWriter. (1b215a8)
- Make removeAllListeners also accept EventId. (1c5aabc)
Assets
2
New Additions
goog.log.getRootLoggerhas been added- Add
MockClock.tickAsync() goog.loader.NoopModuleManager: Add new no-op default module manager implementation- Add
goog.functions.isFunction - Add new method
goog.testing.singleton.reset()
Backwards Incompatible Changes
goog.delayhas been removed- Remove support for text/csv in
SafeUrl.{fromBlob,fromDataUrl,tryFromDataUrl}. Safe uses should migrate to unchecked conversions - Tighten strictness in Closure Library functions in
goog.providefiles goog.loader.activeModuleManager: RenamemaybeInitializetoinitialize- Remove deprecated method
goog.fs.blobAsString
Other Changes
- Resolved issue with rendering child tabs incorrectly when they moved right
- Make
goog.eventslibraries compatible with clutz (JS to TS converter) - Allow using
setInnerHtmlwithShadowRoot - Check for
TypedArrayingoog.object.unsafeCloneand clone them appropriately - Fix edge-case in
TestCaseautodiscovery - Add aria-owns to permitted list of attributes with IDENTIFIER contract
- Update
isSafariDesktopOnMobilecheck to account for non-Safari browsers that have recently adopted the same behavior - Typo fix in
goog.url#createUrl - Adds unhandled error handler for
Deferreds for transitional purposes
Assets
2
New Additions
- goog.collections.iters graduated from goog.labs.*
- goog.loader.activeModuleManager optional arguments have been added to maybeInitialize method
- goog.loader.activeModuleManager maybeInitialize method has been added
Other Changes
- Changes ImageLoader event dispatch order to support re-queuing duplicate image IDS
- Add more static methods to goog.log.
- Remove usage of vendor-prefixed versions of Blob#slice.
- goog.log.LogBuffer is now an alias of goog.debug.LogBuffer.
- Update
goog\.dom\.TagNameto be an uninstantiable record type. - Rename goog.testing.singleton.reset to goog.testing.singleton.resetAll
- Resolved issue with rendering child tabs incorrectly when they moved right.
Assets
2
New Additions
- Add commit method to goog.db.Transaction.
- Add trySanitize and tryFromDataUrl to goog.html.SafeUrl
- Add goog.dom.copyContents.
Backwards Incompatible Changes
- declareLegacyNamespace logic has been updated to work more like goog.provide.
- goog.isArray has been deleted. Use Array.isArray instead.
Other Changes
- goog.net.xpc.IframePollingTransport has been removed.
- Removed deprecated goog.object.is in favor of Object.is
- Updated acceptable mXSS output.
- add Event.type to error message when possible.
- Mark goog.iter.Iterator as deprecated
- Make goog.html APIs exclude monkeypatched enumerable properties on Object.prototype
- goog.now now always uses Date.now
Assets
2
New Additions
- Add commit method to goog.db.Transaction.
- Add goog.dom.safe.setInnerHtmlFromConstant.
- Add an adapter API to use Closure asserts with other testing frameworks (eg, Jasmine).
- goog.module.ModuleManager addExtraEdge and removeExtraEdge methods have been added.
Backwards Incompatible Changes
- goog.globalize has been removed
- Remove aliases of goog.getHashCode and goog.removeHashCode from goog.js.
- goog.typeOf no longer special cases very old browsers.
- goog.STRICT_MODE_COMPATIBLE has been removed.
- Remove transitionalforwarddeclarations.js
- goog.getHashCode and goog.removeHashCode have been removed.
- Simplify goog.globalEval in by removing pre-ES5 support.
Other Changes
- Remove useless transitionforwarddeclarations.js
- Deprecate goog.provide, goog.inherits, and goog.bind
- Use the new asserts adapter in fail().
- Templatize goog.array.equals comparison function.
- Deprecate goog.isFunction
- Delete
goog\.result\.Result. - Clean up circular dependency in net/xpc.
- Deprecate goog.object.is
- Fix overflow issue for link dialog input.
- Changed the default value of goog.TRUSTED_TYPES_POLICY_NAME to enable Trusted Types (https://github\.com/w3c/webappsec-trusted-types\) support in goog.html.{SafeHtml,SafeScript,TrustedResourceUrl} and goog.base debug loaders. Trusted Types will be used whenever available in the runtime.
- Deprecate goog.nullFunction.
- requestFullscreen now returns the result of the browser-specific API call.
- Copy much of the interface of
DeferredontoResult. - Aligned the trusted types related tests with the current goog.html.trustedtypes package naming.
Assets
2
New Additions
goog.module.AbstractModuleLoaderextraEdgeshas been added as an optional parameter to the loadModules method.- Added
goog.html.SafeUrl.revokeObjectUrl.
Backwards Incompatible Changes
- Disallow old templates signatures.
- Remove noop method goog.tagUnsealableClass
- goog.isArray now calls Array.isArray
Other Changes
- Update data formatting with ICU67.
- Now handles negative patterns for compact numbers.
- Workaround for https://crbug\.com/1081632\. In workers without a Secure Context (https://www\.w3\.org/TR/secure-contexts/\)
self\.trustedHTMLis defined, but has no properties. Unwrapping goog.html.SafeHtml.EMPTY_HTML in such realms caused errors. - Add callback in URI package to detect usage that is better supported by the new URL package.
- Use Array.isArray instead of goog.typeOf in more places.
- Add URL package to Closure Library.
- Create goog.html Trusted Types policy lazily.
- goog.result.DeferredAdaptor has been removed.
- Update data to ICU 67 / CLDR 37. No API changes.
- goog.html.SafeHtml and goog.html.SafeScript static properties can now be compiled out if they are not used, even when goog.TRUSTED_TYPES_POLICY_NAME is set.
- In autocomplete demos, use JSON data instead of JS data.
- Remove forwardDeclares from Closure dom by adding an abstraction for SavedRanges that use Carets (AbstractSavedCaretRange) and stopping the various Range implementations from directly using goog.dom.Range constructors for new sub-ranges.
Assets
2
New Additions
- goog.module.AbstractModuleLoader extraEdges has been added as an optional parameter to the loadModules method.
- goog.module.AbstractModuleLoader the type of the extraEdges parameter of the loadModules method has been updated to map to a Set
- goog.loader.AbstractModuleManager addExtraEdge and removeExtraEdge methods have been added.
- Whitelist additional ARIA attributes in the HtmlSanitizer.
- Add concat method to iterables library
Backwards Incompatible Changes
- goog.debug.deepFreeze should now be imported with destructuring.
- goog.labs.collections.iterables renamed to goog.labs.collections.iters.
- goog.module.AbstractModuleLoader optional parameters have been merged into a single options bag.
Other Changes
- goog.module.AbstractModuleLoader migrate to ES6 syntax
- Remove an old Safari behaviour workaround in goog.globalEval. This will simplify future Trusted Types integration, as eval(trustedTypes.emptyScript) might be used, and that pattern does not require creating a Trusted Types policy.
- Add optional window object in the call to getScriptNonce.
- Removed references to deprecated parts of the Trusted Types API (
window\.TrustedTypesandTrustedTypePolicyOptions\.createURL) - Remove goog.defineClass's support for sealing instances
- Add scripts to package.json for serving the tests and demos locally.
- Defines
Deferred::getLastValueForMigration. - Move base.js Trusted Types policy creation to the conditional block creating the debug loaders to avoid creating the policy for binaries without the debug loader.
- Use about:blank iframe instead of an iframe with an empty source in goog.async.nextTick. Removed spurious document.write call.
- Remove noop method goog.tagUnsealableClass
Assets
2
Backwards Incompatible Changes
- In the QueryData constructor, as well as in QueryData.createFromKeysValues and QueryData.createFromMap, opt_uri (second-to-last argument) is removed, and opt_ignoreCase (last argument) takes its place.
- Tests calling goog.window.open and mocking window.open now need to pass an undefined 4th parameter or mock goog.window.open.
Other Changes
- Remove demos from checked-in deps.js file.
- Allow string name in goog.dom.safe.openInWindow.
- Allow font/ MIME type in SafeUrl.
- Use setTextContent in modern browsers.

