1 Revision history for Perl extension Moose
3 0.23 Mon. June 18, 2007
4 * Moose::Meta::Method::Constructor
5 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
7 - Modify make_immutable to work with the new Class::MOP immutable
8 mechanism + POD + very basic test (groditi)
9 * Moose::Meta::Attribute
10 - Fix handles to use goto() so that caller() comes out properly on
11 the other side (perigrin)
13 0.22 Thurs. May 31, 2007
14 * Moose::Util::TypeConstraints
15 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
16 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
17 prototypes for functions
18 - added the ClassName type constraint, this checks for strings
19 which will respond true to ->isa(UNIVERSAL).
20 - added tests and docs for this
21 - subtyping just in name now works correctly by making the
22 default for where be { 1 }
25 * Moose::Meta::Method::Accessor
26 - coerce and lazy now work together correctly, thanks to
27 merlyn for finding this bug
28 - tests added for this
29 - fix reader presedence bug in Moose::Meta::Attribute + tests
32 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
33 a HASH-ref and missed. This produces better error messages then
34 having it die cause undef is not a HASH.
35 - added tests for this
37 0.21 Thursday, May 2nd, 2007
39 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
40 - modified unimport to remove super and inner along with the rest
41 - altered unimport tests to handle this
44 - altered super export to populate SUPER_SLOT
47 - altered augment and override modifier application to use *_SLOT
48 - modified tests for these to unimport one test class each to test
51 - fixed issue where custom attribute metaclasses
52 where not handled correctly in roles
53 - added tests for this
56 - fixed issue where extending metaclasses with
57 roles would blow up. Thanks to Aankhen`` for
58 finding this insidious error, and it's solution.
60 ~~ lots of spelling and grammer fixes in the docs,
61 many many thanks to rlb3 and Aankhen for these :)
63 0.20 Friday, April 6th, 2007
64 >> I messed up the SKIP logic in one test
65 so this release is just to fix that.
68 - 'has' now also accepts an ARRAY ref
69 to create multiple attrs (see docs)
70 (thanks to konobi for this)
71 - added tests and docs
73 0.19 Thurs. April 5th, 2007
74 ~~ More documentation updates ~~
76 * Moose::Util::TypeConstraints
77 - 'type' now supports messages as well
78 thanks to phaylon for finding this
79 - added tests for this
80 - added &list_all_type_constraints and
81 &list_all_builtin_type_constraints
82 functions to facilitate introspection.
84 * Moose::Meta::Attribute
85 - fixed regexp 'handles' declarations
86 to build the list of delegated methods
87 correctly (and not override important
88 things like &new) thanks to ashleyb
90 - added tests and docs for this
91 - added the 'documentation' attributes
92 so that you can actually document your
93 attributes and inspect them through the
95 - added tests and docs for this
98 - when loading custom attribute metaclasses
99 it will first look in for the class in the
100 Moose::Meta::Attribute::Custom::$name, and
101 then default to just loading $name.
102 - added tests and docs for this
104 * Moose::Meta::TypeConstraint
105 - type constraints now stringify to their names.
106 - added test for this
109 - added tests to assure we work with Module::Refresh
110 - added stricter test skip logic in the Moose POOP
111 test, ask Rob Kinyon why.
112 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
114 0.18 Sat. March 10, 2007
115 ~~ Many, many documentation updates ~~
118 - We now use Class::MOP::load_class to
120 - added tests to show types and subtypes
121 working with Declare::Constraints::Simple
122 and Test::Deep as constraint engines.
125 !! You must have Class::MOP 0.37_001 !!
126 !! for this developer release to work !!
128 This release was primarily adding the immutable
129 feature to Moose. An immutable class is one which
130 you promise not to alter. When you set the class
131 as immutable it will perform various bits of
132 memoization and inline certain part of the code
133 (constructors, destructors and accessors). This
134 minimizes (and in some cases totally eliminates)
135 one of Moose's biggest performance hits. This
136 feature is not on by default, and is 100% optional.
137 It has several configurable bits as well, so you
138 can pick and choose to your specific needs.
140 The changes involved in this were fairly wide and
141 highly specific, but 100% backwards compatible, so
142 I am not going to enumerate them here. If you are
143 truely interested in what was changed, please do
146 0.17 Tues. Nov. 14, 2006
147 * Moose::Meta::Method::Accessor
148 - bugfix for read-only accessors which
149 are have a type constraint and lazy.
150 Thanks to chansen for finding it.
152 0.16 Tues. Nov. 14, 2006
154 There are some speed improvements in this release,
155 but they are only the begining, so stay tuned.
158 - BUILDALL and DEMOLISHALL no longer get
159 called unless they actually need to be.
160 This gave us a signifigant speed boost
161 for the cases when there is no BUILD or
162 DEMOLISH method present.
164 * Moose::Util::TypeConstraints
165 * Moose::Meta::TypeConstraint
166 - added an 'optimize_as' option to the
167 type constraint, which allows for a
168 hand optimized version of the type
169 constraint to be used when possible.
170 - Any internally created type constraints
171 now provide an optimized version as well.
173 0.15 Sun. Nov. 5, 2006
175 This version of Moose *must* have Class::MOP 0.36 in order
176 to work correctly. A number of small internal tweaks have
177 been made in order to be compatible with that release.
179 * Moose::Util::TypeConstraints
180 - added &unimport so that you can clean out
181 your class namespace of these exported
185 - fixed minor issue which occasionally
186 comes up during global destruction
188 - moved Moose::Meta::Method::Overriden into
192 - moved Moose::Meta::Role::Method into
195 * Moose::Meta::Attribute
196 - changed how we do type checks so that
197 we reduce the overall cost, but still
200 - moved accessor generation methods to
201 Moose::Meta::Method::Accessor to
202 conform to the API changes from
205 * Moose::Meta::TypeConstraint
206 - changed how constraints are compiled
207 so that we do less recursion and more
208 iteration. This makes the type check
210 - moved Moose::Meta::TypeConstraint::Union
213 * Moose::Meta::Method::Accessor
214 - created this from methods formerly found in
215 Moose::Meta::Attribute
217 * Moose::Meta::Role::Method
218 - moved this from Moose::Meta::Role
220 * Moose::Meta::Method::Overriden
221 - moved this from Moose::Meta::Class
223 * Moose::Meta::TypeConstraint::Union
224 - moved this from Moose::Meta::TypeConstraint
226 0.14 Mon. Oct. 9, 2006
228 * Moose::Meta::Attribute
229 - fixed lazy attributes which were not getting
230 checked with the type constraint (thanks ashley)
231 - added tests for this
232 - removed the over-enthusiastic DWIMery of the
233 automatic ArrayRef and HashRef defaults, it
234 broke predicates in an ugly way.
235 - removed tests for this
237 0.13 Sat. Sept. 30, 2006
239 This version of Moose *must* have Class::MOP 0.35 in order
240 to work correctly. A number of small internal tweaks have
241 been made in order to be compatible with that release.
244 - Removed the use of UNIVERSAL::require to be a better
245 symbol table citizen and remove a dependency
246 (thanks Adam Kennedy)
248 **~~ removed experimental & undocumented feature ~~**
249 - commented out the 'method' and 'self' keywords, see the
250 comments for more info.
253 - added a FAQ and WTF files to document frequently
254 asked questions and common problems
256 * Moose::Util::TypeConstraints
257 - added GlobRef and FileHandle type constraint
258 - added tests for this
260 * Moose::Meta::Attribute
261 - if your attribute 'isa' ArrayRef of HashRef, and you have
262 not explicitly set a default, then make the default DWIM.
263 This will also work for subtypes of ArrayRef and HashRef
265 - you can now auto-deref subtypes of ArrayRef or HashRef too.
266 - new test added for this (thanks to ashley)
269 - added basic support for runtime role composition
270 but this is still *highly experimental*, so feedback
271 is much appreciated :)
272 - added tests for this
274 * Moose::Meta::TypeConstraint
275 - the type constraint now handles the coercion process
276 through delegation, this is to support the coercion
279 * Moose::Meta::TypeConstraint::Union
280 - it is now possible for coercions to be performed
282 - added tests for this (thanks to konobi)
284 * Moose::Meta::TypeCoercion
285 - properly capturing error when type constraint
289 - Scalar::Util 1.18 is bad on Win32, so temporarily
290 only require version 1.17 for Win32 and cygwin.
291 (thanks Adam Kennedy)
293 0.12 Sat. Sept. 1, 2006
295 - Recipe5 (subtypes & coercion) has been written
298 - fixed "bad meta" error message to be more descriptive
299 - fixed &unimport to not remove the &inner and &super
300 keywords because we need to localize them.
301 - fixed number of spelling/grammer issues, thanks Theory :)
303 **~~ experimental & undocumented feature ~~**
304 - added the method and self keywords, they are basically
305 just sugar, and they may not stay around.
308 - added &dump method to easily Data::Dumper
311 * Moose::Meta::TypeConstraint
312 - added the &is_a_type_of method to check both the current
313 and the subtype of a method (similar to &isa with classes)
316 - this is now a subclass of Class::MOP::Module, and no longer
317 creates the _role_meta ugliness of before.
318 - fixed tests to reflect this change
320 0.11 Wed. July 12, 2006
322 - added an &unimport method to remove all the keywords
323 that Moose will import, simply add 'no Moose' to the
324 bottom of your class file.
327 - fixed some test failures caused by a forgotten test
330 0.10 Thurs. July 6, 2006
332 - improved error message when loading modules so
333 it is less confusing when you load a role.
334 - added &calculate_all_roles method to
335 Moose::Meta::Class and Moose::Meta::Role
338 This module has been tested against Class::MOP 0.30
339 but it does not yet utilize the optimizations
340 it makes available. Stay tuned for that ;)
342 0.09_03 Fri. June 23, 2006
343 ++ DEVELOPER RELEASE ++
345 - 'use strict' and 'use warnings' are no longer
346 needed in Moose classes, Moose itself will
347 turn them on for you.
348 - added tests for this
349 - moved code from exported subs to private methods
350 in Moose::Meta::Class
353 - as with Moose, strict and warnings are
354 automatically turned on for you.
355 - added tests for this
358 - now handles an edge case for override errors
359 - added tests for this
360 - added some more edge case tests
362 0.09_02 Tues. May 16, 2006
363 ++ DEVELOPER RELEASE ++
365 - added prototypes to the exported subs
369 - added prototypes to the exported subs
372 * Moose::Util::TypeConstraints
373 - cleaned up prototypes for the subs
376 0.09_01 Fri. May 12, 2006
377 ++ DEVELOPER RELEASE ++
378 - This release works in combination with
379 Class::MOP 0.29_01, it is a developer
380 release because it uses the a new
381 instance sub-protocol and a fairly
382 complete Role implementation. It has
383 not yet been optimized, so it slower
384 the the previous CPAN version. This
385 release also lacks good updated docs,
386 the official release will have updated docs.
389 - refactored the keyword exports
390 - 'with' now checks Role validaity and
391 accepts more than one Role at a time
392 - 'extends' makes metaclass adjustments as
393 needed to ensure metaclass compatability
396 - refactored the keyword exports
397 - 'with' now checks Role validaity and
398 accepts more than one Role at a time
400 * Moose::Util::TypeConstraints
401 - added the 'enum' keyword for simple
402 string enumerations which can be used as
404 - see example of usage in t/202_example.t
407 - more careful checking of params to new()
410 - much work done on the role composition
411 - many new tests for conflict detection
412 and composition edge cases
413 - not enough documentation, I suggest
416 * Moose::Meta::Instance
417 - added new Instance metaclass to support
418 the new Class::MOP instance protocol
421 - some small changes to support the new
423 - some small additions to support Roles
425 * Moose::Meta::Attribute
426 - some improvements to the accessor generation code
428 - some small changes to support the new
430 - (still somewhat) experimental delegation support
431 with the 'handles' option
432 - added several tests for this
433 - no docs for this yet
435 0.05 Thurs. April 27, 2006
437 - keywords are now exported with Sub::Exporter
438 thanks to chansen for this commit
439 - has keyword now takes a 'metaclass' option
440 to support custom attribute meta-classes
441 on a per-attribute basis
442 - added tests for this
443 - the 'has' keyword not accepts inherited slot
444 specifications (has '+foo'). This is still an
445 experimental feature and probably not finished
446 see t/038_attribute_inherited_slot_specs.t for
447 more details, or ask about it on #moose
448 - added tests for this
451 - keywords are now exported with Sub::Exporter
453 * Moose::Utils::TypeConstraints
454 - reorganized the type constraint hierarchy, thanks
455 to nothingmuch and chansen for his help and advice
457 - added some tests for this
458 - keywords are now exported with Sub::Exporter
459 thanks to chansen for this commit
462 - due to changes in Class::MOP, we had to change
463 construct_instance (for the better)
465 * Moose::Meta::Attribute
466 - due to changes in Class::MOP, we had to add the
467 initialize_instance_slot method (it's a good thing)
469 * Moose::Meta::TypeConstraint
470 - added type constraint unions
471 - added tests for this
472 - added the is_subtype_of predicate method
473 - added tests for this
475 0.04 Sun. April 16th, 2006
477 - Roles can now consume other roles
478 - added tests for this
479 - Roles can specify required methods now with
480 the requires() keyword
481 - added tests for this
484 - ripped out much of it's guts ,.. much cleaner now
485 - added required methods and correct handling of
486 them in apply() for both classes and roles
487 - added tests for this
488 - no longer adds a does() method to consuming classes
489 it relys on the one in Moose::Object
490 - added roles attribute and some methods to support
491 roles consuming roles
493 * Moose::Meta::Attribute
494 - added support for triggers on attributes
495 - added tests for this
496 - added support for does option on an attribute
497 - added tests for this
500 - added support for attribute triggers in the
502 - added tests for this
505 - Moose no longer creates a subtype for your class
506 if a subtype of the same name already exists, this
507 should DWIM in 99.9999% of all cases
509 * Moose::Util::TypeConstraints
510 - fixed bug where incorrect subtype conflicts were
512 - added test for this
515 - this class can now be extended with 'use base' if
516 you need it, it properly loads the metaclass class now
517 - added test for this
519 0.03_02 Wed. April 12, 2006
521 - you must now explictly use Moose::Util::TypeConstraints
522 it no longer gets exported for you automatically
525 - new() now accepts hash-refs as well as key/value lists
526 - added does() method to check for Roles
527 - added tests for this
530 - added roles attribute along with the add_role() and
532 - added tests for this
535 - now adds a does() method to consuming classes
536 which tests the class's hierarchy for roles
537 - added tests for this
539 0.03_01 Mon. April 10, 2006
541 - added new Role recipe (no content yet, only code)
544 - added 'with' keyword for Role support
545 - added test and docs for this
546 - fixed subtype quoting bug
547 - added test for this
551 - added test and docs
553 * Moose::Util::TypeConstraints
554 - added the message keyword to add custom
555 error messages to type constraints
558 - the meta role to support Moose::Role
559 - added tests and docs
562 - moved a number of things from Moose.pm
563 to here, they should have been here
566 * Moose::Meta::Attribute
567 - moved the attribute option macros here
568 instead of putting them in Moose.pm
570 * Moose::Meta::TypeConstraint
571 - added the message attributes and the
573 - added tests and docs for this
575 0.03 Thurs. March 30, 2006
577 - added the Moose::Cookbook with 5 recipes,
578 describing all the stuff Moose can do.
581 - fixed an issue with &extends super class loading
582 it now captures errors and deals with inline
583 packages correctly (bug found by mst, solution
585 - added super/override & inner/augment features
586 - added tests and docs for these
589 - BUILDALL now takes a reference of the %params
590 that are passed to &new, and passes that to
593 * Moose::Util::TypeConstraints
594 - Type constraints now survive runtime reloading
595 - added test for this
598 - fixed the way attribute defaults are handled
599 during instance construction (bug found by chansen)
601 * Moose::Meta::Attribute
602 - read-only attributes now actually enforce their
603 read-only-ness (this corrected in Class::MOP as
606 0.02 Tues. March 21, 2006
608 - many more tests, fixing some bugs and
610 - &extends now loads the base module with
612 - added UNIVERSAL::require to the
615 - each new Moose class will also create
616 and register a subtype of Object which
617 correspond to the new Moose class.
618 - the 'isa' option in &has now only
619 accepts strings, and will DWIM in
622 * Moose::Util::TypeConstraints
623 - added type coercion features
624 - added tests for this
625 - added support for this in attributes
626 and instance construction
628 - type construction no longer creates a
629 function, it registers the type instead.
630 - added several functions to get the
634 - BUILDALL and DEMOLISHALL were broken
635 because of a mis-named hash key, Whoops :)
637 * Moose::Meta::Attribute
638 - adding support for coercion in the
639 autogenerated accessors
642 - adding support for coercion in the
643 instance construction
645 * Moose::Meta::TypeConstraint
646 * Moose::Meta::TypeCoercion
647 - type constraints and coercions are now
648 full fledges meta-objects
650 0.01 Wed. March 15, 2006
651 - Moooooooooooooooooose!!!