dry-system 1.2.5 → 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
@@ -2,12 +2,40 @@
2
2
 
3
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/),
6
- and this project adheres to [Break Versioning](https://www.taoensso.com/break-versioning).
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).
7
6
 
8
7
  ## [Unreleased]
9
8
 
10
- [Unreleased]: https://github.com/dry-rb/dry-system/compare/v1.2.5...main
9
+ ### Added
10
+
11
+ ### Changed
12
+
13
+ ### Deprecated
14
+
15
+ ### Removed
16
+
17
+ ### Fixed
18
+
19
+ ### Security
20
+
21
+ [Unreleased]: https://github.com/dry-rb/dry-system/compare/v1.3.0...main
22
+
23
+ ## [1.3.0] - 2026-11-27
24
+
25
+ ### Added
26
+
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)
28
+
29
+ ### Changed
30
+
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)
32
+
33
+ ### Fixed
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)
37
+
38
+ [1.3.0]: https://github.com/dry-rb/dry-system/compare/v1.2.5...v1.3.0
11
39
 
12
40
  ## [1.2.5] - 2025-12-01
13
41
 
@@ -19,213 +47,173 @@ and this project adheres to [Break Versioning](https://www.taoensso.com/break-ve
19
47
 
20
48
  ## [1.2.4] - 2025-08-14
21
49
 
22
-
23
50
  ### Fixed
24
51
 
25
- - Allow imported components to be lazy loaded when both strings and symbols are given as the
26
- namespace to `Container.import` (@timriley in #287)
27
-
52
+ - Allow imported components to be lazy loaded when both strings and symbols are given as the namespace to `Container.import`. (@timriley in #287)
28
53
 
29
- [Compare v1.2.3...v1.2.4](https://github.com/dry-rb/dry-system/compare/v1.2.3...v1.2.4)
54
+ [1.2.4]: https://github.com/dry-rb/dry-system/compare/v1.2.3...v1.2.4
30
55
 
31
56
  ## [1.2.3] - 2025-07-29
32
57
 
33
-
34
58
  ### Added
35
59
 
36
- - Add :register after-hook to detect container key registration dynamically. (via #274, @alassek)
60
+ - Add :register after-hook to detect container key registration dynamically. (@alassek in #274)
37
61
 
38
62
  ### Fixed
39
63
 
40
- - Re-register components from manifest registrars in apps that reload the container (e.g. when
41
- using dry-rails and Rails development mode) (via #286, @alassek)
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)
42
65
 
43
66
  ### Changed
44
67
 
45
- - :finalize after-hook now executes before container freeze to allow mutation. (via #274, @alassek)
68
+ - :finalize after-hook now executes before container freeze to allow mutation. (@alassek in #274)
46
69
 
47
- [Compare v1.2.2...v1.2.3](https://github.com/dry-rb/dry-system/compare/v1.2.2...v1.2.3)
70
+ [1.2.3]: https://github.com/dry-rb/dry-system/compare/v1.2.2...v1.2.3
48
71
 
49
72
  ## [1.2.2] - 2025-01-31
50
73
 
51
-
52
74
  ### Fixed
53
75
 
54
- - Syntax errors on 3.3.0 (@flash-gordon, see #284)
55
-
76
+ - Syntax errors on 3.3.0. (@flash-gordon in #284)
56
77
 
57
- [Compare v1.2.1...v1.2.2](https://github.com/dry-rb/dry-system/compare/v1.2.1...v1.2.2)
78
+ [1.2.2]: https://github.com/dry-rb/dry-system/compare/v1.2.1...v1.2.2
58
79
 
59
80
  ## [1.2.1] - 2025-01-08
60
81
 
61
-
62
82
  ### Fixed
63
83
 
64
- - `eager_load` was removed from `finalize!`. It was introduced with `true` by default that
65
- wasn't the intention #281 (via #282) (@flash-gordon)
84
+ - `eager_load` was removed from `finalize!`. It was introduced with `true` by default that wasn't the intention #281. (@flash-gordon in #282)
66
85
 
67
-
68
- [Compare v1.2.0...v1.2.1](https://github.com/dry-rb/dry-system/compare/v1.2.0...v1.2.1)
86
+ [1.2.1]: https://github.com/dry-rb/dry-system/compare/v1.2.0...v1.2.1
69
87
 
70
88
  ## [1.2.0] - 2025-01-07
71
89
 
72
-
73
90
  ### Added
74
91
 
75
- - Option to skip eager loading during finalize with `eager_load: false` (via #276) (@cllns)
92
+ - Option to skip eager loading during finalize with `eager_load: false`. (@cllns in #276)
76
93
 
77
94
  ### Changed
78
95
 
79
- - Update required Ruby version to 3.1 (@flash-gordon)
96
+ - Update required Ruby version to 3.1. (@flash-gordon)
80
97
 
81
- [Compare v1.1.1...v1.2.0](https://github.com/dry-rb/dry-system/compare/v1.1.1...v1.2.0)
98
+ [1.2.0]: https://github.com/dry-rb/dry-system/compare/v1.1.1...v1.2.0
82
99
 
83
100
  ## [1.1.1] - 2024-11-03
84
101
 
85
-
86
102
  ### Fixed
87
103
 
88
- - Restore `ProviderRegistrar#find_and_load_provider` as an alias of `#[]`
89
-
104
+ - Restore `ProviderRegistrar#find_and_load_provider` as an alias of `#[]`.
90
105
 
91
- [Compare v1.1.0...v1.1.1](https://github.com/dry-rb/dry-system/compare/v1.1.0...v1.1.1)
106
+ [1.1.1]: https://github.com/dry-rb/dry-system/compare/v1.1.0...v1.1.1
92
107
 
93
108
  ## [1.1.0] - 2024-10-31
94
109
 
95
-
96
-
97
- [Compare v1.1.0.beta2...v1.1.0](https://github.com/dry-rb/dry-system/compare/v1.1.0.beta2...v1.1.0)
110
+ [1.1.0]: https://github.com/dry-rb/dry-system/compare/v1.1.0.beta2...v1.1.0
98
111
 
99
112
  ## [1.1.0.beta2] - 2024-09-25
100
113
 
101
-
102
114
  ### Changed
103
115
 
104
- - Allow provider sources to use a custom superclass. This requires a custom provider registrar
105
- to be configured, with its own implementations of `#provider_source_class` (the superclass to
106
- use) and `#provider_source_options` (custom initialization args to pass to the provider
107
- source). (via #275) (@alassek, @timriley)
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)
108
117
 
109
- [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)
118
+ [1.1.0.beta2]: https://github.com/dry-rb/dry-system/compare/v1.1.0.beta1...v1.1.0.beta2
110
119
 
111
120
  ## [1.1.0.beta1] - 2024-07-03
112
121
 
113
-
114
122
  ### Added
115
123
 
116
- - Add `Dry::System::ProviderRegistrar#target_container`, to be passed when initializing
117
- providers. By default this is an alias of `#container`. This allows for custom provider
118
- registrars to override `#target_container` to provide a custom `#target` within providers.
119
- An overridden value **MUST** still wrap the original `#target_container` to ensure components
120
- are registered in the right place. (via #270) (@timriley)
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)
121
125
 
122
126
  ### Changed
123
127
 
124
- - Make `Dry::System::ProviderRegistrar` public API (via #270) (@timriley)
125
- - When registering a provider source, you can now provide a `provider_options:` hash of default
126
- options for providers to be registered using that source. The one provider option currently
127
- supported is `namespace:`. (via #271) (@timriley)
128
- - Load providers when accessing them via `Dry::System::ProviderRegistrar#[]`. The previous,
129
- behavior of `#[]` returning `nil` if a provider had not been explicitly loaded was a
130
- potential source of confusion. Now `#[]` can serve as the one and only interface for fetching
131
- a provider. (via #273) (@timriley)
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)
132
131
 
133
- [Compare v1.0.1...v1.1.0.beta1](https://github.com/dry-rb/dry-system/compare/v1.0.1...v1.1.0.beta1)
132
+ [1.1.0.beta1]: https://github.com/dry-rb/dry-system/compare/v1.0.1...v1.1.0.beta1
134
133
 
135
134
  ## [1.0.1] - 2022-11-18
136
135
 
137
-
138
136
  ### Changed
139
137
 
140
- - Bumped dry-auto_inject dependency to its 1.0.0 final release (@solnic)
138
+ - Bumped dry-auto_inject dependency to its 1.0.0 final release. (@solnic)
141
139
 
142
- [Compare v1.0.0...v1.0.1](https://github.com/dry-rb/dry-system/compare/v1.0.0...v1.0.1)
140
+ [1.0.1]: https://github.com/dry-rb/dry-system/compare/v1.0.0...v1.0.1
143
141
 
144
142
  ## [1.0.0] - 2022-11-18
145
143
 
146
-
147
144
  ### Fixed
148
145
 
149
- - Only use DidYouMean-integrated Error for Component loading failure (via #261) (@cllns + @solnic)
146
+ - Only use DidYouMean-integrated Error for Component loading failure. (@cllns, @solnic in #261)
150
147
 
151
148
  ### Changed
152
149
 
153
- - This version uses dry-core 1.0 and dry-configurable 1.0 (@solnic + @flash-gordon)
154
- - Raise error on import after finalize (via #254) (@timriley + @tak1n)
155
- - Validate settings even if loader does not set value (via #246) (@oeoeaio)
156
- - Remove all deprecated functionality and deprecation messages (via #255) (@timriley)
157
- - Use main dry/monitor entrypoint for autoloading (via #257) (@timriley)
158
- - Use dry-configurable 1.0 (via 43c79095ccf54c6251e825ae20c97a9415e78209) (@flash-gordon)
159
- - Use dry-core 1.0 (via 3d0cf95aef120601e67f3e8fbbf16d004017d376) (@flash-gordon)
160
- - Remove dry-container dependency and update to use `Dry::Core::Container` (via 2b76554e5925fc92614627d5c1e0a9177cecf12f) (@solnic)
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)
161
158
 
162
- [Compare v0.27.2...v1.0.0](https://github.com/dry-rb/dry-system/compare/v0.27.2...v1.0.0)
159
+ [1.0.0]: https://github.com/dry-rb/dry-system/compare/v0.27.2...v1.0.0
163
160
 
164
161
  ## [0.27.2] - 2022-10-17
165
162
 
166
-
167
163
  ### Fixed
168
164
 
169
- - Removed remaining manual require left-overs (@solnic)
170
-
165
+ - Removed remaining manual require left-overs. (@solnic)
171
166
 
172
- [Compare v0.27.1...v0.27.2](https://github.com/dry-rb/dry-system/compare/v0.27.1...v0.27.2)
167
+ [0.27.2]: https://github.com/dry-rb/dry-system/compare/v0.27.1...v0.27.2
173
168
 
174
169
  ## [0.27.1] - 2022-10-15
175
170
 
176
-
177
171
  ### Fixed
178
172
 
179
- - Tweak for zeitwerk loader (@flash-gordon)
173
+ - Tweak for zeitwerk loader. (@flash-gordon)
180
174
 
181
-
182
- [Compare v0.27.0...v0.27.1](https://github.com/dry-rb/dry-system/compare/v0.27.0...v0.27.1)
175
+ [0.27.1]: https://github.com/dry-rb/dry-system/compare/v0.27.0...v0.27.1
183
176
 
184
177
  ## [0.27.0] - 2022-10-15
185
178
 
186
-
187
179
  ### Changed
188
180
 
189
- - [BREAKING] Use zeitwerk for auto-loading dry-system (@flash-gordon + @solnic)
181
+ - [BREAKING] Use zeitwerk for auto-loading dry-system. (@flash-gordon, @solnic)
190
182
 
191
- From now on you need to do `require "dry/system"` as it sets up its Zeitwerk loader and from
192
- there, everything else will be auto-loaded.
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.
193
184
 
194
- [Compare v0.26.0...v0.27.0](https://github.com/dry-rb/dry-system/compare/v0.26.0...v0.27.0)
185
+ [0.27.0]: https://github.com/dry-rb/dry-system/compare/v0.26.0...v0.27.0
195
186
 
196
187
  ## [0.26.0] - 2022-10-08
197
188
 
198
-
199
189
  ### Changed
200
190
 
201
- - Update dry-configurable dependency to 0.16.0 and make internal adjustments to suit (@timriley in #249)
202
- - 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)
203
193
 
204
- [Compare v0.25.0...v0.26.0](https://github.com/dry-rb/dry-system/compare/v0.25.0...v0.26.0)
194
+ [0.26.0]: https://github.com/dry-rb/dry-system/compare/v0.25.0...v0.26.0
205
195
 
206
196
  ## [0.25.0] - 2022-07-10
207
197
 
208
-
209
198
  ### Fixed
210
199
 
211
- - Fix incorrect type in `ManifestRegistrar#finalize!` (@alassek)
200
+ - Fix incorrect type in `ManifestRegistrar#finalize!`. (@alassek)
212
201
 
213
202
  ### Changed
214
203
 
215
- - Import root components via `nil` import namespace (via #236) (@timriley)
216
- - Allow deeper `Provider::Source` hierarchies (via #240) (@timriley + @solnic)
217
- - Prefer local components when importing (via #241) (@timriley + @solnic)
218
-
219
- [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)
220
207
 
221
- ## [0.24.0] -
208
+ [0.25.0]: https://github.com/dry-rb/dry-system/compare/v0.24.0...v0.25.0
222
209
 
210
+ ## [0.24.0] - 2022-05-25
223
211
 
224
212
  ### Changed
225
213
 
226
- - dry-struct depedency was removed (@flash-gordon)
214
+ - dry-struct depedency was removed. (@flash-gordon)
227
215
 
228
- [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
229
217
 
230
218
  ## [0.23.0] - 2022-02-08
231
219
 
@@ -235,10 +223,9 @@ Deprecations are in place for otherwise breaking changes to commonly used parts
235
223
 
236
224
  This prepares the way for dry-system 1.0, which will be released in the coming months.
237
225
 
238
-
239
226
  ### Added
240
227
 
241
- - 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)
242
229
 
243
230
  ```ruby
244
231
  class MyContainer < Dry::System::Container
@@ -251,7 +238,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
251
238
  Containers importing another container with configured exports will import only those components.
252
239
 
253
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.
254
- - 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)
255
242
 
256
243
  This makes it possible to enable Zeitwerk with a one-liner:
257
244
 
@@ -274,7 +261,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
274
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.
275
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`.
276
263
  - `debug:` - (optional) a bool to set whether Zeitwerk should log to `$stdout`.
277
- - New `Identifier#end_with?` and `Identifier#include?` predicates (@timriley in #219)
264
+ - New `Identifier#end_with?` and `Identifier#include?` predicates. (@timriley in #219)
278
265
 
279
266
  These are key segment-aware predicates that can be useful when checking components as part of container configuration.
280
267
 
@@ -292,7 +279,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
292
279
  identifier.include?("article") # false, not a whole segment
293
280
  identifier.include?("update") # => false, not part of the key at all
294
281
  ```
295
- - 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)
296
283
 
297
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.
298
285
 
@@ -313,20 +300,20 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
313
300
  ```
314
301
 
315
302
  For complete control of component loading, you should continue to configure the component dir’s `loader` instead.
316
- - 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)
317
304
 
318
305
  The error shows expected and found class names, and inflector configuration that may be required in the case of class names containing acronyms.
319
306
 
320
307
  ### Fixed
321
308
 
322
- - 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).
323
- - 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)
324
311
 
325
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.
326
313
 
327
314
  ### Changed
328
315
 
329
- - “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)
330
317
 
331
318
  Register a provider with `Dry::System::Container.register_provider` (`Dry::System::Container.boot` has been deprecated):
332
319
 
@@ -335,7 +322,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
335
322
  # ...
336
323
  end
337
324
  ```
338
- - 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)
339
326
 
340
327
  ```ruby
341
328
  MyContainer.reigster_provider(:mailer) do
@@ -345,7 +332,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
345
332
  end
346
333
  end
347
334
  ```
348
- - 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)
349
336
 
350
337
  The provider source class is created for each provider as a subclass of `Dry::System::Provider::Source`.
351
338
 
@@ -388,17 +375,17 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
388
375
  end
389
376
  })
390
377
  ```
391
- - 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)
392
379
 
393
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).
394
381
 
395
382
  To access the target container, you can use `#target_container` (or `#target` as a convenience alias) instead.
396
383
 
397
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).
398
- - `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)
399
386
 
400
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)`.
401
- - `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)
402
389
 
403
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:
404
391
 
@@ -413,7 +400,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
413
400
  end
414
401
  end
415
402
  ```
416
- - 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)
417
404
 
418
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):
419
406
 
@@ -448,7 +435,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
448
435
  ```
449
436
 
450
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.
451
- - 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)
452
439
 
453
440
  You can register a provider using the same name as an external provider source by specifying the `from:` argument only, as before:
454
441
 
@@ -467,7 +454,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
467
454
  ```
468
455
 
469
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.
470
- - 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)
471
458
 
472
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`:
473
460
 
@@ -502,7 +489,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
502
489
  # Constructor will also work with dry-types objects
503
490
  setting :my_option, default: "hello", constructor: Types::String.constrained(min_size: 3)
504
491
  ```
505
- - 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)
506
493
 
507
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:
508
495
 
@@ -534,25 +521,26 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
534
521
  end
535
522
  end
536
523
  ```
537
- - 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)
538
525
 
539
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.
540
527
 
541
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.
542
- - `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)
543
530
 
544
531
  The default value for `provider_dirs` is now `"system/providers`".
545
- - Removed the unused `system_dir` container setting (**BREAKING**) (@timriley in #200)
532
+ - Removed the unused `system_dir` container setting (**BREAKING**). (@timriley in #200)
546
533
 
547
534
  If you’ve configured this inside your container, you can remove it.
548
- - 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).
549
- - 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)
550
537
 
551
538
  ```ruby
552
539
  MyContainer.register_provider(:settings, from: :dry_system) do
553
540
  # ...
554
541
  end
555
- - 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)
556
544
 
557
545
  This `setting` method uses the dry-configurable setting API:
558
546
 
@@ -567,13 +555,13 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
567
555
  end
568
556
  end
569
557
  ```
570
- - 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)
571
559
 
572
560
  To ensure you can load your settings from these `.env*` files, add `gem "dotenv"` to your `Gemfile`.
573
- - `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)
574
562
 
575
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.
576
- - `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)
577
565
 
578
566
  You can opt out of this behavior by passing the `finalize_config: false` option:
579
567
 
@@ -586,17 +574,17 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
586
574
  # `config` is still non-finalized here
587
575
  end
588
576
  ```
589
- - `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)
590
578
 
591
579
  This ensures config finalization is an intrinsic part of the overall container finalization process.
592
- - 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)
593
581
 
594
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.
595
- - 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)
596
584
 
597
585
  This ensures the plugin settings are available immediately after you’ve enabled the plugin via `Dry::System::Container.use`.
598
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)
599
- - 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)
600
588
 
601
589
  To import specific components:
602
590
 
@@ -613,40 +601,38 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
613
601
  ```
614
602
 
615
603
  Omitting `keys:` will import all the components available from the other container.
616
- - 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)
617
605
 
618
606
  Imported components are considered “private” by default because they did not originate in container that imported them.
619
607
 
620
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.
621
- - 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)
622
610
 
623
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`.
624
- - [Internal] The `manual_registrar` container setting and associated `ManualRegistrar` class have been renamed to `manifest_registrar` and `ManifestRegistrar` respectively (**BREAKING**) (@timriley in #208).
625
- - The default value for the container `registrations_dir` setting has been changed from `"container"` to `"system/registrations"` (**BREAKING**) (@timriley in #208)
626
- - The `:dependency_graph` plugin now supports all dry-auto_inject injector strategies (@davydovanton and @timriley in #214)
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)
627
615
 
628
- [Compare v0.22.0...v0.23.0](https://github.com/dry-rb/dry-system/compare/v0.22.0...v0.23.0)
616
+ [0.23.0]: https://github.com/dry-rb/dry-system/compare/v0.22.0...v0.23.0
629
617
 
630
618
  ## [0.22.0] - 2022-01-06
631
619
 
632
-
633
620
  ### Added
634
621
 
635
- - 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)
636
623
 
637
624
  ### Changed
638
625
 
639
- - Deprecated `Dry::System::Config::Namespaces#root` as the way to add and configure a root namespace. Use `#add_root` instead (@timriley in #195)
640
- - Allow bootsnap plugin to use bootsnap on Ruby versions up to 3.0 (pusewicz in #196)
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)
641
628
 
642
- [Compare v0.21.0...v0.22.0](https://github.com/dry-rb/dry-system/compare/v0.21.0...v0.22.0)
629
+ [0.22.0]: https://github.com/dry-rb/dry-system/compare/v0.21.0...v0.22.0
643
630
 
644
631
  ## [0.21.0] - 2021-11-01
645
632
 
646
-
647
633
  ### Added
648
634
 
649
- - 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)
650
636
 
651
637
  ### Changed
652
638
 
@@ -668,54 +654,49 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
668
654
  ```
669
655
 
670
656
  (@timriley in #181)
671
- - `Dry::System::Component#path` has been removed and replaced by `Component#require_path` and `Component#const_path` (@timriley in #181)
672
- - Unused `Dry::System::FileNotFoundError` and `Dry::System::InvalidComponentIdentifierTypeError` errors have been removed (@timriley in #194)
673
- - 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)
674
660
 
675
- [Compare v0.20.0...v0.21.0](https://github.com/dry-rb/dry-system/compare/v0.20.0...v0.21.0)
661
+ [0.21.0]: https://github.com/dry-rb/dry-system/compare/v0.20.0...v0.21.0
676
662
 
677
663
  ## [0.20.0] - 2021-09-12
678
664
 
679
-
680
665
  ### Fixed
681
666
 
682
- - Fixed dependency graph plugin to work with internal changes introduced in 0.19.0 (@wuarmin in #173)
683
- - 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)
684
- - 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)
685
670
 
686
671
  ### Changed
687
672
 
688
- - [internal] Upgraded to new `setting` API provided in dry-configurable 0.13.0 (@timriley in #179)
673
+ - [internal] Upgraded to new `setting` API provided in dry-configurable 0.13.0. (@timriley in #179)
689
674
 
690
- [Compare v0.19.2...v0.20.0](https://github.com/dry-rb/dry-system/compare/v0.19.2...v0.20.0)
675
+ [0.20.0]: https://github.com/dry-rb/dry-system/compare/v0.19.2...v0.20.0
691
676
 
692
677
  ## [0.19.2] - 2021-08-30
693
678
 
694
-
695
679
  ### Changed
696
680
 
697
- - [internal] Improved compatibility with upcoming dry-configurable 0.13.0 release (@timriley in #186)
681
+ - [internal] Improved compatibility with upcoming dry-configurable 0.13.0 release. (@timriley in #186)
698
682
 
699
- [Compare v0.18.2...v0.19.2](https://github.com/dry-rb/dry-system/compare/v0.18.2...v0.19.2)
683
+ [0.19.2]: https://github.com/dry-rb/dry-system/compare/v0.18.2...v0.19.2
700
684
 
701
685
  ## [0.18.2] - 2021-08-30
702
686
 
703
-
704
687
  ### Changed
705
688
 
706
- - [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)
707
690
 
708
- [Compare v0.19.1...v0.18.2](https://github.com/dry-rb/dry-system/compare/v0.19.1...v0.18.2)
691
+ [0.18.2]: https://github.com/dry-rb/dry-system/compare/v0.19.1...v0.18.2
709
692
 
710
693
  ## [0.19.1] - 2021-07-11
711
694
 
712
-
713
695
  ### Fixed
714
696
 
715
- - Check for registered components (@timriley in #175)
716
-
697
+ - Check for registered components. (@timriley in #175)
717
698
 
718
- [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
719
700
 
720
701
  ## [0.19.0] - 2021-04-22
721
702
 
@@ -791,36 +772,33 @@ This release marks a huge step forward for dry-system, bringing support for Zeit
791
772
  ```
792
773
 
793
774
  (@timriley in #153)
794
- - [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)
795
776
 
796
777
  ### Changed
797
778
 
798
- - Components with `# auto_register: false` magic comments in their source files are now properly ignored when lazy loading (@timriley in #155)
799
- - `# memoize: true` and `# memoize: false` magic comments at top of component files are now respected (@timriley in #155)
800
- - [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)
801
- - [BREAKING] `auto_register` container setting has been removed. Configured directories to be auto-registered by adding `component_dirs` instead (@timriley in #155)
802
- - [BREAKING] `default_namespace` container setting has been removed. Set it when adding `component_dirs` instead (@timriley in #155)
803
- - [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)
804
- - [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)
805
786
  - [BREAKING] `Dry::System::Container.auto_register!` has been removed. Configure `component_dirs` instead. (@timriley in #157)
806
- - [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)
807
- - [BREAKING] `Dry::System::Container.require_path` has been removed. Provide custom require behavior by configuring your own `loader` (@timriley in #153)
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)
808
789
 
809
- [Compare v0.18.1...v0.19.0](https://github.com/dry-rb/dry-system/compare/v0.18.1...v0.19.0)
790
+ [0.19.0]: https://github.com/dry-rb/dry-system/compare/v0.18.1...v0.19.0
810
791
 
811
792
  ## [0.18.1] - 2020-08-26
812
793
 
813
-
814
794
  ### Fixed
815
795
 
816
- - Made `Booter#boot_files` a public method again, since it was required by dry-rails (@timriley)
817
-
796
+ - Made `Booter#boot_files` a public method again, since it was required by dry-rails. (@timriley)
818
797
 
819
- [Compare v0.18.0...v0.18.1](https://github.com/dry-rb/dry-system/compare/v0.18.0...v0.18.1)
798
+ [0.18.1]: https://github.com/dry-rb/dry-system/compare/v0.18.0...v0.18.1
820
799
 
821
800
  ## [0.18.0] - 2020-08-24
822
801
 
823
-
824
802
  ### Added
825
803
 
826
804
  - New `bootable_dirs` setting on `Dry::System::Container`, which accepts paths to multiple directories for looking up bootable component files. (@timriley in PR #151)
@@ -829,150 +807,132 @@ This release marks a huge step forward for dry-system, bringing support for Zeit
829
807
 
830
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.
831
809
 
832
-
833
- [Compare v0.17.0...v0.18.0](https://github.com/dry-rb/dry-system/compare/v0.17.0...v0.18.0)
810
+ [0.18.0]: https://github.com/dry-rb/dry-system/compare/v0.17.0...v0.18.0
834
811
 
835
812
  ## [0.17.0] - 2020-02-19
836
813
 
837
-
838
814
  ### Fixed
839
815
 
840
- - Works with the latest dry-configurable version (issue #141) (@solnic)
816
+ - Works with the latest dry-configurable version. (@solnic in #141)
841
817
 
842
818
  ### Changed
843
819
 
844
- - Depends on dry-configurable `=> 0.11.1` now (@solnic)
820
+ - Depends on dry-configurable `=> 0.11.1` now. (@solnic)
845
821
 
846
- [Compare v0.16.0...v0.17.0](https://github.com/dry-rb/dry-system/compare/v0.16.0...v0.17.0)
822
+ [0.17.0]: https://github.com/dry-rb/dry-system/compare/v0.16.0...v0.17.0
847
823
 
848
824
  ## [0.16.0] - 2020-02-15
849
825
 
850
-
851
826
  ### Changed
852
827
 
853
- - Plugins can now define their own settings which are available in the `before(:configure)` hook (@solnic)
854
- - 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)
855
830
 
856
- [Compare v0.15.0...v0.16.0](https://github.com/dry-rb/dry-system/compare/v0.15.0...v0.16.0)
831
+ [0.16.0]: https://github.com/dry-rb/dry-system/compare/v0.15.0...v0.16.0
857
832
 
858
833
  ## [0.15.0] - 2020-01-30
859
834
 
860
-
861
835
  ### Added
862
836
 
863
- - New hook - `before(:configure)` which a plugin should use if it needs to declare new settings (@solnic)
864
-
865
- ```ruby
866
- # in your plugin code
867
- before(:configure) { setting :my_new_setting }
837
+ - New hook - `before(:configure)` which a plugin should use if it needs to declare new settings. (@solnic)
868
838
 
869
- after(:configure) { config.my_new_setting = "awesome" }
870
- ```
839
+ ```ruby
840
+ # in your plugin code
841
+ before(:configure) { setting :my_new_setting }
871
842
 
843
+ after(:configure) { config.my_new_setting = "awesome" }
844
+ ```
872
845
 
873
846
  ### Changed
874
847
 
875
- - Centralize error definitions in `lib/dry/system/errors.rb` (@cgeorgii)
876
- - All built-in plugins use `before(:configure)` now to declare their settings (@solnic)
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)
877
850
 
878
- [Compare v0.14.1...v0.15.0](https://github.com/dry-rb/dry-system/compare/v0.14.1...v0.15.0)
851
+ [0.15.0]: https://github.com/dry-rb/dry-system/compare/v0.14.1...v0.15.0
879
852
 
880
853
  ## [0.14.1] - 2020-01-22
881
854
 
882
-
883
855
  ### Changed
884
856
 
885
- - Use `Kernel.require` explicitly to avoid issues with monkey-patched `require` from ActiveSupport (@solnic)
857
+ - Use `Kernel.require` explicitly to avoid issues with monkey-patched `require` from ActiveSupport. (@solnic)
886
858
 
887
- [Compare v0.14.0...v0.14.1](https://github.com/dry-rb/dry-system/compare/v0.14.0...v0.14.1)
859
+ [0.14.1]: https://github.com/dry-rb/dry-system/compare/v0.14.0...v0.14.1
888
860
 
889
861
  ## [0.14.0] - 2020-01-21
890
862
 
891
-
892
863
  ### Fixed
893
864
 
894
- - Misspelled plugin name raises meaningful error (issue #132) (@cgeorgii)
895
- - Fail fast if auto_registrar config contains incorrect path (@cutalion)
896
-
865
+ - Misspelled plugin name raises meaningful error. (@cgeorgii in #132)
866
+ - Fail fast if auto_registrar config contains incorrect path. (@cutalion)
897
867
 
898
- [Compare v0.13.2...v0.14.0](https://github.com/dry-rb/dry-system/compare/v0.13.2...v0.14.0)
868
+ [0.14.0]: https://github.com/dry-rb/dry-system/compare/v0.13.2...v0.14.0
899
869
 
900
870
  ## [0.13.2] - 2019-12-28
901
871
 
902
-
903
872
  ### Fixed
904
873
 
905
- - More keyword warnings (flash-gordon)
906
-
874
+ - More keyword warnings. (@flash-gordon)
907
875
 
908
- [Compare v0.13.1...v0.13.2](https://github.com/dry-rb/dry-system/compare/v0.13.1...v0.13.2)
876
+ [0.13.2]: https://github.com/dry-rb/dry-system/compare/v0.13.1...v0.13.2
909
877
 
910
878
  ## [0.13.1] - 2019-11-07
911
879
 
912
-
913
880
  ### Fixed
914
881
 
915
- - Fixed keyword warnings reported by Ruby 2.7 (flash-gordon)
916
- - Duplicates in `Dry::System::Plugins.loaded_dependencies` (AMHOL)
917
-
882
+ - Fixed keyword warnings reported by Ruby 2.7. (@flash-gordon)
883
+ - Duplicates in `Dry::System::Plugins.loaded_dependencies`. (@AMHOL)
918
884
 
919
- [Compare v0.13.0...v0.13.1](https://github.com/dry-rb/dry-system/compare/v0.13.0...v0.13.1)
885
+ [0.13.1]: https://github.com/dry-rb/dry-system/compare/v0.13.0...v0.13.1
920
886
 
921
887
  ## [0.13.0] - 2019-10-13
922
888
 
923
-
924
889
  ### Added
925
890
 
926
- - `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)
927
892
  ```ruby
928
893
  App.resolve('missing.dep') { :fallback } # => :fallback
929
894
  ```
930
895
 
931
896
  ### Changed
932
897
 
933
- - [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)
934
899
 
935
- [Compare v0.12.0...v0.13.0](https://github.com/dry-rb/dry-system/compare/v0.12.0...v0.13.0)
900
+ [0.13.0]: https://github.com/dry-rb/dry-system/compare/v0.12.0...v0.13.0
936
901
 
937
902
  ## [0.12.0] - 2019-04-24
938
903
 
939
-
940
904
  ### Changed
941
905
 
942
- - Compatibility with dry-struct 1.0 and dry-types 1.0 (flash-gordon)
906
+ - Compatibility with dry-struct 1.0 and dry-types 1.0. (@flash-gordon)
943
907
 
944
- [Compare v0.11.0...v0.12.0](https://github.com/dry-rb/dry-system/compare/v0.11.0...v0.12.0)
908
+ [0.12.0]: https://github.com/dry-rb/dry-system/compare/v0.11.0...v0.12.0
945
909
 
946
910
  ## [0.11.0] - 2019-03-22
947
911
 
948
-
949
912
  ### Changed
950
913
 
951
- - [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)
952
- - [internal] Compatibility with dry-struct 0.7.0 and dry-types 0.15.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.
953
916
 
954
- [Compare v0.10.1...v0.11.0](https://github.com/dry-rb/dry-system/compare/v0.10.1...v0.11.0)
917
+ [0.11.0]: https://github.com/dry-rb/dry-system/compare/v0.10.1...v0.11.0
955
918
 
956
919
  ## [0.10.1] - 2018-07-05
957
920
 
958
-
959
921
  ### Added
960
922
 
961
- - Support for stopping bootable components with `Container.stop(component_name)` (GustavoCaso)
923
+ - Support for stopping bootable components with `Container.stop(component_name)`. (@GustavoCaso)
962
924
 
963
925
  ### Fixed
964
926
 
965
- - 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)
966
928
 
967
-
968
- [Compare v0.10.0...v0.10.1](https://github.com/dry-rb/dry-system/compare/v0.10.0...v0.10.1)
929
+ [0.10.1]: https://github.com/dry-rb/dry-system/compare/v0.10.0...v0.10.1
969
930
 
970
931
  ## [0.10.0] - 2018-06-07
971
932
 
972
-
973
933
  ### Added
974
934
 
975
- - 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)
976
936
 
977
937
  ```ruby
978
938
  class MyContainer < Dry::System::Container
@@ -986,123 +946,110 @@ after(:configure) { config.my_new_setting = "awesome" }
986
946
 
987
947
  ### Changed
988
948
 
989
- - A helpful error will be raised if an invalid setting value is provided (GustavoCaso)
990
- - When using setting plugin, will use default values from types (GustavoCaso)
991
- - Minimal supported ruby version was bumped to `2.3` (flash-gordon)
992
- - `dry-struct` was updated to `~> 0.5` (flash-gordon)
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)
993
953
 
994
- [Compare v0.9.2...v0.10.0](https://github.com/dry-rb/dry-system/compare/v0.9.2...v0.10.0)
954
+ [0.10.0]: https://github.com/dry-rb/dry-system/compare/v0.9.2...v0.10.0
995
955
 
996
956
  ## [0.9.2] - 2018-02-08
997
957
 
998
-
999
958
  ### Fixed
1000
959
 
1001
- - Default namespace no longer breaks resolving dependencies with identifier that includes part of the namespace (ie `mail.mailer`) (GustavoCaso)
960
+ - Default namespace no longer breaks resolving dependencies with identifier that includes part of the namespace (ie `mail.mailer`). (@GustavoCaso)
1002
961
 
1003
-
1004
- [Compare v0.9.1...v0.9.2](https://github.com/dry-rb/dry-system/compare/v0.9.1...v0.9.2)
962
+ [0.9.2]: https://github.com/dry-rb/dry-system/compare/v0.9.1...v0.9.2
1005
963
 
1006
964
  ## [0.9.1] - 2018-01-03
1007
965
 
1008
-
1009
966
  ### Fixed
1010
967
 
1011
- - 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)
1012
969
 
1013
-
1014
- [Compare v0.9.0...v0.9.1](https://github.com/dry-rb/dry-system/compare/v0.9.0...v0.9.1)
970
+ [0.9.1]: https://github.com/dry-rb/dry-system/compare/v0.9.0...v0.9.1
1015
971
 
1016
972
  ## [0.9.0] - 2018-01-02
1017
973
 
1018
-
1019
974
  ### Added
1020
975
 
1021
- - Plugin API (solnic)
1022
- - `:env` plugin which adds support for setting `env` config value (solnic)
1023
- - `:logging` plugin which adds a default logger (solnic)
1024
- - `:decorate` plugin for decorating registered objects (solnic)
1025
- - `:notifications` plugin adding pub/sub bus to containers (solnic)
1026
- - `:monitoring` plugin which adds `monitor` method for monitoring object method calls (solnic)
1027
- - `: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)
1028
983
 
1029
984
  ### Changed
1030
985
 
1031
- - [BREAKING] renamed `Container.{require=>require_from_root}` (GustavoCaso)
986
+ - [BREAKING] renamed `Container.{require=>require_from_root}`. (@GustavoCaso)
1032
987
 
1033
- [Compare v0.8.1...v0.9.0](https://github.com/dry-rb/dry-system/compare/v0.8.1...v0.9.0)
988
+ [0.9.0]: https://github.com/dry-rb/dry-system/compare/v0.8.1...v0.9.0
1034
989
 
1035
990
  ## [0.8.1] - 2017-10-17
1036
991
 
1037
-
1038
992
  ### Fixed
1039
993
 
1040
- - Aliasing an external component works correctly (solnic)
1041
- - Manually calling `:init` will also finalize a component (solnic)
1042
-
994
+ - Aliasing an external component works correctly. (@solnic)
995
+ - Manually calling `:init` will also finalize a component. (@solnic)
1043
996
 
1044
- [Compare v0.8.0...v0.8.1](https://github.com/dry-rb/dry-system/compare/v0.8.0...v0.8.1)
997
+ [0.8.1]: https://github.com/dry-rb/dry-system/compare/v0.8.0...v0.8.1
1045
998
 
1046
999
  ## [0.8.0] - 2017-10-16
1047
1000
 
1048
-
1049
1001
  ### Added
1050
1002
 
1051
- - Support for external bootable components (solnic)
1052
- - Built-in `:system` components including `:settings` component (solnic)
1003
+ - Support for external bootable components. (@solnic)
1004
+ - Built-in `:system` components including `:settings` component. (@solnic)
1053
1005
 
1054
1006
  ### Fixed
1055
1007
 
1056
- - 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)
1057
1009
 
1058
1010
  ### Changed
1059
1011
 
1060
- - [BREAKING] Improved boot DSL with support for namespacing and lifecycle before/after callbacks (solnic)
1012
+ - [BREAKING] Improved boot DSL with support for namespacing and lifecycle before/after callbacks. (@solnic)
1061
1013
 
1062
- [Compare v0.7.3...v0.8.0](https://github.com/dry-rb/dry-system/compare/v0.7.3...v0.8.0)
1014
+ [0.8.0]: https://github.com/dry-rb/dry-system/compare/v0.7.3...v0.8.0
1063
1015
 
1064
1016
  ## [0.7.3] - 2017-08-02
1065
1017
 
1066
-
1067
1018
  ### Fixed
1068
1019
 
1069
- - `Container.enable_stubs!` calls super too, which actually adds `stub` API (solnic)
1070
- - Issues with lazy-loading and import in stub mode are gone (solnic)
1071
-
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)
1072
1022
 
1073
- [Compare v0.7.2...v0.7.3](https://github.com/dry-rb/dry-system/compare/v0.7.2...v0.7.3)
1023
+ [0.7.3]: https://github.com/dry-rb/dry-system/compare/v0.7.2...v0.7.3
1074
1024
 
1075
1025
  ## [0.7.2] - 2017-08-02
1076
1026
 
1077
-
1078
1027
  ### Added
1079
1028
 
1080
- - `Container.enable_stubs!` for test environments which enables stubbing components (GustavoCaso)
1029
+ - `Container.enable_stubs!` for test environments which enables stubbing components. (@GustavoCaso)
1081
1030
 
1082
1031
  ### Changed
1083
1032
 
1084
- - Component identifiers can now include same name more than once ie `foo.stuff.foo` (GustavoCaso)
1085
- - `Container#boot!` was renamed to `Container#start` (davydovanton)
1086
- - `Container#boot` was renamed to `Container#init` (davydovanton)
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)
1087
1036
 
1088
- [Compare v0.7.1...v0.7.2](https://github.com/dry-rb/dry-system/compare/v0.7.1...v0.7.2)
1037
+ [0.7.2]: https://github.com/dry-rb/dry-system/compare/v0.7.1...v0.7.2
1089
1038
 
1090
1039
  ## [0.7.1] - 2017-06-16
1091
1040
 
1092
-
1093
1041
  ### Changed
1094
1042
 
1095
- - Accept string values for Container's `root` config (timriley)
1043
+ - Accept string values for Container's `root` config. (@timriley)
1096
1044
 
1097
- [Compare v0.7.0...v0.7.1](https://github.com/dry-rb/dry-system/compare/v0.7.0...v0.7.1)
1045
+ [0.7.1]: https://github.com/dry-rb/dry-system/compare/v0.7.0...v0.7.1
1098
1046
 
1099
1047
  ## [0.7.0] - 2017-06-15
1100
1048
 
1101
-
1102
1049
  ### Added
1103
1050
 
1104
- - 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)
1105
- - 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)
1106
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):
1107
1054
 
1108
1055
  ```ruby
@@ -1119,35 +1066,32 @@ after(:configure) { config.my_new_setting = "awesome" }
1119
1066
  end
1120
1067
  end
1121
1068
  ```
1122
- - 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)
1123
1070
 
1124
1071
  ### Changed
1125
1072
 
1126
- - The `default_namespace` container setting now supports multi-level namespaces (GustavoCaso)
1127
- - `Container.auto_register!` yields a configuration block instead of a block for returning a custom instance (see above) (GustavoCaso)
1128
- - `Container.import` now requires an explicit local name for the imported container (e.g. `import(local_name: AnotherContainer)`) (timriley)
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)
1129
1076
 
1130
- [Compare v0.6.0...v0.7.0](https://github.com/dry-rb/dry-system/compare/v0.6.0...v0.7.0)
1077
+ [0.7.0]: https://github.com/dry-rb/dry-system/compare/v0.6.0...v0.7.0
1131
1078
 
1132
1079
  ## [0.6.0] - 2016-02-02
1133
1080
 
1134
-
1135
1081
  ### Changed
1136
1082
 
1137
- - Lazy load components as they are resolved, rather than on injection (timriley)
1138
- - Perform registration even though component already required (blelump)
1083
+ - Lazy load components as they are resolved, rather than on injection. (@timriley)
1084
+ - Perform registration even though component already required. (@blelump)
1139
1085
 
1140
- [Compare v0.5.1...v0.6.0](https://github.com/dry-rb/dry-system/compare/v0.5.1...v0.6.0)
1086
+ [0.6.0]: https://github.com/dry-rb/dry-system/compare/v0.5.1...v0.6.0
1141
1087
 
1142
1088
  ## [0.5.1] - 2016-08-23
1143
1089
 
1144
-
1145
1090
  ### Fixed
1146
1091
 
1147
- - Undefined locals or method calls will raise proper exceptions in Lifecycle DSL (aradunovic)
1148
-
1092
+ - Undefined locals or method calls will raise proper exceptions in Lifecycle DSL. (@aradunovic)
1149
1093
 
1150
- [Compare v0.5.0...v0.5.1](https://github.com/dry-rb/dry-system/compare/v0.5.0...v0.5.1)
1094
+ [0.5.1]: https://github.com/dry-rb/dry-system/compare/v0.5.0...v0.5.1
1151
1095
 
1152
1096
  ## [0.5.0] - 2016-08-15
1153
1097
 
@@ -1156,55 +1100,48 @@ for multi-container setups. As part of this release `dry-system` has been rename
1156
1100
  ### Added
1157
1101
 
1158
1102
  - Boot DSL with:
1159
- - Lifecycle triggers: `init`, `start` and `stop` (solnic)
1160
- - `use` method which auto-boots a dependency and makes it available in the booting context (solnic)
1161
- - 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)
1162
1106
 
1163
1107
  ### Changed
1164
1108
 
1165
- - [BREAKING] `Dry::Component::Container` is now `Dry::System::Container` (solnic)
1166
- - [BREAKING] Configurable `loader` is now a class that accepts container's config and responds to `#constant` and `#instance` (solnic)
1167
- - [BREAKING] `core_dir` renameda to `system_dir` and defaults to `system` (solnic)
1168
- - [BREAKING] `auto_register!` yields `Component` objects (solnic)
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)
1169
1113
 
1170
- [Compare v0.4.3...v0.5.0](https://github.com/dry-rb/dry-system/compare/v0.4.3...v0.5.0)
1114
+ [0.5.0]: https://github.com/dry-rb/dry-system/compare/v0.4.3...v0.5.0
1171
1115
 
1172
1116
  ## [0.4.3] - 2016-08-01
1173
1117
 
1174
-
1175
1118
  ### Fixed
1176
1119
 
1177
- - 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))
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)
1178
1121
 
1179
-
1180
- [Compare v0.4.2...v0.4.3](https://github.com/dry-rb/dry-system/compare/v0.4.2...v0.4.3)
1122
+ [0.4.3]: https://github.com/dry-rb/dry-system/compare/v0.4.2...v0.4.3
1181
1123
 
1182
1124
  ## [0.4.2] - 2016-07-26
1183
1125
 
1184
-
1185
1126
  ### Fixed
1186
1127
 
1187
- - 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)
1188
-
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)
1189
1129
 
1190
- [Compare v0.4.1...v0.4.2](https://github.com/dry-rb/dry-system/compare/v0.4.1...v0.4.2)
1130
+ [0.4.2]: https://github.com/dry-rb/dry-system/compare/v0.4.1...v0.4.2
1191
1131
 
1192
1132
  ## [0.4.1] - 2016-07-26
1193
1133
 
1194
-
1195
1134
  ### Fixed
1196
1135
 
1197
- - Require the 0.4.0 release of dry-auto_inject for the features below (in 0.4.0) to work properly (timriley)
1198
-
1136
+ - Require the 0.4.0 release of dry-auto_inject for the features below (in 0.4.0) to work properly. (@timriley)
1199
1137
 
1200
- [Compare v0.4.0...v0.4.1](https://github.com/dry-rb/dry-system/compare/v0.4.0...v0.4.1)
1138
+ [0.4.1]: https://github.com/dry-rb/dry-system/compare/v0.4.0...v0.4.1
1201
1139
 
1202
1140
  ## [0.4.0] - 2016-07-26
1203
1141
 
1204
-
1205
1142
  ### Added
1206
1143
 
1207
- - 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)
1208
1145
 
1209
1146
  ```ruby
1210
1147
  # Set up container with default namespace
@@ -1227,14 +1164,14 @@ for multi-container setups. As part of this release `dry-system` has been rename
1227
1164
  end
1228
1165
  end
1229
1166
  ```
1230
- - 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))
1231
- - 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)
1232
1169
 
1233
1170
  ### Changed
1234
1171
 
1235
- - 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)
1236
1173
 
1237
- [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
1238
1175
 
1239
1176
  ## [0.3.0] - 2016-06-18
1240
1177
 
@@ -1243,34 +1180,32 @@ Removed two pieces that are moving to dry-web:
1243
1180
  ### Changed
1244
1181
 
1245
1182
  - Removed two pieces that are moving to dry-web:
1246
- - Removed `env` setting from `Container` (timriley)
1247
- - Removed `Dry::Component::Config` and `options` setting from `Container` (timriley)
1248
- - Changed `Component#configure` behavior so it can be run multiple times for configuration to be applied in multiple passes (timriley)
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)
1249
1186
 
1250
- [Compare v0.2.0...v0.3.0](https://github.com/dry-rb/dry-system/compare/v0.2.0...v0.3.0)
1187
+ [0.3.0]: https://github.com/dry-rb/dry-system/compare/v0.2.0...v0.3.0
1251
1188
 
1252
1189
  ## [0.2.0] - 2016-06-13
1253
1190
 
1254
-
1255
1191
  ### Fixed
1256
1192
 
1257
- - Fixed bug where specified auto-inject strategies were not respected (timriley)
1193
+ - Fixed bug where specified auto-inject strategies were not respected. (@timriley)
1258
1194
 
1259
1195
  ### Changed
1260
1196
 
1261
- - Component core directory is now `component/` by default (timriley)
1262
- - 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)
1263
1199
 
1264
- [Compare v0.1.0...v0.2.0](https://github.com/dry-rb/dry-system/compare/v0.1.0...v0.2.0)
1200
+ [0.2.0]: https://github.com/dry-rb/dry-system/compare/v0.1.0...v0.2.0
1265
1201
 
1266
1202
  ## [0.1.0] - 2016-06-07
1267
1203
 
1268
-
1269
1204
  ### Added
1270
1205
 
1271
- - 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)
1272
- - Support aliased dependency names when calling the injector object (e.g. `MyComponent::Inject[foo: "my_app.foo", bar: "another.thing"]`) (timriley)
1273
- - 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)
1274
1209
 
1275
1210
  ```ruby
1276
1211
  class MyContainer < Dry::Component::Container
@@ -1283,29 +1218,28 @@ Removed two pieces that are moving to dry-web:
1283
1218
 
1284
1219
  ### Changed
1285
1220
 
1286
- - `Container.boot` now only makes a simple `require` for the boot file (solnic)
1287
- - Container object is passed to `Container.finalize` blocks (solnic)
1288
- - Allow `Pathname` objects passed to `Container.require` (solnic)
1289
- - Support lazily loading missing dependencies from imported containers (solnic)
1290
- - `Container.import_module` renamed to `.injector` (timriley)
1291
- - Default injection strategy is now `kwargs`, courtesy of the new dry-auto_inject default (timriley)
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)
1292
1227
 
1293
- [Compare v0.0.2...v0.1.0](https://github.com/dry-rb/dry-system/compare/v0.0.2...v0.1.0)
1228
+ [0.1.0]: https://github.com/dry-rb/dry-system/compare/v0.0.2...v0.1.0
1294
1229
 
1295
1230
  ## [0.0.2] - 2015-12-24
1296
1231
 
1297
-
1298
1232
  ### Added
1299
1233
 
1300
- - Containers have a `name` setting (solnic)
1301
- - Containers can be imported into one another (solnic)
1234
+ - Containers have a `name` setting. (@solnic)
1235
+ - Containers can be imported into one another. (@solnic)
1302
1236
 
1303
1237
  ### Changed
1304
1238
 
1305
- - 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)
1306
1240
 
1307
- [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
1308
1242
 
1309
- ## [0.0.1] - 2015-12-24
1243
+ ## 0.0.1 - 2015-12-24
1310
1244
 
1311
1245
  First public release, extracted from rodakase project