Skip to content

Releases: wildpeaks/package-snapshot-dom

2.0.0

19 Feb 18:33
cf063ab
Compare
Choose a tag to compare

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

2.0.0-rc1

14 Feb 13:30
f90ff45
Compare
Choose a tag to compare
2.0.0-rc1 Pre-release
Pre-release

Pull Requests:

1.6.0

26 Dec 02:50
0d9be8c
Compare
Choose a tag to compare

Adds an IIFE version (in lib/browser.js) that can be used in headless tests, for example:

const puppeteer = require("puppeteer");
const script = require.resolve("@wildpeaks/snapshot-dom/lib/browser.js");

const browser = await puppeteer.launch();
try {
  const page = await browser.newPage();
  await page.goto("http://localhost:8000/", {waitUntil: "load"});
  await page.addScriptTag({path: script});
  const snapshot = await page.evaluate(() => window.snapshotToJson(document.body));
  console.log(snapshot);
} finally {
  await browser.close();
}

1.6.0-alpha1

26 Dec 00:13
35c0e54
Compare
Choose a tag to compare
1.6.0-alpha1 Pre-release
Pre-release
Merge pull request #27 from wildpeaks/features/browser

1.6.0

1.5.0

23 Dec 04:51
ed41a79
Compare
Choose a tag to compare

No API change: just updated devDependencies and added Github Actions, Prettier, Wallaby.

1.4.0

24 Jul 15:40
dd6bef8
Compare
Choose a tag to compare

Added option to skip empty values.

Updated devDependencies.

Added Eslint config & lint test for the CI.

1.3.0

09 Jul 01:28
bd124ce
Compare
Choose a tag to compare
  • added Azure Pipelines config
  • updated Travis CI config
  • pinned devDependencies to specific versions
  • updated tests to the newer jsDOM API

1.2.1

06 Nov 19:02
Compare
Choose a tag to compare
v1.2.1

Fixed a variable name

1.2.0

02 Nov 13:09
Compare
Choose a tag to compare
Merge pull request #1 from wildpeaks/more-attributes

Text fragments and attributes

1.1.0

11 Oct 14:32
Compare
Choose a tag to compare

The package is now named @wildpeaks/snapshot-dom.