-
Notifications
You must be signed in to change notification settings - Fork 15
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
Move req
prototype to separate repo
#82
Comments
Ok, here is the new request repo. It would be great if folks can take a look before we publish. https://github.com/pillarjs/request cc @expressjs/express-tc @expressjs/triagers |
Awesome @wesleytodd ! I forgot this issue already existed, so I moved my comment from #100 (comment) here to kick off the general conversation. I think the biggest feedback I have from reviewing them is they... do not actually work independent of each other, yet they are published independently as if they could be. I'm not clear on if the issue is either they they depend on each other by accident or maybe that they should just be a single repo and not two separate repos. The readme of |
This is a great point! My thought was to copy it over verbatim at first, then discuss what changes we need to make it work outside of Express. I guess I didn't cover that here but my thought is we can move toward it being standalone as we go. Would maybe to discuss this on that repo now that we have it? |
Yep, that is what I figured, and I guess my thought(s) above was the start of such a conversation :)
Sure! I will create an issue there 👍 |
Cool, I have a bunch of thoughts but will reserve them for tomorrow and an issue on that repo. I probably will not get to the |
Definitely. I wasn't even going to open the issue until tomorrow anyhow. There is likely a lot of thoughts all around, haha. |
Curious if ya'll have thoughts about preserving the git history for It's fragile, though, since so far as I understand you need to keep the same filepaths aka |
I did, but was not sure how valuable it would be, and was planning on reformatting to standardjs formatting which would break blame anyway. If you want to keep the history and move them you just need to do the pull out first and then move the file in a new commit. Again though, I am not sure how valuable trying to keep it is do didn't try. |
The story started in 2014: expressjs/express#2432
I even made the repo where I intended to do this ~2 years ago, but never finished the work.
Since then I have talked with a few people about how the different frameworks and platforms can collaborate. And then @ianstormtaylor kept tweeting about it, so tonight I took the plunge ;)
Here is the initial repo: https://github.com/wesleytodd/express-request
I wrote a few more thoughts about it in the readme for this repo, but I wanted to add here what I think the plan should be:
pillarjs
because this is specifically the Express sugar/compatibility layer. Also, I didn't just create it here because I wanted to get consensus on the direction first.http1/2/3
.pillarjs
and integrate them into this allowing for mix-and-match by other implementations. This would be an ongoing process as needed.The long term goal is that other frameworks and platforms do not need to reinvent the wheel as express evolves. This can also be a place for us to evolve ideas which will ultimately be proposed as additions to the core api's to help improve and evolve them.
If we can get consensus on the api across frameworks and platforms we can then provide shared tools across the framework ecosystems, making the "framework" fungible with the core http features as the shared underlying code.
Other benefits I can think of:
Anyway, I just wanted to get the conversion moving with an actual implementation example. So to start I pulled it out, and over the next week or so I will make open a PR against the
master
/4.0
because this should be backward compatible.If everyone is onboard with this approach I will do the same for the response and follow the same approach as listed above.
People who might be interested in this to comment on and or collaborate from other frameworks: @matteocollina @styfle @DonutEspresso @hekike
Note: Obviously before we integrate it there is work to do with documentation and getting it fully up to standards with the express org requirements. Removing probably the whole "History and Reasoning" section, sorry Ian 😄
The text was updated successfully, but these errors were encountered: