-
-
Notifications
You must be signed in to change notification settings - Fork 770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration guide for version 3.0.0 #1510
Migration guide for version 3.0.0 #1510
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great @elad-nach!
Just a few comments from me
Codemod available at https://github.com/hurrymaplelad/sinon-codemod | ||
|
||
## `sinon.stub(object, property, value)` - Removed | ||
The three parameter signature will now throw an exception (feature has been deprecated at `[email protected]` and has been finally removed from the codebase). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpicking: In JavaScript, they're called arguments
, so this should read something like this:
Calling
sinon.stub
with three arguments will throw anError
. This was deprecated withsinon@2
and has been removed withsinon@3
`sinon.useFakeTimers()` signature has [changed](./fake-timers). To define which methods to fake, please use `config.toFake`. Other options are now available when configuring `useFakeTimers`. Please consult the [documentation](./fake-timers) for more information. | ||
|
||
## Removal of internal helpers | ||
The following utility functions has been marked as deprecated as of `[email protected]` and were removed as planned on this release: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be more concise:
The following internal functions were deprecated as of
[email protected]
and have been removed insinon@3
breadcrumb: migrating to 3.0 | ||
--- | ||
|
||
Sinon v3.0 is the third major release, we have made several breaking changes in this release as a result of modernising the internals of Sinon. This guide is intended to walk you through the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be more concise:
As with all
MAJOR
releases insemver
, there are breaking changes insinon@3
.
This guide will walk you through those changes.
all done 🗡 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thank you 💯 |
This has become part of |
added documentation for the migration guide
resolves #1502