Skip to content

Releases: r-lib/vdiffr

vdiffr 1.0.8

31 Oct 10:10
Compare
Choose a tag to compare
  • Added support for snapshot variants (#125).

vdiffr 1.0.7

22 Sep 08:08
Compare
Choose a tag to compare
  • Revert back to C++11 to work around a GCC issue (#137).

vdiffr 1.0.6

25 Aug 11:24
Compare
Choose a tag to compare
  • The SVG device in vdiffr now has a different name
    so it can be distinguished from the svglite device (#135).

vdiffr 1.0.5

08 Mar 10:13
Compare
Choose a tag to compare
  • Fix for CRAN checks.

vdiffr 1.0.4

15 Mar 10:27
Compare
Choose a tag to compare
  • Compatibility with UCRT build of Windows using Rtools42.

vdiffr 1.0.3

14 Mar 11:58
Compare
Choose a tag to compare
  • Compatibility with UCRT build of Windows (@jeroen).

vdiffr 1.0.2

21 Jun 07:40
Compare
Choose a tag to compare
  • testthat no longer auto-deletes snapshot files that were not
    generated because of an unexpected error or a skip()
    (r-lib/testthat#1393).

vdiffr 1.0.0

08 Jun 12:03
Compare
Choose a tag to compare

This release includes two major changes:

  1. The internal SVG engine has been updated. It is now lighter, more
    robust, with fewer dependencies. It also generates more correct
    SVG. The main user visible change is that points look smaller than
    with older snapshots. Because of this update you will have to
    regenerate all existing snapshots with the new engine.

  2. The snapshot management system now uses testthat (see
    https://testthat.r-lib.org/articles/snapshotting.html). Most of the
    R and javascript code has been removed from vdiffr as a consequence.
    vdiffr now serves as a reproducible SVG generation engine for
    testthat snapshots.

Migration of existing snapshots

There are two steps to update your snapshots to vdiffr 1.0.

  1. This step is optional. Install the github-only 0.4.0 version of
    vdiffr with remotes::install_github("r-lib/vdiffr@v0.4.0"). This
    release only contains the new SVG engine. Review the snapshot
    changes as usual with vdiffr::manage_cases().

  2. Install vdiffr 1.0.0 from CRAN, delete the tests/figs directory,
    run devtools::test(), and then testthat::snapshot_review().

Other changes

  • expect_doppelganger() now supports grid objects such as gtable
    and grob (#36).

vdiffr 0.4.0

07 Jun 08:57
Compare
Choose a tag to compare

This is a github-only release that is meant to help you migrate from
vdiffr 0.3.x to vdiffr 1.0.0. The 1.0 release of vdiffr includes two
major changes. It switches to testthat 3e for snapshot management and
it uses an updated SVG engine for the generation of snapshots. The
github-only 0.4.0 release only includes the new SVG engine to make it
easy to compare cases with manage_cases().

This intermediate step in the migration of snapshots is optional. You
can also choose to update directly with the 1.0.0 release but you
won't be able to compare the new snapshots to your old ones.

Note that smaller points are expected in the new snapshots because of
a bugfix.

  • Following an update to the graphics engine of R 4.1.0 that causes
    spurious failures due to subtle changes in graphics generation,
    vdiffr snapshots are now skipped on old versions of R. The plots are
    still generated on all versions so any errors during plot drawing
    will be detected by testthat.

  • The SVG generation engine of vdiffr has been updated (@thomasp85).
    Font sizes are now precomputed for the first 50000 unicode points.
    This allows deterministic computation of text box extents without
    the freetype and harfbuzz dependencies.

    Note: The main visible change of this update is that points now look
    smaller. Points generated with the previous SVG engine were too large.

  • vdiffr is now licensed as MIT (#95).

vdiffr 0.3.3

07 Oct 08:58
Compare
Choose a tag to compare
  • Compatibility with r-devel (@pmur002).
  • Compatibility with testthat 3.