-
Notifications
You must be signed in to change notification settings - Fork 13
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
Last Call for 1.0 #823
Comments
The biggest change I'd love going forward is a more explicit way to manage proxying endpoints. All or nothing proxy is ok, but in practice we'll want to proxy most of the calls to the real API and only mock some. The ability to toggle per endpoint is ideal. Edit from @pmcelhaney: Agreed! Created #824 |
Congrats on getting to 1.0. Just found and started to use the tool a few weeks ago, and it's been a big help. Here's some pain points and feedback. If you need me to turn these into proper issues, let me know. Also, no need for the shirt, though that is very generous of you. npx runningTo run counterfact, I've set up a script to any team member can do
The downside to this approach is that sometimes counterfact will randomly upgrade, which may generate new mocks and dirty up my workspace which may not be desired. Obviously this is self-inflicted due to the Is there another way to take counterfact as a dependency and start it up without this multi-file hot reloadI see that hot reloading technically got fixed, though it turns out for me it's still not useful. In my setup I have a few files in the I'm not terribly familiar with js module hot reloading, commonjs, and whatever black magic is going on to do that reloading, but reloading one file isn't enough for me. What I have found is that if I make a meaningful mock data change to that Right now that process is onerous enough that I just kill and restart the server on any code change. Counterfact starts up fast enough that that's faster. Is this intentional? Could it be possible to reload all files in the |
Here's your answer to how to use it in In drop the
And then add this to your
Now running |
Regarding your hot reloading issue, you should not be seeing the behavior you're seeing. A change to any of your path endpoint files will trigger a reload and/or a change to a |
To confirm, I put a top-level |
@brianlaframboise Thanks for the feedback! Please do put them in separate issues because (a) they both need to be tracked and fixed and (b) I have a lot to say about both and if I respond here this thread is going to be a hot mess. :) |
Just stumbled upon this library, amazing exactly what I searched for! Some quick proposals from my initial experience:
|
What I've done so far is just use |
Do you mean something like petstore.yaml is hosted |
Yes, specifically, if a |
@kaikun213 thanks for the feedback!
Thanks! Out of curiosity, what were you looking for?
Indeed! I've wanted this feature myself 100 times and haven't gotten around to implementing it.
I agree, that can be tricky, but it's worth doing if we get the UX right. Can you create an issue?
Added #853
Makes sense. Can you open an issue for that too? I think it might be a matter of documenting how to do it. Or it might depend on #730. The ability to start Counterfact from code rather than the CLI will open up a lot of possibilities. These are all great ideas. Thanks for sharing. If you think of anything else, please don't hesitate to open additional issues! |
1.0 was released a couple of months ago! 🚀 Closing this issue. |
After more than 2 years of development, I'm excited to announce that Counterfact 1.0 will be released on May 1!
I cannot stress enough how much I value your feedback. Tell me about your development pain points. Let me know how you're using Counterfact or what you're using instead.
Counterfact will continue to be free and open source
Just so we're clear. :)
No breaking changes for the foreseeable future
The APIs are stable enough now that I can't think of anything I'd like to improve that can't be done in a backwards compatible way. This is the main reason I'm sending an announcement ahead of time. What additional features or changes would you like to see in Counterfact? I want to make sure everything is accounted for before committing to no breaking changes.
My time will split 50/50 between marketing and development
Of the time I have to work on this project, about half will go to
My hope is that additional contributors will more than make up for the time I'm not able to devote to features, bug fixes, documentation, and support.
The text was updated successfully, but these errors were encountered: