1 Revision history for Perl extension Moose
4 * Moose::Meta::Method::Constructor
5 -builder related bug in inlined constructor. (groditi)
7 * Moose::Meta::Method::Accessor
8 - genereate unnecessary calls to predicates and refactor
9 code generation for runtime speed (groditi)
11 * Moose::Util::TypeConstraints
12 - fix ClassName constraint to introspect symbol table (mst)
13 - added more tests for this (mst)
14 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
16 - added tests for this
19 - New tests for builder bug. Upon instantiation, if an
20 attribute had a builder, no value and was not lazy the
21 builder default was not getting run, oops. (groditi)
23 0.29 Tues. Nov. 13, 2007
24 * Moose::Meta::Attribute
25 - Fix error message on missing builder method (groditi)
27 * Moose::Meta::Method::Accessor
28 - Fix error message on missing builder method (groditi)
31 - Add test to check for the correct error message when
32 builder method is missing (groditi)
34 0.28 Tues. Nov. 13, 2007
35 - 0.27 packaged incorrectly (groditi)
37 0.27 Tues. Nov. 13, 2007
38 * Moose::Meta::Attribute
39 - Added support for the new builder option (groditi)
40 - Added support for lazy_build option (groditi)
41 - Changed slot initialization for predicate changes (groditi)
43 * Moose::Meta::Method::Accessor
44 - Added support for lazy_build option (groditi)
45 - Fix inline methods to work with corrected predicate
48 * Moose::Meta::Method::Constructor
49 - Added support for lazy_build option (groditi)
52 - tests for builder and lazy_build (groditi)
54 * fixing some misc. bits in the docs that
55 got mentioned on CPAN Forum & perlmonks
58 - fixed how required methods are handled
59 when they encounter overriden or modified
60 methods from a class (thanks to confound).
61 - added tests for this
63 * Moose::Util::TypeConstraint
64 - fixed the type notation parser so that
65 the | always creates a union and so is
66 no longer a valid type char (thanks to
67 konobi, mugwump and #moose for working
69 - added more tests for this
71 0.26 Thurs. Sept. 27, 2007
75 We now support parameterized collection types, such as:
76 ArrayRef[Int] # array or integers
77 HashRef[Object] # a hash with object values
78 They can also be nested:
79 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
80 And work with the type unions as well:
81 ArrayRef[Int | Str] # array of integers of strings
83 * Better Framework Extendability
84 Moose.pm is now "extendable" such that it is now much
85 easier to extend the framework and add your own keywords
86 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
87 section of the Moose.pm docs.
90 In an effort to begin documenting some of the various
91 details of Moose as well as some common idioms, we have
92 created Moose::Cookbook::Snacks as a place to find
93 small (easily digestable) nuggets of Moose code.
96 ~ Several doc updates/cleanup thanks to castaway ~
98 - converted build system to use Module::Install instead of
99 Module::Build (thanks to jrockway)
102 - added all the meta classes to the immutable list and
103 set it to inline the accessors
104 - fix import to allow Sub::Exporter like { into => }
105 and { into_level => } (perigrin)
106 - exposed and documented init_meta() to allow better
107 embedding and extending of Moose (perigrin)
110 - complete re-organization of the test suite
111 - added some new tests as well
112 - finally re-enabled the Moose::POOP test since
113 the new version of DBM::Deep now works again
117 - fixed very odd and very nasty recursion bug with
119 - added tests for this (eilara)
121 * Moose::Meta::Attribute
122 Moose::Meta::Method::Constructor
123 Moose::Meta::Method::Accessor
124 - fixed issue with overload::Overloaded getting called
125 on non-blessed items. (RT #29269)
126 - added tests for this
128 * Moose::Meta::Method::Accessor
129 - fixed issue with generated accessor code making
130 assumptions about hash based classes (thanks to dexter)
132 * Moose::Coookbook::Snacks
133 - these are bits of documentation, not quite as big as
134 Recipes but which have no clear place in the module docs.
135 So they are Snacks! (horray for castaway++)
137 * Moose::Cookbook::Recipe4
138 - updated it to use the new ArrayRef[MyType] construct
139 - updated the accompanying test as well
141 +++ Major Refactor of the Type Constraint system +++
142 +++ with new features added as well +++
144 * Moose::Util::TypeConstraint
145 - no longer uses package variable to keep track of
146 the type constraints, now uses the an instance of
147 Moose::Meta::TypeConstraint::Registry to do it
148 - added more sophisticated type notation parsing
150 - added tests for this
152 * Moose::Meta::TypeConstraint
153 - some minor adjustments to make subclassing easier
154 - added the package_defined_in attribute so that we
155 can track where the type constraints are created
157 * Moose::Meta::TypeConstraint::Union
158 - this is now been refactored to be a subclass of
159 Moose::Meta::TypeConstraint
161 * Moose::Meta::TypeCoercion::Union
162 - this has been added to service the newly refactored
163 Moose::Meta::TypeConstraint::Union and is itself
164 a subclass of Moose::Meta::TypeCoercion
166 * Moose::Meta::TypeConstraint::Parameterized
167 - added this module (taken from MooseX::AttributeHelpers)
168 to help construct nested collection types
169 - added tests for this
171 * Moose::Meta::TypeConstraint::Registry
172 - added this class to keep track of type constraints
174 0.25 Mon. Aug. 13, 2007
176 - Documentation update to reference Moose::Util::TypeConstraints
177 under 'isa' in 'has' for how to define a new type
180 * Moose::Meta::Attribute
181 - required attributes now will no longer accept undef
182 from the constructor, even if there is a default and lazy
183 - added tests for this
184 - default subroutines must return a value which passes the
186 - added tests for this
188 * Moose::Meta::Attribute
189 * Moose::Meta::Method::Constructor
190 * Moose::Meta::Method::Accessor
191 - type-constraint tests now handle overloaded objects correctly
193 - added tests for this (thanks to EvanCarroll)
195 * Moose::Meta::TypeConstraint::Union
196 - added (has_)hand_optimized_constraint to this class so that
197 it behaves as the regular Moose::Meta::TypeConstraint does.
200 - large refactoring of this code
201 - added several more tests
202 - tests for subtle conflict resolition issues
203 added, but not currently running
206 * Moose::Cookbook::Recipe7
207 - added new recipe for augment/inner functionality
209 - added test for this
212 - a formal definition of roles (still in progress)
215 - utilities for easier working with Moose classes
216 - added tests for these
219 - This contains Moose specific test functions
220 - added tests for these
222 0.24 Tues. July 3, 2007
223 ~ Some doc updates/cleanup ~
225 * Moose::Meta::Attribute
226 - added support for roles to be given as parameters
227 to the 'handles' option.
228 - added tests and docs for this
229 - the has '+foo' attribute form now accepts changes to
230 the lazy option, and the addition of a handles option
231 (but not changing the handles option)
232 - added tests and docs for this
235 - required methods are now fetched using find_method_by_name
236 so that required methods can come from superclasses
237 - adjusted tests for this
239 0.23 Mon. June 18, 2007
240 * Moose::Meta::Method::Constructor
241 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
243 - Modify make_immutable to work with the new Class::MOP immutable
244 mechanism + POD + very basic test (groditi)
245 * Moose::Meta::Attribute
246 - Fix handles to use goto() so that caller() comes out properly on
247 the other side (perigrin)
249 0.22 Thurs. May 31, 2007
250 * Moose::Util::TypeConstraints
251 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
252 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
253 prototypes for functions
254 - added the ClassName type constraint, this checks for strings
255 which will respond true to ->isa(UNIVERSAL).
256 - added tests and docs for this
257 - subtyping just in name now works correctly by making the
258 default for where be { 1 }
259 - added test for this
261 * Moose::Meta::Method::Accessor
262 - coerce and lazy now work together correctly, thanks to
263 merlyn for finding this bug
264 - tests added for this
265 - fix reader presedence bug in Moose::Meta::Attribute + tests
268 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
269 a HASH-ref and missed. This produces better error messages then
270 having it die cause undef is not a HASH.
271 - added tests for this
273 0.21 Thursday, May 2nd, 2007
275 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
276 - modified unimport to remove super and inner along with the rest
277 - altered unimport tests to handle this
280 - altered super export to populate SUPER_SLOT
283 - altered augment and override modifier application to use *_SLOT
284 - modified tests for these to unimport one test class each to test
287 - fixed issue where custom attribute metaclasses
288 where not handled correctly in roles
289 - added tests for this
292 - fixed issue where extending metaclasses with
293 roles would blow up. Thanks to Aankhen`` for
294 finding this insidious error, and it's solution.
296 ~~ lots of spelling and grammer fixes in the docs,
297 many many thanks to rlb3 and Aankhen for these :)
299 0.20 Friday, April 6th, 2007
300 >> I messed up the SKIP logic in one test
301 so this release is just to fix that.
304 - 'has' now also accepts an ARRAY ref
305 to create multiple attrs (see docs)
306 (thanks to konobi for this)
307 - added tests and docs
309 0.19 Thurs. April 5th, 2007
310 ~~ More documentation updates ~~
312 * Moose::Util::TypeConstraints
313 - 'type' now supports messages as well
314 thanks to phaylon for finding this
315 - added tests for this
316 - added &list_all_type_constraints and
317 &list_all_builtin_type_constraints
318 functions to facilitate introspection.
320 * Moose::Meta::Attribute
321 - fixed regexp 'handles' declarations
322 to build the list of delegated methods
323 correctly (and not override important
324 things like &new) thanks to ashleyb
326 - added tests and docs for this
327 - added the 'documentation' attributes
328 so that you can actually document your
329 attributes and inspect them through the
331 - added tests and docs for this
334 - when loading custom attribute metaclasses
335 it will first look in for the class in the
336 Moose::Meta::Attribute::Custom::$name, and
337 then default to just loading $name.
338 - added tests and docs for this
340 * Moose::Meta::TypeConstraint
341 - type constraints now stringify to their names.
342 - added test for this
345 - added tests to assure we work with Module::Refresh
346 - added stricter test skip logic in the Moose POOP
347 test, ask Rob Kinyon why.
348 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
350 0.18 Sat. March 10, 2007
351 ~~ Many, many documentation updates ~~
354 - We now use Class::MOP::load_class to
356 - added tests to show types and subtypes
357 working with Declare::Constraints::Simple
358 and Test::Deep as constraint engines.
361 !! You must have Class::MOP 0.37_001 !!
362 !! for this developer release to work !!
364 This release was primarily adding the immutable
365 feature to Moose. An immutable class is one which
366 you promise not to alter. When you set the class
367 as immutable it will perform various bits of
368 memoization and inline certain part of the code
369 (constructors, destructors and accessors). This
370 minimizes (and in some cases totally eliminates)
371 one of Moose's biggest performance hits. This
372 feature is not on by default, and is 100% optional.
373 It has several configurable bits as well, so you
374 can pick and choose to your specific needs.
376 The changes involved in this were fairly wide and
377 highly specific, but 100% backwards compatible, so
378 I am not going to enumerate them here. If you are
379 truely interested in what was changed, please do
382 0.17 Tues. Nov. 14, 2006
383 * Moose::Meta::Method::Accessor
384 - bugfix for read-only accessors which
385 are have a type constraint and lazy.
386 Thanks to chansen for finding it.
388 0.16 Tues. Nov. 14, 2006
390 There are some speed improvements in this release,
391 but they are only the begining, so stay tuned.
394 - BUILDALL and DEMOLISHALL no longer get
395 called unless they actually need to be.
396 This gave us a signifigant speed boost
397 for the cases when there is no BUILD or
398 DEMOLISH method present.
400 * Moose::Util::TypeConstraints
401 * Moose::Meta::TypeConstraint
402 - added an 'optimize_as' option to the
403 type constraint, which allows for a
404 hand optimized version of the type
405 constraint to be used when possible.
406 - Any internally created type constraints
407 now provide an optimized version as well.
409 0.15 Sun. Nov. 5, 2006
411 This version of Moose *must* have Class::MOP 0.36 in order
412 to work correctly. A number of small internal tweaks have
413 been made in order to be compatible with that release.
415 * Moose::Util::TypeConstraints
416 - added &unimport so that you can clean out
417 your class namespace of these exported
421 - fixed minor issue which occasionally
422 comes up during global destruction
424 - moved Moose::Meta::Method::Overriden into
428 - moved Moose::Meta::Role::Method into
431 * Moose::Meta::Attribute
432 - changed how we do type checks so that
433 we reduce the overall cost, but still
436 - moved accessor generation methods to
437 Moose::Meta::Method::Accessor to
438 conform to the API changes from
441 * Moose::Meta::TypeConstraint
442 - changed how constraints are compiled
443 so that we do less recursion and more
444 iteration. This makes the type check
446 - moved Moose::Meta::TypeConstraint::Union
449 * Moose::Meta::Method::Accessor
450 - created this from methods formerly found in
451 Moose::Meta::Attribute
453 * Moose::Meta::Role::Method
454 - moved this from Moose::Meta::Role
456 * Moose::Meta::Method::Overriden
457 - moved this from Moose::Meta::Class
459 * Moose::Meta::TypeConstraint::Union
460 - moved this from Moose::Meta::TypeConstraint
462 0.14 Mon. Oct. 9, 2006
464 * Moose::Meta::Attribute
465 - fixed lazy attributes which were not getting
466 checked with the type constraint (thanks ashley)
467 - added tests for this
468 - removed the over-enthusiastic DWIMery of the
469 automatic ArrayRef and HashRef defaults, it
470 broke predicates in an ugly way.
471 - removed tests for this
473 0.13 Sat. Sept. 30, 2006
475 This version of Moose *must* have Class::MOP 0.35 in order
476 to work correctly. A number of small internal tweaks have
477 been made in order to be compatible with that release.
480 - Removed the use of UNIVERSAL::require to be a better
481 symbol table citizen and remove a dependency
482 (thanks Adam Kennedy)
484 **~~ removed experimental & undocumented feature ~~**
485 - commented out the 'method' and 'self' keywords, see the
486 comments for more info.
489 - added a FAQ and WTF files to document frequently
490 asked questions and common problems
492 * Moose::Util::TypeConstraints
493 - added GlobRef and FileHandle type constraint
494 - added tests for this
496 * Moose::Meta::Attribute
497 - if your attribute 'isa' ArrayRef of HashRef, and you have
498 not explicitly set a default, then make the default DWIM.
499 This will also work for subtypes of ArrayRef and HashRef
501 - you can now auto-deref subtypes of ArrayRef or HashRef too.
502 - new test added for this (thanks to ashley)
505 - added basic support for runtime role composition
506 but this is still *highly experimental*, so feedback
507 is much appreciated :)
508 - added tests for this
510 * Moose::Meta::TypeConstraint
511 - the type constraint now handles the coercion process
512 through delegation, this is to support the coercion
515 * Moose::Meta::TypeConstraint::Union
516 - it is now possible for coercions to be performed
518 - added tests for this (thanks to konobi)
520 * Moose::Meta::TypeCoercion
521 - properly capturing error when type constraint
525 - Scalar::Util 1.18 is bad on Win32, so temporarily
526 only require version 1.17 for Win32 and cygwin.
527 (thanks Adam Kennedy)
529 0.12 Sat. Sept. 1, 2006
531 - Recipe5 (subtypes & coercion) has been written
534 - fixed "bad meta" error message to be more descriptive
535 - fixed &unimport to not remove the &inner and &super
536 keywords because we need to localize them.
537 - fixed number of spelling/grammer issues, thanks Theory :)
539 **~~ experimental & undocumented feature ~~**
540 - added the method and self keywords, they are basically
541 just sugar, and they may not stay around.
544 - added &dump method to easily Data::Dumper
547 * Moose::Meta::TypeConstraint
548 - added the &is_a_type_of method to check both the current
549 and the subtype of a method (similar to &isa with classes)
552 - this is now a subclass of Class::MOP::Module, and no longer
553 creates the _role_meta ugliness of before.
554 - fixed tests to reflect this change
556 0.11 Wed. July 12, 2006
558 - added an &unimport method to remove all the keywords
559 that Moose will import, simply add 'no Moose' to the
560 bottom of your class file.
563 - fixed some test failures caused by a forgotten test
566 0.10 Thurs. July 6, 2006
568 - improved error message when loading modules so
569 it is less confusing when you load a role.
570 - added &calculate_all_roles method to
571 Moose::Meta::Class and Moose::Meta::Role
574 This module has been tested against Class::MOP 0.30
575 but it does not yet utilize the optimizations
576 it makes available. Stay tuned for that ;)
578 0.09_03 Fri. June 23, 2006
579 ++ DEVELOPER RELEASE ++
581 - 'use strict' and 'use warnings' are no longer
582 needed in Moose classes, Moose itself will
583 turn them on for you.
584 - added tests for this
585 - moved code from exported subs to private methods
586 in Moose::Meta::Class
589 - as with Moose, strict and warnings are
590 automatically turned on for you.
591 - added tests for this
594 - now handles an edge case for override errors
595 - added tests for this
596 - added some more edge case tests
598 0.09_02 Tues. May 16, 2006
599 ++ DEVELOPER RELEASE ++
601 - added prototypes to the exported subs
605 - added prototypes to the exported subs
608 * Moose::Util::TypeConstraints
609 - cleaned up prototypes for the subs
612 0.09_01 Fri. May 12, 2006
613 ++ DEVELOPER RELEASE ++
614 - This release works in combination with
615 Class::MOP 0.29_01, it is a developer
616 release because it uses the a new
617 instance sub-protocol and a fairly
618 complete Role implementation. It has
619 not yet been optimized, so it slower
620 the the previous CPAN version. This
621 release also lacks good updated docs,
622 the official release will have updated docs.
625 - refactored the keyword exports
626 - 'with' now checks Role validaity and
627 accepts more than one Role at a time
628 - 'extends' makes metaclass adjustments as
629 needed to ensure metaclass compatability
632 - refactored the keyword exports
633 - 'with' now checks Role validaity and
634 accepts more than one Role at a time
636 * Moose::Util::TypeConstraints
637 - added the 'enum' keyword for simple
638 string enumerations which can be used as
640 - see example of usage in t/202_example.t
643 - more careful checking of params to new()
646 - much work done on the role composition
647 - many new tests for conflict detection
648 and composition edge cases
649 - not enough documentation, I suggest
652 * Moose::Meta::Instance
653 - added new Instance metaclass to support
654 the new Class::MOP instance protocol
657 - some small changes to support the new
659 - some small additions to support Roles
661 * Moose::Meta::Attribute
662 - some improvements to the accessor generation code
664 - some small changes to support the new
666 - (still somewhat) experimental delegation support
667 with the 'handles' option
668 - added several tests for this
669 - no docs for this yet
671 0.05 Thurs. April 27, 2006
673 - keywords are now exported with Sub::Exporter
674 thanks to chansen for this commit
675 - has keyword now takes a 'metaclass' option
676 to support custom attribute meta-classes
677 on a per-attribute basis
678 - added tests for this
679 - the 'has' keyword not accepts inherited slot
680 specifications (has '+foo'). This is still an
681 experimental feature and probably not finished
682 see t/038_attribute_inherited_slot_specs.t for
683 more details, or ask about it on #moose
684 - added tests for this
687 - keywords are now exported with Sub::Exporter
689 * Moose::Utils::TypeConstraints
690 - reorganized the type constraint hierarchy, thanks
691 to nothingmuch and chansen for his help and advice
693 - added some tests for this
694 - keywords are now exported with Sub::Exporter
695 thanks to chansen for this commit
698 - due to changes in Class::MOP, we had to change
699 construct_instance (for the better)
701 * Moose::Meta::Attribute
702 - due to changes in Class::MOP, we had to add the
703 initialize_instance_slot method (it's a good thing)
705 * Moose::Meta::TypeConstraint
706 - added type constraint unions
707 - added tests for this
708 - added the is_subtype_of predicate method
709 - added tests for this
711 0.04 Sun. April 16th, 2006
713 - Roles can now consume other roles
714 - added tests for this
715 - Roles can specify required methods now with
716 the requires() keyword
717 - added tests for this
720 - ripped out much of it's guts ,.. much cleaner now
721 - added required methods and correct handling of
722 them in apply() for both classes and roles
723 - added tests for this
724 - no longer adds a does() method to consuming classes
725 it relys on the one in Moose::Object
726 - added roles attribute and some methods to support
727 roles consuming roles
729 * Moose::Meta::Attribute
730 - added support for triggers on attributes
731 - added tests for this
732 - added support for does option on an attribute
733 - added tests for this
736 - added support for attribute triggers in the
738 - added tests for this
741 - Moose no longer creates a subtype for your class
742 if a subtype of the same name already exists, this
743 should DWIM in 99.9999% of all cases
745 * Moose::Util::TypeConstraints
746 - fixed bug where incorrect subtype conflicts were
748 - added test for this
751 - this class can now be extended with 'use base' if
752 you need it, it properly loads the metaclass class now
753 - added test for this
755 0.03_02 Wed. April 12, 2006
757 - you must now explictly use Moose::Util::TypeConstraints
758 it no longer gets exported for you automatically
761 - new() now accepts hash-refs as well as key/value lists
762 - added does() method to check for Roles
763 - added tests for this
766 - added roles attribute along with the add_role() and
768 - added tests for this
771 - now adds a does() method to consuming classes
772 which tests the class's hierarchy for roles
773 - added tests for this
775 0.03_01 Mon. April 10, 2006
777 - added new Role recipe (no content yet, only code)
780 - added 'with' keyword for Role support
781 - added test and docs for this
782 - fixed subtype quoting bug
783 - added test for this
787 - added test and docs
789 * Moose::Util::TypeConstraints
790 - added the message keyword to add custom
791 error messages to type constraints
794 - the meta role to support Moose::Role
795 - added tests and docs
798 - moved a number of things from Moose.pm
799 to here, they should have been here
802 * Moose::Meta::Attribute
803 - moved the attribute option macros here
804 instead of putting them in Moose.pm
806 * Moose::Meta::TypeConstraint
807 - added the message attributes and the
809 - added tests and docs for this
811 0.03 Thurs. March 30, 2006
813 - added the Moose::Cookbook with 5 recipes,
814 describing all the stuff Moose can do.
817 - fixed an issue with &extends super class loading
818 it now captures errors and deals with inline
819 packages correctly (bug found by mst, solution
821 - added super/override & inner/augment features
822 - added tests and docs for these
825 - BUILDALL now takes a reference of the %params
826 that are passed to &new, and passes that to
829 * Moose::Util::TypeConstraints
830 - Type constraints now survive runtime reloading
831 - added test for this
834 - fixed the way attribute defaults are handled
835 during instance construction (bug found by chansen)
837 * Moose::Meta::Attribute
838 - read-only attributes now actually enforce their
839 read-only-ness (this corrected in Class::MOP as
842 0.02 Tues. March 21, 2006
844 - many more tests, fixing some bugs and
846 - &extends now loads the base module with
848 - added UNIVERSAL::require to the
851 - each new Moose class will also create
852 and register a subtype of Object which
853 correspond to the new Moose class.
854 - the 'isa' option in &has now only
855 accepts strings, and will DWIM in
858 * Moose::Util::TypeConstraints
859 - added type coercion features
860 - added tests for this
861 - added support for this in attributes
862 and instance construction
864 - type construction no longer creates a
865 function, it registers the type instead.
866 - added several functions to get the
870 - BUILDALL and DEMOLISHALL were broken
871 because of a mis-named hash key, Whoops :)
873 * Moose::Meta::Attribute
874 - adding support for coercion in the
875 autogenerated accessors
878 - adding support for coercion in the
879 instance construction
881 * Moose::Meta::TypeConstraint
882 * Moose::Meta::TypeCoercion
883 - type constraints and coercions are now
884 full fledges meta-objects
886 0.01 Wed. March 15, 2006
887 - Moooooooooooooooooose!!!