mnasyrov / ditox

Dependency injection for modular web applications
https://ditox.js.org
MIT License
92 stars 8 forks source link

Binding a module with "scoped" scope must use "scoped" for its nested imports by default. #36

Closed mnasyrov closed 1 month ago

mnasyrov commented 1 month ago

A module with "scoped" scope must bind its dependant modules from "imports" with "scoped" scope by default, not "singleton".

Current behaviour with "singleton" default scope leads to binding dependant modules to a parent container. These modules will not destroyed together with a child container.

mnasyrov commented 1 month ago

Closed by #40