1 Revision history for Perl extension Moose
3 0.28 Tues. Nov. 13, 2007
4 - 0.27 packaged incorrectly (groditi)
6 0.27 Tues. Nov. 13, 2007
7 * Moose::Meta::Attribute
8 - Added support for the new builder option (groditi)
9 - Added support for lazy_build option (groditi)
10 - Changed slot initialization for predicate changes (groditi)
12 * Moose::Meta::Method::Accessor
13 - Added support for lazy_build option (groditi)
14 - Fix inline methods to work with corrected predicate
17 * Moose::Meta::Method::Constructor
18 - Added support for lazy_build option (groditi)
21 - tests for builder and lazy_build (groditi)
23 * fixing some misc. bits in the docs that
24 got mentioned on CPAN Forum & perlmonks
27 - fixed how required methods are handled
28 when they encounter overriden or modified
29 methods from a class (thanks to confound).
30 - added tests for this
32 * Moose::Util::TypeConstraint
33 - fixed the type notation parser so that
34 the | always creates a union and so is
35 no longer a valid type char (thanks to
36 konobi, mugwump and #moose for working
38 - added more tests for this
40 0.26 Thurs. Sept. 27, 2007
44 We now support parameterized collection types, such as:
45 ArrayRef[Int] # array or integers
46 HashRef[Object] # a hash with object values
47 They can also be nested:
48 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
49 And work with the type unions as well:
50 ArrayRef[Int | Str] # array of integers of strings
52 * Better Framework Extendability
53 Moose.pm is now "extendable" such that it is now much
54 easier to extend the framework and add your own keywords
55 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
56 section of the Moose.pm docs.
59 In an effort to begin documenting some of the various
60 details of Moose as well as some common idioms, we have
61 created Moose::Cookbook::Snacks as a place to find
62 small (easily digestable) nuggets of Moose code.
65 ~ Several doc updates/cleanup thanks to castaway ~
67 - converted build system to use Module::Install instead of
68 Module::Build (thanks to jrockway)
71 - added all the meta classes to the immutable list and
72 set it to inline the accessors
73 - fix import to allow Sub::Exporter like { into => }
74 and { into_level => } (perigrin)
75 - exposed and documented init_meta() to allow better
76 embedding and extending of Moose (perigrin)
79 - complete re-organization of the test suite
80 - added some new tests as well
81 - finally re-enabled the Moose::POOP test since
82 the new version of DBM::Deep now works again
86 - fixed very odd and very nasty recursion bug with
88 - added tests for this (eilara)
90 * Moose::Meta::Attribute
91 Moose::Meta::Method::Constructor
92 Moose::Meta::Method::Accessor
93 - fixed issue with overload::Overloaded getting called
94 on non-blessed items. (RT #29269)
95 - added tests for this
97 * Moose::Meta::Method::Accessor
98 - fixed issue with generated accessor code making
99 assumptions about hash based classes (thanks to dexter)
101 * Moose::Coookbook::Snacks
102 - these are bits of documentation, not quite as big as
103 Recipes but which have no clear place in the module docs.
104 So they are Snacks! (horray for castaway++)
106 * Moose::Cookbook::Recipe4
107 - updated it to use the new ArrayRef[MyType] construct
108 - updated the accompanying test as well
110 +++ Major Refactor of the Type Constraint system +++
111 +++ with new features added as well +++
113 * Moose::Util::TypeConstraint
114 - no longer uses package variable to keep track of
115 the type constraints, now uses the an instance of
116 Moose::Meta::TypeConstraint::Registry to do it
117 - added more sophisticated type notation parsing
119 - added tests for this
121 * Moose::Meta::TypeConstraint
122 - some minor adjustments to make subclassing easier
123 - added the package_defined_in attribute so that we
124 can track where the type constraints are created
126 * Moose::Meta::TypeConstraint::Union
127 - this is now been refactored to be a subclass of
128 Moose::Meta::TypeConstraint
130 * Moose::Meta::TypeCoercion::Union
131 - this has been added to service the newly refactored
132 Moose::Meta::TypeConstraint::Union and is itself
133 a subclass of Moose::Meta::TypeCoercion
135 * Moose::Meta::TypeConstraint::Parameterized
136 - added this module (taken from MooseX::AttributeHelpers)
137 to help construct nested collection types
138 - added tests for this
140 * Moose::Meta::TypeConstraint::Registry
141 - added this class to keep track of type constraints
143 0.25 Mon. Aug. 13, 2007
145 - Documentation update to reference Moose::Util::TypeConstraints
146 under 'isa' in 'has' for how to define a new type
149 * Moose::Meta::Attribute
150 - required attributes now will no longer accept undef
151 from the constructor, even if there is a default and lazy
152 - added tests for this
153 - default subroutines must return a value which passes the
155 - added tests for this
157 * Moose::Meta::Attribute
158 * Moose::Meta::Method::Constructor
159 * Moose::Meta::Method::Accessor
160 - type-constraint tests now handle overloaded objects correctly
162 - added tests for this (thanks to EvanCarroll)
164 * Moose::Meta::TypeConstraint::Union
165 - added (has_)hand_optimized_constraint to this class so that
166 it behaves as the regular Moose::Meta::TypeConstraint does.
169 - large refactoring of this code
170 - added several more tests
171 - tests for subtle conflict resolition issues
172 added, but not currently running
175 * Moose::Cookbook::Recipe7
176 - added new recipe for augment/inner functionality
178 - added test for this
181 - a formal definition of roles (still in progress)
184 - utilities for easier working with Moose classes
185 - added tests for these
188 - This contains Moose specific test functions
189 - added tests for these
191 0.24 Tues. July 3, 2007
192 ~ Some doc updates/cleanup ~
194 * Moose::Meta::Attribute
195 - added support for roles to be given as parameters
196 to the 'handles' option.
197 - added tests and docs for this
198 - the has '+foo' attribute form now accepts changes to
199 the lazy option, and the addition of a handles option
200 (but not changing the handles option)
201 - added tests and docs for this
204 - required methods are now fetched using find_method_by_name
205 so that required methods can come from superclasses
206 - adjusted tests for this
208 0.23 Mon. June 18, 2007
209 * Moose::Meta::Method::Constructor
210 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
212 - Modify make_immutable to work with the new Class::MOP immutable
213 mechanism + POD + very basic test (groditi)
214 * Moose::Meta::Attribute
215 - Fix handles to use goto() so that caller() comes out properly on
216 the other side (perigrin)
218 0.22 Thurs. May 31, 2007
219 * Moose::Util::TypeConstraints
220 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
221 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
222 prototypes for functions
223 - added the ClassName type constraint, this checks for strings
224 which will respond true to ->isa(UNIVERSAL).
225 - added tests and docs for this
226 - subtyping just in name now works correctly by making the
227 default for where be { 1 }
228 - added test for this
230 * Moose::Meta::Method::Accessor
231 - coerce and lazy now work together correctly, thanks to
232 merlyn for finding this bug
233 - tests added for this
234 - fix reader presedence bug in Moose::Meta::Attribute + tests
237 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
238 a HASH-ref and missed. This produces better error messages then
239 having it die cause undef is not a HASH.
240 - added tests for this
242 0.21 Thursday, May 2nd, 2007
244 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
245 - modified unimport to remove super and inner along with the rest
246 - altered unimport tests to handle this
249 - altered super export to populate SUPER_SLOT
252 - altered augment and override modifier application to use *_SLOT
253 - modified tests for these to unimport one test class each to test
256 - fixed issue where custom attribute metaclasses
257 where not handled correctly in roles
258 - added tests for this
261 - fixed issue where extending metaclasses with
262 roles would blow up. Thanks to Aankhen`` for
263 finding this insidious error, and it's solution.
265 ~~ lots of spelling and grammer fixes in the docs,
266 many many thanks to rlb3 and Aankhen for these :)
268 0.20 Friday, April 6th, 2007
269 >> I messed up the SKIP logic in one test
270 so this release is just to fix that.
273 - 'has' now also accepts an ARRAY ref
274 to create multiple attrs (see docs)
275 (thanks to konobi for this)
276 - added tests and docs
278 0.19 Thurs. April 5th, 2007
279 ~~ More documentation updates ~~
281 * Moose::Util::TypeConstraints
282 - 'type' now supports messages as well
283 thanks to phaylon for finding this
284 - added tests for this
285 - added &list_all_type_constraints and
286 &list_all_builtin_type_constraints
287 functions to facilitate introspection.
289 * Moose::Meta::Attribute
290 - fixed regexp 'handles' declarations
291 to build the list of delegated methods
292 correctly (and not override important
293 things like &new) thanks to ashleyb
295 - added tests and docs for this
296 - added the 'documentation' attributes
297 so that you can actually document your
298 attributes and inspect them through the
300 - added tests and docs for this
303 - when loading custom attribute metaclasses
304 it will first look in for the class in the
305 Moose::Meta::Attribute::Custom::$name, and
306 then default to just loading $name.
307 - added tests and docs for this
309 * Moose::Meta::TypeConstraint
310 - type constraints now stringify to their names.
311 - added test for this
314 - added tests to assure we work with Module::Refresh
315 - added stricter test skip logic in the Moose POOP
316 test, ask Rob Kinyon why.
317 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
319 0.18 Sat. March 10, 2007
320 ~~ Many, many documentation updates ~~
323 - We now use Class::MOP::load_class to
325 - added tests to show types and subtypes
326 working with Declare::Constraints::Simple
327 and Test::Deep as constraint engines.
330 !! You must have Class::MOP 0.37_001 !!
331 !! for this developer release to work !!
333 This release was primarily adding the immutable
334 feature to Moose. An immutable class is one which
335 you promise not to alter. When you set the class
336 as immutable it will perform various bits of
337 memoization and inline certain part of the code
338 (constructors, destructors and accessors). This
339 minimizes (and in some cases totally eliminates)
340 one of Moose's biggest performance hits. This
341 feature is not on by default, and is 100% optional.
342 It has several configurable bits as well, so you
343 can pick and choose to your specific needs.
345 The changes involved in this were fairly wide and
346 highly specific, but 100% backwards compatible, so
347 I am not going to enumerate them here. If you are
348 truely interested in what was changed, please do
351 0.17 Tues. Nov. 14, 2006
352 * Moose::Meta::Method::Accessor
353 - bugfix for read-only accessors which
354 are have a type constraint and lazy.
355 Thanks to chansen for finding it.
357 0.16 Tues. Nov. 14, 2006
359 There are some speed improvements in this release,
360 but they are only the begining, so stay tuned.
363 - BUILDALL and DEMOLISHALL no longer get
364 called unless they actually need to be.
365 This gave us a signifigant speed boost
366 for the cases when there is no BUILD or
367 DEMOLISH method present.
369 * Moose::Util::TypeConstraints
370 * Moose::Meta::TypeConstraint
371 - added an 'optimize_as' option to the
372 type constraint, which allows for a
373 hand optimized version of the type
374 constraint to be used when possible.
375 - Any internally created type constraints
376 now provide an optimized version as well.
378 0.15 Sun. Nov. 5, 2006
380 This version of Moose *must* have Class::MOP 0.36 in order
381 to work correctly. A number of small internal tweaks have
382 been made in order to be compatible with that release.
384 * Moose::Util::TypeConstraints
385 - added &unimport so that you can clean out
386 your class namespace of these exported
390 - fixed minor issue which occasionally
391 comes up during global destruction
393 - moved Moose::Meta::Method::Overriden into
397 - moved Moose::Meta::Role::Method into
400 * Moose::Meta::Attribute
401 - changed how we do type checks so that
402 we reduce the overall cost, but still
405 - moved accessor generation methods to
406 Moose::Meta::Method::Accessor to
407 conform to the API changes from
410 * Moose::Meta::TypeConstraint
411 - changed how constraints are compiled
412 so that we do less recursion and more
413 iteration. This makes the type check
415 - moved Moose::Meta::TypeConstraint::Union
418 * Moose::Meta::Method::Accessor
419 - created this from methods formerly found in
420 Moose::Meta::Attribute
422 * Moose::Meta::Role::Method
423 - moved this from Moose::Meta::Role
425 * Moose::Meta::Method::Overriden
426 - moved this from Moose::Meta::Class
428 * Moose::Meta::TypeConstraint::Union
429 - moved this from Moose::Meta::TypeConstraint
431 0.14 Mon. Oct. 9, 2006
433 * Moose::Meta::Attribute
434 - fixed lazy attributes which were not getting
435 checked with the type constraint (thanks ashley)
436 - added tests for this
437 - removed the over-enthusiastic DWIMery of the
438 automatic ArrayRef and HashRef defaults, it
439 broke predicates in an ugly way.
440 - removed tests for this
442 0.13 Sat. Sept. 30, 2006
444 This version of Moose *must* have Class::MOP 0.35 in order
445 to work correctly. A number of small internal tweaks have
446 been made in order to be compatible with that release.
449 - Removed the use of UNIVERSAL::require to be a better
450 symbol table citizen and remove a dependency
451 (thanks Adam Kennedy)
453 **~~ removed experimental & undocumented feature ~~**
454 - commented out the 'method' and 'self' keywords, see the
455 comments for more info.
458 - added a FAQ and WTF files to document frequently
459 asked questions and common problems
461 * Moose::Util::TypeConstraints
462 - added GlobRef and FileHandle type constraint
463 - added tests for this
465 * Moose::Meta::Attribute
466 - if your attribute 'isa' ArrayRef of HashRef, and you have
467 not explicitly set a default, then make the default DWIM.
468 This will also work for subtypes of ArrayRef and HashRef
470 - you can now auto-deref subtypes of ArrayRef or HashRef too.
471 - new test added for this (thanks to ashley)
474 - added basic support for runtime role composition
475 but this is still *highly experimental*, so feedback
476 is much appreciated :)
477 - added tests for this
479 * Moose::Meta::TypeConstraint
480 - the type constraint now handles the coercion process
481 through delegation, this is to support the coercion
484 * Moose::Meta::TypeConstraint::Union
485 - it is now possible for coercions to be performed
487 - added tests for this (thanks to konobi)
489 * Moose::Meta::TypeCoercion
490 - properly capturing error when type constraint
494 - Scalar::Util 1.18 is bad on Win32, so temporarily
495 only require version 1.17 for Win32 and cygwin.
496 (thanks Adam Kennedy)
498 0.12 Sat. Sept. 1, 2006
500 - Recipe5 (subtypes & coercion) has been written
503 - fixed "bad meta" error message to be more descriptive
504 - fixed &unimport to not remove the &inner and &super
505 keywords because we need to localize them.
506 - fixed number of spelling/grammer issues, thanks Theory :)
508 **~~ experimental & undocumented feature ~~**
509 - added the method and self keywords, they are basically
510 just sugar, and they may not stay around.
513 - added &dump method to easily Data::Dumper
516 * Moose::Meta::TypeConstraint
517 - added the &is_a_type_of method to check both the current
518 and the subtype of a method (similar to &isa with classes)
521 - this is now a subclass of Class::MOP::Module, and no longer
522 creates the _role_meta ugliness of before.
523 - fixed tests to reflect this change
525 0.11 Wed. July 12, 2006
527 - added an &unimport method to remove all the keywords
528 that Moose will import, simply add 'no Moose' to the
529 bottom of your class file.
532 - fixed some test failures caused by a forgotten test
535 0.10 Thurs. July 6, 2006
537 - improved error message when loading modules so
538 it is less confusing when you load a role.
539 - added &calculate_all_roles method to
540 Moose::Meta::Class and Moose::Meta::Role
543 This module has been tested against Class::MOP 0.30
544 but it does not yet utilize the optimizations
545 it makes available. Stay tuned for that ;)
547 0.09_03 Fri. June 23, 2006
548 ++ DEVELOPER RELEASE ++
550 - 'use strict' and 'use warnings' are no longer
551 needed in Moose classes, Moose itself will
552 turn them on for you.
553 - added tests for this
554 - moved code from exported subs to private methods
555 in Moose::Meta::Class
558 - as with Moose, strict and warnings are
559 automatically turned on for you.
560 - added tests for this
563 - now handles an edge case for override errors
564 - added tests for this
565 - added some more edge case tests
567 0.09_02 Tues. May 16, 2006
568 ++ DEVELOPER RELEASE ++
570 - added prototypes to the exported subs
574 - added prototypes to the exported subs
577 * Moose::Util::TypeConstraints
578 - cleaned up prototypes for the subs
581 0.09_01 Fri. May 12, 2006
582 ++ DEVELOPER RELEASE ++
583 - This release works in combination with
584 Class::MOP 0.29_01, it is a developer
585 release because it uses the a new
586 instance sub-protocol and a fairly
587 complete Role implementation. It has
588 not yet been optimized, so it slower
589 the the previous CPAN version. This
590 release also lacks good updated docs,
591 the official release will have updated docs.
594 - refactored the keyword exports
595 - 'with' now checks Role validaity and
596 accepts more than one Role at a time
597 - 'extends' makes metaclass adjustments as
598 needed to ensure metaclass compatability
601 - refactored the keyword exports
602 - 'with' now checks Role validaity and
603 accepts more than one Role at a time
605 * Moose::Util::TypeConstraints
606 - added the 'enum' keyword for simple
607 string enumerations which can be used as
609 - see example of usage in t/202_example.t
612 - more careful checking of params to new()
615 - much work done on the role composition
616 - many new tests for conflict detection
617 and composition edge cases
618 - not enough documentation, I suggest
621 * Moose::Meta::Instance
622 - added new Instance metaclass to support
623 the new Class::MOP instance protocol
626 - some small changes to support the new
628 - some small additions to support Roles
630 * Moose::Meta::Attribute
631 - some improvements to the accessor generation code
633 - some small changes to support the new
635 - (still somewhat) experimental delegation support
636 with the 'handles' option
637 - added several tests for this
638 - no docs for this yet
640 0.05 Thurs. April 27, 2006
642 - keywords are now exported with Sub::Exporter
643 thanks to chansen for this commit
644 - has keyword now takes a 'metaclass' option
645 to support custom attribute meta-classes
646 on a per-attribute basis
647 - added tests for this
648 - the 'has' keyword not accepts inherited slot
649 specifications (has '+foo'). This is still an
650 experimental feature and probably not finished
651 see t/038_attribute_inherited_slot_specs.t for
652 more details, or ask about it on #moose
653 - added tests for this
656 - keywords are now exported with Sub::Exporter
658 * Moose::Utils::TypeConstraints
659 - reorganized the type constraint hierarchy, thanks
660 to nothingmuch and chansen for his help and advice
662 - added some tests for this
663 - keywords are now exported with Sub::Exporter
664 thanks to chansen for this commit
667 - due to changes in Class::MOP, we had to change
668 construct_instance (for the better)
670 * Moose::Meta::Attribute
671 - due to changes in Class::MOP, we had to add the
672 initialize_instance_slot method (it's a good thing)
674 * Moose::Meta::TypeConstraint
675 - added type constraint unions
676 - added tests for this
677 - added the is_subtype_of predicate method
678 - added tests for this
680 0.04 Sun. April 16th, 2006
682 - Roles can now consume other roles
683 - added tests for this
684 - Roles can specify required methods now with
685 the requires() keyword
686 - added tests for this
689 - ripped out much of it's guts ,.. much cleaner now
690 - added required methods and correct handling of
691 them in apply() for both classes and roles
692 - added tests for this
693 - no longer adds a does() method to consuming classes
694 it relys on the one in Moose::Object
695 - added roles attribute and some methods to support
696 roles consuming roles
698 * Moose::Meta::Attribute
699 - added support for triggers on attributes
700 - added tests for this
701 - added support for does option on an attribute
702 - added tests for this
705 - added support for attribute triggers in the
707 - added tests for this
710 - Moose no longer creates a subtype for your class
711 if a subtype of the same name already exists, this
712 should DWIM in 99.9999% of all cases
714 * Moose::Util::TypeConstraints
715 - fixed bug where incorrect subtype conflicts were
717 - added test for this
720 - this class can now be extended with 'use base' if
721 you need it, it properly loads the metaclass class now
722 - added test for this
724 0.03_02 Wed. April 12, 2006
726 - you must now explictly use Moose::Util::TypeConstraints
727 it no longer gets exported for you automatically
730 - new() now accepts hash-refs as well as key/value lists
731 - added does() method to check for Roles
732 - added tests for this
735 - added roles attribute along with the add_role() and
737 - added tests for this
740 - now adds a does() method to consuming classes
741 which tests the class's hierarchy for roles
742 - added tests for this
744 0.03_01 Mon. April 10, 2006
746 - added new Role recipe (no content yet, only code)
749 - added 'with' keyword for Role support
750 - added test and docs for this
751 - fixed subtype quoting bug
752 - added test for this
756 - added test and docs
758 * Moose::Util::TypeConstraints
759 - added the message keyword to add custom
760 error messages to type constraints
763 - the meta role to support Moose::Role
764 - added tests and docs
767 - moved a number of things from Moose.pm
768 to here, they should have been here
771 * Moose::Meta::Attribute
772 - moved the attribute option macros here
773 instead of putting them in Moose.pm
775 * Moose::Meta::TypeConstraint
776 - added the message attributes and the
778 - added tests and docs for this
780 0.03 Thurs. March 30, 2006
782 - added the Moose::Cookbook with 5 recipes,
783 describing all the stuff Moose can do.
786 - fixed an issue with &extends super class loading
787 it now captures errors and deals with inline
788 packages correctly (bug found by mst, solution
790 - added super/override & inner/augment features
791 - added tests and docs for these
794 - BUILDALL now takes a reference of the %params
795 that are passed to &new, and passes that to
798 * Moose::Util::TypeConstraints
799 - Type constraints now survive runtime reloading
800 - added test for this
803 - fixed the way attribute defaults are handled
804 during instance construction (bug found by chansen)
806 * Moose::Meta::Attribute
807 - read-only attributes now actually enforce their
808 read-only-ness (this corrected in Class::MOP as
811 0.02 Tues. March 21, 2006
813 - many more tests, fixing some bugs and
815 - &extends now loads the base module with
817 - added UNIVERSAL::require to the
820 - each new Moose class will also create
821 and register a subtype of Object which
822 correspond to the new Moose class.
823 - the 'isa' option in &has now only
824 accepts strings, and will DWIM in
827 * Moose::Util::TypeConstraints
828 - added type coercion features
829 - added tests for this
830 - added support for this in attributes
831 and instance construction
833 - type construction no longer creates a
834 function, it registers the type instead.
835 - added several functions to get the
839 - BUILDALL and DEMOLISHALL were broken
840 because of a mis-named hash key, Whoops :)
842 * Moose::Meta::Attribute
843 - adding support for coercion in the
844 autogenerated accessors
847 - adding support for coercion in the
848 instance construction
850 * Moose::Meta::TypeConstraint
851 * Moose::Meta::TypeCoercion
852 - type constraints and coercions are now
853 full fledges meta-objects
855 0.01 Wed. March 15, 2006
856 - Moooooooooooooooooose!!!