From 2b1b2dfdb95b22fe655561caa7f0de393d4879e5 Mon Sep 17 00:00:00 2001 From: Zakir Date: Mon, 26 Aug 2019 19:37:21 +0530 Subject: [PATCH] =?UTF-8?q?Fix=20Typo=20in=20migration=206=20and=20updated?= =?UTF-8?q?=20migration=20docs=20for=20migration=20from=E2=80=A6=20(#2074)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix Typo in migration 6 and updated migration docs for migration from 6 to 7 --- docs/guides/migrating-to-6.0.md | 2 +- docs/guides/migrating-to-7.0.md | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 docs/guides/migrating-to-7.0.md diff --git a/docs/guides/migrating-to-6.0.md b/docs/guides/migrating-to-6.0.md index 46e232506..c46ee6afd 100644 --- a/docs/guides/migrating-to-6.0.md +++ b/docs/guides/migrating-to-6.0.md @@ -1,7 +1,7 @@ --- layout: page title: Migrating to v6.0 - Sinon.JS -breadcrumb: migrating to 5.0 +breadcrumb: migrating to 6.0 --- There should be no reason for any code changes with the new Sinon 6. Usually, `MAJOR` releases should come with breaking changes, but there are no known breaking changes in `sinon@6` at the time of this writing. We chose to release a new major version as a [pragmatic solution to some noise related to releasing Sinon 5.1](https://github.com/sinonjs/sinon/pull/1829#issue-193284761), which featured some breaking changes related to ESM (which since has been resolved). diff --git a/docs/guides/migrating-to-7.0.md b/docs/guides/migrating-to-7.0.md new file mode 100644 index 000000000..5a0762bc4 --- /dev/null +++ b/docs/guides/migrating-to-7.0.md @@ -0,0 +1,11 @@ +--- +layout: page +title: Migrating to v7.0 - Sinon.JS +breadcrumb: migrating to 7.0 +--- + +For users upgrading to Sinon 7 the only known breaking API change is that **negative ticks** are not allowed in `Sinon@7` due to updating to lolex 3 internally. This means you cannot use negative values in sinon.useFakeTimers().tick(); + + +If you experience any issues moving from Sinon 6 to Sinon 7, [please let us know!](https://github.com/sinonjs/sinon/issues/new?template=Bug_report.md). +