-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Refactor proxy into own package, implement middleware pattern #5136
Conversation
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
177c15a
to
a63182e
Compare
1bebe5d
to
c151b0e
Compare
don't need these mocha opts anymore fix test no more zunder READMEs fix test
c151b0e
to
d921ae7
Compare
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.
Whenever you decaf stuff - submit those files as a separate PR outside of this so we can avoid the squash and merge.
@brian-mann All decaffing was done in a separate PR: #5156 However, this PR moves to new packages + edits some files, so not sure if that will break Git history or what. |
responded
6ed7057
to
fb50e8d
Compare
9b6c5e2
to
27edf34
Compare
@brian-mann @jennifer-shehane Is this good to merge in? Just brought it back up to date with I believe all the feedback that was left previously has been addressed. Since this forms the basis for #687 I'd like to get it merged in |
…s-io#5136) * renames * Refactor proxy into own package, implement middleware pattern don't need these mocha opts anymore fix test no more zunder READMEs fix test * pass request by reference * fix cors path * Move replace_stream to proxy, concat-stream util in network * Pin dependency versions * Revert addDefaultPort behavior * Add READMEs for proxy, network * Update README.md * eslint --fix * set to null not undefined * use delete and bump node types * import cors from package now * parse-domain@2.3.4 * proxy package needs common-tags * move pumpify dep * load through where it's needed, remove unused passthru_stream * remove unneeded getbuffer call Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com>
…s-io#5136) * renames * Refactor proxy into own package, implement middleware pattern don't need these mocha opts anymore fix test no more zunder READMEs fix test * pass request by reference * fix cors path * Move replace_stream to proxy, concat-stream util in network * Pin dependency versions * Revert addDefaultPort behavior * Add READMEs for proxy, network * Update README.md * eslint --fix * set to null not undefined * use delete and bump node types * import cors from package now * parse-domain@2.3.4 * proxy package needs common-tags * move pumpify dep * load through where it's needed, remove unused passthru_stream * remove unneeded getbuffer call Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com>
Released in |
proxy.coffee
and other related files from theserver
into a newproxy
package.proxy.coffee
has been split up into Request, Response, and Error middleware stacks, which are now easier to unit test.request.coffee
has been converted to Typescript and moved to thenetwork
package along with associated tests.Pending Electron v5.0.10 #4720 -request.coffee
was changed a lot and it would be wasted effort to refactor it fromdevelop
Pre-merge Tasks
network
,proxy