Skip to content

v1.3.0

Latest

Choose a tag to compare

@timriley timriley released this 27 Nov 11:24
v1.3.0
d090080

Added

  • The Zeitwerk plugin accepts an enable_reloading: option, which enables reloading on the loader ahead of setup, so Zeitwerk tracks the constants it defines and they can be unloaded later. Applied from the plugin's after(: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 load rather than require, matching the ManifestRegistrar. 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 main Dry::System::Container source file is required. (@timriley in #298)

Compare v1.2.5 ... v1.3.0