1 Revision history for Perl extension Moose
3 * Moose::Util::TypeConstraints
4 - fix ClassName constraint to introspect symbol table
6 0.29 Tues. Nov. 13, 2007
7 * Moose::Meta::Attribute
8 - Fix error message on missing builder method (groditi)
10 * Moose::Meta::Method::Accessor
11 - Fix error message on missing builder method (groditi)
14 - Add test to check for the correct error message when
15 builder method is missing (groditi)
17 0.28 Tues. Nov. 13, 2007
18 - 0.27 packaged incorrectly (groditi)
20 0.27 Tues. Nov. 13, 2007
21 * Moose::Meta::Attribute
22 - Added support for the new builder option (groditi)
23 - Added support for lazy_build option (groditi)
24 - Changed slot initialization for predicate changes (groditi)
26 * Moose::Meta::Method::Accessor
27 - Added support for lazy_build option (groditi)
28 - Fix inline methods to work with corrected predicate
31 * Moose::Meta::Method::Constructor
32 - Added support for lazy_build option (groditi)
35 - tests for builder and lazy_build (groditi)
37 * fixing some misc. bits in the docs that
38 got mentioned on CPAN Forum & perlmonks
41 - fixed how required methods are handled
42 when they encounter overriden or modified
43 methods from a class (thanks to confound).
44 - added tests for this
46 * Moose::Util::TypeConstraint
47 - fixed the type notation parser so that
48 the | always creates a union and so is
49 no longer a valid type char (thanks to
50 konobi, mugwump and #moose for working
52 - added more tests for this
54 0.26 Thurs. Sept. 27, 2007
58 We now support parameterized collection types, such as:
59 ArrayRef[Int] # array or integers
60 HashRef[Object] # a hash with object values
61 They can also be nested:
62 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
63 And work with the type unions as well:
64 ArrayRef[Int | Str] # array of integers of strings
66 * Better Framework Extendability
67 Moose.pm is now "extendable" such that it is now much
68 easier to extend the framework and add your own keywords
69 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
70 section of the Moose.pm docs.
73 In an effort to begin documenting some of the various
74 details of Moose as well as some common idioms, we have
75 created Moose::Cookbook::Snacks as a place to find
76 small (easily digestable) nuggets of Moose code.
79 ~ Several doc updates/cleanup thanks to castaway ~
81 - converted build system to use Module::Install instead of
82 Module::Build (thanks to jrockway)
85 - added all the meta classes to the immutable list and
86 set it to inline the accessors
87 - fix import to allow Sub::Exporter like { into => }
88 and { into_level => } (perigrin)
89 - exposed and documented init_meta() to allow better
90 embedding and extending of Moose (perigrin)
93 - complete re-organization of the test suite
94 - added some new tests as well
95 - finally re-enabled the Moose::POOP test since
96 the new version of DBM::Deep now works again
100 - fixed very odd and very nasty recursion bug with
102 - added tests for this (eilara)
104 * Moose::Meta::Attribute
105 Moose::Meta::Method::Constructor
106 Moose::Meta::Method::Accessor
107 - fixed issue with overload::Overloaded getting called
108 on non-blessed items. (RT #29269)
109 - added tests for this
111 * Moose::Meta::Method::Accessor
112 - fixed issue with generated accessor code making
113 assumptions about hash based classes (thanks to dexter)
115 * Moose::Coookbook::Snacks
116 - these are bits of documentation, not quite as big as
117 Recipes but which have no clear place in the module docs.
118 So they are Snacks! (horray for castaway++)
120 * Moose::Cookbook::Recipe4
121 - updated it to use the new ArrayRef[MyType] construct
122 - updated the accompanying test as well
124 +++ Major Refactor of the Type Constraint system +++
125 +++ with new features added as well +++
127 * Moose::Util::TypeConstraint
128 - no longer uses package variable to keep track of
129 the type constraints, now uses the an instance of
130 Moose::Meta::TypeConstraint::Registry to do it
131 - added more sophisticated type notation parsing
133 - added tests for this
135 * Moose::Meta::TypeConstraint
136 - some minor adjustments to make subclassing easier
137 - added the package_defined_in attribute so that we
138 can track where the type constraints are created
140 * Moose::Meta::TypeConstraint::Union
141 - this is now been refactored to be a subclass of
142 Moose::Meta::TypeConstraint
144 * Moose::Meta::TypeCoercion::Union
145 - this has been added to service the newly refactored
146 Moose::Meta::TypeConstraint::Union and is itself
147 a subclass of Moose::Meta::TypeCoercion
149 * Moose::Meta::TypeConstraint::Parameterized
150 - added this module (taken from MooseX::AttributeHelpers)
151 to help construct nested collection types
152 - added tests for this
154 * Moose::Meta::TypeConstraint::Registry
155 - added this class to keep track of type constraints
157 0.25 Mon. Aug. 13, 2007
159 - Documentation update to reference Moose::Util::TypeConstraints
160 under 'isa' in 'has' for how to define a new type
163 * Moose::Meta::Attribute
164 - required attributes now will no longer accept undef
165 from the constructor, even if there is a default and lazy
166 - added tests for this
167 - default subroutines must return a value which passes the
169 - added tests for this
171 * Moose::Meta::Attribute
172 * Moose::Meta::Method::Constructor
173 * Moose::Meta::Method::Accessor
174 - type-constraint tests now handle overloaded objects correctly
176 - added tests for this (thanks to EvanCarroll)
178 * Moose::Meta::TypeConstraint::Union
179 - added (has_)hand_optimized_constraint to this class so that
180 it behaves as the regular Moose::Meta::TypeConstraint does.
183 - large refactoring of this code
184 - added several more tests
185 - tests for subtle conflict resolition issues
186 added, but not currently running
189 * Moose::Cookbook::Recipe7
190 - added new recipe for augment/inner functionality
192 - added test for this
195 - a formal definition of roles (still in progress)
198 - utilities for easier working with Moose classes
199 - added tests for these
202 - This contains Moose specific test functions
203 - added tests for these
205 0.24 Tues. July 3, 2007
206 ~ Some doc updates/cleanup ~
208 * Moose::Meta::Attribute
209 - added support for roles to be given as parameters
210 to the 'handles' option.
211 - added tests and docs for this
212 - the has '+foo' attribute form now accepts changes to
213 the lazy option, and the addition of a handles option
214 (but not changing the handles option)
215 - added tests and docs for this
218 - required methods are now fetched using find_method_by_name
219 so that required methods can come from superclasses
220 - adjusted tests for this
222 0.23 Mon. June 18, 2007
223 * Moose::Meta::Method::Constructor
224 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
226 - Modify make_immutable to work with the new Class::MOP immutable
227 mechanism + POD + very basic test (groditi)
228 * Moose::Meta::Attribute
229 - Fix handles to use goto() so that caller() comes out properly on
230 the other side (perigrin)
232 0.22 Thurs. May 31, 2007
233 * Moose::Util::TypeConstraints
234 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
235 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
236 prototypes for functions
237 - added the ClassName type constraint, this checks for strings
238 which will respond true to ->isa(UNIVERSAL).
239 - added tests and docs for this
240 - subtyping just in name now works correctly by making the
241 default for where be { 1 }
242 - added test for this
244 * Moose::Meta::Method::Accessor
245 - coerce and lazy now work together correctly, thanks to
246 merlyn for finding this bug
247 - tests added for this
248 - fix reader presedence bug in Moose::Meta::Attribute + tests
251 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
252 a HASH-ref and missed. This produces better error messages then
253 having it die cause undef is not a HASH.
254 - added tests for this
256 0.21 Thursday, May 2nd, 2007
258 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
259 - modified unimport to remove super and inner along with the rest
260 - altered unimport tests to handle this
263 - altered super export to populate SUPER_SLOT
266 - altered augment and override modifier application to use *_SLOT
267 - modified tests for these to unimport one test class each to test
270 - fixed issue where custom attribute metaclasses
271 where not handled correctly in roles
272 - added tests for this
275 - fixed issue where extending metaclasses with
276 roles would blow up. Thanks to Aankhen`` for
277 finding this insidious error, and it's solution.
279 ~~ lots of spelling and grammer fixes in the docs,
280 many many thanks to rlb3 and Aankhen for these :)
282 0.20 Friday, April 6th, 2007
283 >> I messed up the SKIP logic in one test
284 so this release is just to fix that.
287 - 'has' now also accepts an ARRAY ref
288 to create multiple attrs (see docs)
289 (thanks to konobi for this)
290 - added tests and docs
292 0.19 Thurs. April 5th, 2007
293 ~~ More documentation updates ~~
295 * Moose::Util::TypeConstraints
296 - 'type' now supports messages as well
297 thanks to phaylon for finding this
298 - added tests for this
299 - added &list_all_type_constraints and
300 &list_all_builtin_type_constraints
301 functions to facilitate introspection.
303 * Moose::Meta::Attribute
304 - fixed regexp 'handles' declarations
305 to build the list of delegated methods
306 correctly (and not override important
307 things like &new) thanks to ashleyb
309 - added tests and docs for this
310 - added the 'documentation' attributes
311 so that you can actually document your
312 attributes and inspect them through the
314 - added tests and docs for this
317 - when loading custom attribute metaclasses
318 it will first look in for the class in the
319 Moose::Meta::Attribute::Custom::$name, and
320 then default to just loading $name.
321 - added tests and docs for this
323 * Moose::Meta::TypeConstraint
324 - type constraints now stringify to their names.
325 - added test for this
328 - added tests to assure we work with Module::Refresh
329 - added stricter test skip logic in the Moose POOP
330 test, ask Rob Kinyon why.
331 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
333 0.18 Sat. March 10, 2007
334 ~~ Many, many documentation updates ~~
337 - We now use Class::MOP::load_class to
339 - added tests to show types and subtypes
340 working with Declare::Constraints::Simple
341 and Test::Deep as constraint engines.
344 !! You must have Class::MOP 0.37_001 !!
345 !! for this developer release to work !!
347 This release was primarily adding the immutable
348 feature to Moose. An immutable class is one which
349 you promise not to alter. When you set the class
350 as immutable it will perform various bits of
351 memoization and inline certain part of the code
352 (constructors, destructors and accessors). This
353 minimizes (and in some cases totally eliminates)
354 one of Moose's biggest performance hits. This
355 feature is not on by default, and is 100% optional.
356 It has several configurable bits as well, so you
357 can pick and choose to your specific needs.
359 The changes involved in this were fairly wide and
360 highly specific, but 100% backwards compatible, so
361 I am not going to enumerate them here. If you are
362 truely interested in what was changed, please do
365 0.17 Tues. Nov. 14, 2006
366 * Moose::Meta::Method::Accessor
367 - bugfix for read-only accessors which
368 are have a type constraint and lazy.
369 Thanks to chansen for finding it.
371 0.16 Tues. Nov. 14, 2006
373 There are some speed improvements in this release,
374 but they are only the begining, so stay tuned.
377 - BUILDALL and DEMOLISHALL no longer get
378 called unless they actually need to be.
379 This gave us a signifigant speed boost
380 for the cases when there is no BUILD or
381 DEMOLISH method present.
383 * Moose::Util::TypeConstraints
384 * Moose::Meta::TypeConstraint
385 - added an 'optimize_as' option to the
386 type constraint, which allows for a
387 hand optimized version of the type
388 constraint to be used when possible.
389 - Any internally created type constraints
390 now provide an optimized version as well.
392 0.15 Sun. Nov. 5, 2006
394 This version of Moose *must* have Class::MOP 0.36 in order
395 to work correctly. A number of small internal tweaks have
396 been made in order to be compatible with that release.
398 * Moose::Util::TypeConstraints
399 - added &unimport so that you can clean out
400 your class namespace of these exported
404 - fixed minor issue which occasionally
405 comes up during global destruction
407 - moved Moose::Meta::Method::Overriden into
411 - moved Moose::Meta::Role::Method into
414 * Moose::Meta::Attribute
415 - changed how we do type checks so that
416 we reduce the overall cost, but still
419 - moved accessor generation methods to
420 Moose::Meta::Method::Accessor to
421 conform to the API changes from
424 * Moose::Meta::TypeConstraint
425 - changed how constraints are compiled
426 so that we do less recursion and more
427 iteration. This makes the type check
429 - moved Moose::Meta::TypeConstraint::Union
432 * Moose::Meta::Method::Accessor
433 - created this from methods formerly found in
434 Moose::Meta::Attribute
436 * Moose::Meta::Role::Method
437 - moved this from Moose::Meta::Role
439 * Moose::Meta::Method::Overriden
440 - moved this from Moose::Meta::Class
442 * Moose::Meta::TypeConstraint::Union
443 - moved this from Moose::Meta::TypeConstraint
445 0.14 Mon. Oct. 9, 2006
447 * Moose::Meta::Attribute
448 - fixed lazy attributes which were not getting
449 checked with the type constraint (thanks ashley)
450 - added tests for this
451 - removed the over-enthusiastic DWIMery of the
452 automatic ArrayRef and HashRef defaults, it
453 broke predicates in an ugly way.
454 - removed tests for this
456 0.13 Sat. Sept. 30, 2006
458 This version of Moose *must* have Class::MOP 0.35 in order
459 to work correctly. A number of small internal tweaks have
460 been made in order to be compatible with that release.
463 - Removed the use of UNIVERSAL::require to be a better
464 symbol table citizen and remove a dependency
465 (thanks Adam Kennedy)
467 **~~ removed experimental & undocumented feature ~~**
468 - commented out the 'method' and 'self' keywords, see the
469 comments for more info.
472 - added a FAQ and WTF files to document frequently
473 asked questions and common problems
475 * Moose::Util::TypeConstraints
476 - added GlobRef and FileHandle type constraint
477 - added tests for this
479 * Moose::Meta::Attribute
480 - if your attribute 'isa' ArrayRef of HashRef, and you have
481 not explicitly set a default, then make the default DWIM.
482 This will also work for subtypes of ArrayRef and HashRef
484 - you can now auto-deref subtypes of ArrayRef or HashRef too.
485 - new test added for this (thanks to ashley)
488 - added basic support for runtime role composition
489 but this is still *highly experimental*, so feedback
490 is much appreciated :)
491 - added tests for this
493 * Moose::Meta::TypeConstraint
494 - the type constraint now handles the coercion process
495 through delegation, this is to support the coercion
498 * Moose::Meta::TypeConstraint::Union
499 - it is now possible for coercions to be performed
501 - added tests for this (thanks to konobi)
503 * Moose::Meta::TypeCoercion
504 - properly capturing error when type constraint
508 - Scalar::Util 1.18 is bad on Win32, so temporarily
509 only require version 1.17 for Win32 and cygwin.
510 (thanks Adam Kennedy)
512 0.12 Sat. Sept. 1, 2006
514 - Recipe5 (subtypes & coercion) has been written
517 - fixed "bad meta" error message to be more descriptive
518 - fixed &unimport to not remove the &inner and &super
519 keywords because we need to localize them.
520 - fixed number of spelling/grammer issues, thanks Theory :)
522 **~~ experimental & undocumented feature ~~**
523 - added the method and self keywords, they are basically
524 just sugar, and they may not stay around.
527 - added &dump method to easily Data::Dumper
530 * Moose::Meta::TypeConstraint
531 - added the &is_a_type_of method to check both the current
532 and the subtype of a method (similar to &isa with classes)
535 - this is now a subclass of Class::MOP::Module, and no longer
536 creates the _role_meta ugliness of before.
537 - fixed tests to reflect this change
539 0.11 Wed. July 12, 2006
541 - added an &unimport method to remove all the keywords
542 that Moose will import, simply add 'no Moose' to the
543 bottom of your class file.
546 - fixed some test failures caused by a forgotten test
549 0.10 Thurs. July 6, 2006
551 - improved error message when loading modules so
552 it is less confusing when you load a role.
553 - added &calculate_all_roles method to
554 Moose::Meta::Class and Moose::Meta::Role
557 This module has been tested against Class::MOP 0.30
558 but it does not yet utilize the optimizations
559 it makes available. Stay tuned for that ;)
561 0.09_03 Fri. June 23, 2006
562 ++ DEVELOPER RELEASE ++
564 - 'use strict' and 'use warnings' are no longer
565 needed in Moose classes, Moose itself will
566 turn them on for you.
567 - added tests for this
568 - moved code from exported subs to private methods
569 in Moose::Meta::Class
572 - as with Moose, strict and warnings are
573 automatically turned on for you.
574 - added tests for this
577 - now handles an edge case for override errors
578 - added tests for this
579 - added some more edge case tests
581 0.09_02 Tues. May 16, 2006
582 ++ DEVELOPER RELEASE ++
584 - added prototypes to the exported subs
588 - added prototypes to the exported subs
591 * Moose::Util::TypeConstraints
592 - cleaned up prototypes for the subs
595 0.09_01 Fri. May 12, 2006
596 ++ DEVELOPER RELEASE ++
597 - This release works in combination with
598 Class::MOP 0.29_01, it is a developer
599 release because it uses the a new
600 instance sub-protocol and a fairly
601 complete Role implementation. It has
602 not yet been optimized, so it slower
603 the the previous CPAN version. This
604 release also lacks good updated docs,
605 the official release will have updated docs.
608 - refactored the keyword exports
609 - 'with' now checks Role validaity and
610 accepts more than one Role at a time
611 - 'extends' makes metaclass adjustments as
612 needed to ensure metaclass compatability
615 - refactored the keyword exports
616 - 'with' now checks Role validaity and
617 accepts more than one Role at a time
619 * Moose::Util::TypeConstraints
620 - added the 'enum' keyword for simple
621 string enumerations which can be used as
623 - see example of usage in t/202_example.t
626 - more careful checking of params to new()
629 - much work done on the role composition
630 - many new tests for conflict detection
631 and composition edge cases
632 - not enough documentation, I suggest
635 * Moose::Meta::Instance
636 - added new Instance metaclass to support
637 the new Class::MOP instance protocol
640 - some small changes to support the new
642 - some small additions to support Roles
644 * Moose::Meta::Attribute
645 - some improvements to the accessor generation code
647 - some small changes to support the new
649 - (still somewhat) experimental delegation support
650 with the 'handles' option
651 - added several tests for this
652 - no docs for this yet
654 0.05 Thurs. April 27, 2006
656 - keywords are now exported with Sub::Exporter
657 thanks to chansen for this commit
658 - has keyword now takes a 'metaclass' option
659 to support custom attribute meta-classes
660 on a per-attribute basis
661 - added tests for this
662 - the 'has' keyword not accepts inherited slot
663 specifications (has '+foo'). This is still an
664 experimental feature and probably not finished
665 see t/038_attribute_inherited_slot_specs.t for
666 more details, or ask about it on #moose
667 - added tests for this
670 - keywords are now exported with Sub::Exporter
672 * Moose::Utils::TypeConstraints
673 - reorganized the type constraint hierarchy, thanks
674 to nothingmuch and chansen for his help and advice
676 - added some tests for this
677 - keywords are now exported with Sub::Exporter
678 thanks to chansen for this commit
681 - due to changes in Class::MOP, we had to change
682 construct_instance (for the better)
684 * Moose::Meta::Attribute
685 - due to changes in Class::MOP, we had to add the
686 initialize_instance_slot method (it's a good thing)
688 * Moose::Meta::TypeConstraint
689 - added type constraint unions
690 - added tests for this
691 - added the is_subtype_of predicate method
692 - added tests for this
694 0.04 Sun. April 16th, 2006
696 - Roles can now consume other roles
697 - added tests for this
698 - Roles can specify required methods now with
699 the requires() keyword
700 - added tests for this
703 - ripped out much of it's guts ,.. much cleaner now
704 - added required methods and correct handling of
705 them in apply() for both classes and roles
706 - added tests for this
707 - no longer adds a does() method to consuming classes
708 it relys on the one in Moose::Object
709 - added roles attribute and some methods to support
710 roles consuming roles
712 * Moose::Meta::Attribute
713 - added support for triggers on attributes
714 - added tests for this
715 - added support for does option on an attribute
716 - added tests for this
719 - added support for attribute triggers in the
721 - added tests for this
724 - Moose no longer creates a subtype for your class
725 if a subtype of the same name already exists, this
726 should DWIM in 99.9999% of all cases
728 * Moose::Util::TypeConstraints
729 - fixed bug where incorrect subtype conflicts were
731 - added test for this
734 - this class can now be extended with 'use base' if
735 you need it, it properly loads the metaclass class now
736 - added test for this
738 0.03_02 Wed. April 12, 2006
740 - you must now explictly use Moose::Util::TypeConstraints
741 it no longer gets exported for you automatically
744 - new() now accepts hash-refs as well as key/value lists
745 - added does() method to check for Roles
746 - added tests for this
749 - added roles attribute along with the add_role() and
751 - added tests for this
754 - now adds a does() method to consuming classes
755 which tests the class's hierarchy for roles
756 - added tests for this
758 0.03_01 Mon. April 10, 2006
760 - added new Role recipe (no content yet, only code)
763 - added 'with' keyword for Role support
764 - added test and docs for this
765 - fixed subtype quoting bug
766 - added test for this
770 - added test and docs
772 * Moose::Util::TypeConstraints
773 - added the message keyword to add custom
774 error messages to type constraints
777 - the meta role to support Moose::Role
778 - added tests and docs
781 - moved a number of things from Moose.pm
782 to here, they should have been here
785 * Moose::Meta::Attribute
786 - moved the attribute option macros here
787 instead of putting them in Moose.pm
789 * Moose::Meta::TypeConstraint
790 - added the message attributes and the
792 - added tests and docs for this
794 0.03 Thurs. March 30, 2006
796 - added the Moose::Cookbook with 5 recipes,
797 describing all the stuff Moose can do.
800 - fixed an issue with &extends super class loading
801 it now captures errors and deals with inline
802 packages correctly (bug found by mst, solution
804 - added super/override & inner/augment features
805 - added tests and docs for these
808 - BUILDALL now takes a reference of the %params
809 that are passed to &new, and passes that to
812 * Moose::Util::TypeConstraints
813 - Type constraints now survive runtime reloading
814 - added test for this
817 - fixed the way attribute defaults are handled
818 during instance construction (bug found by chansen)
820 * Moose::Meta::Attribute
821 - read-only attributes now actually enforce their
822 read-only-ness (this corrected in Class::MOP as
825 0.02 Tues. March 21, 2006
827 - many more tests, fixing some bugs and
829 - &extends now loads the base module with
831 - added UNIVERSAL::require to the
834 - each new Moose class will also create
835 and register a subtype of Object which
836 correspond to the new Moose class.
837 - the 'isa' option in &has now only
838 accepts strings, and will DWIM in
841 * Moose::Util::TypeConstraints
842 - added type coercion features
843 - added tests for this
844 - added support for this in attributes
845 and instance construction
847 - type construction no longer creates a
848 function, it registers the type instead.
849 - added several functions to get the
853 - BUILDALL and DEMOLISHALL were broken
854 because of a mis-named hash key, Whoops :)
856 * Moose::Meta::Attribute
857 - adding support for coercion in the
858 autogenerated accessors
861 - adding support for coercion in the
862 instance construction
864 * Moose::Meta::TypeConstraint
865 * Moose::Meta::TypeCoercion
866 - type constraints and coercions are now
867 full fledges meta-objects
869 0.01 Wed. March 15, 2006
870 - Moooooooooooooooooose!!!