-
-
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
Sinon 2.0 Release #966
Comments
I would like to create a new documentation website, based on the work that is already in |
@mroderick If you have the work pushed somewhere, let me know. I might be able to help with the docs! |
Updated the checkboxes. Not sure if "Migrate sinon.sandbox" should be checked, but at least the PR is closed. |
@jonnyreeves : not sure why we should remove Users would need to see an easy alternative to this for this to be removed in favor of something else (better). I have never used |
@fatso83 The main issue I have with If we are going to keep |
@jonnyreeves OK, it made more sense when you mentioned it relied on
|
I think something like |
👍 to moving utilities like this into separate npm modules. Less code in the |
Thanks for the input; I've updated the overview up top to reflect the discussion so far (mainly removing question marks, making tasks clearer), please take a look. Also, could we get similar closure on:
Thanks |
I never used I guess we could offer something like this as a migration path: sinon.test = require('sinon-test'); |
@mantoni : Great suggestion. By just assigning to the the now unused |
@jonnyreeves : regarding Regarding |
WRT factoring out a
or similar. |
Just spotted another possible API change whilst creating a |
@fatso83 @mantoni @cjohansen; I've got a working build of a Thanks |
That was quick! https://github.com/sinonjs/sinon-test |
@cjohansen could you just push an empty README to it please? Looks like I can't raise a PR in the current state. |
Done |
Thanks, PR raised - feedback welcome: sinonjs/sinon-test#1 |
@spinningarrow that would be great. I have created #991 to track this separately from the rest of the effort. I'll be updating this in upcoming days with my thoughts, and we can take it from there. |
We are having a few issues every now and then relating to mocks. Now that @jonnyreeves has done the hard work of actually extracting the module, would it not make sense to move the module into a repo if its own? Then we could just move all discussions relating to mocks there, and close the issues here. This is mainly just to ease the administration burden. |
That would also mean administration burden of keeping that repository in sync with dev tools, etc. |
@mroderick @fatso83 OK, let's see if we can get 2.0 out the door. I've updated the overview of this Issue to cover what I consider to be all outstanding migrations (including CJSification of the testsuite, please, if you are reading this - help!) - please take a look and let me know if you agree with the outstanding work. Additionally, I would like to get consensus on the following:
Thanks all. |
@jonnyreeves: You have certainly been a busy bee tonight 😺. I have a long vacation ahead of me, so I could certainly help with the outstanding migrations of the test suite (there is a "but" below). Regarding your points:
|
Curious what the status on this is? Doesn't look like there's been much progress since ~6mo ago; I'm currently depending on a pre-release for various reasons (functioning Symbol support being a huge one) — I don't mean to push, but a simple ‘there is a timeline’ / ‘there is no timeline as of yet’ would be great! |
@ELLIOTTCABLE as we don't have funding, there is no set time line. It progresses as we in the maintainer group - or other volunteers such as yourself - have time to work on the list above. That being said, I think you could have answered the "status" bit yourself if you bothered to poke around a bit more 😉:
So ... we are getting somewhere, but overseeing bug fixes for the previous version, as well as a constant supply of new features, suck up a lot of our maintenance time. Just researching and writing this took half an hour in the end 😅 Basically, after looking over the list above there are just two main issues that remain:
I think most of the other uncloses checkmarks above relate to old IE releases (6-10) which I am quite certain will not be supported, based upon the discussions in #1221, so they can be ignored. Will address that now. |
@sinonjs/sinon-core: the previous comment made me aware that we have some issues above that we are not likely to complete based on the discussion in #1221:
Care if I create a PR to just remove the legacy IE bits if we won't touch them anyhow? I would assume |
@fatso83 Ahhhh, k. I missed the updated comments on the referenced Issues. I hope reviewing this for me was of use to you! Unrelatedly: Looks like part of this is abandoning support for IE6. That's unfortunate. Ah well, c'est la marche du progrès! /= |
We're basically there, the docs site has its own issue. |
Hey chaps - anything preventing us from marking 2.0 as the "stable" sinon release and killing 1.x? :) |
Think we wanted #1297 in as the last thing. |
ETA on that? I suggest we ship no later than next week, postponing that one feature if it's not done. |
You guys are beautiful. <3 |
What do we want to achieve in preparation for releasing a 2.0 release candidate of Sinon?
@mantoni @fatso83 @cjohansen Here are a handful of proposed tasks; please edit this Issue, or comment below so we can get a list of tasks together and get 2.0 shipped 🚀
CommonJS Migrations
sinon.spy
Commonjs-ified sinon.spy #920sinon.stub
CommonJSifysinon.stub
#932sinon.mock
CommonJSifysinon.mock
#933useFakeXMLHttpRequest
still referenced, see Feature/cjsify fake server tests #1118)sinon.sandbox
(Bulk of work done in Extractsandbox
into a CommonJS module. #936) Feature/cjsify sinon sandbox tests #1088sinon.format
(Tightly coupled in tests) Remove the use ofsinon.format
from the codebase #967sinon.collection
CJSify collection tests #1084Test Suite CommonJS Migrations
assert
suite CJSify sinon.assert tests #1078call
suite CJSify sinon.call tests #1079collection
suite CJSify collection tests #1084extend
suite Feature/cjsify typeof extend tests #1085match
suite CJSify match tests #1086mock
suite CJSify mock tests #1087sandbox
suite Feature/cjsify sinon sandbox tests #1088spy
suite CJSify Spy and Stub Tests. #1001stub
suite CJSify Spy and Stub Tests. #1001typeOf
suite Feature/cjsify typeof extend tests #1085util/core
suites CJSify Core Util Tests. #998, CJSify get-config tests #1081util/event
suite Migratesinon.Event
testsuite to CommonJS #1115util/fake-timers
suite CJSify fake-timer tests #1116util/fake-server
suite Feature/cjsify fake server tests #1118util/fake-server-with-clock
suite Feature/cjsify fake server tests #1118util/fake-xdomain-request
suiteutil/fake-xml-http-request
suite CJSifyfake-xml-http-request
tests. #1125Cleanup Tasks
test/sinon-test.js
suite Re-organise Tests (removessinon-test.js
) #968sinon.config
usage (Decision: #936. Removed entirely in Removesinon.test()
andsinon.testCase
. #973)sinon.logError
andsinon.log
[Removesinon.log
andsinon.logError
#972]sinon
global access, allows us to remove internal helpers from the public API) Migrate Packaged Tests to use a Browserified Build. #996Public API Changes
tasks with a
?
require clarification from maintainerssinon.test
andsinon.testCase
into their own NPM module (sinon-test
) Migrate sinon-test from sinon package. sinon-test#1 and Removesinon.test()
andsinon.testCase
. #973sinon.extend
(General utility not related to Sinon) InternalisetypeOf
andextends
#1235sinon.typeOf
(General utility not related to Sinon) InternalisetypeOf
andextends
#1235util/fake_server.js
so as not to usesinon
globalOutside of Scope
sinon.mock
into its own module (sinon-mock
) (Decision: Deprecate mock #745). Not removed until 3.0New documentation site
The text was updated successfully, but these errors were encountered: