1 Revision history for Perl extension Moose
3 0.30 Fri. Nov. 23, 2007
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 - adding the link to Recipie 11 (written by Sartak)
20 - adding test for SYNOPSIS code
23 - New tests for builder bug. Upon instantiation, if an
24 attribute had a builder, no value and was not lazy the
25 builder default was not getting run, oops. (groditi)
27 0.29 Tues. Nov. 13, 2007
28 * Moose::Meta::Attribute
29 - Fix error message on missing builder method (groditi)
31 * Moose::Meta::Method::Accessor
32 - Fix error message on missing builder method (groditi)
35 - Add test to check for the correct error message when
36 builder method is missing (groditi)
38 0.28 Tues. Nov. 13, 2007
39 - 0.27 packaged incorrectly (groditi)
41 0.27 Tues. Nov. 13, 2007
42 * Moose::Meta::Attribute
43 - Added support for the new builder option (groditi)
44 - Added support for lazy_build option (groditi)
45 - Changed slot initialization for predicate changes (groditi)
47 * Moose::Meta::Method::Accessor
48 - Added support for lazy_build option (groditi)
49 - Fix inline methods to work with corrected predicate
52 * Moose::Meta::Method::Constructor
53 - Added support for lazy_build option (groditi)
56 - tests for builder and lazy_build (groditi)
58 * fixing some misc. bits in the docs that
59 got mentioned on CPAN Forum & perlmonks
62 - fixed how required methods are handled
63 when they encounter overriden or modified
64 methods from a class (thanks to confound).
65 - added tests for this
67 * Moose::Util::TypeConstraint
68 - fixed the type notation parser so that
69 the | always creates a union and so is
70 no longer a valid type char (thanks to
71 konobi, mugwump and #moose for working
73 - added more tests for this
75 0.26 Thurs. Sept. 27, 2007
79 We now support parameterized collection types, such as:
80 ArrayRef[Int] # array or integers
81 HashRef[Object] # a hash with object values
82 They can also be nested:
83 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
84 And work with the type unions as well:
85 ArrayRef[Int | Str] # array of integers of strings
87 * Better Framework Extendability
88 Moose.pm is now "extendable" such that it is now much
89 easier to extend the framework and add your own keywords
90 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
91 section of the Moose.pm docs.
94 In an effort to begin documenting some of the various
95 details of Moose as well as some common idioms, we have
96 created Moose::Cookbook::Snacks as a place to find
97 small (easily digestable) nuggets of Moose code.
100 ~ Several doc updates/cleanup thanks to castaway ~
102 - converted build system to use Module::Install instead of
103 Module::Build (thanks to jrockway)
106 - added all the meta classes to the immutable list and
107 set it to inline the accessors
108 - fix import to allow Sub::Exporter like { into => }
109 and { into_level => } (perigrin)
110 - exposed and documented init_meta() to allow better
111 embedding and extending of Moose (perigrin)
114 - complete re-organization of the test suite
115 - added some new tests as well
116 - finally re-enabled the Moose::POOP test since
117 the new version of DBM::Deep now works again
121 - fixed very odd and very nasty recursion bug with
123 - added tests for this (eilara)
125 * Moose::Meta::Attribute
126 Moose::Meta::Method::Constructor
127 Moose::Meta::Method::Accessor
128 - fixed issue with overload::Overloaded getting called
129 on non-blessed items. (RT #29269)
130 - added tests for this
132 * Moose::Meta::Method::Accessor
133 - fixed issue with generated accessor code making
134 assumptions about hash based classes (thanks to dexter)
136 * Moose::Coookbook::Snacks
137 - these are bits of documentation, not quite as big as
138 Recipes but which have no clear place in the module docs.
139 So they are Snacks! (horray for castaway++)
141 * Moose::Cookbook::Recipe4
142 - updated it to use the new ArrayRef[MyType] construct
143 - updated the accompanying test as well
145 +++ Major Refactor of the Type Constraint system +++
146 +++ with new features added as well +++
148 * Moose::Util::TypeConstraint
149 - no longer uses package variable to keep track of
150 the type constraints, now uses the an instance of
151 Moose::Meta::TypeConstraint::Registry to do it
152 - added more sophisticated type notation parsing
154 - added tests for this
156 * Moose::Meta::TypeConstraint
157 - some minor adjustments to make subclassing easier
158 - added the package_defined_in attribute so that we
159 can track where the type constraints are created
161 * Moose::Meta::TypeConstraint::Union
162 - this is now been refactored to be a subclass of
163 Moose::Meta::TypeConstraint
165 * Moose::Meta::TypeCoercion::Union
166 - this has been added to service the newly refactored
167 Moose::Meta::TypeConstraint::Union and is itself
168 a subclass of Moose::Meta::TypeCoercion
170 * Moose::Meta::TypeConstraint::Parameterized
171 - added this module (taken from MooseX::AttributeHelpers)
172 to help construct nested collection types
173 - added tests for this
175 * Moose::Meta::TypeConstraint::Registry
176 - added this class to keep track of type constraints
178 0.25 Mon. Aug. 13, 2007
180 - Documentation update to reference Moose::Util::TypeConstraints
181 under 'isa' in 'has' for how to define a new type
184 * Moose::Meta::Attribute
185 - required attributes now will no longer accept undef
186 from the constructor, even if there is a default and lazy
187 - added tests for this
188 - default subroutines must return a value which passes the
190 - added tests for this
192 * Moose::Meta::Attribute
193 * Moose::Meta::Method::Constructor
194 * Moose::Meta::Method::Accessor
195 - type-constraint tests now handle overloaded objects correctly
197 - added tests for this (thanks to EvanCarroll)
199 * Moose::Meta::TypeConstraint::Union
200 - added (has_)hand_optimized_constraint to this class so that
201 it behaves as the regular Moose::Meta::TypeConstraint does.
204 - large refactoring of this code
205 - added several more tests
206 - tests for subtle conflict resolition issues
207 added, but not currently running
210 * Moose::Cookbook::Recipe7
211 - added new recipe for augment/inner functionality
213 - added test for this
216 - a formal definition of roles (still in progress)
219 - utilities for easier working with Moose classes
220 - added tests for these
223 - This contains Moose specific test functions
224 - added tests for these
226 0.24 Tues. July 3, 2007
227 ~ Some doc updates/cleanup ~
229 * Moose::Meta::Attribute
230 - added support for roles to be given as parameters
231 to the 'handles' option.
232 - added tests and docs for this
233 - the has '+foo' attribute form now accepts changes to
234 the lazy option, and the addition of a handles option
235 (but not changing the handles option)
236 - added tests and docs for this
239 - required methods are now fetched using find_method_by_name
240 so that required methods can come from superclasses
241 - adjusted tests for this
243 0.23 Mon. June 18, 2007
244 * Moose::Meta::Method::Constructor
245 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
247 - Modify make_immutable to work with the new Class::MOP immutable
248 mechanism + POD + very basic test (groditi)
249 * Moose::Meta::Attribute
250 - Fix handles to use goto() so that caller() comes out properly on
251 the other side (perigrin)
253 0.22 Thurs. May 31, 2007
254 * Moose::Util::TypeConstraints
255 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
256 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
257 prototypes for functions
258 - added the ClassName type constraint, this checks for strings
259 which will respond true to ->isa(UNIVERSAL).
260 - added tests and docs for this
261 - subtyping just in name now works correctly by making the
262 default for where be { 1 }
263 - added test for this
265 * Moose::Meta::Method::Accessor
266 - coerce and lazy now work together correctly, thanks to
267 merlyn for finding this bug
268 - tests added for this
269 - fix reader presedence bug in Moose::Meta::Attribute + tests
272 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
273 a HASH-ref and missed. This produces better error messages then
274 having it die cause undef is not a HASH.
275 - added tests for this
277 0.21 Thursday, May 2nd, 2007
279 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
280 - modified unimport to remove super and inner along with the rest
281 - altered unimport tests to handle this
284 - altered super export to populate SUPER_SLOT
287 - altered augment and override modifier application to use *_SLOT
288 - modified tests for these to unimport one test class each to test
291 - fixed issue where custom attribute metaclasses
292 where not handled correctly in roles
293 - added tests for this
296 - fixed issue where extending metaclasses with
297 roles would blow up. Thanks to Aankhen`` for
298 finding this insidious error, and it's solution.
300 ~~ lots of spelling and grammer fixes in the docs,
301 many many thanks to rlb3 and Aankhen for these :)
303 0.20 Friday, April 6th, 2007
304 >> I messed up the SKIP logic in one test
305 so this release is just to fix that.
308 - 'has' now also accepts an ARRAY ref
309 to create multiple attrs (see docs)
310 (thanks to konobi for this)
311 - added tests and docs
313 0.19 Thurs. April 5th, 2007
314 ~~ More documentation updates ~~
316 * Moose::Util::TypeConstraints
317 - 'type' now supports messages as well
318 thanks to phaylon for finding this
319 - added tests for this
320 - added &list_all_type_constraints and
321 &list_all_builtin_type_constraints
322 functions to facilitate introspection.
324 * Moose::Meta::Attribute
325 - fixed regexp 'handles' declarations
326 to build the list of delegated methods
327 correctly (and not override important
328 things like &new) thanks to ashleyb
330 - added tests and docs for this
331 - added the 'documentation' attributes
332 so that you can actually document your
333 attributes and inspect them through the
335 - added tests and docs for this
338 - when loading custom attribute metaclasses
339 it will first look in for the class in the
340 Moose::Meta::Attribute::Custom::$name, and
341 then default to just loading $name.
342 - added tests and docs for this
344 * Moose::Meta::TypeConstraint
345 - type constraints now stringify to their names.
346 - added test for this
349 - added tests to assure we work with Module::Refresh
350 - added stricter test skip logic in the Moose POOP
351 test, ask Rob Kinyon why.
352 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
354 0.18 Sat. March 10, 2007
355 ~~ Many, many documentation updates ~~
358 - We now use Class::MOP::load_class to
360 - added tests to show types and subtypes
361 working with Declare::Constraints::Simple
362 and Test::Deep as constraint engines.
365 !! You must have Class::MOP 0.37_001 !!
366 !! for this developer release to work !!
368 This release was primarily adding the immutable
369 feature to Moose. An immutable class is one which
370 you promise not to alter. When you set the class
371 as immutable it will perform various bits of
372 memoization and inline certain part of the code
373 (constructors, destructors and accessors). This
374 minimizes (and in some cases totally eliminates)
375 one of Moose's biggest performance hits. This
376 feature is not on by default, and is 100% optional.
377 It has several configurable bits as well, so you
378 can pick and choose to your specific needs.
380 The changes involved in this were fairly wide and
381 highly specific, but 100% backwards compatible, so
382 I am not going to enumerate them here. If you are
383 truely interested in what was changed, please do
386 0.17 Tues. Nov. 14, 2006
387 * Moose::Meta::Method::Accessor
388 - bugfix for read-only accessors which
389 are have a type constraint and lazy.
390 Thanks to chansen for finding it.
392 0.16 Tues. Nov. 14, 2006
394 There are some speed improvements in this release,
395 but they are only the begining, so stay tuned.
398 - BUILDALL and DEMOLISHALL no longer get
399 called unless they actually need to be.
400 This gave us a signifigant speed boost
401 for the cases when there is no BUILD or
402 DEMOLISH method present.
404 * Moose::Util::TypeConstraints
405 * Moose::Meta::TypeConstraint
406 - added an 'optimize_as' option to the
407 type constraint, which allows for a
408 hand optimized version of the type
409 constraint to be used when possible.
410 - Any internally created type constraints
411 now provide an optimized version as well.
413 0.15 Sun. Nov. 5, 2006
415 This version of Moose *must* have Class::MOP 0.36 in order
416 to work correctly. A number of small internal tweaks have
417 been made in order to be compatible with that release.
419 * Moose::Util::TypeConstraints
420 - added &unimport so that you can clean out
421 your class namespace of these exported
425 - fixed minor issue which occasionally
426 comes up during global destruction
428 - moved Moose::Meta::Method::Overriden into
432 - moved Moose::Meta::Role::Method into
435 * Moose::Meta::Attribute
436 - changed how we do type checks so that
437 we reduce the overall cost, but still
440 - moved accessor generation methods to
441 Moose::Meta::Method::Accessor to
442 conform to the API changes from
445 * Moose::Meta::TypeConstraint
446 - changed how constraints are compiled
447 so that we do less recursion and more
448 iteration. This makes the type check
450 - moved Moose::Meta::TypeConstraint::Union
453 * Moose::Meta::Method::Accessor
454 - created this from methods formerly found in
455 Moose::Meta::Attribute
457 * Moose::Meta::Role::Method
458 - moved this from Moose::Meta::Role
460 * Moose::Meta::Method::Overriden
461 - moved this from Moose::Meta::Class
463 * Moose::Meta::TypeConstraint::Union
464 - moved this from Moose::Meta::TypeConstraint
466 0.14 Mon. Oct. 9, 2006
468 * Moose::Meta::Attribute
469 - fixed lazy attributes which were not getting
470 checked with the type constraint (thanks ashley)
471 - added tests for this
472 - removed the over-enthusiastic DWIMery of the
473 automatic ArrayRef and HashRef defaults, it
474 broke predicates in an ugly way.
475 - removed tests for this
477 0.13 Sat. Sept. 30, 2006
479 This version of Moose *must* have Class::MOP 0.35 in order
480 to work correctly. A number of small internal tweaks have
481 been made in order to be compatible with that release.
484 - Removed the use of UNIVERSAL::require to be a better
485 symbol table citizen and remove a dependency
486 (thanks Adam Kennedy)
488 **~~ removed experimental & undocumented feature ~~**
489 - commented out the 'method' and 'self' keywords, see the
490 comments for more info.
493 - added a FAQ and WTF files to document frequently
494 asked questions and common problems
496 * Moose::Util::TypeConstraints
497 - added GlobRef and FileHandle type constraint
498 - added tests for this
500 * Moose::Meta::Attribute
501 - if your attribute 'isa' ArrayRef of HashRef, and you have
502 not explicitly set a default, then make the default DWIM.
503 This will also work for subtypes of ArrayRef and HashRef
505 - you can now auto-deref subtypes of ArrayRef or HashRef too.
506 - new test added for this (thanks to ashley)
509 - added basic support for runtime role composition
510 but this is still *highly experimental*, so feedback
511 is much appreciated :)
512 - added tests for this
514 * Moose::Meta::TypeConstraint
515 - the type constraint now handles the coercion process
516 through delegation, this is to support the coercion
519 * Moose::Meta::TypeConstraint::Union
520 - it is now possible for coercions to be performed
522 - added tests for this (thanks to konobi)
524 * Moose::Meta::TypeCoercion
525 - properly capturing error when type constraint
529 - Scalar::Util 1.18 is bad on Win32, so temporarily
530 only require version 1.17 for Win32 and cygwin.
531 (thanks Adam Kennedy)
533 0.12 Sat. Sept. 1, 2006
535 - Recipe5 (subtypes & coercion) has been written
538 - fixed "bad meta" error message to be more descriptive
539 - fixed &unimport to not remove the &inner and &super
540 keywords because we need to localize them.
541 - fixed number of spelling/grammer issues, thanks Theory :)
543 **~~ experimental & undocumented feature ~~**
544 - added the method and self keywords, they are basically
545 just sugar, and they may not stay around.
548 - added &dump method to easily Data::Dumper
551 * Moose::Meta::TypeConstraint
552 - added the &is_a_type_of method to check both the current
553 and the subtype of a method (similar to &isa with classes)
556 - this is now a subclass of Class::MOP::Module, and no longer
557 creates the _role_meta ugliness of before.
558 - fixed tests to reflect this change
560 0.11 Wed. July 12, 2006
562 - added an &unimport method to remove all the keywords
563 that Moose will import, simply add 'no Moose' to the
564 bottom of your class file.
567 - fixed some test failures caused by a forgotten test
570 0.10 Thurs. July 6, 2006
572 - improved error message when loading modules so
573 it is less confusing when you load a role.
574 - added &calculate_all_roles method to
575 Moose::Meta::Class and Moose::Meta::Role
578 This module has been tested against Class::MOP 0.30
579 but it does not yet utilize the optimizations
580 it makes available. Stay tuned for that ;)
582 0.09_03 Fri. June 23, 2006
583 ++ DEVELOPER RELEASE ++
585 - 'use strict' and 'use warnings' are no longer
586 needed in Moose classes, Moose itself will
587 turn them on for you.
588 - added tests for this
589 - moved code from exported subs to private methods
590 in Moose::Meta::Class
593 - as with Moose, strict and warnings are
594 automatically turned on for you.
595 - added tests for this
598 - now handles an edge case for override errors
599 - added tests for this
600 - added some more edge case tests
602 0.09_02 Tues. May 16, 2006
603 ++ DEVELOPER RELEASE ++
605 - added prototypes to the exported subs
609 - added prototypes to the exported subs
612 * Moose::Util::TypeConstraints
613 - cleaned up prototypes for the subs
616 0.09_01 Fri. May 12, 2006
617 ++ DEVELOPER RELEASE ++
618 - This release works in combination with
619 Class::MOP 0.29_01, it is a developer
620 release because it uses the a new
621 instance sub-protocol and a fairly
622 complete Role implementation. It has
623 not yet been optimized, so it slower
624 the the previous CPAN version. This
625 release also lacks good updated docs,
626 the official release will have updated docs.
629 - refactored the keyword exports
630 - 'with' now checks Role validaity and
631 accepts more than one Role at a time
632 - 'extends' makes metaclass adjustments as
633 needed to ensure metaclass compatability
636 - refactored the keyword exports
637 - 'with' now checks Role validaity and
638 accepts more than one Role at a time
640 * Moose::Util::TypeConstraints
641 - added the 'enum' keyword for simple
642 string enumerations which can be used as
644 - see example of usage in t/202_example.t
647 - more careful checking of params to new()
650 - much work done on the role composition
651 - many new tests for conflict detection
652 and composition edge cases
653 - not enough documentation, I suggest
656 * Moose::Meta::Instance
657 - added new Instance metaclass to support
658 the new Class::MOP instance protocol
661 - some small changes to support the new
663 - some small additions to support Roles
665 * Moose::Meta::Attribute
666 - some improvements to the accessor generation code
668 - some small changes to support the new
670 - (still somewhat) experimental delegation support
671 with the 'handles' option
672 - added several tests for this
673 - no docs for this yet
675 0.05 Thurs. April 27, 2006
677 - keywords are now exported with Sub::Exporter
678 thanks to chansen for this commit
679 - has keyword now takes a 'metaclass' option
680 to support custom attribute meta-classes
681 on a per-attribute basis
682 - added tests for this
683 - the 'has' keyword not accepts inherited slot
684 specifications (has '+foo'). This is still an
685 experimental feature and probably not finished
686 see t/038_attribute_inherited_slot_specs.t for
687 more details, or ask about it on #moose
688 - added tests for this
691 - keywords are now exported with Sub::Exporter
693 * Moose::Utils::TypeConstraints
694 - reorganized the type constraint hierarchy, thanks
695 to nothingmuch and chansen for his help and advice
697 - added some tests for this
698 - keywords are now exported with Sub::Exporter
699 thanks to chansen for this commit
702 - due to changes in Class::MOP, we had to change
703 construct_instance (for the better)
705 * Moose::Meta::Attribute
706 - due to changes in Class::MOP, we had to add the
707 initialize_instance_slot method (it's a good thing)
709 * Moose::Meta::TypeConstraint
710 - added type constraint unions
711 - added tests for this
712 - added the is_subtype_of predicate method
713 - added tests for this
715 0.04 Sun. April 16th, 2006
717 - Roles can now consume other roles
718 - added tests for this
719 - Roles can specify required methods now with
720 the requires() keyword
721 - added tests for this
724 - ripped out much of it's guts ,.. much cleaner now
725 - added required methods and correct handling of
726 them in apply() for both classes and roles
727 - added tests for this
728 - no longer adds a does() method to consuming classes
729 it relys on the one in Moose::Object
730 - added roles attribute and some methods to support
731 roles consuming roles
733 * Moose::Meta::Attribute
734 - added support for triggers on attributes
735 - added tests for this
736 - added support for does option on an attribute
737 - added tests for this
740 - added support for attribute triggers in the
742 - added tests for this
745 - Moose no longer creates a subtype for your class
746 if a subtype of the same name already exists, this
747 should DWIM in 99.9999% of all cases
749 * Moose::Util::TypeConstraints
750 - fixed bug where incorrect subtype conflicts were
752 - added test for this
755 - this class can now be extended with 'use base' if
756 you need it, it properly loads the metaclass class now
757 - added test for this
759 0.03_02 Wed. April 12, 2006
761 - you must now explictly use Moose::Util::TypeConstraints
762 it no longer gets exported for you automatically
765 - new() now accepts hash-refs as well as key/value lists
766 - added does() method to check for Roles
767 - added tests for this
770 - added roles attribute along with the add_role() and
772 - added tests for this
775 - now adds a does() method to consuming classes
776 which tests the class's hierarchy for roles
777 - added tests for this
779 0.03_01 Mon. April 10, 2006
781 - added new Role recipe (no content yet, only code)
784 - added 'with' keyword for Role support
785 - added test and docs for this
786 - fixed subtype quoting bug
787 - added test for this
791 - added test and docs
793 * Moose::Util::TypeConstraints
794 - added the message keyword to add custom
795 error messages to type constraints
798 - the meta role to support Moose::Role
799 - added tests and docs
802 - moved a number of things from Moose.pm
803 to here, they should have been here
806 * Moose::Meta::Attribute
807 - moved the attribute option macros here
808 instead of putting them in Moose.pm
810 * Moose::Meta::TypeConstraint
811 - added the message attributes and the
813 - added tests and docs for this
815 0.03 Thurs. March 30, 2006
817 - added the Moose::Cookbook with 5 recipes,
818 describing all the stuff Moose can do.
821 - fixed an issue with &extends super class loading
822 it now captures errors and deals with inline
823 packages correctly (bug found by mst, solution
825 - added super/override & inner/augment features
826 - added tests and docs for these
829 - BUILDALL now takes a reference of the %params
830 that are passed to &new, and passes that to
833 * Moose::Util::TypeConstraints
834 - Type constraints now survive runtime reloading
835 - added test for this
838 - fixed the way attribute defaults are handled
839 during instance construction (bug found by chansen)
841 * Moose::Meta::Attribute
842 - read-only attributes now actually enforce their
843 read-only-ness (this corrected in Class::MOP as
846 0.02 Tues. March 21, 2006
848 - many more tests, fixing some bugs and
850 - &extends now loads the base module with
852 - added UNIVERSAL::require to the
855 - each new Moose class will also create
856 and register a subtype of Object which
857 correspond to the new Moose class.
858 - the 'isa' option in &has now only
859 accepts strings, and will DWIM in
862 * Moose::Util::TypeConstraints
863 - added type coercion features
864 - added tests for this
865 - added support for this in attributes
866 and instance construction
868 - type construction no longer creates a
869 function, it registers the type instead.
870 - added several functions to get the
874 - BUILDALL and DEMOLISHALL were broken
875 because of a mis-named hash key, Whoops :)
877 * Moose::Meta::Attribute
878 - adding support for coercion in the
879 autogenerated accessors
882 - adding support for coercion in the
883 instance construction
885 * Moose::Meta::TypeConstraint
886 * Moose::Meta::TypeCoercion
887 - type constraints and coercions are now
888 full fledges meta-objects
890 0.01 Wed. March 15, 2006
891 - Moooooooooooooooooose!!!