dry-system 1.3.0
Added
- The Zeitwerk plugin accepts an
enable_reloading:option, which enables reloading on the loader ahead ofsetup, so Zeitwerk tracks the constants it defines and they can be unloaded later. Applied from the plugin’safter(:configure)hook, so it is in time whether the loader is set up by the plugin or by the integrating library. (@afomera in #297)
Changed
- Provider files are now evaluated with
loadrather thanrequire, matching theManifestRegistrar. A provider file is evaluated once per provider registrar rather than once per process, so a second container sharing a provider dir gets its own providers instead of having the file skipped, and a container built afresh picks up changes to it. (@afomera in #297)
Fixed
- Avoid errors from attempted duplicate registrations when finalizing a container with manifest-registered dependencies that have already been loaded as part of finalizing providers. (@alassek, @timriley in #295)
- Require
"dry/configurable"in the files that need it, fixing issues when loading specific source files before the mainDry::System::Containersource file is required. (@timriley in #298)