1 Revision history for Perl extension Moose
4 ~ Several doc updates/cleanup thanks to castaway ~
7 - added all the meta classes to the immutable list and
8 set it to inline the accessors
9 - fix import to allow Sub::Exporter like { into => }
10 and { into_level => } (perigrin)
11 - exposed and documented init_meta() to allow better
12 embedding and extending of Moose (perigrin)
15 - complete re-organization of the test suite
16 - added some new tests as well
19 - fixed very odd and very nasty recursion bug with
21 - added tests for this (eilara)
23 * Moose::Util::TypeConstraint
24 - no longer uses package variable to keep track of
25 the type constraints, now uses the an instance of
26 Moose::Meta::TypeConstraint::Registry to do it
28 * Moose::Meta::TypeConstraint
29 - some minor adjustments to make subclassing easier
30 - added the package_defined_in attribute so that we
31 can track where the type constraints are created
33 * Moose::Meta::TypeConstraint::Union
34 - this is not a subclass of Moose::Meta::TypeConstraint
37 * Moose::Meta::TypeConstraint::Container
38 - added this module (taken from MooseX::AttributeHelpers)
39 to help construct nested collection types
40 - added tests for this
42 * Moose::Meta::TypeConstraint::Registry
43 - added this class to keep track of type constraints
45 * Moose::Meta::Attribute
46 Moose::Meta::Method::Constructor
47 Moose::Meta::Method::Accessor
48 - fixed issue with overload::Overloaded getting called
50 - added tests for this
52 * Moose::Coookbook::Snacks
53 - these are bits of documentation, not quite as big as
54 Recipes but which have no clear place in the module docs.
55 So they are Snacks! (horray for castaway++)
57 0.25 Mon. Aug. 13, 2007
59 - Documentation update to reference Moose::Util::TypeConstraints
60 under 'isa' in 'has' for how to define a new type
63 * Moose::Meta::Attribute
64 - required attributes now will no longer accept undef
65 from the constructor, even if there is a default and lazy
66 - added tests for this
67 - default subroutines must return a value which passes the
69 - added tests for this
71 * Moose::Meta::Attribute
72 * Moose::Meta::Method::Constructor
73 * Moose::Meta::Method::Accessor
74 - type-constraint tests now handle overloaded objects correctly
76 - added tests for this (thanks to EvanCarroll)
78 * Moose::Meta::TypeConstraint::Union
79 - added (has_)hand_optimized_constraint to this class so that
80 it behaves as the regular Moose::Meta::TypeConstraint does.
83 - large refactoring of this code
84 - added several more tests
85 - tests for subtle conflict resolition issues
86 added, but not currently running
89 * Moose::Cookbook::Recipe7
90 - added new recipe for augment/inner functionality
95 - a formal definition of roles (still in progress)
98 - utilities for easier working with Moose classes
99 - added tests for these
102 - This contains Moose specific test functions
103 - added tests for these
105 0.24 Tues. July 3, 2007
106 ~ Some doc updates/cleanup ~
108 * Moose::Meta::Attribute
109 - added support for roles to be given as parameters
110 to the 'handles' option.
111 - added tests and docs for this
112 - the has '+foo' attribute form now accepts changes to
113 the lazy option, and the addition of a handles option
114 (but not changing the handles option)
115 - added tests and docs for this
118 - required methods are now fetched using find_method_by_name
119 so that required methods can come from superclasses
120 - adjusted tests for this
122 0.23 Mon. June 18, 2007
123 * Moose::Meta::Method::Constructor
124 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
126 - Modify make_immutable to work with the new Class::MOP immutable
127 mechanism + POD + very basic test (groditi)
128 * Moose::Meta::Attribute
129 - Fix handles to use goto() so that caller() comes out properly on
130 the other side (perigrin)
132 0.22 Thurs. May 31, 2007
133 * Moose::Util::TypeConstraints
134 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
135 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
136 prototypes for functions
137 - added the ClassName type constraint, this checks for strings
138 which will respond true to ->isa(UNIVERSAL).
139 - added tests and docs for this
140 - subtyping just in name now works correctly by making the
141 default for where be { 1 }
142 - added test for this
144 * Moose::Meta::Method::Accessor
145 - coerce and lazy now work together correctly, thanks to
146 merlyn for finding this bug
147 - tests added for this
148 - fix reader presedence bug in Moose::Meta::Attribute + tests
151 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
152 a HASH-ref and missed. This produces better error messages then
153 having it die cause undef is not a HASH.
154 - added tests for this
156 0.21 Thursday, May 2nd, 2007
158 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
159 - modified unimport to remove super and inner along with the rest
160 - altered unimport tests to handle this
163 - altered super export to populate SUPER_SLOT
166 - altered augment and override modifier application to use *_SLOT
167 - modified tests for these to unimport one test class each to test
170 - fixed issue where custom attribute metaclasses
171 where not handled correctly in roles
172 - added tests for this
175 - fixed issue where extending metaclasses with
176 roles would blow up. Thanks to Aankhen`` for
177 finding this insidious error, and it's solution.
179 ~~ lots of spelling and grammer fixes in the docs,
180 many many thanks to rlb3 and Aankhen for these :)
182 0.20 Friday, April 6th, 2007
183 >> I messed up the SKIP logic in one test
184 so this release is just to fix that.
187 - 'has' now also accepts an ARRAY ref
188 to create multiple attrs (see docs)
189 (thanks to konobi for this)
190 - added tests and docs
192 0.19 Thurs. April 5th, 2007
193 ~~ More documentation updates ~~
195 * Moose::Util::TypeConstraints
196 - 'type' now supports messages as well
197 thanks to phaylon for finding this
198 - added tests for this
199 - added &list_all_type_constraints and
200 &list_all_builtin_type_constraints
201 functions to facilitate introspection.
203 * Moose::Meta::Attribute
204 - fixed regexp 'handles' declarations
205 to build the list of delegated methods
206 correctly (and not override important
207 things like &new) thanks to ashleyb
209 - added tests and docs for this
210 - added the 'documentation' attributes
211 so that you can actually document your
212 attributes and inspect them through the
214 - added tests and docs for this
217 - when loading custom attribute metaclasses
218 it will first look in for the class in the
219 Moose::Meta::Attribute::Custom::$name, and
220 then default to just loading $name.
221 - added tests and docs for this
223 * Moose::Meta::TypeConstraint
224 - type constraints now stringify to their names.
225 - added test for this
228 - added tests to assure we work with Module::Refresh
229 - added stricter test skip logic in the Moose POOP
230 test, ask Rob Kinyon why.
231 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
233 0.18 Sat. March 10, 2007
234 ~~ Many, many documentation updates ~~
237 - We now use Class::MOP::load_class to
239 - added tests to show types and subtypes
240 working with Declare::Constraints::Simple
241 and Test::Deep as constraint engines.
244 !! You must have Class::MOP 0.37_001 !!
245 !! for this developer release to work !!
247 This release was primarily adding the immutable
248 feature to Moose. An immutable class is one which
249 you promise not to alter. When you set the class
250 as immutable it will perform various bits of
251 memoization and inline certain part of the code
252 (constructors, destructors and accessors). This
253 minimizes (and in some cases totally eliminates)
254 one of Moose's biggest performance hits. This
255 feature is not on by default, and is 100% optional.
256 It has several configurable bits as well, so you
257 can pick and choose to your specific needs.
259 The changes involved in this were fairly wide and
260 highly specific, but 100% backwards compatible, so
261 I am not going to enumerate them here. If you are
262 truely interested in what was changed, please do
265 0.17 Tues. Nov. 14, 2006
266 * Moose::Meta::Method::Accessor
267 - bugfix for read-only accessors which
268 are have a type constraint and lazy.
269 Thanks to chansen for finding it.
271 0.16 Tues. Nov. 14, 2006
273 There are some speed improvements in this release,
274 but they are only the begining, so stay tuned.
277 - BUILDALL and DEMOLISHALL no longer get
278 called unless they actually need to be.
279 This gave us a signifigant speed boost
280 for the cases when there is no BUILD or
281 DEMOLISH method present.
283 * Moose::Util::TypeConstraints
284 * Moose::Meta::TypeConstraint
285 - added an 'optimize_as' option to the
286 type constraint, which allows for a
287 hand optimized version of the type
288 constraint to be used when possible.
289 - Any internally created type constraints
290 now provide an optimized version as well.
292 0.15 Sun. Nov. 5, 2006
294 This version of Moose *must* have Class::MOP 0.36 in order
295 to work correctly. A number of small internal tweaks have
296 been made in order to be compatible with that release.
298 * Moose::Util::TypeConstraints
299 - added &unimport so that you can clean out
300 your class namespace of these exported
304 - fixed minor issue which occasionally
305 comes up during global destruction
307 - moved Moose::Meta::Method::Overriden into
311 - moved Moose::Meta::Role::Method into
314 * Moose::Meta::Attribute
315 - changed how we do type checks so that
316 we reduce the overall cost, but still
319 - moved accessor generation methods to
320 Moose::Meta::Method::Accessor to
321 conform to the API changes from
324 * Moose::Meta::TypeConstraint
325 - changed how constraints are compiled
326 so that we do less recursion and more
327 iteration. This makes the type check
329 - moved Moose::Meta::TypeConstraint::Union
332 * Moose::Meta::Method::Accessor
333 - created this from methods formerly found in
334 Moose::Meta::Attribute
336 * Moose::Meta::Role::Method
337 - moved this from Moose::Meta::Role
339 * Moose::Meta::Method::Overriden
340 - moved this from Moose::Meta::Class
342 * Moose::Meta::TypeConstraint::Union
343 - moved this from Moose::Meta::TypeConstraint
345 0.14 Mon. Oct. 9, 2006
347 * Moose::Meta::Attribute
348 - fixed lazy attributes which were not getting
349 checked with the type constraint (thanks ashley)
350 - added tests for this
351 - removed the over-enthusiastic DWIMery of the
352 automatic ArrayRef and HashRef defaults, it
353 broke predicates in an ugly way.
354 - removed tests for this
356 0.13 Sat. Sept. 30, 2006
358 This version of Moose *must* have Class::MOP 0.35 in order
359 to work correctly. A number of small internal tweaks have
360 been made in order to be compatible with that release.
363 - Removed the use of UNIVERSAL::require to be a better
364 symbol table citizen and remove a dependency
365 (thanks Adam Kennedy)
367 **~~ removed experimental & undocumented feature ~~**
368 - commented out the 'method' and 'self' keywords, see the
369 comments for more info.
372 - added a FAQ and WTF files to document frequently
373 asked questions and common problems
375 * Moose::Util::TypeConstraints
376 - added GlobRef and FileHandle type constraint
377 - added tests for this
379 * Moose::Meta::Attribute
380 - if your attribute 'isa' ArrayRef of HashRef, and you have
381 not explicitly set a default, then make the default DWIM.
382 This will also work for subtypes of ArrayRef and HashRef
384 - you can now auto-deref subtypes of ArrayRef or HashRef too.
385 - new test added for this (thanks to ashley)
388 - added basic support for runtime role composition
389 but this is still *highly experimental*, so feedback
390 is much appreciated :)
391 - added tests for this
393 * Moose::Meta::TypeConstraint
394 - the type constraint now handles the coercion process
395 through delegation, this is to support the coercion
398 * Moose::Meta::TypeConstraint::Union
399 - it is now possible for coercions to be performed
401 - added tests for this (thanks to konobi)
403 * Moose::Meta::TypeCoercion
404 - properly capturing error when type constraint
408 - Scalar::Util 1.18 is bad on Win32, so temporarily
409 only require version 1.17 for Win32 and cygwin.
410 (thanks Adam Kennedy)
412 0.12 Sat. Sept. 1, 2006
414 - Recipe5 (subtypes & coercion) has been written
417 - fixed "bad meta" error message to be more descriptive
418 - fixed &unimport to not remove the &inner and &super
419 keywords because we need to localize them.
420 - fixed number of spelling/grammer issues, thanks Theory :)
422 **~~ experimental & undocumented feature ~~**
423 - added the method and self keywords, they are basically
424 just sugar, and they may not stay around.
427 - added &dump method to easily Data::Dumper
430 * Moose::Meta::TypeConstraint
431 - added the &is_a_type_of method to check both the current
432 and the subtype of a method (similar to &isa with classes)
435 - this is now a subclass of Class::MOP::Module, and no longer
436 creates the _role_meta ugliness of before.
437 - fixed tests to reflect this change
439 0.11 Wed. July 12, 2006
441 - added an &unimport method to remove all the keywords
442 that Moose will import, simply add 'no Moose' to the
443 bottom of your class file.
446 - fixed some test failures caused by a forgotten test
449 0.10 Thurs. July 6, 2006
451 - improved error message when loading modules so
452 it is less confusing when you load a role.
453 - added &calculate_all_roles method to
454 Moose::Meta::Class and Moose::Meta::Role
457 This module has been tested against Class::MOP 0.30
458 but it does not yet utilize the optimizations
459 it makes available. Stay tuned for that ;)
461 0.09_03 Fri. June 23, 2006
462 ++ DEVELOPER RELEASE ++
464 - 'use strict' and 'use warnings' are no longer
465 needed in Moose classes, Moose itself will
466 turn them on for you.
467 - added tests for this
468 - moved code from exported subs to private methods
469 in Moose::Meta::Class
472 - as with Moose, strict and warnings are
473 automatically turned on for you.
474 - added tests for this
477 - now handles an edge case for override errors
478 - added tests for this
479 - added some more edge case tests
481 0.09_02 Tues. May 16, 2006
482 ++ DEVELOPER RELEASE ++
484 - added prototypes to the exported subs
488 - added prototypes to the exported subs
491 * Moose::Util::TypeConstraints
492 - cleaned up prototypes for the subs
495 0.09_01 Fri. May 12, 2006
496 ++ DEVELOPER RELEASE ++
497 - This release works in combination with
498 Class::MOP 0.29_01, it is a developer
499 release because it uses the a new
500 instance sub-protocol and a fairly
501 complete Role implementation. It has
502 not yet been optimized, so it slower
503 the the previous CPAN version. This
504 release also lacks good updated docs,
505 the official release will have updated docs.
508 - refactored the keyword exports
509 - 'with' now checks Role validaity and
510 accepts more than one Role at a time
511 - 'extends' makes metaclass adjustments as
512 needed to ensure metaclass compatability
515 - refactored the keyword exports
516 - 'with' now checks Role validaity and
517 accepts more than one Role at a time
519 * Moose::Util::TypeConstraints
520 - added the 'enum' keyword for simple
521 string enumerations which can be used as
523 - see example of usage in t/202_example.t
526 - more careful checking of params to new()
529 - much work done on the role composition
530 - many new tests for conflict detection
531 and composition edge cases
532 - not enough documentation, I suggest
535 * Moose::Meta::Instance
536 - added new Instance metaclass to support
537 the new Class::MOP instance protocol
540 - some small changes to support the new
542 - some small additions to support Roles
544 * Moose::Meta::Attribute
545 - some improvements to the accessor generation code
547 - some small changes to support the new
549 - (still somewhat) experimental delegation support
550 with the 'handles' option
551 - added several tests for this
552 - no docs for this yet
554 0.05 Thurs. April 27, 2006
556 - keywords are now exported with Sub::Exporter
557 thanks to chansen for this commit
558 - has keyword now takes a 'metaclass' option
559 to support custom attribute meta-classes
560 on a per-attribute basis
561 - added tests for this
562 - the 'has' keyword not accepts inherited slot
563 specifications (has '+foo'). This is still an
564 experimental feature and probably not finished
565 see t/038_attribute_inherited_slot_specs.t for
566 more details, or ask about it on #moose
567 - added tests for this
570 - keywords are now exported with Sub::Exporter
572 * Moose::Utils::TypeConstraints
573 - reorganized the type constraint hierarchy, thanks
574 to nothingmuch and chansen for his help and advice
576 - added some tests for this
577 - keywords are now exported with Sub::Exporter
578 thanks to chansen for this commit
581 - due to changes in Class::MOP, we had to change
582 construct_instance (for the better)
584 * Moose::Meta::Attribute
585 - due to changes in Class::MOP, we had to add the
586 initialize_instance_slot method (it's a good thing)
588 * Moose::Meta::TypeConstraint
589 - added type constraint unions
590 - added tests for this
591 - added the is_subtype_of predicate method
592 - added tests for this
594 0.04 Sun. April 16th, 2006
596 - Roles can now consume other roles
597 - added tests for this
598 - Roles can specify required methods now with
599 the requires() keyword
600 - added tests for this
603 - ripped out much of it's guts ,.. much cleaner now
604 - added required methods and correct handling of
605 them in apply() for both classes and roles
606 - added tests for this
607 - no longer adds a does() method to consuming classes
608 it relys on the one in Moose::Object
609 - added roles attribute and some methods to support
610 roles consuming roles
612 * Moose::Meta::Attribute
613 - added support for triggers on attributes
614 - added tests for this
615 - added support for does option on an attribute
616 - added tests for this
619 - added support for attribute triggers in the
621 - added tests for this
624 - Moose no longer creates a subtype for your class
625 if a subtype of the same name already exists, this
626 should DWIM in 99.9999% of all cases
628 * Moose::Util::TypeConstraints
629 - fixed bug where incorrect subtype conflicts were
631 - added test for this
634 - this class can now be extended with 'use base' if
635 you need it, it properly loads the metaclass class now
636 - added test for this
638 0.03_02 Wed. April 12, 2006
640 - you must now explictly use Moose::Util::TypeConstraints
641 it no longer gets exported for you automatically
644 - new() now accepts hash-refs as well as key/value lists
645 - added does() method to check for Roles
646 - added tests for this
649 - added roles attribute along with the add_role() and
651 - added tests for this
654 - now adds a does() method to consuming classes
655 which tests the class's hierarchy for roles
656 - added tests for this
658 0.03_01 Mon. April 10, 2006
660 - added new Role recipe (no content yet, only code)
663 - added 'with' keyword for Role support
664 - added test and docs for this
665 - fixed subtype quoting bug
666 - added test for this
670 - added test and docs
672 * Moose::Util::TypeConstraints
673 - added the message keyword to add custom
674 error messages to type constraints
677 - the meta role to support Moose::Role
678 - added tests and docs
681 - moved a number of things from Moose.pm
682 to here, they should have been here
685 * Moose::Meta::Attribute
686 - moved the attribute option macros here
687 instead of putting them in Moose.pm
689 * Moose::Meta::TypeConstraint
690 - added the message attributes and the
692 - added tests and docs for this
694 0.03 Thurs. March 30, 2006
696 - added the Moose::Cookbook with 5 recipes,
697 describing all the stuff Moose can do.
700 - fixed an issue with &extends super class loading
701 it now captures errors and deals with inline
702 packages correctly (bug found by mst, solution
704 - added super/override & inner/augment features
705 - added tests and docs for these
708 - BUILDALL now takes a reference of the %params
709 that are passed to &new, and passes that to
712 * Moose::Util::TypeConstraints
713 - Type constraints now survive runtime reloading
714 - added test for this
717 - fixed the way attribute defaults are handled
718 during instance construction (bug found by chansen)
720 * Moose::Meta::Attribute
721 - read-only attributes now actually enforce their
722 read-only-ness (this corrected in Class::MOP as
725 0.02 Tues. March 21, 2006
727 - many more tests, fixing some bugs and
729 - &extends now loads the base module with
731 - added UNIVERSAL::require to the
734 - each new Moose class will also create
735 and register a subtype of Object which
736 correspond to the new Moose class.
737 - the 'isa' option in &has now only
738 accepts strings, and will DWIM in
741 * Moose::Util::TypeConstraints
742 - added type coercion features
743 - added tests for this
744 - added support for this in attributes
745 and instance construction
747 - type construction no longer creates a
748 function, it registers the type instead.
749 - added several functions to get the
753 - BUILDALL and DEMOLISHALL were broken
754 because of a mis-named hash key, Whoops :)
756 * Moose::Meta::Attribute
757 - adding support for coercion in the
758 autogenerated accessors
761 - adding support for coercion in the
762 instance construction
764 * Moose::Meta::TypeConstraint
765 * Moose::Meta::TypeCoercion
766 - type constraints and coercions are now
767 full fledges meta-objects
769 0.01 Wed. March 15, 2006
770 - Moooooooooooooooooose!!!