Giter Club home page Giter Club logo

Comments (11)

chentsulin avatar chentsulin commented on May 5, 2024

try npm i --save koa-compose@2

koa-compose@3 has breaking chages for koa@2

from compose.

chrisveness avatar chrisveness commented on May 5, 2024

Since Koa v2 is still alpha (and I don't expect to want to use it until async/await are native!), could you dist-tag [email protected] as 'next' in npm, with 2.3.0 as 'latest'? (as Koa itself is dist-tagged, in fact).

from compose.

chentsulin avatar chentsulin commented on May 5, 2024

+1 for koa-compose@3 as next

from compose.

tj avatar tj commented on May 5, 2024

peerDependencies :D

from compose.

chrisveness avatar chrisveness commented on May 5, 2024

Even better! I stand corrected :)

from compose.

tejasmanohar avatar tejasmanohar commented on May 5, 2024

@chrisveness peerDependencies aren't better because they're deprecated in npm 3. They still give you a warning when the deps don't match up, but that could change in the next version.

from compose.

chrisveness avatar chrisveness commented on May 5, 2024

Ok, I thought peerDependencies had simply changed in npm 3 (warning instead of auto-installing), I wasn't aware they were deprecated; however, I'm happy to bow to the experts (@tj, @tejasmanohar), I just want want Koa 1 dependencies to work smoothly for me until such time as async/await are native in v8 and I can go to Koa 2 without transpiling – I'm not really worried about how it happens...

from compose.

tejasmanohar avatar tejasmanohar commented on May 5, 2024

@chrisveness
a) not an expert
b) I may be wrong about peerDependencies- will check on that. You should get [email protected] when you npm install koa-compose now (at least, you will on latest NPM). See here.

from compose.

tejasmanohar avatar tejasmanohar commented on May 5, 2024

@chrisveness You're right about peerDependencies. My bad. +1 for that. // cc @tj

from compose.

chrisveness avatar chrisveness commented on May 5, 2024

Good stuff, thx for dist-tags

from compose.

jonathanong avatar jonathanong commented on May 5, 2024

kia-compose's latest is v2 so this should no longer be a problem

from compose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.