@@ -6,6 +6,8 @@ breadcrumb: migrating
6
6
7
7
## Sinon 19
8
8
9
+ ### All timers are stubbed by default
10
+
9
11
A breaking change is that Fake Timers 13 now fake all timers by default. Previously
10
12
Node's ` nextTick() ` and ` Window#queueMicroTask() ` were explicitly skipped, which
11
13
was quite confusing to some. This typically might affect ` async ` tests where
@@ -17,15 +19,19 @@ in asynchronous tests that stopped resolving in Sinon 19.
17
19
_ If you want the old behavior, specify the timers you want to fake in the ` toFake `
18
20
option and leave out the name of the timers giving you trouble_ .
19
21
22
+ ### New implementation of the fake Date class
23
+
20
24
The new version of fake-timers also no longer creating dates using the original Date
21
- class, but a _ subclass_ (proxy). This should not matter unless you are doing some kind
22
- of identity checks on the constructor: functionally they are the same, but if you
23
- creating Date objects before installing the fake timers, ` instanceof ` checks
24
- will not pass ([ fake-timers #504 ] ( https://github.com/sinonjs/fake-timers/issues/504 ) ).
25
-
26
- Removal of ` legacyRoutes ` option that was enabled in a previous ` nise ` version as the
27
- underlying library, ` path-to-regexp ` , had a fundamental change to its parsing that
28
- made the option a no-op.
25
+ class, but a _ subclass_ (proxy). This should not matter _ unless_ you are doing some kind
26
+ of identity checks on the constructor: functionally they are the same.
27
+ See ([ fake-timers #504 ] ( https://github.com/sinonjs/fake-timers/issues/504 ) ) for an
28
+ example (which we ended up pushing a small fix for to make ` instanceof ` work as before).
29
+
30
+ ### Removal of ` useFakeServer({legacyRoutes: true}) `
31
+
32
+ The ` legacyRoutes ` option that was enabled in a previous version has been removed.
33
+ An underlying library, ` path-to-regexp ` , had a fundamental change to its parsing that
34
+ made the option a no-op. This should not affect most users of Sinon.
29
35
30
36
## Sinon 18
31
37
0 commit comments