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
All of the current stable versions of middleware should be targeting koa v1. If it doesn't, let us know and we'll fix it.
Middleware may have an "alpha" version of the koa v2 version. These should NOT be marked as stable. If they do not exist, let us know and we'll create an alpha version so you can try it with koa v2. Better yet, make a PR!
Unfortunately my recent npm publish of v2 had dist-tag latest, so if someone starts a new empty project and runs npm install koa koa-jwt, they will end up with koa v1.2.4 and koa-jwt v2.2.1 😢 Consider this minimal example script in that environment:
This dies with AssertionError: app.use() requires a generator function. Sorry if anyone has been affected, it's my fault. I'll republish the 1.x branch ASAP with the latest tag to correct this.
For the v2 branch we should probably do what Koa does. This means that an npm publish on v2 will have the right tag automatically.
The text was updated successfully, but these errors were encountered:
I've just been reading Koa's v2 roadmap, and spotted this:
Unfortunately my recent npm publish of v2 had dist-tag
latest
, so if someone starts a new empty project and runsnpm install koa koa-jwt
, they will end up with koa v1.2.4 and koa-jwt v2.2.1 😢 Consider this minimal example script in that environment:This dies with
AssertionError: app.use() requires a generator function
. Sorry if anyone has been affected, it's my fault. I'll republish the 1.x branch ASAP with thelatest
tag to correct this.For the v2 branch we should probably do what Koa does. This means that an
npm publish
on v2 will have the right tag automatically.The text was updated successfully, but these errors were encountered: