Skip to content

2.0.0

Latest

Choose a tag to compare

@cecilemuller cecilemuller released this 19 Feb 18:33
cf063ab

This release adds two transform functions: one for removing empty values, one for sorting values of space-separated attributes. The published package is also minified from now on.

Breaking changes:

  • the second parameter of toJSON (for skipping empty values) was removed, use the new function removeEmptyAttributes from now on.
  • the browser function was renamed window.snapshotToJSON (instead of window.snapshotToJson) for consistency.

More information at:
https://github.com/wildpeaks/package-snapshot-dom/tree/master/packages/snapshot-dom