winglang/wing

Migrate from express to something lighter

Open

#4506 aperta il 11 ott 2023

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)TypeScript (214 fork)github user discovery
good first issueneeds-discussionrefactor✨ enhancement🎨 sdk

Metriche repository

Star
 (5385 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

express is used in the simulator for our various resources that need to host an http server.

express works and is used by a lot of people, but:

  • It has many dependencies, especially ones that are no longer needed in modern js
    • This can cause issues with peer dependencies as we move forward, especially due to our usage of bundled dependencies. e.g. express depends on v1 of mime but another lib we use depends on mime v2
  • It's not very well maintained anymore, hasn't been updated in over a year at the time of this post. (missing many dependency updates)
  • It's Heavy-handed while our use cases are generally pretty simplistic. We just need an HTTP server with routing

Alternatives to consider:

Guida contributor