Jeff Moore

Results 10 comments of Jeff Moore

https://nodejs.org/api/perf_hooks.html

Since `Symbol('BACK') !== 'BACK`', it is a BC break anyway, right? How about `redirectBack()`?

I have a working test for this, I haven't gotten around to updating the PR yet. You can see [here](https://gist.github.com/JeffRMoore/e921845d397f14feb76c937f8aa9c2fd) This jest test passes: ```js it('should throw if next() or...

Sorry for missing that point. I'm a little rushed today. I spent a lot of time on this previously and mostly just wanted to quickly dump what I had so...

This is where I had gotten to in detecting out of order resolves, against [this branch](https://github.com/koajs/compose/pull/70) Initialize a bottom up counter by `lastCalled` ```js let minResolved = middleware.length + 1;...

@PlasmaPower I'm not understanding the race condition possibility. Can you share an example?

> This issue is about forgetting to return next, not forgetting to call next. ```js compose([(ctx, next) => doStuff().then(doStuff), (ctx, next) => doStuff()]); ``` I'm confused. The first middleware doesn't...

@PlasmaPower Thanks for the update. There's a clear break in the promise chain. I believe the `minResolved` code I posted will detect if these resolve out of order. Two promise...

Speaking of bad days, I just realized the out of order resolve detection code above doesn't cover cases where errors occur. ```js return result.then ((value) => { if (i >...

Accepting unknown fields allows clients to create constraints on the evolution of the schema. For example, if a client sends an extra field and the server ignores it, then the...