1 Revision history for Perl extension Moose
5 - required methods are now fetched using find_method_by_name
6 so that required methods can come from superclasses
7 - adjusted tests for this
9 0.23 Mon. June 18, 2007
10 * Moose::Meta::Method::Constructor
11 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
13 - Modify make_immutable to work with the new Class::MOP immutable
14 mechanism + POD + very basic test (groditi)
15 * Moose::Meta::Attribute
16 - Fix handles to use goto() so that caller() comes out properly on
17 the other side (perigrin)
19 0.22 Thurs. May 31, 2007
20 * Moose::Util::TypeConstraints
21 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
22 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
23 prototypes for functions
24 - added the ClassName type constraint, this checks for strings
25 which will respond true to ->isa(UNIVERSAL).
26 - added tests and docs for this
27 - subtyping just in name now works correctly by making the
28 default for where be { 1 }
31 * Moose::Meta::Method::Accessor
32 - coerce and lazy now work together correctly, thanks to
33 merlyn for finding this bug
34 - tests added for this
35 - fix reader presedence bug in Moose::Meta::Attribute + tests
38 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
39 a HASH-ref and missed. This produces better error messages then
40 having it die cause undef is not a HASH.
41 - added tests for this
43 0.21 Thursday, May 2nd, 2007
45 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
46 - modified unimport to remove super and inner along with the rest
47 - altered unimport tests to handle this
50 - altered super export to populate SUPER_SLOT
53 - altered augment and override modifier application to use *_SLOT
54 - modified tests for these to unimport one test class each to test
57 - fixed issue where custom attribute metaclasses
58 where not handled correctly in roles
59 - added tests for this
62 - fixed issue where extending metaclasses with
63 roles would blow up. Thanks to Aankhen`` for
64 finding this insidious error, and it's solution.
66 ~~ lots of spelling and grammer fixes in the docs,
67 many many thanks to rlb3 and Aankhen for these :)
69 0.20 Friday, April 6th, 2007
70 >> I messed up the SKIP logic in one test
71 so this release is just to fix that.
74 - 'has' now also accepts an ARRAY ref
75 to create multiple attrs (see docs)
76 (thanks to konobi for this)
77 - added tests and docs
79 0.19 Thurs. April 5th, 2007
80 ~~ More documentation updates ~~
82 * Moose::Util::TypeConstraints
83 - 'type' now supports messages as well
84 thanks to phaylon for finding this
85 - added tests for this
86 - added &list_all_type_constraints and
87 &list_all_builtin_type_constraints
88 functions to facilitate introspection.
90 * Moose::Meta::Attribute
91 - fixed regexp 'handles' declarations
92 to build the list of delegated methods
93 correctly (and not override important
94 things like &new) thanks to ashleyb
96 - added tests and docs for this
97 - added the 'documentation' attributes
98 so that you can actually document your
99 attributes and inspect them through the
101 - added tests and docs for this
104 - when loading custom attribute metaclasses
105 it will first look in for the class in the
106 Moose::Meta::Attribute::Custom::$name, and
107 then default to just loading $name.
108 - added tests and docs for this
110 * Moose::Meta::TypeConstraint
111 - type constraints now stringify to their names.
112 - added test for this
115 - added tests to assure we work with Module::Refresh
116 - added stricter test skip logic in the Moose POOP
117 test, ask Rob Kinyon why.
118 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
120 0.18 Sat. March 10, 2007
121 ~~ Many, many documentation updates ~~
124 - We now use Class::MOP::load_class to
126 - added tests to show types and subtypes
127 working with Declare::Constraints::Simple
128 and Test::Deep as constraint engines.
131 !! You must have Class::MOP 0.37_001 !!
132 !! for this developer release to work !!
134 This release was primarily adding the immutable
135 feature to Moose. An immutable class is one which
136 you promise not to alter. When you set the class
137 as immutable it will perform various bits of
138 memoization and inline certain part of the code
139 (constructors, destructors and accessors). This
140 minimizes (and in some cases totally eliminates)
141 one of Moose's biggest performance hits. This
142 feature is not on by default, and is 100% optional.
143 It has several configurable bits as well, so you
144 can pick and choose to your specific needs.
146 The changes involved in this were fairly wide and
147 highly specific, but 100% backwards compatible, so
148 I am not going to enumerate them here. If you are
149 truely interested in what was changed, please do
152 0.17 Tues. Nov. 14, 2006
153 * Moose::Meta::Method::Accessor
154 - bugfix for read-only accessors which
155 are have a type constraint and lazy.
156 Thanks to chansen for finding it.
158 0.16 Tues. Nov. 14, 2006
160 There are some speed improvements in this release,
161 but they are only the begining, so stay tuned.
164 - BUILDALL and DEMOLISHALL no longer get
165 called unless they actually need to be.
166 This gave us a signifigant speed boost
167 for the cases when there is no BUILD or
168 DEMOLISH method present.
170 * Moose::Util::TypeConstraints
171 * Moose::Meta::TypeConstraint
172 - added an 'optimize_as' option to the
173 type constraint, which allows for a
174 hand optimized version of the type
175 constraint to be used when possible.
176 - Any internally created type constraints
177 now provide an optimized version as well.
179 0.15 Sun. Nov. 5, 2006
181 This version of Moose *must* have Class::MOP 0.36 in order
182 to work correctly. A number of small internal tweaks have
183 been made in order to be compatible with that release.
185 * Moose::Util::TypeConstraints
186 - added &unimport so that you can clean out
187 your class namespace of these exported
191 - fixed minor issue which occasionally
192 comes up during global destruction
194 - moved Moose::Meta::Method::Overriden into
198 - moved Moose::Meta::Role::Method into
201 * Moose::Meta::Attribute
202 - changed how we do type checks so that
203 we reduce the overall cost, but still
206 - moved accessor generation methods to
207 Moose::Meta::Method::Accessor to
208 conform to the API changes from
211 * Moose::Meta::TypeConstraint
212 - changed how constraints are compiled
213 so that we do less recursion and more
214 iteration. This makes the type check
216 - moved Moose::Meta::TypeConstraint::Union
219 * Moose::Meta::Method::Accessor
220 - created this from methods formerly found in
221 Moose::Meta::Attribute
223 * Moose::Meta::Role::Method
224 - moved this from Moose::Meta::Role
226 * Moose::Meta::Method::Overriden
227 - moved this from Moose::Meta::Class
229 * Moose::Meta::TypeConstraint::Union
230 - moved this from Moose::Meta::TypeConstraint
232 0.14 Mon. Oct. 9, 2006
234 * Moose::Meta::Attribute
235 - fixed lazy attributes which were not getting
236 checked with the type constraint (thanks ashley)
237 - added tests for this
238 - removed the over-enthusiastic DWIMery of the
239 automatic ArrayRef and HashRef defaults, it
240 broke predicates in an ugly way.
241 - removed tests for this
243 0.13 Sat. Sept. 30, 2006
245 This version of Moose *must* have Class::MOP 0.35 in order
246 to work correctly. A number of small internal tweaks have
247 been made in order to be compatible with that release.
250 - Removed the use of UNIVERSAL::require to be a better
251 symbol table citizen and remove a dependency
252 (thanks Adam Kennedy)
254 **~~ removed experimental & undocumented feature ~~**
255 - commented out the 'method' and 'self' keywords, see the
256 comments for more info.
259 - added a FAQ and WTF files to document frequently
260 asked questions and common problems
262 * Moose::Util::TypeConstraints
263 - added GlobRef and FileHandle type constraint
264 - added tests for this
266 * Moose::Meta::Attribute
267 - if your attribute 'isa' ArrayRef of HashRef, and you have
268 not explicitly set a default, then make the default DWIM.
269 This will also work for subtypes of ArrayRef and HashRef
271 - you can now auto-deref subtypes of ArrayRef or HashRef too.
272 - new test added for this (thanks to ashley)
275 - added basic support for runtime role composition
276 but this is still *highly experimental*, so feedback
277 is much appreciated :)
278 - added tests for this
280 * Moose::Meta::TypeConstraint
281 - the type constraint now handles the coercion process
282 through delegation, this is to support the coercion
285 * Moose::Meta::TypeConstraint::Union
286 - it is now possible for coercions to be performed
288 - added tests for this (thanks to konobi)
290 * Moose::Meta::TypeCoercion
291 - properly capturing error when type constraint
295 - Scalar::Util 1.18 is bad on Win32, so temporarily
296 only require version 1.17 for Win32 and cygwin.
297 (thanks Adam Kennedy)
299 0.12 Sat. Sept. 1, 2006
301 - Recipe5 (subtypes & coercion) has been written
304 - fixed "bad meta" error message to be more descriptive
305 - fixed &unimport to not remove the &inner and &super
306 keywords because we need to localize them.
307 - fixed number of spelling/grammer issues, thanks Theory :)
309 **~~ experimental & undocumented feature ~~**
310 - added the method and self keywords, they are basically
311 just sugar, and they may not stay around.
314 - added &dump method to easily Data::Dumper
317 * Moose::Meta::TypeConstraint
318 - added the &is_a_type_of method to check both the current
319 and the subtype of a method (similar to &isa with classes)
322 - this is now a subclass of Class::MOP::Module, and no longer
323 creates the _role_meta ugliness of before.
324 - fixed tests to reflect this change
326 0.11 Wed. July 12, 2006
328 - added an &unimport method to remove all the keywords
329 that Moose will import, simply add 'no Moose' to the
330 bottom of your class file.
333 - fixed some test failures caused by a forgotten test
336 0.10 Thurs. July 6, 2006
338 - improved error message when loading modules so
339 it is less confusing when you load a role.
340 - added &calculate_all_roles method to
341 Moose::Meta::Class and Moose::Meta::Role
344 This module has been tested against Class::MOP 0.30
345 but it does not yet utilize the optimizations
346 it makes available. Stay tuned for that ;)
348 0.09_03 Fri. June 23, 2006
349 ++ DEVELOPER RELEASE ++
351 - 'use strict' and 'use warnings' are no longer
352 needed in Moose classes, Moose itself will
353 turn them on for you.
354 - added tests for this
355 - moved code from exported subs to private methods
356 in Moose::Meta::Class
359 - as with Moose, strict and warnings are
360 automatically turned on for you.
361 - added tests for this
364 - now handles an edge case for override errors
365 - added tests for this
366 - added some more edge case tests
368 0.09_02 Tues. May 16, 2006
369 ++ DEVELOPER RELEASE ++
371 - added prototypes to the exported subs
375 - added prototypes to the exported subs
378 * Moose::Util::TypeConstraints
379 - cleaned up prototypes for the subs
382 0.09_01 Fri. May 12, 2006
383 ++ DEVELOPER RELEASE ++
384 - This release works in combination with
385 Class::MOP 0.29_01, it is a developer
386 release because it uses the a new
387 instance sub-protocol and a fairly
388 complete Role implementation. It has
389 not yet been optimized, so it slower
390 the the previous CPAN version. This
391 release also lacks good updated docs,
392 the official release will have updated docs.
395 - refactored the keyword exports
396 - 'with' now checks Role validaity and
397 accepts more than one Role at a time
398 - 'extends' makes metaclass adjustments as
399 needed to ensure metaclass compatability
402 - refactored the keyword exports
403 - 'with' now checks Role validaity and
404 accepts more than one Role at a time
406 * Moose::Util::TypeConstraints
407 - added the 'enum' keyword for simple
408 string enumerations which can be used as
410 - see example of usage in t/202_example.t
413 - more careful checking of params to new()
416 - much work done on the role composition
417 - many new tests for conflict detection
418 and composition edge cases
419 - not enough documentation, I suggest
422 * Moose::Meta::Instance
423 - added new Instance metaclass to support
424 the new Class::MOP instance protocol
427 - some small changes to support the new
429 - some small additions to support Roles
431 * Moose::Meta::Attribute
432 - some improvements to the accessor generation code
434 - some small changes to support the new
436 - (still somewhat) experimental delegation support
437 with the 'handles' option
438 - added several tests for this
439 - no docs for this yet
441 0.05 Thurs. April 27, 2006
443 - keywords are now exported with Sub::Exporter
444 thanks to chansen for this commit
445 - has keyword now takes a 'metaclass' option
446 to support custom attribute meta-classes
447 on a per-attribute basis
448 - added tests for this
449 - the 'has' keyword not accepts inherited slot
450 specifications (has '+foo'). This is still an
451 experimental feature and probably not finished
452 see t/038_attribute_inherited_slot_specs.t for
453 more details, or ask about it on #moose
454 - added tests for this
457 - keywords are now exported with Sub::Exporter
459 * Moose::Utils::TypeConstraints
460 - reorganized the type constraint hierarchy, thanks
461 to nothingmuch and chansen for his help and advice
463 - added some tests for this
464 - keywords are now exported with Sub::Exporter
465 thanks to chansen for this commit
468 - due to changes in Class::MOP, we had to change
469 construct_instance (for the better)
471 * Moose::Meta::Attribute
472 - due to changes in Class::MOP, we had to add the
473 initialize_instance_slot method (it's a good thing)
475 * Moose::Meta::TypeConstraint
476 - added type constraint unions
477 - added tests for this
478 - added the is_subtype_of predicate method
479 - added tests for this
481 0.04 Sun. April 16th, 2006
483 - Roles can now consume other roles
484 - added tests for this
485 - Roles can specify required methods now with
486 the requires() keyword
487 - added tests for this
490 - ripped out much of it's guts ,.. much cleaner now
491 - added required methods and correct handling of
492 them in apply() for both classes and roles
493 - added tests for this
494 - no longer adds a does() method to consuming classes
495 it relys on the one in Moose::Object
496 - added roles attribute and some methods to support
497 roles consuming roles
499 * Moose::Meta::Attribute
500 - added support for triggers on attributes
501 - added tests for this
502 - added support for does option on an attribute
503 - added tests for this
506 - added support for attribute triggers in the
508 - added tests for this
511 - Moose no longer creates a subtype for your class
512 if a subtype of the same name already exists, this
513 should DWIM in 99.9999% of all cases
515 * Moose::Util::TypeConstraints
516 - fixed bug where incorrect subtype conflicts were
518 - added test for this
521 - this class can now be extended with 'use base' if
522 you need it, it properly loads the metaclass class now
523 - added test for this
525 0.03_02 Wed. April 12, 2006
527 - you must now explictly use Moose::Util::TypeConstraints
528 it no longer gets exported for you automatically
531 - new() now accepts hash-refs as well as key/value lists
532 - added does() method to check for Roles
533 - added tests for this
536 - added roles attribute along with the add_role() and
538 - added tests for this
541 - now adds a does() method to consuming classes
542 which tests the class's hierarchy for roles
543 - added tests for this
545 0.03_01 Mon. April 10, 2006
547 - added new Role recipe (no content yet, only code)
550 - added 'with' keyword for Role support
551 - added test and docs for this
552 - fixed subtype quoting bug
553 - added test for this
557 - added test and docs
559 * Moose::Util::TypeConstraints
560 - added the message keyword to add custom
561 error messages to type constraints
564 - the meta role to support Moose::Role
565 - added tests and docs
568 - moved a number of things from Moose.pm
569 to here, they should have been here
572 * Moose::Meta::Attribute
573 - moved the attribute option macros here
574 instead of putting them in Moose.pm
576 * Moose::Meta::TypeConstraint
577 - added the message attributes and the
579 - added tests and docs for this
581 0.03 Thurs. March 30, 2006
583 - added the Moose::Cookbook with 5 recipes,
584 describing all the stuff Moose can do.
587 - fixed an issue with &extends super class loading
588 it now captures errors and deals with inline
589 packages correctly (bug found by mst, solution
591 - added super/override & inner/augment features
592 - added tests and docs for these
595 - BUILDALL now takes a reference of the %params
596 that are passed to &new, and passes that to
599 * Moose::Util::TypeConstraints
600 - Type constraints now survive runtime reloading
601 - added test for this
604 - fixed the way attribute defaults are handled
605 during instance construction (bug found by chansen)
607 * Moose::Meta::Attribute
608 - read-only attributes now actually enforce their
609 read-only-ness (this corrected in Class::MOP as
612 0.02 Tues. March 21, 2006
614 - many more tests, fixing some bugs and
616 - &extends now loads the base module with
618 - added UNIVERSAL::require to the
621 - each new Moose class will also create
622 and register a subtype of Object which
623 correspond to the new Moose class.
624 - the 'isa' option in &has now only
625 accepts strings, and will DWIM in
628 * Moose::Util::TypeConstraints
629 - added type coercion features
630 - added tests for this
631 - added support for this in attributes
632 and instance construction
634 - type construction no longer creates a
635 function, it registers the type instead.
636 - added several functions to get the
640 - BUILDALL and DEMOLISHALL were broken
641 because of a mis-named hash key, Whoops :)
643 * Moose::Meta::Attribute
644 - adding support for coercion in the
645 autogenerated accessors
648 - adding support for coercion in the
649 instance construction
651 * Moose::Meta::TypeConstraint
652 * Moose::Meta::TypeCoercion
653 - type constraints and coercions are now
654 full fledges meta-objects
656 0.01 Wed. March 15, 2006
657 - Moooooooooooooooooose!!!