1 Revision history for Perl extension Moose
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)
10 0.22 Thurs. May 31, 2007
11 * Moose::Util::TypeConstraints
12 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
13 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
14 prototypes for functions
15 - added the ClassName type constraint, this checks for strings
16 which will respond true to ->isa(UNIVERSAL).
17 - added tests and docs for this
18 - subtyping just in name now works correctly by making the
19 default for where be { 1 }
22 * Moose::Meta::Method::Accessor
23 - coerce and lazy now work together correctly, thanks to
24 merlyn for finding this bug
25 - tests added for this
26 - fix reader presedence bug in Moose::Meta::Attribute + tests
29 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
30 a HASH-ref and missed. This produces better error messages then
31 having it die cause undef is not a HASH.
32 - added tests for this
34 0.21 Thursday, May 2nd, 2007
36 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
37 - modified unimport to remove super and inner along with the rest
38 - altered unimport tests to handle this
41 - altered super export to populate SUPER_SLOT
44 - altered augment and override modifier application to use *_SLOT
45 - modified tests for these to unimport one test class each to test
48 - fixed issue where custom attribute metaclasses
49 where not handled correctly in roles
50 - added tests for this
53 - fixed issue where extending metaclasses with
54 roles would blow up. Thanks to Aankhen`` for
55 finding this insidious error, and it's solution.
57 ~~ lots of spelling and grammer fixes in the docs,
58 many many thanks to rlb3 and Aankhen for these :)
60 0.20 Friday, April 6th, 2007
61 >> I messed up the SKIP logic in one test
62 so this release is just to fix that.
65 - 'has' now also accepts an ARRAY ref
66 to create multiple attrs (see docs)
67 (thanks to konobi for this)
68 - added tests and docs
70 0.19 Thurs. April 5th, 2007
71 ~~ More documentation updates ~~
73 * Moose::Util::TypeConstraints
74 - 'type' now supports messages as well
75 thanks to phaylon for finding this
76 - added tests for this
77 - added &list_all_type_constraints and
78 &list_all_builtin_type_constraints
79 functions to facilitate introspection.
81 * Moose::Meta::Attribute
82 - fixed regexp 'handles' declarations
83 to build the list of delegated methods
84 correctly (and not override important
85 things like &new) thanks to ashleyb
87 - added tests and docs for this
88 - added the 'documentation' attributes
89 so that you can actually document your
90 attributes and inspect them through the
92 - added tests and docs for this
95 - when loading custom attribute metaclasses
96 it will first look in for the class in the
97 Moose::Meta::Attribute::Custom::$name, and
98 then default to just loading $name.
99 - added tests and docs for this
101 * Moose::Meta::TypeConstraint
102 - type constraints now stringify to their names.
103 - added test for this
106 - added tests to assure we work with Module::Refresh
107 - added stricter test skip logic in the Moose POOP
108 test, ask Rob Kinyon why.
109 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
111 0.18 Sat. March 10, 2007
112 ~~ Many, many documentation updates ~~
115 - We now use Class::MOP::load_class to
117 - added tests to show types and subtypes
118 working with Declare::Constraints::Simple
119 and Test::Deep as constraint engines.
122 !! You must have Class::MOP 0.37_001 !!
123 !! for this developer release to work !!
125 This release was primarily adding the immutable
126 feature to Moose. An immutable class is one which
127 you promise not to alter. When you set the class
128 as immutable it will perform various bits of
129 memoization and inline certain part of the code
130 (constructors, destructors and accessors). This
131 minimizes (and in some cases totally eliminates)
132 one of Moose's biggest performance hits. This
133 feature is not on by default, and is 100% optional.
134 It has several configurable bits as well, so you
135 can pick and choose to your specific needs.
137 The changes involved in this were fairly wide and
138 highly specific, but 100% backwards compatible, so
139 I am not going to enumerate them here. If you are
140 truely interested in what was changed, please do
143 0.17 Tues. Nov. 14, 2006
144 * Moose::Meta::Method::Accessor
145 - bugfix for read-only accessors which
146 are have a type constraint and lazy.
147 Thanks to chansen for finding it.
149 0.16 Tues. Nov. 14, 2006
151 There are some speed improvements in this release,
152 but they are only the begining, so stay tuned.
155 - BUILDALL and DEMOLISHALL no longer get
156 called unless they actually need to be.
157 This gave us a signifigant speed boost
158 for the cases when there is no BUILD or
159 DEMOLISH method present.
161 * Moose::Util::TypeConstraints
162 * Moose::Meta::TypeConstraint
163 - added an 'optimize_as' option to the
164 type constraint, which allows for a
165 hand optimized version of the type
166 constraint to be used when possible.
167 - Any internally created type constraints
168 now provide an optimized version as well.
170 0.15 Sun. Nov. 5, 2006
172 This version of Moose *must* have Class::MOP 0.36 in order
173 to work correctly. A number of small internal tweaks have
174 been made in order to be compatible with that release.
176 * Moose::Util::TypeConstraints
177 - added &unimport so that you can clean out
178 your class namespace of these exported
182 - fixed minor issue which occasionally
183 comes up during global destruction
185 - moved Moose::Meta::Method::Overriden into
189 - moved Moose::Meta::Role::Method into
192 * Moose::Meta::Attribute
193 - changed how we do type checks so that
194 we reduce the overall cost, but still
197 - moved accessor generation methods to
198 Moose::Meta::Method::Accessor to
199 conform to the API changes from
202 * Moose::Meta::TypeConstraint
203 - changed how constraints are compiled
204 so that we do less recursion and more
205 iteration. This makes the type check
207 - moved Moose::Meta::TypeConstraint::Union
210 * Moose::Meta::Method::Accessor
211 - created this from methods formerly found in
212 Moose::Meta::Attribute
214 * Moose::Meta::Role::Method
215 - moved this from Moose::Meta::Role
217 * Moose::Meta::Method::Overriden
218 - moved this from Moose::Meta::Class
220 * Moose::Meta::TypeConstraint::Union
221 - moved this from Moose::Meta::TypeConstraint
223 0.14 Mon. Oct. 9, 2006
225 * Moose::Meta::Attribute
226 - fixed lazy attributes which were not getting
227 checked with the type constraint (thanks ashley)
228 - added tests for this
229 - removed the over-enthusiastic DWIMery of the
230 automatic ArrayRef and HashRef defaults, it
231 broke predicates in an ugly way.
232 - removed tests for this
234 0.13 Sat. Sept. 30, 2006
236 This version of Moose *must* have Class::MOP 0.35 in order
237 to work correctly. A number of small internal tweaks have
238 been made in order to be compatible with that release.
241 - Removed the use of UNIVERSAL::require to be a better
242 symbol table citizen and remove a dependency
243 (thanks Adam Kennedy)
245 **~~ removed experimental & undocumented feature ~~**
246 - commented out the 'method' and 'self' keywords, see the
247 comments for more info.
250 - added a FAQ and WTF files to document frequently
251 asked questions and common problems
253 * Moose::Util::TypeConstraints
254 - added GlobRef and FileHandle type constraint
255 - added tests for this
257 * Moose::Meta::Attribute
258 - if your attribute 'isa' ArrayRef of HashRef, and you have
259 not explicitly set a default, then make the default DWIM.
260 This will also work for subtypes of ArrayRef and HashRef
262 - you can now auto-deref subtypes of ArrayRef or HashRef too.
263 - new test added for this (thanks to ashley)
266 - added basic support for runtime role composition
267 but this is still *highly experimental*, so feedback
268 is much appreciated :)
269 - added tests for this
271 * Moose::Meta::TypeConstraint
272 - the type constraint now handles the coercion process
273 through delegation, this is to support the coercion
276 * Moose::Meta::TypeConstraint::Union
277 - it is now possible for coercions to be performed
279 - added tests for this (thanks to konobi)
281 * Moose::Meta::TypeCoercion
282 - properly capturing error when type constraint
286 - Scalar::Util 1.18 is bad on Win32, so temporarily
287 only require version 1.17 for Win32 and cygwin.
288 (thanks Adam Kennedy)
290 0.12 Sat. Sept. 1, 2006
292 - Recipe5 (subtypes & coercion) has been written
295 - fixed "bad meta" error message to be more descriptive
296 - fixed &unimport to not remove the &inner and &super
297 keywords because we need to localize them.
298 - fixed number of spelling/grammer issues, thanks Theory :)
300 **~~ experimental & undocumented feature ~~**
301 - added the method and self keywords, they are basically
302 just sugar, and they may not stay around.
305 - added &dump method to easily Data::Dumper
308 * Moose::Meta::TypeConstraint
309 - added the &is_a_type_of method to check both the current
310 and the subtype of a method (similar to &isa with classes)
313 - this is now a subclass of Class::MOP::Module, and no longer
314 creates the _role_meta ugliness of before.
315 - fixed tests to reflect this change
317 0.11 Wed. July 12, 2006
319 - added an &unimport method to remove all the keywords
320 that Moose will import, simply add 'no Moose' to the
321 bottom of your class file.
324 - fixed some test failures caused by a forgotten test
327 0.10 Thurs. July 6, 2006
329 - improved error message when loading modules so
330 it is less confusing when you load a role.
331 - added &calculate_all_roles method to
332 Moose::Meta::Class and Moose::Meta::Role
335 This module has been tested against Class::MOP 0.30
336 but it does not yet utilize the optimizations
337 it makes available. Stay tuned for that ;)
339 0.09_03 Fri. June 23, 2006
340 ++ DEVELOPER RELEASE ++
342 - 'use strict' and 'use warnings' are no longer
343 needed in Moose classes, Moose itself will
344 turn them on for you.
345 - added tests for this
346 - moved code from exported subs to private methods
347 in Moose::Meta::Class
350 - as with Moose, strict and warnings are
351 automatically turned on for you.
352 - added tests for this
355 - now handles an edge case for override errors
356 - added tests for this
357 - added some more edge case tests
359 0.09_02 Tues. May 16, 2006
360 ++ DEVELOPER RELEASE ++
362 - added prototypes to the exported subs
366 - added prototypes to the exported subs
369 * Moose::Util::TypeConstraints
370 - cleaned up prototypes for the subs
373 0.09_01 Fri. May 12, 2006
374 ++ DEVELOPER RELEASE ++
375 - This release works in combination with
376 Class::MOP 0.29_01, it is a developer
377 release because it uses the a new
378 instance sub-protocol and a fairly
379 complete Role implementation. It has
380 not yet been optimized, so it slower
381 the the previous CPAN version. This
382 release also lacks good updated docs,
383 the official release will have updated docs.
386 - refactored the keyword exports
387 - 'with' now checks Role validaity and
388 accepts more than one Role at a time
389 - 'extends' makes metaclass adjustments as
390 needed to ensure metaclass compatability
393 - refactored the keyword exports
394 - 'with' now checks Role validaity and
395 accepts more than one Role at a time
397 * Moose::Util::TypeConstraints
398 - added the 'enum' keyword for simple
399 string enumerations which can be used as
401 - see example of usage in t/202_example.t
404 - more careful checking of params to new()
407 - much work done on the role composition
408 - many new tests for conflict detection
409 and composition edge cases
410 - not enough documentation, I suggest
413 * Moose::Meta::Instance
414 - added new Instance metaclass to support
415 the new Class::MOP instance protocol
418 - some small changes to support the new
420 - some small additions to support Roles
422 * Moose::Meta::Attribute
423 - some improvements to the accessor generation code
425 - some small changes to support the new
427 - (still somewhat) experimental delegation support
428 with the 'handles' option
429 - added several tests for this
430 - no docs for this yet
432 0.05 Thurs. April 27, 2006
434 - keywords are now exported with Sub::Exporter
435 thanks to chansen for this commit
436 - has keyword now takes a 'metaclass' option
437 to support custom attribute meta-classes
438 on a per-attribute basis
439 - added tests for this
440 - the 'has' keyword not accepts inherited slot
441 specifications (has '+foo'). This is still an
442 experimental feature and probably not finished
443 see t/038_attribute_inherited_slot_specs.t for
444 more details, or ask about it on #moose
445 - added tests for this
448 - keywords are now exported with Sub::Exporter
450 * Moose::Utils::TypeConstraints
451 - reorganized the type constraint hierarchy, thanks
452 to nothingmuch and chansen for his help and advice
454 - added some tests for this
455 - keywords are now exported with Sub::Exporter
456 thanks to chansen for this commit
459 - due to changes in Class::MOP, we had to change
460 construct_instance (for the better)
462 * Moose::Meta::Attribute
463 - due to changes in Class::MOP, we had to add the
464 initialize_instance_slot method (it's a good thing)
466 * Moose::Meta::TypeConstraint
467 - added type constraint unions
468 - added tests for this
469 - added the is_subtype_of predicate method
470 - added tests for this
472 0.04 Sun. April 16th, 2006
474 - Roles can now consume other roles
475 - added tests for this
476 - Roles can specify required methods now with
477 the requires() keyword
478 - added tests for this
481 - ripped out much of it's guts ,.. much cleaner now
482 - added required methods and correct handling of
483 them in apply() for both classes and roles
484 - added tests for this
485 - no longer adds a does() method to consuming classes
486 it relys on the one in Moose::Object
487 - added roles attribute and some methods to support
488 roles consuming roles
490 * Moose::Meta::Attribute
491 - added support for triggers on attributes
492 - added tests for this
493 - added support for does option on an attribute
494 - added tests for this
497 - added support for attribute triggers in the
499 - added tests for this
502 - Moose no longer creates a subtype for your class
503 if a subtype of the same name already exists, this
504 should DWIM in 99.9999% of all cases
506 * Moose::Util::TypeConstraints
507 - fixed bug where incorrect subtype conflicts were
509 - added test for this
512 - this class can now be extended with 'use base' if
513 you need it, it properly loads the metaclass class now
514 - added test for this
516 0.03_02 Wed. April 12, 2006
518 - you must now explictly use Moose::Util::TypeConstraints
519 it no longer gets exported for you automatically
522 - new() now accepts hash-refs as well as key/value lists
523 - added does() method to check for Roles
524 - added tests for this
527 - added roles attribute along with the add_role() and
529 - added tests for this
532 - now adds a does() method to consuming classes
533 which tests the class's hierarchy for roles
534 - added tests for this
536 0.03_01 Mon. April 10, 2006
538 - added new Role recipe (no content yet, only code)
541 - added 'with' keyword for Role support
542 - added test and docs for this
543 - fixed subtype quoting bug
544 - added test for this
548 - added test and docs
550 * Moose::Util::TypeConstraints
551 - added the message keyword to add custom
552 error messages to type constraints
555 - the meta role to support Moose::Role
556 - added tests and docs
559 - moved a number of things from Moose.pm
560 to here, they should have been here
563 * Moose::Meta::Attribute
564 - moved the attribute option macros here
565 instead of putting them in Moose.pm
567 * Moose::Meta::TypeConstraint
568 - added the message attributes and the
570 - added tests and docs for this
572 0.03 Thurs. March 30, 2006
574 - added the Moose::Cookbook with 5 recipes,
575 describing all the stuff Moose can do.
578 - fixed an issue with &extends super class loading
579 it now captures errors and deals with inline
580 packages correctly (bug found by mst, solution
582 - added super/override & inner/augment features
583 - added tests and docs for these
586 - BUILDALL now takes a reference of the %params
587 that are passed to &new, and passes that to
590 * Moose::Util::TypeConstraints
591 - Type constraints now survive runtime reloading
592 - added test for this
595 - fixed the way attribute defaults are handled
596 during instance construction (bug found by chansen)
598 * Moose::Meta::Attribute
599 - read-only attributes now actually enforce their
600 read-only-ness (this corrected in Class::MOP as
603 0.02 Tues. March 21, 2006
605 - many more tests, fixing some bugs and
607 - &extends now loads the base module with
609 - added UNIVERSAL::require to the
612 - each new Moose class will also create
613 and register a subtype of Object which
614 correspond to the new Moose class.
615 - the 'isa' option in &has now only
616 accepts strings, and will DWIM in
619 * Moose::Util::TypeConstraints
620 - added type coercion features
621 - added tests for this
622 - added support for this in attributes
623 and instance construction
625 - type construction no longer creates a
626 function, it registers the type instead.
627 - added several functions to get the
631 - BUILDALL and DEMOLISHALL were broken
632 because of a mis-named hash key, Whoops :)
634 * Moose::Meta::Attribute
635 - adding support for coercion in the
636 autogenerated accessors
639 - adding support for coercion in the
640 instance construction
642 * Moose::Meta::TypeConstraint
643 * Moose::Meta::TypeCoercion
644 - type constraints and coercions are now
645 full fledges meta-objects
647 0.01 Wed. March 15, 2006
648 - Moooooooooooooooooose!!!