You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Major version bump for the following breaking changes:
1) Interceptor done callbacks will be replaced by the cycle object.
// old signatureproxy.intercept('request',function(req,resp,done){assert(typeofdone==='function');doSomethingAsyncThatTakesCallback(function(err){done(err);});});
// new signatureproxy.intercept('request',function(req,resp,cycle){assert(typeofcycle!=='function');assert(this===cycle);returndoSomethingAsyncThatReturnsPromise();});
The reason for this is that it simplifies the internals a bit, which makes the project incrementally less bug-prone and easier to maintain. But also, it allows writing interceptors as arrow functions, which otherwise wouldn't have access to the cycle object. (@nerdbeere)
2) CLI goes away
Not sure how many people used it beyond myself. I often forgot to update it as the project evolved, and by removing it I can focus on the core. Someone else is welcome to spin up a separate CLI project based on Hoxy, if they want.
3) hoxy.forever() goes away
This is an undocumented function that will go away.
The text was updated successfully, but these errors were encountered:
Major version bump for the following breaking changes:
1) Interceptor
done
callbacks will be replaced by thecycle
object.The reason for this is that it simplifies the internals a bit, which makes the project incrementally less bug-prone and easier to maintain. But also, it allows writing interceptors as arrow functions, which otherwise wouldn't have access to the cycle object. (@nerdbeere)
2) CLI goes away
Not sure how many people used it beyond myself. I often forgot to update it as the project evolved, and by removing it I can focus on the core. Someone else is welcome to spin up a separate CLI project based on Hoxy, if they want.
3)
hoxy.forever()
goes awayThis is an undocumented function that will go away.
The text was updated successfully, but these errors were encountered: