microsoft / tsyringe

Lightweight dependency injection container for JavaScript/TypeScript
MIT License
5.18k stars 172 forks source link

Archive this repo #246

Open chriskuech opened 1 month ago

chriskuech commented 1 month ago

This repo is evidently unmaintained. Please archive the repo so people know not to use it on projects.

alfiadoDev commented 1 month ago

yes is better. any alternative?

chriskuech commented 1 month ago

yes is better. any alternative?

I switched to inversify

eydelrivero commented 1 month ago

@chriskuech @alfiadoDev Sadly it is a sad state of affairs for many TypeScript DI libraries. Inversify maintenance is not much better, if you see their GitHub repo, without counting a small release v6.03 made just yesterday, the previous one v6.01 was done 3 years ago. On top of that, there are some very concerning issues related to the future of the project (See here and here). Archiving tsyringe I think is strong measure for a project with 5K stars on GitHub and 350K NPM downloads weekly. Before that, in my opinion it would be better to try searching for new maintainers among contributors or anyone else willing to help. And this is something Inversify is doing. If you go to their issues page, the first thing you see is the Maintainers wanted issue pinned on the top.

Image

chriskuech commented 1 month ago

@eydelrivero yes, I have since observed the same. If anyone comes to this post recommending a DI solution for TS, I would instead recommend async_hooks and lazy instantiation with closures.

PodaruDragos commented 1 month ago

hey guys, inversify has a new group of working members now, things will shift in a good direction. I will keep the pinned issue pinned so that other people who want to join can do so.

eydelrivero commented 4 weeks ago

@PodaruDragos Very glad to hear such a reassurance from someone actively working on it 👍