1 Revision history for Perl extension Moose
3 0.24 Tues. July 3, 2007
4 ~ Some doc updates/cleanup ~
6 * Moose::Meta::Attribute
7 - added support for roles to be given as parameters
8 to the 'handles' option.
9 - added tests and docs for this
10 - the has '+foo' attribute form now accepts changes to
11 the lazy option, and the addition of a handles option
12 (but not changing the handles option)
13 - added tests and docs for this
16 - required methods are now fetched using find_method_by_name
17 so that required methods can come from superclasses
18 - adjusted tests for this
20 0.23 Mon. June 18, 2007
21 * Moose::Meta::Method::Constructor
22 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
24 - Modify make_immutable to work with the new Class::MOP immutable
25 mechanism + POD + very basic test (groditi)
26 * Moose::Meta::Attribute
27 - Fix handles to use goto() so that caller() comes out properly on
28 the other side (perigrin)
30 0.22 Thurs. May 31, 2007
31 * Moose::Util::TypeConstraints
32 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
33 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
34 prototypes for functions
35 - added the ClassName type constraint, this checks for strings
36 which will respond true to ->isa(UNIVERSAL).
37 - added tests and docs for this
38 - subtyping just in name now works correctly by making the
39 default for where be { 1 }
42 * Moose::Meta::Method::Accessor
43 - coerce and lazy now work together correctly, thanks to
44 merlyn for finding this bug
45 - tests added for this
46 - fix reader presedence bug in Moose::Meta::Attribute + tests
49 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
50 a HASH-ref and missed. This produces better error messages then
51 having it die cause undef is not a HASH.
52 - added tests for this
54 0.21 Thursday, May 2nd, 2007
56 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
57 - modified unimport to remove super and inner along with the rest
58 - altered unimport tests to handle this
61 - altered super export to populate SUPER_SLOT
64 - altered augment and override modifier application to use *_SLOT
65 - modified tests for these to unimport one test class each to test
68 - fixed issue where custom attribute metaclasses
69 where not handled correctly in roles
70 - added tests for this
73 - fixed issue where extending metaclasses with
74 roles would blow up. Thanks to Aankhen`` for
75 finding this insidious error, and it's solution.
77 ~~ lots of spelling and grammer fixes in the docs,
78 many many thanks to rlb3 and Aankhen for these :)
80 0.20 Friday, April 6th, 2007
81 >> I messed up the SKIP logic in one test
82 so this release is just to fix that.
85 - 'has' now also accepts an ARRAY ref
86 to create multiple attrs (see docs)
87 (thanks to konobi for this)
88 - added tests and docs
90 0.19 Thurs. April 5th, 2007
91 ~~ More documentation updates ~~
93 * Moose::Util::TypeConstraints
94 - 'type' now supports messages as well
95 thanks to phaylon for finding this
96 - added tests for this
97 - added &list_all_type_constraints and
98 &list_all_builtin_type_constraints
99 functions to facilitate introspection.
101 * Moose::Meta::Attribute
102 - fixed regexp 'handles' declarations
103 to build the list of delegated methods
104 correctly (and not override important
105 things like &new) thanks to ashleyb
107 - added tests and docs for this
108 - added the 'documentation' attributes
109 so that you can actually document your
110 attributes and inspect them through the
112 - added tests and docs for this
115 - when loading custom attribute metaclasses
116 it will first look in for the class in the
117 Moose::Meta::Attribute::Custom::$name, and
118 then default to just loading $name.
119 - added tests and docs for this
121 * Moose::Meta::TypeConstraint
122 - type constraints now stringify to their names.
123 - added test for this
126 - added tests to assure we work with Module::Refresh
127 - added stricter test skip logic in the Moose POOP
128 test, ask Rob Kinyon why.
129 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
131 0.18 Sat. March 10, 2007
132 ~~ Many, many documentation updates ~~
135 - We now use Class::MOP::load_class to
137 - added tests to show types and subtypes
138 working with Declare::Constraints::Simple
139 and Test::Deep as constraint engines.
142 !! You must have Class::MOP 0.37_001 !!
143 !! for this developer release to work !!
145 This release was primarily adding the immutable
146 feature to Moose. An immutable class is one which
147 you promise not to alter. When you set the class
148 as immutable it will perform various bits of
149 memoization and inline certain part of the code
150 (constructors, destructors and accessors). This
151 minimizes (and in some cases totally eliminates)
152 one of Moose's biggest performance hits. This
153 feature is not on by default, and is 100% optional.
154 It has several configurable bits as well, so you
155 can pick and choose to your specific needs.
157 The changes involved in this were fairly wide and
158 highly specific, but 100% backwards compatible, so
159 I am not going to enumerate them here. If you are
160 truely interested in what was changed, please do
163 0.17 Tues. Nov. 14, 2006
164 * Moose::Meta::Method::Accessor
165 - bugfix for read-only accessors which
166 are have a type constraint and lazy.
167 Thanks to chansen for finding it.
169 0.16 Tues. Nov. 14, 2006
171 There are some speed improvements in this release,
172 but they are only the begining, so stay tuned.
175 - BUILDALL and DEMOLISHALL no longer get
176 called unless they actually need to be.
177 This gave us a signifigant speed boost
178 for the cases when there is no BUILD or
179 DEMOLISH method present.
181 * Moose::Util::TypeConstraints
182 * Moose::Meta::TypeConstraint
183 - added an 'optimize_as' option to the
184 type constraint, which allows for a
185 hand optimized version of the type
186 constraint to be used when possible.
187 - Any internally created type constraints
188 now provide an optimized version as well.
190 0.15 Sun. Nov. 5, 2006
192 This version of Moose *must* have Class::MOP 0.36 in order
193 to work correctly. A number of small internal tweaks have
194 been made in order to be compatible with that release.
196 * Moose::Util::TypeConstraints
197 - added &unimport so that you can clean out
198 your class namespace of these exported
202 - fixed minor issue which occasionally
203 comes up during global destruction
205 - moved Moose::Meta::Method::Overriden into
209 - moved Moose::Meta::Role::Method into
212 * Moose::Meta::Attribute
213 - changed how we do type checks so that
214 we reduce the overall cost, but still
217 - moved accessor generation methods to
218 Moose::Meta::Method::Accessor to
219 conform to the API changes from
222 * Moose::Meta::TypeConstraint
223 - changed how constraints are compiled
224 so that we do less recursion and more
225 iteration. This makes the type check
227 - moved Moose::Meta::TypeConstraint::Union
230 * Moose::Meta::Method::Accessor
231 - created this from methods formerly found in
232 Moose::Meta::Attribute
234 * Moose::Meta::Role::Method
235 - moved this from Moose::Meta::Role
237 * Moose::Meta::Method::Overriden
238 - moved this from Moose::Meta::Class
240 * Moose::Meta::TypeConstraint::Union
241 - moved this from Moose::Meta::TypeConstraint
243 0.14 Mon. Oct. 9, 2006
245 * Moose::Meta::Attribute
246 - fixed lazy attributes which were not getting
247 checked with the type constraint (thanks ashley)
248 - added tests for this
249 - removed the over-enthusiastic DWIMery of the
250 automatic ArrayRef and HashRef defaults, it
251 broke predicates in an ugly way.
252 - removed tests for this
254 0.13 Sat. Sept. 30, 2006
256 This version of Moose *must* have Class::MOP 0.35 in order
257 to work correctly. A number of small internal tweaks have
258 been made in order to be compatible with that release.
261 - Removed the use of UNIVERSAL::require to be a better
262 symbol table citizen and remove a dependency
263 (thanks Adam Kennedy)
265 **~~ removed experimental & undocumented feature ~~**
266 - commented out the 'method' and 'self' keywords, see the
267 comments for more info.
270 - added a FAQ and WTF files to document frequently
271 asked questions and common problems
273 * Moose::Util::TypeConstraints
274 - added GlobRef and FileHandle type constraint
275 - added tests for this
277 * Moose::Meta::Attribute
278 - if your attribute 'isa' ArrayRef of HashRef, and you have
279 not explicitly set a default, then make the default DWIM.
280 This will also work for subtypes of ArrayRef and HashRef
282 - you can now auto-deref subtypes of ArrayRef or HashRef too.
283 - new test added for this (thanks to ashley)
286 - added basic support for runtime role composition
287 but this is still *highly experimental*, so feedback
288 is much appreciated :)
289 - added tests for this
291 * Moose::Meta::TypeConstraint
292 - the type constraint now handles the coercion process
293 through delegation, this is to support the coercion
296 * Moose::Meta::TypeConstraint::Union
297 - it is now possible for coercions to be performed
299 - added tests for this (thanks to konobi)
301 * Moose::Meta::TypeCoercion
302 - properly capturing error when type constraint
306 - Scalar::Util 1.18 is bad on Win32, so temporarily
307 only require version 1.17 for Win32 and cygwin.
308 (thanks Adam Kennedy)
310 0.12 Sat. Sept. 1, 2006
312 - Recipe5 (subtypes & coercion) has been written
315 - fixed "bad meta" error message to be more descriptive
316 - fixed &unimport to not remove the &inner and &super
317 keywords because we need to localize them.
318 - fixed number of spelling/grammer issues, thanks Theory :)
320 **~~ experimental & undocumented feature ~~**
321 - added the method and self keywords, they are basically
322 just sugar, and they may not stay around.
325 - added &dump method to easily Data::Dumper
328 * Moose::Meta::TypeConstraint
329 - added the &is_a_type_of method to check both the current
330 and the subtype of a method (similar to &isa with classes)
333 - this is now a subclass of Class::MOP::Module, and no longer
334 creates the _role_meta ugliness of before.
335 - fixed tests to reflect this change
337 0.11 Wed. July 12, 2006
339 - added an &unimport method to remove all the keywords
340 that Moose will import, simply add 'no Moose' to the
341 bottom of your class file.
344 - fixed some test failures caused by a forgotten test
347 0.10 Thurs. July 6, 2006
349 - improved error message when loading modules so
350 it is less confusing when you load a role.
351 - added &calculate_all_roles method to
352 Moose::Meta::Class and Moose::Meta::Role
355 This module has been tested against Class::MOP 0.30
356 but it does not yet utilize the optimizations
357 it makes available. Stay tuned for that ;)
359 0.09_03 Fri. June 23, 2006
360 ++ DEVELOPER RELEASE ++
362 - 'use strict' and 'use warnings' are no longer
363 needed in Moose classes, Moose itself will
364 turn them on for you.
365 - added tests for this
366 - moved code from exported subs to private methods
367 in Moose::Meta::Class
370 - as with Moose, strict and warnings are
371 automatically turned on for you.
372 - added tests for this
375 - now handles an edge case for override errors
376 - added tests for this
377 - added some more edge case tests
379 0.09_02 Tues. May 16, 2006
380 ++ DEVELOPER RELEASE ++
382 - added prototypes to the exported subs
386 - added prototypes to the exported subs
389 * Moose::Util::TypeConstraints
390 - cleaned up prototypes for the subs
393 0.09_01 Fri. May 12, 2006
394 ++ DEVELOPER RELEASE ++
395 - This release works in combination with
396 Class::MOP 0.29_01, it is a developer
397 release because it uses the a new
398 instance sub-protocol and a fairly
399 complete Role implementation. It has
400 not yet been optimized, so it slower
401 the the previous CPAN version. This
402 release also lacks good updated docs,
403 the official release will have updated docs.
406 - refactored the keyword exports
407 - 'with' now checks Role validaity and
408 accepts more than one Role at a time
409 - 'extends' makes metaclass adjustments as
410 needed to ensure metaclass compatability
413 - refactored the keyword exports
414 - 'with' now checks Role validaity and
415 accepts more than one Role at a time
417 * Moose::Util::TypeConstraints
418 - added the 'enum' keyword for simple
419 string enumerations which can be used as
421 - see example of usage in t/202_example.t
424 - more careful checking of params to new()
427 - much work done on the role composition
428 - many new tests for conflict detection
429 and composition edge cases
430 - not enough documentation, I suggest
433 * Moose::Meta::Instance
434 - added new Instance metaclass to support
435 the new Class::MOP instance protocol
438 - some small changes to support the new
440 - some small additions to support Roles
442 * Moose::Meta::Attribute
443 - some improvements to the accessor generation code
445 - some small changes to support the new
447 - (still somewhat) experimental delegation support
448 with the 'handles' option
449 - added several tests for this
450 - no docs for this yet
452 0.05 Thurs. April 27, 2006
454 - keywords are now exported with Sub::Exporter
455 thanks to chansen for this commit
456 - has keyword now takes a 'metaclass' option
457 to support custom attribute meta-classes
458 on a per-attribute basis
459 - added tests for this
460 - the 'has' keyword not accepts inherited slot
461 specifications (has '+foo'). This is still an
462 experimental feature and probably not finished
463 see t/038_attribute_inherited_slot_specs.t for
464 more details, or ask about it on #moose
465 - added tests for this
468 - keywords are now exported with Sub::Exporter
470 * Moose::Utils::TypeConstraints
471 - reorganized the type constraint hierarchy, thanks
472 to nothingmuch and chansen for his help and advice
474 - added some tests for this
475 - keywords are now exported with Sub::Exporter
476 thanks to chansen for this commit
479 - due to changes in Class::MOP, we had to change
480 construct_instance (for the better)
482 * Moose::Meta::Attribute
483 - due to changes in Class::MOP, we had to add the
484 initialize_instance_slot method (it's a good thing)
486 * Moose::Meta::TypeConstraint
487 - added type constraint unions
488 - added tests for this
489 - added the is_subtype_of predicate method
490 - added tests for this
492 0.04 Sun. April 16th, 2006
494 - Roles can now consume other roles
495 - added tests for this
496 - Roles can specify required methods now with
497 the requires() keyword
498 - added tests for this
501 - ripped out much of it's guts ,.. much cleaner now
502 - added required methods and correct handling of
503 them in apply() for both classes and roles
504 - added tests for this
505 - no longer adds a does() method to consuming classes
506 it relys on the one in Moose::Object
507 - added roles attribute and some methods to support
508 roles consuming roles
510 * Moose::Meta::Attribute
511 - added support for triggers on attributes
512 - added tests for this
513 - added support for does option on an attribute
514 - added tests for this
517 - added support for attribute triggers in the
519 - added tests for this
522 - Moose no longer creates a subtype for your class
523 if a subtype of the same name already exists, this
524 should DWIM in 99.9999% of all cases
526 * Moose::Util::TypeConstraints
527 - fixed bug where incorrect subtype conflicts were
529 - added test for this
532 - this class can now be extended with 'use base' if
533 you need it, it properly loads the metaclass class now
534 - added test for this
536 0.03_02 Wed. April 12, 2006
538 - you must now explictly use Moose::Util::TypeConstraints
539 it no longer gets exported for you automatically
542 - new() now accepts hash-refs as well as key/value lists
543 - added does() method to check for Roles
544 - added tests for this
547 - added roles attribute along with the add_role() and
549 - added tests for this
552 - now adds a does() method to consuming classes
553 which tests the class's hierarchy for roles
554 - added tests for this
556 0.03_01 Mon. April 10, 2006
558 - added new Role recipe (no content yet, only code)
561 - added 'with' keyword for Role support
562 - added test and docs for this
563 - fixed subtype quoting bug
564 - added test for this
568 - added test and docs
570 * Moose::Util::TypeConstraints
571 - added the message keyword to add custom
572 error messages to type constraints
575 - the meta role to support Moose::Role
576 - added tests and docs
579 - moved a number of things from Moose.pm
580 to here, they should have been here
583 * Moose::Meta::Attribute
584 - moved the attribute option macros here
585 instead of putting them in Moose.pm
587 * Moose::Meta::TypeConstraint
588 - added the message attributes and the
590 - added tests and docs for this
592 0.03 Thurs. March 30, 2006
594 - added the Moose::Cookbook with 5 recipes,
595 describing all the stuff Moose can do.
598 - fixed an issue with &extends super class loading
599 it now captures errors and deals with inline
600 packages correctly (bug found by mst, solution
602 - added super/override & inner/augment features
603 - added tests and docs for these
606 - BUILDALL now takes a reference of the %params
607 that are passed to &new, and passes that to
610 * Moose::Util::TypeConstraints
611 - Type constraints now survive runtime reloading
612 - added test for this
615 - fixed the way attribute defaults are handled
616 during instance construction (bug found by chansen)
618 * Moose::Meta::Attribute
619 - read-only attributes now actually enforce their
620 read-only-ness (this corrected in Class::MOP as
623 0.02 Tues. March 21, 2006
625 - many more tests, fixing some bugs and
627 - &extends now loads the base module with
629 - added UNIVERSAL::require to the
632 - each new Moose class will also create
633 and register a subtype of Object which
634 correspond to the new Moose class.
635 - the 'isa' option in &has now only
636 accepts strings, and will DWIM in
639 * Moose::Util::TypeConstraints
640 - added type coercion features
641 - added tests for this
642 - added support for this in attributes
643 and instance construction
645 - type construction no longer creates a
646 function, it registers the type instead.
647 - added several functions to get the
651 - BUILDALL and DEMOLISHALL were broken
652 because of a mis-named hash key, Whoops :)
654 * Moose::Meta::Attribute
655 - adding support for coercion in the
656 autogenerated accessors
659 - adding support for coercion in the
660 instance construction
662 * Moose::Meta::TypeConstraint
663 * Moose::Meta::TypeCoercion
664 - type constraints and coercions are now
665 full fledges meta-objects
667 0.01 Wed. March 15, 2006
668 - Moooooooooooooooooose!!!