v0.21.0
Added
- Added component dir namespaces as a way to specify multiple, ordered, independent namespace rules within a given component dir. This replaces and expands upon the namespace support we previously provided via the singular
default_namespace
component dir setting (@timriley in #181)
Changed
-
default_namespace
setting on component dirs has been deprecated. Add a component dir namespace instead, e.g. instead of:# Inside Dry::System::Container.configure config.component_dirs.add "lib" do |dir| dir.default_namespace = "admin" end
Add this:
config.component_dirs.add "lib" do |dir| dir.namespaces.add "admin", key: nil end
-
Dry::System::Component#path
has been removed and replaced byComponent#require_path
andComponent#const_path
(@timriley in #181) -
Unused
Dry::System::FileNotFoundError
andDry::System::InvalidComponentIdentifierTypeError
errors have been removed (@timriley in #194)