dry-system 1.2.4 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -1,216 +1,221 @@
1
- <!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
1
+ # Changelog
2
2
 
3
- ## 1.2.4 2025-08-14
3
+ All notable changes to this project will be documented in this file.
4
4
 
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Break Versioning](https://www.taoensso.com/break-versioning).
5
6
 
6
- ### Fixed
7
+ ## [Unreleased]
7
8
 
8
- - Allow imported components to be lazy loaded when both strings and symbols are given as the
9
- namespace to `Container.import` (@timriley in #287)
9
+ ### Added
10
10
 
11
+ ### Changed
11
12
 
12
- [Compare v1.2.3...v1.2.4](https://github.com/dry-rb/dry-system/compare/v1.2.3...v1.2.4)
13
+ ### Deprecated
13
14
 
14
- ## 1.2.3 2025-07-29
15
+ ### Removed
15
16
 
17
+ ### Fixed
16
18
 
17
- ### Added
19
+ ### Security
18
20
 
19
- - Add :register after-hook to detect container key registration dynamically. (via #274, @alassek)
21
+ [Unreleased]: https://github.com/dry-rb/dry-system/compare/v1.3.0...main
20
22
 
21
- ### Fixed
23
+ ## [1.3.0] - 2026-11-27
22
24
 
23
- - Re-register components from manifest registrars in apps that reload the container (e.g. when
24
- using dry-rails and Rails development mode) (via #286, @alassek)
25
+ ### Added
25
26
 
26
- ### Changed
27
+ - 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)
27
28
 
28
- - :finalize after-hook now executes before container freeze to allow mutation. (via #274, @alassek)
29
+ ### Changed
29
30
 
30
- [Compare v1.2.2...v1.2.3](https://github.com/dry-rb/dry-system/compare/v1.2.2...v1.2.3)
31
+ - 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)
31
32
 
32
- ## 1.2.2 2025-01-31
33
+ ### Fixed
33
34
 
35
+ - 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)
36
+ - 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)
34
37
 
35
- ### Fixed
38
+ [1.3.0]: https://github.com/dry-rb/dry-system/compare/v1.2.5...v1.3.0
36
39
 
37
- - Syntax errors on 3.3.0 (@flash-gordon, see #284)
40
+ ## [1.2.5] - 2025-12-01
38
41
 
42
+ ### Fixed
39
43
 
40
- [Compare v1.2.1...v1.2.2](https://github.com/dry-rb/dry-system/compare/v1.2.1...v1.2.2)
44
+ - Pass through keyword arguments to monitored objects in `monitoring` plugin. (@yuszuv in #290)
41
45
 
42
- ## 1.2.1 2025-01-08
46
+ [1.2.5]: https://github.com/dry-rb/dry-system/compare/v1.2.4...v1.2.5
43
47
 
48
+ ## [1.2.4] - 2025-08-14
44
49
 
45
50
  ### Fixed
46
51
 
47
- - `eager_load` was removed from `finalize!`. It was introduced with `true` by default that
48
- wasn't the intention #281 (via #282) (@flash-gordon)
52
+ - Allow imported components to be lazy loaded when both strings and symbols are given as the namespace to `Container.import`. (@timriley in #287)
49
53
 
54
+ [1.2.4]: https://github.com/dry-rb/dry-system/compare/v1.2.3...v1.2.4
50
55
 
51
- [Compare v1.2.0...v1.2.1](https://github.com/dry-rb/dry-system/compare/v1.2.0...v1.2.1)
56
+ ## [1.2.3] - 2025-07-29
52
57
 
53
- ## 1.2.0 2025-01-07
58
+ ### Added
54
59
 
60
+ - Add :register after-hook to detect container key registration dynamically. (@alassek in #274)
55
61
 
56
- ### Added
62
+ ### Fixed
57
63
 
58
- - Option to skip eager loading during finalize with `eager_load: false` (via #276) (@cllns)
64
+ - Re-register components from manifest registrars in apps that reload the container (e.g. when using dry-rails and Rails development mode). (@alassek in #286)
59
65
 
60
66
  ### Changed
61
67
 
62
- - Update required Ruby version to 3.1 (@flash-gordon)
68
+ - :finalize after-hook now executes before container freeze to allow mutation. (@alassek in #274)
63
69
 
64
- [Compare v1.1.1...v1.2.0](https://github.com/dry-rb/dry-system/compare/v1.1.1...v1.2.0)
65
-
66
- ## 1.1.1 2024-11-03
70
+ [1.2.3]: https://github.com/dry-rb/dry-system/compare/v1.2.2...v1.2.3
67
71
 
72
+ ## [1.2.2] - 2025-01-31
68
73
 
69
74
  ### Fixed
70
75
 
71
- - Restore `ProviderRegistrar#find_and_load_provider` as an alias of `#[]`
76
+ - Syntax errors on 3.3.0. (@flash-gordon in #284)
72
77
 
78
+ [1.2.2]: https://github.com/dry-rb/dry-system/compare/v1.2.1...v1.2.2
73
79
 
74
- [Compare v1.1.0...v1.1.1](https://github.com/dry-rb/dry-system/compare/v1.1.0...v1.1.1)
80
+ ## [1.2.1] - 2025-01-08
75
81
 
76
- ## 1.1.0 2024-10-31
82
+ ### Fixed
77
83
 
84
+ - `eager_load` was removed from `finalize!`. It was introduced with `true` by default that wasn't the intention #281. (@flash-gordon in #282)
78
85
 
86
+ [1.2.1]: https://github.com/dry-rb/dry-system/compare/v1.2.0...v1.2.1
79
87
 
80
- [Compare v1.1.0.beta2...v1.1.0](https://github.com/dry-rb/dry-system/compare/v1.1.0.beta2...v1.1.0)
88
+ ## [1.2.0] - 2025-01-07
81
89
 
82
- ## 1.1.0.beta2 2024-09-25
90
+ ### Added
83
91
 
92
+ - Option to skip eager loading during finalize with `eager_load: false`. (@cllns in #276)
84
93
 
85
94
  ### Changed
86
95
 
87
- - Allow provider sources to use a custom superclass. This requires a custom provider registrar
88
- to be configured, with its own implementations of `#provider_source_class` (the superclass to
89
- use) and `#provider_source_options` (custom initialization args to pass to the provider
90
- source). (via #275) (@alassek, @timriley)
96
+ - Update required Ruby version to 3.1. (@flash-gordon)
91
97
 
92
- [Compare v1.1.0.beta1...v1.1.0.beta2](https://github.com/dry-rb/dry-system/compare/v1.1.0.beta1...v1.1.0.beta2)
98
+ [1.2.0]: https://github.com/dry-rb/dry-system/compare/v1.1.1...v1.2.0
93
99
 
94
- ## 1.1.0.beta1 2024-07-03
100
+ ## [1.1.1] - 2024-11-03
95
101
 
102
+ ### Fixed
96
103
 
97
- ### Added
104
+ - Restore `ProviderRegistrar#find_and_load_provider` as an alias of `#[]`.
98
105
 
99
- - Add `Dry::System::ProviderRegistrar#target_container`, to be passed when initializing
100
- providers. By default this is an alias of `#container`. This allows for custom provider
101
- registrars to override `#target_container` to provide a custom `#target` within providers.
102
- An overridden value **MUST** still wrap the original `#target_container` to ensure components
103
- are registered in the right place. (via #270) (@timriley)
106
+ [1.1.1]: https://github.com/dry-rb/dry-system/compare/v1.1.0...v1.1.1
104
107
 
105
- ### Changed
108
+ ## [1.1.0] - 2024-10-31
106
109
 
107
- - Make `Dry::System::ProviderRegistrar` public API (via #270) (@timriley)
108
- - When registering a provider source, you can now provide a `provider_options:` hash of default
109
- options for providers to be registered using that source. The one provider option currently
110
- supported is `namespace:`. (via #271) (@timriley)
111
- - Load providers when accessing them via `Dry::System::ProviderRegistrar#[]`. The previous,
112
- behavior of `#[]` returning `nil` if a provider had not been explicitly loaded was a
113
- potential source of confusion. Now `#[]` can serve as the one and only interface for fetching
114
- a provider. (via #273) (@timriley)
110
+ [1.1.0]: https://github.com/dry-rb/dry-system/compare/v1.1.0.beta2...v1.1.0
115
111
 
116
- [Compare v1.0.1...v1.1.0.beta1](https://github.com/dry-rb/dry-system/compare/v1.0.1...v1.1.0.beta1)
112
+ ## [1.1.0.beta2] - 2024-09-25
117
113
 
118
- ## 1.0.1 2022-11-18
114
+ ### Changed
119
115
 
116
+ - Allow provider sources to use a custom superclass. This requires a custom provider registrar to be configured, with its own implementations of `#provider_source_class` (the superclass to use) and `#provider_source_options` (custom initialization args to pass to the provider source). (@alassek, @timriley in #275)
120
117
 
121
- ### Changed
118
+ [1.1.0.beta2]: https://github.com/dry-rb/dry-system/compare/v1.1.0.beta1...v1.1.0.beta2
122
119
 
123
- - Bumped dry-auto_inject dependency to its 1.0.0 final release (@solnic)
120
+ ## [1.1.0.beta1] - 2024-07-03
124
121
 
125
- [Compare v1.0.0...v1.0.1](https://github.com/dry-rb/dry-system/compare/v1.0.0...v1.0.1)
122
+ ### Added
126
123
 
127
- ## 1.0.0 2022-11-18
124
+ - Add `Dry::System::ProviderRegistrar#target_container`, to be passed when initializing providers. By default this is an alias of `#container`. This allows for custom provider registrars to override `#target_container` to provide a custom `#target` within providers. An overridden value **MUST** still wrap the original `#target_container` to ensure components are registered in the right place. (@timriley in #270)
128
125
 
126
+ ### Changed
129
127
 
130
- ### Fixed
128
+ - Make `Dry::System::ProviderRegistrar` public API. (@timriley in #270)
129
+ - When registering a provider source, you can now provide a `provider_options:` hash of default options for providers to be registered using that source. The one provider option currently supported is `namespace:`. (@timriley in #271)
130
+ - Load providers when accessing them via `Dry::System::ProviderRegistrar#[]`. The previous, behavior of `#[]` returning `nil` if a provider had not been explicitly loaded was a potential source of confusion. Now `#[]` can serve as the one and only interface for fetching a provider. (@timriley in #273)
131
131
 
132
- - Only use DidYouMean-integrated Error for Component loading failure (via #261) (@cllns + @solnic)
132
+ [1.1.0.beta1]: https://github.com/dry-rb/dry-system/compare/v1.0.1...v1.1.0.beta1
133
133
 
134
- ### Changed
134
+ ## [1.0.1] - 2022-11-18
135
135
 
136
- - This version uses dry-core 1.0 and dry-configurable 1.0 (@solnic + @flash-gordon)
137
- - Raise error on import after finalize (via #254) (@timriley + @tak1n)
138
- - Validate settings even if loader does not set value (via #246) (@oeoeaio)
139
- - Remove all deprecated functionality and deprecation messages (via #255) (@timriley)
140
- - Use main dry/monitor entrypoint for autoloading (via #257) (@timriley)
141
- - Use dry-configurable 1.0 (via 43c79095ccf54c6251e825ae20c97a9415e78209) (@flash-gordon)
142
- - Use dry-core 1.0 (via 3d0cf95aef120601e67f3e8fbbf16d004017d376) (@flash-gordon)
143
- - Remove dry-container dependency and update to use `Dry::Core::Container` (via 2b76554e5925fc92614627d5c1e0a9177cecf12f) (@solnic)
136
+ ### Changed
144
137
 
145
- [Compare v0.27.2...v1.0.0](https://github.com/dry-rb/dry-system/compare/v0.27.2...v1.0.0)
138
+ - Bumped dry-auto_inject dependency to its 1.0.0 final release. (@solnic)
146
139
 
147
- ## 0.27.2 2022-10-17
140
+ [1.0.1]: https://github.com/dry-rb/dry-system/compare/v1.0.0...v1.0.1
148
141
 
142
+ ## [1.0.0] - 2022-11-18
149
143
 
150
144
  ### Fixed
151
145
 
152
- - Removed remaining manual require left-overs (@solnic)
146
+ - Only use DidYouMean-integrated Error for Component loading failure. (@cllns, @solnic in #261)
153
147
 
148
+ ### Changed
154
149
 
155
- [Compare v0.27.1...v0.27.2](https://github.com/dry-rb/dry-system/compare/v0.27.1...v0.27.2)
150
+ - This version uses dry-core 1.0 and dry-configurable 1.0. (@solnic, @flash-gordon)
151
+ - Raise error on import after finalize. (@timriley, @tak1n in #254)
152
+ - Validate settings even if loader does not set value. (@oeoeaio in #246)
153
+ - Remove all deprecated functionality and deprecation messages. (@timriley in #255)
154
+ - Use main dry/monitor entrypoint for autoloading. (@timriley in #257)
155
+ - Use dry-configurable 1.0. (@flash-gordon in 43c7909)
156
+ - Use dry-core 1.0. (@flash-gordon in 3d0cf95)
157
+ - Remove dry-container dependency and update to use `Dry::Core::Container`. (@solnic in 2b76554)
156
158
 
157
- ## 0.27.1 2022-10-15
159
+ [1.0.0]: https://github.com/dry-rb/dry-system/compare/v0.27.2...v1.0.0
158
160
 
161
+ ## [0.27.2] - 2022-10-17
159
162
 
160
163
  ### Fixed
161
164
 
162
- - Tweak for zeitwerk loader (@flash-gordon)
165
+ - Removed remaining manual require left-overs. (@solnic)
166
+
167
+ [0.27.2]: https://github.com/dry-rb/dry-system/compare/v0.27.1...v0.27.2
163
168
 
169
+ ## [0.27.1] - 2022-10-15
164
170
 
165
- [Compare v0.27.0...v0.27.1](https://github.com/dry-rb/dry-system/compare/v0.27.0...v0.27.1)
171
+ ### Fixed
166
172
 
167
- ## 0.27.0 2022-10-15
173
+ - Tweak for zeitwerk loader. (@flash-gordon)
168
174
 
175
+ [0.27.1]: https://github.com/dry-rb/dry-system/compare/v0.27.0...v0.27.1
169
176
 
170
- ### Changed
177
+ ## [0.27.0] - 2022-10-15
171
178
 
172
- - [BREAKING] Use zeitwerk for auto-loading dry-system (@flash-gordon + @solnic)
179
+ ### Changed
173
180
 
174
- From now on you need to do `require "dry/system"` as it sets up its Zeitwerk loader and from
175
- there, everything else will be auto-loaded.
181
+ - [BREAKING] Use zeitwerk for auto-loading dry-system. (@flash-gordon, @solnic)
176
182
 
177
- [Compare v0.26.0...v0.27.0](https://github.com/dry-rb/dry-system/compare/v0.26.0...v0.27.0)
183
+ From now on you need to do `require "dry/system"` as it sets up its Zeitwerk loader and from there, everything else will be auto-loaded.
178
184
 
179
- ## 0.26.0 2022-10-08
185
+ [0.27.0]: https://github.com/dry-rb/dry-system/compare/v0.26.0...v0.27.0
180
186
 
187
+ ## [0.26.0] - 2022-10-08
181
188
 
182
189
  ### Changed
183
190
 
184
- - Update dry-configurable dependency to 0.16.0 and make internal adjustments to suit (@timriley in #249)
185
- - Remove now-unused concurrent-ruby gem dependency (@timriley in #250)
191
+ - Update dry-configurable dependency to 0.16.0 and make internal adjustments to suit. (@timriley in #249)
192
+ - Remove now-unused concurrent-ruby gem dependency. (@timriley in #250)
186
193
 
187
- [Compare v0.25.0...v0.26.0](https://github.com/dry-rb/dry-system/compare/v0.25.0...v0.26.0)
188
-
189
- ## 0.25.0 2022-07-10
194
+ [0.26.0]: https://github.com/dry-rb/dry-system/compare/v0.25.0...v0.26.0
190
195
 
196
+ ## [0.25.0] - 2022-07-10
191
197
 
192
198
  ### Fixed
193
199
 
194
- - Fix incorrect type in `ManifestRegistrar#finalize!` (@alassek)
200
+ - Fix incorrect type in `ManifestRegistrar#finalize!`. (@alassek)
195
201
 
196
202
  ### Changed
197
203
 
198
- - Import root components via `nil` import namespace (via #236) (@timriley)
199
- - Allow deeper `Provider::Source` hierarchies (via #240) (@timriley + @solnic)
200
- - Prefer local components when importing (via #241) (@timriley + @solnic)
201
-
202
- [Compare v0.24.0...v0.25.0](https://github.com/dry-rb/dry-system/compare/v0.24.0...v0.25.0)
204
+ - Import root components via `nil` import namespace. (@timriley in #236)
205
+ - Allow deeper `Provider::Source` hierarchies. (@timriley, @solnic in #240)
206
+ - Prefer local components when importing. (@timriley, @solnic in #241)
203
207
 
204
- ## 0.24.0
208
+ [0.25.0]: https://github.com/dry-rb/dry-system/compare/v0.24.0...v0.25.0
205
209
 
210
+ ## [0.24.0] - 2022-05-25
206
211
 
207
212
  ### Changed
208
213
 
209
- - dry-struct depedency was removed (@flash-gordon)
214
+ - dry-struct depedency was removed. (@flash-gordon)
210
215
 
211
- [Compare v0.23.0...master](https://github.com/dry-rb/dry-system/compare/v0.23.0...master)
216
+ [0.24.0]: https://github.com/dry-rb/dry-system/compare/v0.23.0...master
212
217
 
213
- ## 0.23.0 2022-02-08
218
+ ## [0.23.0] - 2022-02-08
214
219
 
215
220
  This is a major overhaul of bootable components (now known as “Providers”), and brings major advancements to other areas, including container imports and exports.
216
221
 
@@ -218,10 +223,9 @@ Deprecations are in place for otherwise breaking changes to commonly used parts
218
223
 
219
224
  This prepares the way for dry-system 1.0, which will be released in the coming months.
220
225
 
221
-
222
226
  ### Added
223
227
 
224
- - Containers can configure specific components for export using `config.exports` (@timriley in #209).
228
+ - Containers can configure specific components for export using `config.exports`. (@timriley in #209)
225
229
 
226
230
  ```ruby
227
231
  class MyContainer < Dry::System::Container
@@ -234,7 +238,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
234
238
  Containers importing another container with configured exports will import only those components.
235
239
 
236
240
  When importing a specific set of components (see the note in the “Changed” section below), only those components whose keys intersect with the configured exports will be imported.
237
- - A `:zeitwerk` plugin, to set up [Zeitwerk](https://github.com/fxn/zeitwerk) and integrate it with your container configuration (@ianks and @timriley in #197, #222, 13f8c87, #223)
241
+ - A `:zeitwerk` plugin, to set up [Zeitwerk](https://github.com/fxn/zeitwerk) and integrate it with your container configuration. (@ianks and @timriley in #197, #222, 13f8c87, #223)
238
242
 
239
243
  This makes it possible to enable Zeitwerk with a one-liner:
240
244
 
@@ -257,7 +261,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
257
261
  - `run_setup:` - (optional) a bool to determine whether to run `Zeitwerk::Loader#setup` as part of the after-`:configure` hook. This may be useful to disable in advanced cases when integrating with an externally managed loader.
258
262
  - `eager_load:` - (optional) a bool to determine whether to run `Zeitwerk::Loader#eager_load` as part of an after-`:finalize` hook. When not provided, it will default to true if the `:env` plugin is enabled and the env is set to `:production`.
259
263
  - `debug:` - (optional) a bool to set whether Zeitwerk should log to `$stdout`.
260
- - New `Identifier#end_with?` and `Identifier#include?` predicates (@timriley in #219)
264
+ - New `Identifier#end_with?` and `Identifier#include?` predicates. (@timriley in #219)
261
265
 
262
266
  These are key segment-aware predicates that can be useful when checking components as part of container configuration.
263
267
 
@@ -275,7 +279,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
275
279
  identifier.include?("article") # false, not a whole segment
276
280
  identifier.include?("update") # => false, not part of the key at all
277
281
  ```
278
- - An `instance` setting for component dirs allows simpler per-dir control over component instantiation (@timriley in #215)
282
+ - An `instance` setting for component dirs allows simpler per-dir control over component instantiation. (@timriley in #215)
279
283
 
280
284
  This optional setting should be provided a proc that receives a single `Dry::System::Component` instance as an argument, and should return the instance for the given component.
281
285
 
@@ -296,20 +300,20 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
296
300
  ```
297
301
 
298
302
  For complete control of component loading, you should continue to configure the component dir’s `loader` instead.
299
- - A new `ComponentNotLoadableError` error and helpful message is raised when resolving a component and an unexpected class is defined in the component’s source file (@cllns in #217).
303
+ - A new `ComponentNotLoadableError` error and helpful message is raised when resolving a component and an unexpected class is defined in the component’s source file. (@cllns in #217)
300
304
 
301
305
  The error shows expected and found class names, and inflector configuration that may be required in the case of class names containing acronyms.
302
306
 
303
307
  ### Fixed
304
308
 
305
- - Registrations made in providers (by calling `register` inside a provider step) have all their registration options preserved (such as a block-based registration, or the `memoize:` option) when having their registration merged into the target container after the provider lifecycle steps complete (@timriley in #212).
306
- - Providers can no longer implicitly re-start themselves while in the process of starting and cause an infinite loop (@timriley #213).
309
+ - Registrations made in providers (by calling `register` inside a provider step) have all their registration options preserved (such as a block-based registration, or the `memoize:` option) when having their registration merged into the target container after the provider lifecycle steps complete. (@timriley in #212)
310
+ - Providers can no longer implicitly re-start themselves while in the process of starting and cause an infinite loop. (@timriley in #213)
307
311
 
308
312
  This was possible before when a provider resolved a component from the target container that auto-injected dependencies with container keys sharing the same base key as the provider name.
309
313
 
310
314
  ### Changed
311
315
 
312
- - “Bootable components” (also referred to in some places simply as “components”) have been renamed to “Providers” (@timriley in #200).
316
+ - “Bootable components” (also referred to in some places simply as “components”) have been renamed to “Providers”. (@timriley in #200)
313
317
 
314
318
  Register a provider with `Dry::System::Container.register_provider` (`Dry::System::Container.boot` has been deprecated):
315
319
 
@@ -318,7 +322,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
318
322
  # ...
319
323
  end
320
324
  ```
321
- - Provider `init` lifecycle step has been deprecated and renamed to `prepare` (@timriley in #200).
325
+ - Provider `init` lifecycle step has been deprecated and renamed to `prepare`. (@timriley in #200)
322
326
 
323
327
  ```ruby
324
328
  MyContainer.reigster_provider(:mailer) do
@@ -328,7 +332,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
328
332
  end
329
333
  end
330
334
  ```
331
- - Provider behavior is now backed by a class per provider, known as the “Provider source” (@timriley in #202).
335
+ - Provider behavior is now backed by a class per provider, known as the “Provider source”. (@timriley in #202)
332
336
 
333
337
  The provider source class is created for each provider as a subclass of `Dry::System::Provider::Source`.
334
338
 
@@ -371,17 +375,17 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
371
375
  end
372
376
  })
373
377
  ```
374
- - The block argument to `Dry::System::Container.register_provider` (previously `.boot`) has been deprecated. (@timriley in #202).
378
+ - The block argument to `Dry::System::Container.register_provider` (previously `.boot`) has been deprecated. (@timriley in #202)
375
379
 
376
380
  This argument was used to give you access to the provider's target container (i.e. the container on which you were registering the provider).
377
381
 
378
382
  To access the target container, you can use `#target_container` (or `#target` as a convenience alias) instead.
379
383
 
380
384
  You can also access the provider's own container (which is where the provider's components are registered when you call `register` directly inside a provider step) as `#provider_container` (or `#container` as a convenience alias).
381
- - `use(provider_name)` inside a provider step has been deprecated. Use `target_container.start(provider_name)` instead (@timriley in #211 and #224)
385
+ - `use(provider_name)` inside a provider step has been deprecated. Use `target_container.start(provider_name)` instead. (@timriley in #211 and #224)
382
386
 
383
387
  Now that you can access `target_container` consistently within all provider steps, you can use it to also start any other providers as you require without any special additional method. This also allows you to invoke other provider lifecycle steps, like `target_container.prepare(provider_name)`.
384
- - `method_missing`-based delegation within providers to target container registrations has been removed (**BREAKING**) (@timriley in #202)
388
+ - `method_missing`-based delegation within providers to target container registrations has been removed (**BREAKING**). (@timriley in #202)
385
389
 
386
390
  Delegation to registrations with the provider's own container has been kept, since it can be a convenient way to access registrations made in a prior lifecycle step:
387
391
 
@@ -396,7 +400,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
396
400
  end
397
401
  end
398
402
  ```
399
- - The previous "external component" and "provider" concepts have been renamed to "external provider sources", in keeping with the new provider terminology outlined above (@timriley in #200 and #202).
403
+ - The previous "external component" and "provider" concepts have been renamed to "external provider sources", in keeping with the new provider terminology outlined above. (@timriley in #200 and #202)
400
404
 
401
405
  You can register a collection of external provider sources defined in their own source files via `Dry::System.register_provider_sources` (`Dry::System.register_provider` has been deprecated):
402
406
 
@@ -431,7 +435,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
431
435
  ```
432
436
 
433
437
  The `group:` argument when registering an external provider sources is for preventing name clashes between provider sources. You should use an underscored version of your gem name or namespace when registering your own provider sources.
434
- - Registering a provider using an explicitly named external provider source via `key:` argument is deprecated, use the `source:` argument instead (@timriley in #202).
438
+ - Registering a provider using an explicitly named external provider source via `key:` argument is deprecated, use the `source:` argument instead. (@timriley in #202)
435
439
 
436
440
  You can register a provider using the same name as an external provider source by specifying the `from:` argument only, as before:
437
441
 
@@ -450,7 +454,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
450
454
  ```
451
455
 
452
456
  When you're registering a provider using an external provider source, you cannot provie your own `Dry::System::Provider::Source` subclass as the `source:`, since that source class is being provided by the external provider source.
453
- - Provider source settings are now defined using dry-configurable’s `setting` API at the top-level scope (@timriley in #202).
457
+ - Provider source settings are now defined using dry-configurable’s `setting` API at the top-level scope. (@timriley in #202)
454
458
 
455
459
  Use the top-level `setting` method to define your settings (the `settings` block and settings defined inside the block using `key` is deprecated). Inside the provider steps, the configured settings can be accessed as `config`:
456
460
 
@@ -485,7 +489,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
485
489
  # Constructor will also work with dry-types objects
486
490
  setting :my_option, default: "hello", constructor: Types::String.constrained(min_size: 3)
487
491
  ```
488
- - External provider sources can define their own methods for use by the providers alongside lifecycle steps (@timriley in #202).
492
+ - External provider sources can define their own methods for use by the providers alongside lifecycle steps. (@timriley in #202)
489
493
 
490
494
  Now that provider sources are class-backed, external provider sources can define their own methods to be made available when that provider source is used. This makes it possible to define your own extended API for interacting with the provider source:
491
495
 
@@ -517,25 +521,26 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
517
521
  end
518
522
  end
519
523
  ```
520
- - Providers can be registered conditionally using the `if:` option (@timriley in #218).
524
+ - Providers can be registered conditionally using the `if:` option. (@timriley in #218)
521
525
 
522
526
  You should provide a simple truthy or falsey value to `if:`, and in the case of falsey value, the provider will not be registered.
523
527
 
524
528
  This is useful in cases where you have providers that are loaded explicitly for specific runtime configurations of your app (e.g. when they are needed for specific tasks or processes only), but you do not need them for your primaary app process, for which you may finalize your container.
525
- - `bootable_dirs` container setting has been deprecated and replaced by `provider_dirs` (@timriley in #200).
529
+ - `bootable_dirs` container setting has been deprecated and replaced by `provider_dirs`. (@timriley in #200)
526
530
 
527
531
  The default value for `provider_dirs` is now `"system/providers`".
528
- - Removed the unused `system_dir` container setting (**BREAKING**) (@timriley in #200)
532
+ - Removed the unused `system_dir` container setting (**BREAKING**). (@timriley in #200)
529
533
 
530
534
  If you’ve configured this inside your container, you can remove it.
531
- - dry-system’s first-party external provider sources now available via `require "dry/system/provider_sources"`, with the previous `require "dry/system/components"` deprecated (@timriley in #202).
532
- - When using registering a provider using a first-party dry-system provider source, `from: :dry_system` instead of `from: :system` (which is now deprecated) (@timriley in #202).
535
+ - dry-system’s first-party external provider sources now available via `require "dry/system/provider_sources"`, with the previous `require "dry/system/components"` deprecated. (@timriley in #202)
536
+ - When using registering a provider using a first-party dry-system provider source, `from: :dry_system` instead of `from: :system` (which is now deprecated). (@timriley in #202)
533
537
 
534
538
  ```ruby
535
539
  MyContainer.register_provider(:settings, from: :dry_system) do
536
540
  # ...
537
541
  end
538
- - When registering a provider using the `:settings` provider source, settings are now defined using `setting` inside a `settings` block, rather than `key`, which is deprecated (@timriley in #202).
542
+ ```
543
+ - When registering a provider using the `:settings` provider source, settings are now defined using `setting` inside a `settings` block, rather than `key`, which is deprecated. (@timriley in #202)
539
544
 
540
545
  This `setting` method uses the dry-configurable setting API:
541
546
 
@@ -550,13 +555,13 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
550
555
  end
551
556
  end
552
557
  ```
553
- - The `:settings` provider source now requires the dotenv gem to load settings from `.env*` files (**BREAKING**) (@timriley in #204)
558
+ - The `:settings` provider source now requires the dotenv gem to load settings from `.env*` files (**BREAKING**). (@timriley in #204)
554
559
 
555
560
  To ensure you can load your settings from these `.env*` files, add `gem "dotenv"` to your `Gemfile`.
556
- - `Dry::System::Container` can be now be configured direclty using the setting writer methods on the class-level `.config` object, without going the `.configure(&block)` API (@timriley in #207).
561
+ - `Dry::System::Container` can be now be configured direclty using the setting writer methods on the class-level `.config` object, without going the `.configure(&block)` API. (@timriley in #207)
557
562
 
558
563
  If configuring via the class-level `.config` object, you should call `.configured!` after you're completed your configuration, which will finalize (freeze) the `config` object and then run any after-`:configure` hooks.
559
- - `Dry::System::Container.configure(&block)` will now finalize (freeze) the `config` object by default, before returning (@timriley in #207).
564
+ - `Dry::System::Container.configure(&block)` will now finalize (freeze) the `config` object by default, before returning. (@timriley in #207)
560
565
 
561
566
  You can opt out of this behavior by passing the `finalize_config: false` option:
562
567
 
@@ -569,17 +574,17 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
569
574
  # `config` is still non-finalized here
570
575
  end
571
576
  ```
572
- - `Dry::System::Container.finalize!` will call `.configured!` (if it has not yet been called) before doing its work (@timriley in #207)
577
+ - `Dry::System::Container.finalize!` will call `.configured!` (if it has not yet been called) before doing its work. (@timriley in #207)
573
578
 
574
579
  This ensures config finalization is an intrinsic part of the overall container finalization process.
575
- - The `Dry::System::Container` `before(:configure)` hook has been removed (**BREAKING**) (@timriley in #207).
580
+ - The `Dry::System::Container` `before(:configure)` hook has been removed (**BREAKING**). (@timriley in #207)
576
581
 
577
582
  This was previously used for plugins to register their own settings, but this was not necessary given that plugins are modules, and can use their ordinary `.extended(container_class)` hook to register their settings. Essentially, any time after container subclass definition is "before configure" in nature.
578
- - Container plugins should define their settings on the container using their module `.extended` hook, no longer in a `before(:configure)` hook (as above) (**BREAKING**) (@timriley in #207).
583
+ - Container plugins should define their settings on the container using their module `.extended` hook, no longer in a `before(:configure)` hook (as above) (**BREAKING**). (@timriley in #207)
579
584
 
580
585
  This ensures the plugin settings are available immediately after you’ve enabled the plugin via `Dry::System::Container.use`.
581
586
  - The `Dry::System::Container` key `namespace_separator` setting is no longer expected to be user-configured. A key namespace separator of "." is hard-coded and expected to remain the separator string. (@timriley in #206)
582
- - Containers can import a specific subset of another container’s components via changes to `.import`, which is now `.import(keys: nil, from:, as:)` (with prior API deprecated) (@timriley in #209)
587
+ - Containers can import a specific subset of another container’s components via changes to `.import`, which is now `.import(keys: nil, from:, as:)` (with prior API deprecated). (@timriley in #209)
583
588
 
584
589
  To import specific components:
585
590
 
@@ -596,40 +601,38 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
596
601
  ```
597
602
 
598
603
  Omitting `keys:` will import all the components available from the other container.
599
- - Components imported into a container from another will be protected from subsequent export unless explicitly configured in `config.exports` (@timriley in #209)
604
+ - Components imported into a container from another will be protected from subsequent export unless explicitly configured in `config.exports`. (@timriley in #209)
600
605
 
601
606
  Imported components are considered “private” by default because they did not originate in container that imported them.
602
607
 
603
608
  This ensures there are no redundant imports in arrangements where multiple all containers import a common “base” container, and then some of those containers then import each other.
604
- - Container imports are now made without finalizing the exporting container in most cases, ensuring more efficient imports (@timriley in #209)
609
+ - Container imports are now made without finalizing the exporting container in most cases, ensuring more efficient imports. (@timriley in #209)
605
610
 
606
611
  Now, the only time the exporting container will be finalized is when a container is importing all components, and the exporting container has not declared any components in `config.exports`.
607
- - [Internal] The `manual_registrar` container setting and associated `ManualRegistrar` class have been renamed to `manifest_registrar` and `ManifestRegistrar` respectively (**BREAKING**) (@timriley in #208).
608
- - The default value for the container `registrations_dir` setting has been changed from `"container"` to `"system/registrations"` (**BREAKING**) (@timriley in #208)
609
- - The `:dependency_graph` plugin now supports all dry-auto_inject injector strategies (@davydovanton and @timriley in #214)
610
-
611
- [Compare v0.22.0...v0.23.0](https://github.com/dry-rb/dry-system/compare/v0.22.0...v0.23.0)
612
+ - [Internal] The `manual_registrar` container setting and associated `ManualRegistrar` class have been renamed to `manifest_registrar` and `ManifestRegistrar` respectively (**BREAKING**). (@timriley in #208)
613
+ - The default value for the container `registrations_dir` setting has been changed from `"container"` to `"system/registrations"` (**BREAKING**). (@timriley in #208)
614
+ - The `:dependency_graph` plugin now supports all dry-auto_inject injector strategies. (@davydovanton and @timriley in #214)
612
615
 
613
- ## 0.22.0 2022-01-06
616
+ [0.23.0]: https://github.com/dry-rb/dry-system/compare/v0.22.0...v0.23.0
614
617
 
618
+ ## [0.22.0] - 2022-01-06
615
619
 
616
620
  ### Added
617
621
 
618
- - Expanded public interfaces for `Dry::System::Config::ComponentDirs` and `Dry::System::Config::Namespaces` to better support programmatic construction and inspection of these configs (@timriley in #195)
622
+ - Expanded public interfaces for `Dry::System::Config::ComponentDirs` and `Dry::System::Config::Namespaces` to better support programmatic construction and inspection of these configs. (@timriley in #195)
619
623
 
620
624
  ### Changed
621
625
 
622
- - Deprecated `Dry::System::Config::Namespaces#root` as the way to add and configure a root namespace. Use `#add_root` instead (@timriley in #195)
623
- - Allow bootsnap plugin to use bootsnap on Ruby versions up to 3.0 (pusewicz in #196)
624
-
625
- [Compare v0.21.0...v0.22.0](https://github.com/dry-rb/dry-system/compare/v0.21.0...v0.22.0)
626
+ - Deprecated `Dry::System::Config::Namespaces#root` as the way to add and configure a root namespace. Use `#add_root` instead. (@timriley in #195)
627
+ - Allow bootsnap plugin to use bootsnap on Ruby versions up to 3.0. (@pusewicz in #196)
626
628
 
627
- ## 0.21.0 2021-11-01
629
+ [0.22.0]: https://github.com/dry-rb/dry-system/compare/v0.21.0...v0.22.0
628
630
 
631
+ ## [0.21.0] - 2021-11-01
629
632
 
630
633
  ### Added
631
634
 
632
- - 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)
635
+ - 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)
633
636
 
634
637
  ### Changed
635
638
 
@@ -651,56 +654,51 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
651
654
  ```
652
655
 
653
656
  (@timriley in #181)
654
- - `Dry::System::Component#path` has been removed and replaced by `Component#require_path` and `Component#const_path` (@timriley in #181)
655
- - Unused `Dry::System::FileNotFoundError` and `Dry::System::InvalidComponentIdentifierTypeError` errors have been removed (@timriley in #194)
656
- - Allow bootsnap for Rubies up to 3.0.x (via #196) (@pusewicz)
657
+ - `Dry::System::Component#path` has been removed and replaced by `Component#require_path` and `Component#const_path`. (@timriley in #181)
658
+ - Unused `Dry::System::FileNotFoundError` and `Dry::System::InvalidComponentIdentifierTypeError` errors have been removed. (@timriley in #194)
659
+ - Allow bootsnap for Rubies up to 3.0.x. (@pusewicz in #196)
657
660
 
658
- [Compare v0.20.0...v0.21.0](https://github.com/dry-rb/dry-system/compare/v0.20.0...v0.21.0)
659
-
660
- ## 0.20.0 2021-09-12
661
+ [0.21.0]: https://github.com/dry-rb/dry-system/compare/v0.20.0...v0.21.0
661
662
 
663
+ ## [0.20.0] - 2021-09-12
662
664
 
663
665
  ### Fixed
664
666
 
665
- - Fixed dependency graph plugin to work with internal changes introduced in 0.19.0 (@wuarmin in #173)
666
- - Fixed behavior of `Dry::System::Identifier#start_with?` for components identified by a single segment, or if all matching segments are provided (@wuarmin in #177)
667
- - Fixed compatibility of `finalize!` signature provided in `Container::Stubs` (@mpokrywka in #178)
667
+ - Fixed dependency graph plugin to work with internal changes introduced in 0.19.0. (@wuarmin in #173)
668
+ - Fixed behavior of `Dry::System::Identifier#start_with?` for components identified by a single segment, or if all matching segments are provided. (@wuarmin in #177)
669
+ - Fixed compatibility of `finalize!` signature provided in `Container::Stubs`. (@mpokrywka in #178)
668
670
 
669
671
  ### Changed
670
672
 
671
- - [internal] Upgraded to new `setting` API provided in dry-configurable 0.13.0 (@timriley in #179)
672
-
673
- [Compare v0.19.2...v0.20.0](https://github.com/dry-rb/dry-system/compare/v0.19.2...v0.20.0)
673
+ - [internal] Upgraded to new `setting` API provided in dry-configurable 0.13.0. (@timriley in #179)
674
674
 
675
- ## 0.19.2 2021-08-30
675
+ [0.20.0]: https://github.com/dry-rb/dry-system/compare/v0.19.2...v0.20.0
676
676
 
677
+ ## [0.19.2] - 2021-08-30
677
678
 
678
679
  ### Changed
679
680
 
680
- - [internal] Improved compatibility with upcoming dry-configurable 0.13.0 release (@timriley in #186)
681
-
682
- [Compare v0.18.2...v0.19.2](https://github.com/dry-rb/dry-system/compare/v0.18.2...v0.19.2)
681
+ - [internal] Improved compatibility with upcoming dry-configurable 0.13.0 release. (@timriley in #186)
683
682
 
684
- ## 0.18.2 2021-08-30
683
+ [0.19.2]: https://github.com/dry-rb/dry-system/compare/v0.18.2...v0.19.2
685
684
 
685
+ ## [0.18.2] - 2021-08-30
686
686
 
687
687
  ### Changed
688
688
 
689
- - [internal] Improved compatibility with upcoming dry-configurable 0.13.0 release (@timriley in #187)
689
+ - [internal] Improved compatibility with upcoming dry-configurable 0.13.0 release. (@timriley in #187)
690
690
 
691
- [Compare v0.19.1...v0.18.2](https://github.com/dry-rb/dry-system/compare/v0.19.1...v0.18.2)
692
-
693
- ## 0.19.1 2021-07-11
691
+ [0.18.2]: https://github.com/dry-rb/dry-system/compare/v0.19.1...v0.18.2
694
692
 
693
+ ## [0.19.1] - 2021-07-11
695
694
 
696
695
  ### Fixed
697
696
 
698
- - Check for registered components (@timriley in #175)
699
-
697
+ - Check for registered components. (@timriley in #175)
700
698
 
701
- [Compare v0.19.0...v0.19.1](https://github.com/dry-rb/dry-system/compare/v0.19.0...v0.19.1)
699
+ [0.19.1]: https://github.com/dry-rb/dry-system/compare/v0.19.0...v0.19.1
702
700
 
703
- ## 0.19.0 2021-04-22
701
+ ## [0.19.0] - 2021-04-22
704
702
 
705
703
  This release marks a huge step forward for dry-system, bringing support for Zeitwerk and other autoloaders, plus clearer configuration and improved consistency around component resolution for both finalized and lazy loading containers. [Read the announcement post](https://dry-rb.org/news/2021/04/22/dry-system-0-19-released-with-zeitwerk-support-and-more-leading-the-way-for-hanami-2-0/) for a high-level tour of the new features.
706
704
 
@@ -774,35 +772,32 @@ This release marks a huge step forward for dry-system, bringing support for Zeit
774
772
  ```
775
773
 
776
774
  (@timriley in #153)
777
- - [BREAKING] `Dry::System::Component` instances (which users of dry-system will interact with via custom loaders, as well as via the `auto_register` and `memoize` component dir settings described above) now return a `Dry::System::Identifier` from their `#identifier` method. The raw identifier string may be accessed via the identifier's own `#key` or `#to_s` methods. `Identifier` also provides a helpful namespace-aware `#start_with?` method for returning whether the identifier begins with the provided namespace(s) (@timriley in #158)
775
+ - [BREAKING] `Dry::System::Component` instances (which users of dry-system will interact with via custom loaders, as well as via the `auto_register` and `memoize` component dir settings described above) now return a `Dry::System::Identifier` from their `#identifier` method. The raw identifier string may be accessed via the identifier's own `#key` or `#to_s` methods. `Identifier` also provides a helpful namespace-aware `#start_with?` method for returning whether the identifier begins with the provided namespace(s). (@timriley in #158)
778
776
 
779
777
  ### Changed
780
778
 
781
- - Components with `# auto_register: false` magic comments in their source files are now properly ignored when lazy loading (@timriley in #155)
782
- - `# memoize: true` and `# memoize: false` magic comments at top of component files are now respected (@timriley in #155)
783
- - [BREAKING] `Dry::System::Container.load_paths!` has been renamed to `.add_to_load_path!`. This method now exists as a mere convenience only. Calling this method is no longer required for any configured `component_dirs`; these are now added to the load path automatically (@timriley in #153 and #155)
784
- - [BREAKING] `auto_register` container setting has been removed. Configured directories to be auto-registered by adding `component_dirs` instead (@timriley in #155)
785
- - [BREAKING] `default_namespace` container setting has been removed. Set it when adding `component_dirs` instead (@timriley in #155)
786
- - [BREAKING] `loader` container setting has been nested under `component_dirs`, now available as `component_dirs.loader` to configure a default loader for all component dirs, as well as on individual component dirs when being added (@timriley in #162)
787
- - [BREAKING] `Dry::System::ComponentLoadError` is no longer raised when a component could not be lazy loaded; this was only raised in a single specific failure condition. Instead, a `Dry::Container::Error` is raised in all cases of components failing to load (@timriley in #155)
779
+ - Components with `# auto_register: false` magic comments in their source files are now properly ignored when lazy loading. (@timriley in #155)
780
+ - `# memoize: true` and `# memoize: false` magic comments at top of component files are now respected. (@timriley in #155)
781
+ - [BREAKING] `Dry::System::Container.load_paths!` has been renamed to `.add_to_load_path!`. This method now exists as a mere convenience only. Calling this method is no longer required for any configured `component_dirs`; these are now added to the load path automatically. (@timriley in #153 and #155)
782
+ - [BREAKING] `auto_register` container setting has been removed. Configured directories to be auto-registered by adding `component_dirs` instead. (@timriley in #155)
783
+ - [BREAKING] `default_namespace` container setting has been removed. Set it when adding `component_dirs` instead. (@timriley in #155)
784
+ - [BREAKING] `loader` container setting has been nested under `component_dirs`, now available as `component_dirs.loader` to configure a default loader for all component dirs, as well as on individual component dirs when being added. (@timriley in #162)
785
+ - [BREAKING] `Dry::System::ComponentLoadError` is no longer raised when a component could not be lazy loaded; this was only raised in a single specific failure condition. Instead, a `Dry::Container::Error` is raised in all cases of components failing to load. (@timriley in #155)
788
786
  - [BREAKING] `Dry::System::Container.auto_register!` has been removed. Configure `component_dirs` instead. (@timriley in #157)
789
- - [BREAKING] The `Dry::System::Loader` interface has changed. It is now a static interface, no longer initialized with a component. The component is instead passed to each method as an argument: `.require!(component)`, `.call(component, *args)`, `.constant(component)` (@timriley in #157)
790
- - [BREAKING] `Dry::System::Container.require_path` has been removed. Provide custom require behavior by configuring your own `loader` (@timriley in #153)
791
-
792
- [Compare v0.18.1...v0.19.0](https://github.com/dry-rb/dry-system/compare/v0.18.1...v0.19.0)
787
+ - [BREAKING] The `Dry::System::Loader` interface has changed. It is now a static interface, no longer initialized with a component. The component is instead passed to each method as an argument: `.require!(component)`, `.call(component, *args)`, `.constant(component)`. (@timriley in #157)
788
+ - [BREAKING] `Dry::System::Container.require_path` has been removed. Provide custom require behavior by configuring your own `loader`. (@timriley in #153)
793
789
 
794
- ## 0.18.1 2020-08-26
790
+ [0.19.0]: https://github.com/dry-rb/dry-system/compare/v0.18.1...v0.19.0
795
791
 
792
+ ## [0.18.1] - 2020-08-26
796
793
 
797
794
  ### Fixed
798
795
 
799
- - Made `Booter#boot_files` a public method again, since it was required by dry-rails (@timriley)
800
-
801
-
802
- [Compare v0.18.0...v0.18.1](https://github.com/dry-rb/dry-system/compare/v0.18.0...v0.18.1)
796
+ - Made `Booter#boot_files` a public method again, since it was required by dry-rails. (@timriley)
803
797
 
804
- ## 0.18.0 2020-08-24
798
+ [0.18.1]: https://github.com/dry-rb/dry-system/compare/v0.18.0...v0.18.1
805
799
 
800
+ ## [0.18.0] - 2020-08-24
806
801
 
807
802
  ### Added
808
803
 
@@ -812,150 +807,132 @@ This release marks a huge step forward for dry-system, bringing support for Zeit
812
807
 
813
808
  When searching for bootable files, the first match will win, and any subsequent same-named files will not be loaded. In this way, the `bootable_dirs` act similarly to the `$PATH` in a shell environment.
814
809
 
810
+ [0.18.0]: https://github.com/dry-rb/dry-system/compare/v0.17.0...v0.18.0
815
811
 
816
- [Compare v0.17.0...v0.18.0](https://github.com/dry-rb/dry-system/compare/v0.17.0...v0.18.0)
817
-
818
- ## 0.17.0 2020-02-19
819
-
812
+ ## [0.17.0] - 2020-02-19
820
813
 
821
814
  ### Fixed
822
815
 
823
- - Works with the latest dry-configurable version (issue #141) (@solnic)
816
+ - Works with the latest dry-configurable version. (@solnic in #141)
824
817
 
825
818
  ### Changed
826
819
 
827
- - Depends on dry-configurable `=> 0.11.1` now (@solnic)
828
-
829
- [Compare v0.16.0...v0.17.0](https://github.com/dry-rb/dry-system/compare/v0.16.0...v0.17.0)
820
+ - Depends on dry-configurable `=> 0.11.1` now. (@solnic)
830
821
 
831
- ## 0.16.0 2020-02-15
822
+ [0.17.0]: https://github.com/dry-rb/dry-system/compare/v0.16.0...v0.17.0
832
823
 
824
+ ## [0.16.0] - 2020-02-15
833
825
 
834
826
  ### Changed
835
827
 
836
- - Plugins can now define their own settings which are available in the `before(:configure)` hook (@solnic)
837
- - Dependency on dry-configurable was bumped to `~> 0.11` (@solnic)
828
+ - Plugins can now define their own settings which are available in the `before(:configure)` hook. (@solnic)
829
+ - Dependency on dry-configurable was bumped to `~> 0.11`. (@solnic)
838
830
 
839
- [Compare v0.15.0...v0.16.0](https://github.com/dry-rb/dry-system/compare/v0.15.0...v0.16.0)
840
-
841
- ## 0.15.0 2020-01-30
831
+ [0.16.0]: https://github.com/dry-rb/dry-system/compare/v0.15.0...v0.16.0
842
832
 
833
+ ## [0.15.0] - 2020-01-30
843
834
 
844
835
  ### Added
845
836
 
846
- - New hook - `before(:configure)` which a plugin should use if it needs to declare new settings (@solnic)
847
-
848
- ```ruby
849
- # in your plugin code
850
- before(:configure) { setting :my_new_setting }
837
+ - New hook - `before(:configure)` which a plugin should use if it needs to declare new settings. (@solnic)
851
838
 
852
- after(:configure) { config.my_new_setting = "awesome" }
853
- ```
839
+ ```ruby
840
+ # in your plugin code
841
+ before(:configure) { setting :my_new_setting }
854
842
 
843
+ after(:configure) { config.my_new_setting = "awesome" }
844
+ ```
855
845
 
856
846
  ### Changed
857
847
 
858
- - Centralize error definitions in `lib/dry/system/errors.rb` (@cgeorgii)
859
- - All built-in plugins use `before(:configure)` now to declare their settings (@solnic)
860
-
861
- [Compare v0.14.1...v0.15.0](https://github.com/dry-rb/dry-system/compare/v0.14.1...v0.15.0)
848
+ - Centralize error definitions in `lib/dry/system/errors.rb`. (@cgeorgii)
849
+ - All built-in plugins use `before(:configure)` now to declare their settings. (@solnic)
862
850
 
863
- ## 0.14.1 2020-01-22
851
+ [0.15.0]: https://github.com/dry-rb/dry-system/compare/v0.14.1...v0.15.0
864
852
 
853
+ ## [0.14.1] - 2020-01-22
865
854
 
866
855
  ### Changed
867
856
 
868
- - Use `Kernel.require` explicitly to avoid issues with monkey-patched `require` from ActiveSupport (@solnic)
869
-
870
- [Compare v0.14.0...v0.14.1](https://github.com/dry-rb/dry-system/compare/v0.14.0...v0.14.1)
857
+ - Use `Kernel.require` explicitly to avoid issues with monkey-patched `require` from ActiveSupport. (@solnic)
871
858
 
872
- ## 0.14.0 2020-01-21
859
+ [0.14.1]: https://github.com/dry-rb/dry-system/compare/v0.14.0...v0.14.1
873
860
 
861
+ ## [0.14.0] - 2020-01-21
874
862
 
875
863
  ### Fixed
876
864
 
877
- - Misspelled plugin name raises meaningful error (issue #132) (@cgeorgii)
878
- - Fail fast if auto_registrar config contains incorrect path (@cutalion)
865
+ - Misspelled plugin name raises meaningful error. (@cgeorgii in #132)
866
+ - Fail fast if auto_registrar config contains incorrect path. (@cutalion)
879
867
 
868
+ [0.14.0]: https://github.com/dry-rb/dry-system/compare/v0.13.2...v0.14.0
880
869
 
881
- [Compare v0.13.2...v0.14.0](https://github.com/dry-rb/dry-system/compare/v0.13.2...v0.14.0)
882
-
883
- ## 0.13.2 2019-12-28
884
-
870
+ ## [0.13.2] - 2019-12-28
885
871
 
886
872
  ### Fixed
887
873
 
888
- - More keyword warnings (flash-gordon)
889
-
874
+ - More keyword warnings. (@flash-gordon)
890
875
 
891
- [Compare v0.13.1...v0.13.2](https://github.com/dry-rb/dry-system/compare/v0.13.1...v0.13.2)
892
-
893
- ## 0.13.1 2019-11-07
876
+ [0.13.2]: https://github.com/dry-rb/dry-system/compare/v0.13.1...v0.13.2
894
877
 
878
+ ## [0.13.1] - 2019-11-07
895
879
 
896
880
  ### Fixed
897
881
 
898
- - Fixed keyword warnings reported by Ruby 2.7 (flash-gordon)
899
- - Duplicates in `Dry::System::Plugins.loaded_dependencies` (AMHOL)
900
-
901
-
902
- [Compare v0.13.0...v0.13.1](https://github.com/dry-rb/dry-system/compare/v0.13.0...v0.13.1)
882
+ - Fixed keyword warnings reported by Ruby 2.7. (@flash-gordon)
883
+ - Duplicates in `Dry::System::Plugins.loaded_dependencies`. (@AMHOL)
903
884
 
904
- ## 0.13.0 2019-10-13
885
+ [0.13.1]: https://github.com/dry-rb/dry-system/compare/v0.13.0...v0.13.1
905
886
 
887
+ ## [0.13.0] - 2019-10-13
906
888
 
907
889
  ### Added
908
890
 
909
- - `Container.resolve` accepts and optional block parameter which will be called if component cannot be found. This makes dry-system consistent with dry-container 0.7.2 (flash-gordon)
891
+ - `Container.resolve` accepts and optional block parameter which will be called if component cannot be found. This makes dry-system consistent with dry-container 0.7.2. (@flash-gordon)
910
892
  ```ruby
911
893
  App.resolve('missing.dep') { :fallback } # => :fallback
912
894
  ```
913
895
 
914
896
  ### Changed
915
897
 
916
- - [BREAKING] `Container.key?` triggers lazy-loading for not finalized containers. If component wasn't found it returns `false` without raising an error. This is a breaking change, if you seek the previous behavior, use `Container.registered?` (flash-gordon)
898
+ - [BREAKING] `Container.key?` triggers lazy-loading for not finalized containers. If component wasn't found it returns `false` without raising an error. This is a breaking change, if you seek the previous behavior, use `Container.registered?`. (@flash-gordon)
917
899
 
918
- [Compare v0.12.0...v0.13.0](https://github.com/dry-rb/dry-system/compare/v0.12.0...v0.13.0)
919
-
920
- ## 0.12.0 2019-04-24
900
+ [0.13.0]: https://github.com/dry-rb/dry-system/compare/v0.12.0...v0.13.0
921
901
 
902
+ ## [0.12.0] - 2019-04-24
922
903
 
923
904
  ### Changed
924
905
 
925
- - Compatibility with dry-struct 1.0 and dry-types 1.0 (flash-gordon)
926
-
927
- [Compare v0.11.0...v0.12.0](https://github.com/dry-rb/dry-system/compare/v0.11.0...v0.12.0)
906
+ - Compatibility with dry-struct 1.0 and dry-types 1.0. (@flash-gordon)
928
907
 
929
- ## 0.11.0 2019-03-22
908
+ [0.12.0]: https://github.com/dry-rb/dry-system/compare/v0.11.0...v0.12.0
930
909
 
910
+ ## [0.11.0] - 2019-03-22
931
911
 
932
912
  ### Changed
933
913
 
934
- - [BREAKING] `:decorate` plugin was moved from dry-system to dry-container (available in 0.7.0+). To upgrade remove `use :decorate` and change `decorate` calls from `decorate(key, decorator: something)` to `decorate(key, with: something)` (flash-gordon)
935
- - [internal] Compatibility with dry-struct 0.7.0 and dry-types 0.15.0
936
-
937
- [Compare v0.10.1...v0.11.0](https://github.com/dry-rb/dry-system/compare/v0.10.1...v0.11.0)
914
+ - [BREAKING] `:decorate` plugin was moved from dry-system to dry-container (available in 0.7.0+). To upgrade remove `use :decorate` and change `decorate` calls from `decorate(key, decorator: something)` to `decorate(key, with: something)`. (@flash-gordon)
915
+ - [internal] Compatibility with dry-struct 0.7.0 and dry-types 0.15.0.
938
916
 
939
- ## 0.10.1 2018-07-05
917
+ [0.11.0]: https://github.com/dry-rb/dry-system/compare/v0.10.1...v0.11.0
940
918
 
919
+ ## [0.10.1] - 2018-07-05
941
920
 
942
921
  ### Added
943
922
 
944
- - Support for stopping bootable components with `Container.stop(component_name)` (GustavoCaso)
923
+ - Support for stopping bootable components with `Container.stop(component_name)`. (@GustavoCaso)
945
924
 
946
925
  ### Fixed
947
926
 
948
- - When using a non-finalized container, you can now resolve multiple different container objects registered using the same root key as a bootable component (timriley)
927
+ - When using a non-finalized container, you can now resolve multiple different container objects registered using the same root key as a bootable component. (@timriley)
949
928
 
929
+ [0.10.1]: https://github.com/dry-rb/dry-system/compare/v0.10.0...v0.10.1
950
930
 
951
- [Compare v0.10.0...v0.10.1](https://github.com/dry-rb/dry-system/compare/v0.10.0...v0.10.1)
952
-
953
- ## 0.10.0 2018-06-07
954
-
931
+ ## [0.10.0] - 2018-06-07
955
932
 
956
933
  ### Added
957
934
 
958
- - You can now set a custom inflector on the container level. As a result, the `Loader`'s constructor accepts two arguments: `path` and `inflector`, update your custom loaders accordingly (flash-gordon)
935
+ - You can now set a custom inflector on the container level. As a result, the `Loader`'s constructor accepts two arguments: `path` and `inflector`, update your custom loaders accordingly. (@flash-gordon)
959
936
 
960
937
  ```ruby
961
938
  class MyContainer < Dry::System::Container
@@ -969,123 +946,110 @@ after(:configure) { config.my_new_setting = "awesome" }
969
946
 
970
947
  ### Changed
971
948
 
972
- - A helpful error will be raised if an invalid setting value is provided (GustavoCaso)
973
- - When using setting plugin, will use default values from types (GustavoCaso)
974
- - Minimal supported ruby version was bumped to `2.3` (flash-gordon)
975
- - `dry-struct` was updated to `~> 0.5` (flash-gordon)
976
-
977
- [Compare v0.9.2...v0.10.0](https://github.com/dry-rb/dry-system/compare/v0.9.2...v0.10.0)
949
+ - A helpful error will be raised if an invalid setting value is provided. (@GustavoCaso)
950
+ - When using setting plugin, will use default values from types. (@GustavoCaso)
951
+ - Minimal supported ruby version was bumped to `2.3`. (@flash-gordon)
952
+ - `dry-struct` was updated to `~> 0.5`. (@flash-gordon)
978
953
 
979
- ## 0.9.2 2018-02-08
954
+ [0.10.0]: https://github.com/dry-rb/dry-system/compare/v0.9.2...v0.10.0
980
955
 
956
+ ## [0.9.2] - 2018-02-08
981
957
 
982
958
  ### Fixed
983
959
 
984
- - Default namespace no longer breaks resolving dependencies with identifier that includes part of the namespace (ie `mail.mailer`) (GustavoCaso)
985
-
986
-
987
- [Compare v0.9.1...v0.9.2](https://github.com/dry-rb/dry-system/compare/v0.9.1...v0.9.2)
960
+ - Default namespace no longer breaks resolving dependencies with identifier that includes part of the namespace (ie `mail.mailer`). (@GustavoCaso)
988
961
 
989
- ## 0.9.1 2018-01-03
962
+ [0.9.2]: https://github.com/dry-rb/dry-system/compare/v0.9.1...v0.9.2
990
963
 
964
+ ## [0.9.1] - 2018-01-03
991
965
 
992
966
  ### Fixed
993
967
 
994
- - Plugin dependencies are now auto-required and a meaningful error is raised when a dep failed to load (solnic)
968
+ - Plugin dependencies are now auto-required and a meaningful error is raised when a dep failed to load. (@solnic)
995
969
 
970
+ [0.9.1]: https://github.com/dry-rb/dry-system/compare/v0.9.0...v0.9.1
996
971
 
997
- [Compare v0.9.0...v0.9.1](https://github.com/dry-rb/dry-system/compare/v0.9.0...v0.9.1)
998
-
999
- ## 0.9.0 2018-01-02
1000
-
972
+ ## [0.9.0] - 2018-01-02
1001
973
 
1002
974
  ### Added
1003
975
 
1004
- - Plugin API (solnic)
1005
- - `:env` plugin which adds support for setting `env` config value (solnic)
1006
- - `:logging` plugin which adds a default logger (solnic)
1007
- - `:decorate` plugin for decorating registered objects (solnic)
1008
- - `:notifications` plugin adding pub/sub bus to containers (solnic)
1009
- - `:monitoring` plugin which adds `monitor` method for monitoring object method calls (solnic)
1010
- - `:bootsnap` plugin which adds support for bootsnap (solnic)
976
+ - Plugin API. (@solnic)
977
+ - `:env` plugin which adds support for setting `env` config value. (@solnic)
978
+ - `:logging` plugin which adds a default logger. (@solnic)
979
+ - `:decorate` plugin for decorating registered objects. (@solnic)
980
+ - `:notifications` plugin adding pub/sub bus to containers. (@solnic)
981
+ - `:monitoring` plugin which adds `monitor` method for monitoring object method calls. (@solnic)
982
+ - `:bootsnap` plugin which adds support for bootsnap. (@solnic)
1011
983
 
1012
984
  ### Changed
1013
985
 
1014
- - [BREAKING] renamed `Container.{require=>require_from_root}` (GustavoCaso)
1015
-
1016
- [Compare v0.8.1...v0.9.0](https://github.com/dry-rb/dry-system/compare/v0.8.1...v0.9.0)
986
+ - [BREAKING] renamed `Container.{require=>require_from_root}`. (@GustavoCaso)
1017
987
 
1018
- ## 0.8.1 2017-10-17
988
+ [0.9.0]: https://github.com/dry-rb/dry-system/compare/v0.8.1...v0.9.0
1019
989
 
990
+ ## [0.8.1] - 2017-10-17
1020
991
 
1021
992
  ### Fixed
1022
993
 
1023
- - Aliasing an external component works correctly (solnic)
1024
- - Manually calling `:init` will also finalize a component (solnic)
994
+ - Aliasing an external component works correctly. (@solnic)
995
+ - Manually calling `:init` will also finalize a component. (@solnic)
1025
996
 
997
+ [0.8.1]: https://github.com/dry-rb/dry-system/compare/v0.8.0...v0.8.1
1026
998
 
1027
- [Compare v0.8.0...v0.8.1](https://github.com/dry-rb/dry-system/compare/v0.8.0...v0.8.1)
1028
-
1029
- ## 0.8.0 2017-10-16
1030
-
999
+ ## [0.8.0] - 2017-10-16
1031
1000
 
1032
1001
  ### Added
1033
1002
 
1034
- - Support for external bootable components (solnic)
1035
- - Built-in `:system` components including `:settings` component (solnic)
1003
+ - Support for external bootable components. (@solnic)
1004
+ - Built-in `:system` components including `:settings` component. (@solnic)
1036
1005
 
1037
1006
  ### Fixed
1038
1007
 
1039
- - Lazy-loading components work when a container has `default_namespace` configured (GustavoCaso)
1008
+ - Lazy-loading components work when a container has `default_namespace` configured. (@GustavoCaso)
1040
1009
 
1041
1010
  ### Changed
1042
1011
 
1043
- - [BREAKING] Improved boot DSL with support for namespacing and lifecycle before/after callbacks (solnic)
1044
-
1045
- [Compare v0.7.3...v0.8.0](https://github.com/dry-rb/dry-system/compare/v0.7.3...v0.8.0)
1012
+ - [BREAKING] Improved boot DSL with support for namespacing and lifecycle before/after callbacks. (@solnic)
1046
1013
 
1047
- ## 0.7.3 2017-08-02
1014
+ [0.8.0]: https://github.com/dry-rb/dry-system/compare/v0.7.3...v0.8.0
1048
1015
 
1016
+ ## [0.7.3] - 2017-08-02
1049
1017
 
1050
1018
  ### Fixed
1051
1019
 
1052
- - `Container.enable_stubs!` calls super too, which actually adds `stub` API (solnic)
1053
- - Issues with lazy-loading and import in stub mode are gone (solnic)
1020
+ - `Container.enable_stubs!` calls super too, which actually adds `stub` API. (@solnic)
1021
+ - Issues with lazy-loading and import in stub mode are gone. (@solnic)
1054
1022
 
1023
+ [0.7.3]: https://github.com/dry-rb/dry-system/compare/v0.7.2...v0.7.3
1055
1024
 
1056
- [Compare v0.7.2...v0.7.3](https://github.com/dry-rb/dry-system/compare/v0.7.2...v0.7.3)
1057
-
1058
- ## 0.7.2 2017-08-02
1059
-
1025
+ ## [0.7.2] - 2017-08-02
1060
1026
 
1061
1027
  ### Added
1062
1028
 
1063
- - `Container.enable_stubs!` for test environments which enables stubbing components (GustavoCaso)
1029
+ - `Container.enable_stubs!` for test environments which enables stubbing components. (@GustavoCaso)
1064
1030
 
1065
1031
  ### Changed
1066
1032
 
1067
- - Component identifiers can now include same name more than once ie `foo.stuff.foo` (GustavoCaso)
1068
- - `Container#boot!` was renamed to `Container#start` (davydovanton)
1069
- - `Container#boot` was renamed to `Container#init` (davydovanton)
1070
-
1071
- [Compare v0.7.1...v0.7.2](https://github.com/dry-rb/dry-system/compare/v0.7.1...v0.7.2)
1033
+ - Component identifiers can now include same name more than once ie `foo.stuff.foo`. (@GustavoCaso)
1034
+ - `Container#boot!` was renamed to `Container#start`. (@davydovanton)
1035
+ - `Container#boot` was renamed to `Container#init`. (@davydovanton)
1072
1036
 
1073
- ## 0.7.1 2017-06-16
1037
+ [0.7.2]: https://github.com/dry-rb/dry-system/compare/v0.7.1...v0.7.2
1074
1038
 
1039
+ ## [0.7.1] - 2017-06-16
1075
1040
 
1076
1041
  ### Changed
1077
1042
 
1078
- - Accept string values for Container's `root` config (timriley)
1043
+ - Accept string values for Container's `root` config. (@timriley)
1079
1044
 
1080
- [Compare v0.7.0...v0.7.1](https://github.com/dry-rb/dry-system/compare/v0.7.0...v0.7.1)
1081
-
1082
- ## 0.7.0 2017-06-15
1045
+ [0.7.1]: https://github.com/dry-rb/dry-system/compare/v0.7.0...v0.7.1
1083
1046
 
1047
+ ## [0.7.0] - 2017-06-15
1084
1048
 
1085
1049
  ### Added
1086
1050
 
1087
- - Added `manual_registrar` container setting (along with default `ManualRegistrar` implementation), and `registrations_dir` setting. These provide support for a well-established place for keeping files with manual container registrations (timriley)
1088
- - AutoRegistrar parses initial lines of Ruby source files for "magic comments" when auto-registering components. An `# auto_register: false` magic comment will prevent a Ruby file from being auto-registered (timriley)
1051
+ - Added `manual_registrar` container setting (along with default `ManualRegistrar` implementation), and `registrations_dir` setting. These provide support for a well-established place for keeping files with manual container registrations. (@timriley)
1052
+ - AutoRegistrar parses initial lines of Ruby source files for "magic comments" when auto-registering components. An `# auto_register: false` magic comment will prevent a Ruby file from being auto-registered. (@timriley)
1089
1053
  - `Container.auto_register!`, when called with a block, yields a configuration object to control the auto-registration behavior for that path, with support for configuring 2 different aspects of auto-registration behavior (both optional):
1090
1054
 
1091
1055
  ```ruby
@@ -1102,92 +1066,82 @@ after(:configure) { config.my_new_setting = "awesome" }
1102
1066
  end
1103
1067
  end
1104
1068
  ```
1105
- - A helpful error will be raised if a bootable component's finalize block name doesn't match its boot file name (GustavoCaso)
1069
+ - A helpful error will be raised if a bootable component's finalize block name doesn't match its boot file name. (@GustavoCaso)
1106
1070
 
1107
1071
  ### Changed
1108
1072
 
1109
- - The `default_namespace` container setting now supports multi-level namespaces (GustavoCaso)
1110
- - `Container.auto_register!` yields a configuration block instead of a block for returning a custom instance (see above) (GustavoCaso)
1111
- - `Container.import` now requires an explicit local name for the imported container (e.g. `import(local_name: AnotherContainer)`) (timriley)
1112
-
1113
- [Compare v0.6.0...v0.7.0](https://github.com/dry-rb/dry-system/compare/v0.6.0...v0.7.0)
1073
+ - The `default_namespace` container setting now supports multi-level namespaces. (@GustavoCaso)
1074
+ - `Container.auto_register!` yields a configuration block instead of a block for returning a custom instance (see above). (@GustavoCaso)
1075
+ - `Container.import` now requires an explicit local name for the imported container (e.g. `import(local_name: AnotherContainer)`). (@timriley)
1114
1076
 
1115
- ## 0.6.0 2016-02-02
1077
+ [0.7.0]: https://github.com/dry-rb/dry-system/compare/v0.6.0...v0.7.0
1116
1078
 
1079
+ ## [0.6.0] - 2016-02-02
1117
1080
 
1118
1081
  ### Changed
1119
1082
 
1120
- - Lazy load components as they are resolved, rather than on injection (timriley)
1121
- - Perform registration even though component already required (blelump)
1122
-
1123
- [Compare v0.5.1...v0.6.0](https://github.com/dry-rb/dry-system/compare/v0.5.1...v0.6.0)
1083
+ - Lazy load components as they are resolved, rather than on injection. (@timriley)
1084
+ - Perform registration even though component already required. (@blelump)
1124
1085
 
1125
- ## 0.5.1 2016-08-23
1086
+ [0.6.0]: https://github.com/dry-rb/dry-system/compare/v0.5.1...v0.6.0
1126
1087
 
1088
+ ## [0.5.1] - 2016-08-23
1127
1089
 
1128
1090
  ### Fixed
1129
1091
 
1130
- - Undefined locals or method calls will raise proper exceptions in Lifecycle DSL (aradunovic)
1092
+ - Undefined locals or method calls will raise proper exceptions in Lifecycle DSL. (@aradunovic)
1131
1093
 
1094
+ [0.5.1]: https://github.com/dry-rb/dry-system/compare/v0.5.0...v0.5.1
1132
1095
 
1133
- [Compare v0.5.0...v0.5.1](https://github.com/dry-rb/dry-system/compare/v0.5.0...v0.5.1)
1134
-
1135
- ## 0.5.0 2016-08-15
1096
+ ## [0.5.0] - 2016-08-15
1136
1097
 
1137
1098
  for multi-container setups. As part of this release `dry-system` has been renamed to `dry-system`.
1138
1099
 
1139
1100
  ### Added
1140
1101
 
1141
1102
  - Boot DSL with:
1142
- - Lifecycle triggers: `init`, `start` and `stop` (solnic)
1143
- - `use` method which auto-boots a dependency and makes it available in the booting context (solnic)
1144
- - When a component relies on a bootable component, and is being loaded in isolation, the component will be booted automatically (solnic)
1103
+ - Lifecycle triggers: `init`, `start` and `stop`. (@solnic)
1104
+ - `use` method which auto-boots a dependency and makes it available in the booting context. (@solnic)
1105
+ - When a component relies on a bootable component, and is being loaded in isolation, the component will be booted automatically. (@solnic)
1145
1106
 
1146
1107
  ### Changed
1147
1108
 
1148
- - [BREAKING] `Dry::Component::Container` is now `Dry::System::Container` (solnic)
1149
- - [BREAKING] Configurable `loader` is now a class that accepts container's config and responds to `#constant` and `#instance` (solnic)
1150
- - [BREAKING] `core_dir` renameda to `system_dir` and defaults to `system` (solnic)
1151
- - [BREAKING] `auto_register!` yields `Component` objects (solnic)
1152
-
1153
- [Compare v0.4.3...v0.5.0](https://github.com/dry-rb/dry-system/compare/v0.4.3...v0.5.0)
1109
+ - [BREAKING] `Dry::Component::Container` is now `Dry::System::Container`. (@solnic)
1110
+ - [BREAKING] Configurable `loader` is now a class that accepts container's config and responds to `#constant` and `#instance`. (@solnic)
1111
+ - [BREAKING] `core_dir` renameda to `system_dir` and defaults to `system`. (@solnic)
1112
+ - [BREAKING] `auto_register!` yields `Component` objects. (@solnic)
1154
1113
 
1155
- ## 0.4.3 2016-08-01
1114
+ [0.5.0]: https://github.com/dry-rb/dry-system/compare/v0.4.3...v0.5.0
1156
1115
 
1116
+ ## [0.4.3] - 2016-08-01
1157
1117
 
1158
1118
  ### Fixed
1159
1119
 
1160
- - Return immediately from `Container.load_component` if the requested component key already exists in the container. This fixes a crash when requesting to load a manually registered component with a name that doesn't map to a filename (timriley in [#24](https://github.com/dry-rb/dry-system/pull/24))
1161
-
1120
+ - Return immediately from `Container.load_component` if the requested component key already exists in the container. This fixes a crash when requesting to load a manually registered component with a name that doesn't map to a filename. (@timriley in #24)
1162
1121
 
1163
- [Compare v0.4.2...v0.4.3](https://github.com/dry-rb/dry-system/compare/v0.4.2...v0.4.3)
1164
-
1165
- ## 0.4.2 2016-07-26
1122
+ [0.4.3]: https://github.com/dry-rb/dry-system/compare/v0.4.2...v0.4.3
1166
1123
 
1124
+ ## [0.4.2] - 2016-07-26
1167
1125
 
1168
1126
  ### Fixed
1169
1127
 
1170
- - Ensure file components can be loaded when they're requested for the first time using their shorthand container identifier (i.e. with the container's default namespace removed) (timriley)
1171
-
1172
-
1173
- [Compare v0.4.1...v0.4.2](https://github.com/dry-rb/dry-system/compare/v0.4.1...v0.4.2)
1128
+ - Ensure file components can be loaded when they're requested for the first time using their shorthand container identifier (i.e. with the container's default namespace removed). (@timriley)
1174
1129
 
1175
- ## 0.4.1 2016-07-26
1130
+ [0.4.2]: https://github.com/dry-rb/dry-system/compare/v0.4.1...v0.4.2
1176
1131
 
1132
+ ## [0.4.1] - 2016-07-26
1177
1133
 
1178
1134
  ### Fixed
1179
1135
 
1180
- - Require the 0.4.0 release of dry-auto_inject for the features below (in 0.4.0) to work properly (timriley)
1136
+ - Require the 0.4.0 release of dry-auto_inject for the features below (in 0.4.0) to work properly. (@timriley)
1181
1137
 
1138
+ [0.4.1]: https://github.com/dry-rb/dry-system/compare/v0.4.0...v0.4.1
1182
1139
 
1183
- [Compare v0.4.0...v0.4.1](https://github.com/dry-rb/dry-system/compare/v0.4.0...v0.4.1)
1184
-
1185
- ## 0.4.0 2016-07-26
1186
-
1140
+ ## [0.4.0] - 2016-07-26
1187
1141
 
1188
1142
  ### Added
1189
1143
 
1190
- - Support for supplying a default namespace to a container, which is passed to the container's injector to allow for convenient shorthand access to registered objects in the same namespace (timriley in [#20](https://github.com/dry-rb/dry-system/pull/20))
1144
+ - Support for supplying a default namespace to a container, which is passed to the container's injector to allow for convenient shorthand access to registered objects in the same namespace. (@timriley in #20)
1191
1145
 
1192
1146
  ```ruby
1193
1147
  # Set up container with default namespace
@@ -1210,50 +1164,48 @@ for multi-container setups. As part of this release `dry-system` has been rename
1210
1164
  end
1211
1165
  end
1212
1166
  ```
1213
- - Support for supplying to options directly to dry-auto_inject's `Builder` via `Dry::Component::Container#injector(options)`. This allows you to provide dry-auto_inject customizations like your own container of injection strategies (timriley in [#20](https://github.com/dry-rb/dry-system/pull/20))
1214
- - Support for accessing all available injector strategies, not just the defaults (e.g. `MyContainer.injector.some_custom_strategy`) (timriley in [#19](https://github.com/dry-rb/dry-system/pull/19))
1167
+ - Support for supplying to options directly to dry-auto_inject's `Builder` via `Dry::Component::Container#injector(options)`. This allows you to provide dry-auto_inject customizations like your own container of injection strategies. (@timriley in #20)
1168
+ - Support for accessing all available injector strategies, not just the defaults (e.g. `MyContainer.injector.some_custom_strategy`). (@timriley in #19)
1215
1169
 
1216
1170
  ### Changed
1217
1171
 
1218
- - Subclasses of `Dry::Component::Container` no longer have an `Injector` constant automatically defined within them. The recommended approach is to save your own injector object to a constant, which allows you to pass options to it at the same time, e.g. `MyApp::Import = MyApp::Container.injector(my_options)` (timriley in [#19](https://github.com/dry-rb/dry-system/pull/19))
1172
+ - Subclasses of `Dry::Component::Container` no longer have an `Injector` constant automatically defined within them. The recommended approach is to save your own injector object to a constant, which allows you to pass options to it at the same time, e.g. `MyApp::Import = MyApp::Container.injector(my_options)`. (@timriley in #19)
1219
1173
 
1220
- [Compare v0.3.0...v0.4.0](https://github.com/dry-rb/dry-system/compare/v0.3.0...v0.4.0)
1174
+ [0.4.0]: https://github.com/dry-rb/dry-system/compare/v0.3.0...v0.4.0
1221
1175
 
1222
- ## 0.3.0 2016-06-18
1176
+ ## [0.3.0] - 2016-06-18
1223
1177
 
1224
1178
  Removed two pieces that are moving to dry-web:
1225
1179
 
1226
1180
  ### Changed
1227
1181
 
1228
1182
  - Removed two pieces that are moving to dry-web:
1229
- - Removed `env` setting from `Container` (timriley)
1230
- - Removed `Dry::Component::Config` and `options` setting from `Container` (timriley)
1231
- - Changed `Component#configure` behavior so it can be run multiple times for configuration to be applied in multiple passes (timriley)
1232
-
1233
- [Compare v0.2.0...v0.3.0](https://github.com/dry-rb/dry-system/compare/v0.2.0...v0.3.0)
1183
+ - Removed `env` setting from `Container`. (@timriley)
1184
+ - Removed `Dry::Component::Config` and `options` setting from `Container`. (@timriley)
1185
+ - Changed `Component#configure` behavior so it can be run multiple times for configuration to be applied in multiple passes. (@timriley)
1234
1186
 
1235
- ## 0.2.0 2016-06-13
1187
+ [0.3.0]: https://github.com/dry-rb/dry-system/compare/v0.2.0...v0.3.0
1236
1188
 
1189
+ ## [0.2.0] - 2016-06-13
1237
1190
 
1238
1191
  ### Fixed
1239
1192
 
1240
- - Fixed bug where specified auto-inject strategies were not respected (timriley)
1193
+ - Fixed bug where specified auto-inject strategies were not respected. (@timriley)
1241
1194
 
1242
1195
  ### Changed
1243
1196
 
1244
- - Component core directory is now `component/` by default (timriley)
1245
- - Injector default stragegy is now whatever dry-auto_inject's default is (rather than hard-coding a particular default strategy for dry-system) (timriley)
1197
+ - Component core directory is now `component/` by default. (@timriley)
1198
+ - Injector default stragegy is now whatever dry-auto_inject's default is (rather than hard-coding a particular default strategy for dry-system). (@timriley)
1246
1199
 
1247
- [Compare v0.1.0...v0.2.0](https://github.com/dry-rb/dry-system/compare/v0.1.0...v0.2.0)
1248
-
1249
- ## 0.1.0 2016-06-07
1200
+ [0.2.0]: https://github.com/dry-rb/dry-system/compare/v0.1.0...v0.2.0
1250
1201
 
1202
+ ## [0.1.0] - 2016-06-07
1251
1203
 
1252
1204
  ### Added
1253
1205
 
1254
- - Provide a dependency injector as an `Inject` constant inside any subclass of `Dry::Component::Container`. This injector supports all of `dry-auto_inject`'s default injection strategies, and will lazily load any dependencies as they are injected. It also supports arbitrarily switching strategies, so they can be used in different classes as required (e.g. `include MyComponent::Inject.args["dep"]`) (timriley)
1255
- - Support aliased dependency names when calling the injector object (e.g. `MyComponent::Inject[foo: "my_app.foo", bar: "another.thing"]`) (timriley)
1256
- - Allow a custom dependency loader to be set on a container via its config (AMHOL)
1206
+ - Provide a dependency injector as an `Inject` constant inside any subclass of `Dry::Component::Container`. This injector supports all of `dry-auto_inject`'s default injection strategies, and will lazily load any dependencies as they are injected. It also supports arbitrarily switching strategies, so they can be used in different classes as required (e.g. `include MyComponent::Inject.args["dep"]`). (@timriley)
1207
+ - Support aliased dependency names when calling the injector object (e.g. `MyComponent::Inject[foo: "my_app.foo", bar: "another.thing"]`). (@timriley)
1208
+ - Allow a custom dependency loader to be set on a container via its config. (@AMHOL)
1257
1209
 
1258
1210
  ```ruby
1259
1211
  class MyContainer < Dry::Component::Container
@@ -1266,29 +1218,28 @@ Removed two pieces that are moving to dry-web:
1266
1218
 
1267
1219
  ### Changed
1268
1220
 
1269
- - `Container.boot` now only makes a simple `require` for the boot file (solnic)
1270
- - Container object is passed to `Container.finalize` blocks (solnic)
1271
- - Allow `Pathname` objects passed to `Container.require` (solnic)
1272
- - Support lazily loading missing dependencies from imported containers (solnic)
1273
- - `Container.import_module` renamed to `.injector` (timriley)
1274
- - Default injection strategy is now `kwargs`, courtesy of the new dry-auto_inject default (timriley)
1275
-
1276
- [Compare v0.0.2...v0.1.0](https://github.com/dry-rb/dry-system/compare/v0.0.2...v0.1.0)
1221
+ - `Container.boot` now only makes a simple `require` for the boot file. (@solnic)
1222
+ - Container object is passed to `Container.finalize` blocks. (@solnic)
1223
+ - Allow `Pathname` objects passed to `Container.require`. (@solnic)
1224
+ - Support lazily loading missing dependencies from imported containers. (@solnic)
1225
+ - `Container.import_module` renamed to `.injector`. (@timriley)
1226
+ - Default injection strategy is now `kwargs`, courtesy of the new dry-auto_inject default. (@timriley)
1277
1227
 
1278
- ## 0.0.2 2015-12-24
1228
+ [0.1.0]: https://github.com/dry-rb/dry-system/compare/v0.0.2...v0.1.0
1279
1229
 
1230
+ ## [0.0.2] - 2015-12-24
1280
1231
 
1281
1232
  ### Added
1282
1233
 
1283
- - Containers have a `name` setting (solnic)
1284
- - Containers can be imported into one another (solnic)
1234
+ - Containers have a `name` setting. (@solnic)
1235
+ - Containers can be imported into one another. (@solnic)
1285
1236
 
1286
1237
  ### Changed
1287
1238
 
1288
- - Container name is used to determine the name of its config file (solnic)
1239
+ - Container name is used to determine the name of its config file. (@solnic)
1289
1240
 
1290
- [Compare v0.0.1...v0.0.2](https://github.com/dry-rb/dry-system/compare/v0.0.1...v0.0.2)
1241
+ [0.0.2]: https://github.com/dry-rb/dry-system/compare/v0.0.1...v0.0.2
1291
1242
 
1292
- ## 0.0.1 2015-12-24
1243
+ ## 0.0.1 - 2015-12-24
1293
1244
 
1294
1245
  First public release, extracted from rodakase project