| 1 |
Revision history for Bread-Board |
| 2 |
|
| 3 |
{{$NEXT}} |
| 4 |
|
| 5 |
0.30 2014-02-02 |
| 6 |
- fix deprecated use of Class::MOP::load_class (Caleb Cushing, #33) |
| 7 |
|
| 8 |
0.29 2013-11-21 |
| 9 |
- Fix deprecated enum syntax |
| 10 |
|
| 11 |
0.28 2013-08-30 |
| 12 |
- Allow overriding of services and containers. This is useful when using |
| 13 |
the common pattern of "sub BUILD { my $self = shift; container $self => |
| 14 |
as { ... } }" since the BUILD method in a subclass can modify existing |
| 15 |
services and containers that were defined in a superclass, rather than |
| 16 |
only being able to replace them (Florian Ragwitz, #26, #27). |
| 17 |
|
| 18 |
0.27 2013-08-06 |
| 19 |
- allow the 'container $obj' sugar for parameterized containers (Florian |
| 20 |
Ragwitz, #25) |
| 21 |
|
| 22 |
0.26 2013-08-01 |
| 23 |
- allow cloning containers with parameterized subcontainers (Florian |
| 24 |
Ragwitz, #22) |
| 25 |
- allow referencing parent services from parameterized subcontainers |
| 26 |
(Florian Ragwitz, #23) |
| 27 |
- deprecate special case in path traversal where a path component with the |
| 28 |
name of the current container was ignored (doy, #20) |
| 29 |
- fix setting the current container multiple times from outside of a |
| 30 |
container (doy) |
| 31 |
- make some error messages more helpful (Jason Galea, #14) |
| 32 |
- doc improvements (Sterling Hanenkamp, zdk, Philippe Bruhat, and Gabor |
| 33 |
Szabo; #15, #17, #19, #21) |
| 34 |
- remove the (unmaintained) Bread::Board::GraphViz |
| 35 |
|
| 36 |
0.25 2011-10-20 |
| 37 |
* Bread::Board |
| 38 |
- the container sugar was misbehaving |
| 39 |
(since April 2010 apparently), so |
| 40 |
we have fixed it and clarified it |
| 41 |
|
| 42 |
0.24 2011-10-15 |
| 43 |
* Bread::Board::Container |
| 44 |
- make sure to clone subcontainers, |
| 45 |
this is necessary for parameterized |
| 46 |
containers to retain their connections |
| 47 |
|
| 48 |
* Bread::Board::Traversable |
| 49 |
- add some errors, be a little more |
| 50 |
defensive |
| 51 |
|
| 52 |
0.23 2011-10-14 |
| 53 |
* Bread::Board::Container::Parameterized |
| 54 |
- retain control of names of the generated |
| 55 |
containers, so if your the container being |
| 56 |
generated has a name, it keeps it. |
| 57 |
- this makes these containers more |
| 58 |
addressable when composed into |
| 59 |
higher level containers |
| 60 |
- this helps when subclassing |
| 61 |
parameterized containers |
| 62 |
- switch the generated containers to be |
| 63 |
created with builder instead of default |
| 64 |
- also helps when subclassing |
| 65 |
parameterized containers as well |
| 66 |
|
| 67 |
* t/046_custom_parameter_service.t |
| 68 |
- fixing the error about Moose deprecations |
| 69 |
|
| 70 |
0.22 2011-10-03 |
| 71 |
- When inferring a service for a type, allow subclasses to fulfill |
| 72 |
discovered types. |
| 73 |
- Converted to Dist::Zilla |
| 74 |
|
| 75 |
0.21 2011-09-06 |
| 76 |
* Bread::Board |
| 77 |
- Allow service() and alias() sugar functions to |
| 78 |
return the newly-created objects if the context |
| 79 |
container is not defined. (thanks to kip hampton) |
| 80 |
- added tests for this |
| 81 |
- this module is just an exporter, so it does not |
| 82 |
need to 'use Moose' (thanks to Tomas Doran) |
| 83 |
|
| 84 |
- fixed some spelling and grammar errors |
| 85 |
(thanks to ben hengst and Brad Bowman) |
| 86 |
|
| 87 |
* Bread::Board::Service::WithParameters |
| 88 |
- parameters attribute now has a builder instead |
| 89 |
of a default, so as to allow better tweaking |
| 90 |
in subclasses (thanks to Andre Walker) |
| 91 |
- added tests for this |
| 92 |
|
| 93 |
0.20 2011-06-13 |
| 94 |
* Bread::Board::Lifecycle::Singleton |
| 95 |
- fix bug in singletons with circular |
| 96 |
refs (thanks to doy) |
| 97 |
- added tests for this (thanks to perigrin) |
| 98 |
|
| 99 |
0.19 2011-06-01 |
| 100 |
* Bread::Board::GraphViz |
| 101 |
- added by jrockway, this allows you to visualise |
| 102 |
a Bread::Board system using GraphViz |
| 103 |
- note that this is optional and requires you |
| 104 |
to install optional dependencies |
| 105 |
|
| 106 |
* Bread::Board::Service::Alias |
| 107 |
- add the ability to alias services under |
| 108 |
another name (thanks to doy) |
| 109 |
- added tests for this |
| 110 |
|
| 111 |
* Bread::Board::Service::Inferred |
| 112 |
- improving edge cases (thanks to doy) |
| 113 |
|
| 114 |
* Bread::Board::Service::* |
| 115 |
- several code improvements (thanks to doy) |
| 116 |
|
| 117 |
* Bread::Board::Service |
| 118 |
- allow for custom Lifecycles by using the "+" |
| 119 |
prefix (thanks to jasonmay) |
| 120 |
- added tests for this |
| 121 |
|
| 122 |
0.18 2011-04-13 |
| 123 |
* Bread::Board::Service::WithParameters |
| 124 |
- added has_parameter_defaults method to check |
| 125 |
if a parameter has default values |
| 126 |
* Bread::Board::Service::WithDependencies |
| 127 |
- added a check for has_parameter_defaults before |
| 128 |
we make a Thunk |
| 129 |
- added test for this (thanks to rafl) |
| 130 |
|
| 131 |
0.17 2011-02-22 |
| 132 |
* Bread::Board::Service::Inferred |
| 133 |
- make recrusive inferrence work |
| 134 |
- add tests for this |
| 135 |
|
| 136 |
* Bread::Board::Manual::Concepts::Advanced |
| 137 |
- small doc update about subclassing and |
| 138 |
the name parameter, resolving RT#63124 |
| 139 |
(thanks to Evan Haas) |
| 140 |
|
| 141 |
!! POSSIBLE BACK COMPAT BREAKAGE !! |
| 142 |
* Bread::Board::Traversal |
| 143 |
- make relative parent path traversal more sane, there |
| 144 |
should be no more need for excessive ../../ stuff in |
| 145 |
dependency service paths (thanks doy) |
| 146 |
- adjust tests accordingly |
| 147 |
- this should fix RT#64478 as well |
| 148 |
|
| 149 |
0.16 2011-01-10 |
| 150 |
* Bread::Board::service sugar |
| 151 |
- adding the 'service_class' param for the |
| 152 |
service sugar function which allows you |
| 153 |
to pass in a custom service subclass |
| 154 |
- added tests for this (062_service_class_w_sugar.t) |
| 155 |
|
| 156 |
* Bread::Board::Dependency |
| 157 |
- added the service_params attribute here |
| 158 |
so that it is possible to pass in parameters |
| 159 |
when you depend on a service which requires them |
| 160 |
- added tests for this (045_parameters_in_dependency.t) |
| 161 |
|
| 162 |
* Bread::Board::Service::Inferred |
| 163 |
- when a typemapped service is created it is now |
| 164 |
named with the special 'type:' prefix. This allows |
| 165 |
you to depend on a typemapped service in a |
| 166 |
non-typemapped service |
| 167 |
- added tests for this (079_depending_on_type.t) |
| 168 |
|
| 169 |
* Bread::Board::Traversable |
| 170 |
- improving the error messages when a container/service |
| 171 |
is not found |
| 172 |
|
| 173 |
0.15 2010-09-30 |
| 174 |
* Bread::Board::Service |
| 175 |
- removed the MooseX::Param dependency |
| 176 |
and implemented it internally so that |
| 177 |
we have more control |
| 178 |
|
| 179 |
* Bread::Board::Types |
| 180 |
- the Bread::Board::Service::Dependencies |
| 181 |
type now can also coerce ArrayRef[Str] |
| 182 |
and HashRef[Str] types correctly (doy) |
| 183 |
|
| 184 |
* Bread::Board::Service::WithDependencies |
| 185 |
- we now only create a ::Deferred::Thunk |
| 186 |
object if we have non-optional params |
| 187 |
* Bread::Board::Service::WithParameters |
| 188 |
- added the has_required_parameters |
| 189 |
method, to see if there are any |
| 190 |
non-optional parameters |
| 191 |
- added tests for both the above |
| 192 |
|
| 193 |
!! NEW EXPERIMENTAL FEATURE !! |
| 194 |
|
| 195 |
* Bread::Board |
| 196 |
- added the typemap and infer keyword |
| 197 |
to help in the mapping of types and |
| 198 |
construction of inferred services |
| 199 |
- added tests for this |
| 200 |
|
| 201 |
* Bread::Board::Container |
| 202 |
- added the typemap feature and added |
| 203 |
the ->resolve( type => $type ) call |
| 204 |
- added tests for this |
| 205 |
|
| 206 |
* Bread::Board::Service::Inferred |
| 207 |
- added this and tests for it |
| 208 |
|
| 209 |
* Bread::Board::Manual::Concepts::Typemap |
| 210 |
- added this to help explain the |
| 211 |
typemap feature |
| 212 |
|
| 213 |
0.14 2010-08-24 |
| 214 |
* Bread::Board::Container |
| 215 |
- added the ->resolve method to replace |
| 216 |
the ->fetch( $service )->get pattern |
| 217 |
that annoys mst so much. |
| 218 |
- adjusted all the tests to account |
| 219 |
for this change. |
| 220 |
- adjusted all the docs to now use |
| 221 |
this approach instead |
| 222 |
|
| 223 |
- now using Try::Tiny for all exception |
| 224 |
handling (except the Deferred service) |
| 225 |
|
| 226 |
* Bread::Board::Service::WithDependencies |
| 227 |
- if you want to depend on a parameterized |
| 228 |
service, now you can and it will return |
| 229 |
a Bread::Board::Service::Deferred::Thunk |
| 230 |
that you can call ->inflate on and pass |
| 231 |
in the parameters for it. |
| 232 |
- added tests for this |
| 233 |
|
| 234 |
* Bread::Board::Service::Deferred::Thunk |
| 235 |
- added this + tests for it |
| 236 |
|
| 237 |
0.13 2010-04-23 |
| 238 |
* Bread::Board |
| 239 |
- making the include keyword handle |
| 240 |
compilation errors better (doy) |
| 241 |
- added test for this |
| 242 |
|
| 243 |
* Bread::Board::Container |
| 244 |
Bread::Board::Container::Parameterized |
| 245 |
- it is now possible to store parameterized |
| 246 |
containers within regular containers and |
| 247 |
have them behave properly |
| 248 |
- added tests for this |
| 249 |
|
| 250 |
* Bread::Board::Manual::Example::* |
| 251 |
- adding some examples of ways to use |
| 252 |
Bread::Board to the manual |
| 253 |
- added tests to confirm they work |
| 254 |
|
| 255 |
0.12 2010-04-18 |
| 256 |
* Bread::Board |
| 257 |
- added the `include` keyword which will evaluate |
| 258 |
an external file within your Bread::Board |
| 259 |
configuration |
| 260 |
- added tests for this |
| 261 |
- added support for parameterized containers |
| 262 |
- added tests for this |
| 263 |
- the 'container' keyword will now accept an |
| 264 |
instance of Bread::Board::Container instead |
| 265 |
of the name, this makes subclassing easier |
| 266 |
- added tests for this |
| 267 |
|
| 268 |
+ Bread::Board::Container::Parameterized |
| 269 |
- added this module and tests |
| 270 |
|
| 271 |
+ Bread::Baord::Manual |
| 272 |
- moved, re-organizad and added too the docs |
| 273 |
that were previously in Bread::Board.pm |
| 274 |
|
| 275 |
0.11 2010-03-25 |
| 276 |
* Much improved documentation. |
| 277 |
* Fixed inc/ to include all used Module-Install extensions. |
| 278 |
|
| 279 |
0.10 2010-02-22 |
| 280 |
* Bread::Board |
| 281 |
- import strict and warnings into the caller |
| 282 |
upon import (Florian Ragwitz) |
| 283 |
- fixing the SYNOPSIS so that it will actually |
| 284 |
run (thanks to zby for spotting this) |
| 285 |
|
| 286 |
* Bread::Board::ConstructorInjection |
| 287 |
- Add a constructor_name parameter for classes using |
| 288 |
MooseX::Traits or other things which need an alternately |
| 289 |
named constructor. (Tomas Doran) |
| 290 |
|
| 291 |
0.09 2009-07-29 |
| 292 |
Add cloning support for containers and services |
| 293 |
(thanks to jrockway for this) |
| 294 |
- adding tests for this |
| 295 |
|
| 296 |
* Bread::Board::ConstructorInjection |
| 297 |
- use meta->constructor_name instead of "new" |
| 298 |
if possible (jrockway) |
| 299 |
|
| 300 |
* Bread::Board::Service::WithParameters |
| 301 |
- fixing a leak where we would hold onto |
| 302 |
parameters that were passed into get() |
| 303 |
|
| 304 |
0.08 2009-07-18 |
| 305 |
- updating dates on all files |
| 306 |
|
| 307 |
* Bread::Board::LifeCycle::Singleton::WithParameters |
| 308 |
- new module added to support the idea of a singleton |
| 309 |
lifecycle keyed on the parameters rather then just |
| 310 |
a per-instance item. |
| 311 |
|
| 312 |
* Bread::Board::Traversable |
| 313 |
- fixed the is_weak_ref mis-spelling |
| 314 |
|
| 315 |
0.07 2009-02-18 |
| 316 |
- Work with new MooseX::Params::Validate |
| 317 |
- Specify MX::P::Validate version number in Makefile.PL |
| 318 |
|
| 319 |
0.06 2008-11-03 |
| 320 |
- Forgot to update MANIFEST before uploading to CPAN. |
| 321 |
|
| 322 |
0.05 2008-11-03 |
| 323 |
- Applied immutablity to classes where applicable, and vigorously unimport |
| 324 |
Moose keywords when they are no longer needed. This results in |
| 325 |
x 2 performance as far as defining a Bread::Board model (Daisuke Maki). |
| 326 |
|
| 327 |
* Bread::Board |
| 328 |
- Implemented unimport(), thus allowing you to remove keywords |
| 329 |
exported by Bread::Board (Daisuke Maki). |
| 330 |
|
| 331 |
* Bread::Board::Traversable |
| 332 |
- Unrolled recursive calls to loops, and removed Sub::Current dependency |
| 333 |
(Daisuke Maki) |
| 334 |
|
| 335 |
0.04 2008-10-31 |
| 336 |
* Bread::Board |
| 337 |
Bread::Board::Traversable |
| 338 |
- fix root path handling (thanks to Daisuke Maki) |
| 339 |
- added tests for this |
| 340 |
|
| 341 |
* Bread::Board::Dumper |
| 342 |
- Simple utility for dumping containers |
| 343 |
(thanks to Daisuke Maki) |
| 344 |
|
| 345 |
* t/ |
| 346 |
- fixing the plans so that new versions of |
| 347 |
Test::More stop complaining |
| 348 |
|
| 349 |
0.03 2008-01-08 |
| 350 |
* Bread::Board::Service::WithParameters |
| 351 |
- fixed the parameter validation to |
| 352 |
use a custom cache key, this is so |
| 353 |
that it plays nicely with the new |
| 354 |
MooseX::Params::Validate |
| 355 |
- added tests for this |
| 356 |
|
| 357 |
0.02 2008-01-08 |
| 358 |
- forgot a dependency, whoops. |
| 359 |
|
| 360 |
0.01 2008-01-07 |
| 361 |
- Out with the old (IOC) and in with the new (Bread::Board) |