1 Revision history for Perl extension Moose
4 * Moose::Util::TypeConstraints
5 - type now supports messages as well
6 (thanks to phaylon for finding this)
8 - added list_all_type_constraints and
9 list_all_builtin_type_constraints
10 functions to facilitate introspection.
12 0.18 Sat. March 10, 2007
13 ~~ Many, many documentation updates ~~
15 - We now use Class::MOP::load_class to
19 !! You must have Class::MOP 0.37_001 !!
20 !! for this developer release to work !!
22 This release was primarily adding the immutable
23 feature to Moose. An immutable class is one which
24 you promise not to alter. When you set the class
25 as immutable it will perform various bits of
26 memoization and inline certain part of the code
27 (constructors, destructors and accessors). This
28 minimizes (and in some cases totally eliminates)
29 one of Moose's biggest performance hits. This
30 feature is not on by default, and is 100% optional.
31 It has several configurable bits as well, so you
32 can pick and choose to your specific needs.
34 The changes involved in this were fairly wide and
35 highly specific, but 100% backwards compatible, so
36 I am not going to enumerate them here. If you are
37 truely interested in what was changed, please do
40 0.17 Tues. Nov. 14, 2006
41 * Moose::Meta::Method::Accessor
42 - bugfix for read-only accessors which
43 are have a type constraint and lazy.
44 Thanks to chansen for finding it.
46 0.16 Tues. Nov. 14, 2006
48 There are some speed improvements in this release,
49 but they are only the begining, so stay tuned.
52 - BUILDALL and DEMOLISHALL no longer get
53 called unless they actually need to be.
54 This gave us a signifigant speed boost
55 for the cases when there is no BUILD or
56 DEMOLISH method present.
58 * Moose::Util::TypeConstraints
59 * Moose::Meta::TypeConstraint
60 - added an 'optimize_as' option to the
61 type constraint, which allows for a
62 hand optimized version of the type
63 constraint to be used when possible.
64 - Any internally created type constraints
65 now provide an optimized version as well.
67 0.15 Sun. Nov. 5, 2006
69 This version of Moose *must* have Class::MOP 0.36 in order
70 to work correctly. A number of small internal tweaks have
71 been made in order to be compatible with that release.
73 * Moose::Util::TypeConstraints
74 - added &unimport so that you can clean out
75 your class namespace of these exported
79 - fixed minor issue which occasionally
80 comes up during global destruction
82 - moved Moose::Meta::Method::Overriden into
86 - moved Moose::Meta::Role::Method into
89 * Moose::Meta::Attribute
90 - changed how we do type checks so that
91 we reduce the overall cost, but still
94 - moved accessor generation methods to
95 Moose::Meta::Method::Accessor to
96 conform to the API changes from
99 * Moose::Meta::TypeConstraint
100 - changed how constraints are compiled
101 so that we do less recursion and more
102 iteration. This makes the type check
104 - moved Moose::Meta::TypeConstraint::Union
107 * Moose::Meta::Method::Accessor
108 - created this from methods formerly found in
109 Moose::Meta::Attribute
111 * Moose::Meta::Role::Method
112 - moved this from Moose::Meta::Role
114 * Moose::Meta::Method::Overriden
115 - moved this from Moose::Meta::Class
117 * Moose::Meta::TypeConstraint::Union
118 - moved this from Moose::Meta::TypeConstraint
120 0.14 Mon. Oct. 9, 2006
122 * Moose::Meta::Attribute
123 - fixed lazy attributes which were not getting
124 checked with the type constraint (thanks ashley)
125 - added tests for this
126 - removed the over-enthusiastic DWIMery of the
127 automatic ArrayRef and HashRef defaults, it
128 broke predicates in an ugly way.
129 - removed tests for this
131 0.13 Sat. Sept. 30, 2006
133 This version of Moose *must* have Class::MOP 0.35 in order
134 to work correctly. A number of small internal tweaks have
135 been made in order to be compatible with that release.
138 - Removed the use of UNIVERSAL::require to be a better
139 symbol table citizen and remove a dependency
140 (thanks Adam Kennedy)
142 **~~ removed experimental & undocumented feature ~~**
143 - commented out the 'method' and 'self' keywords, see the
144 comments for more info.
147 - added a FAQ and WTF files to document frequently
148 asked questions and common problems
150 * Moose::Util::TypeConstraints
151 - added GlobRef and FileHandle type constraint
152 - added tests for this
154 * Moose::Meta::Attribute
155 - if your attribute 'isa' ArrayRef of HashRef, and you have
156 not explicitly set a default, then make the default DWIM.
157 This will also work for subtypes of ArrayRef and HashRef
159 - you can now auto-deref subtypes of ArrayRef or HashRef too.
160 - new test added for this (thanks to ashley)
163 - added basic support for runtime role composition
164 but this is still *highly experimental*, so feedback
165 is much appreciated :)
166 - added tests for this
168 * Moose::Meta::TypeConstraint
169 - the type constraint now handles the coercion process
170 through delegation, this is to support the coercion
173 * Moose::Meta::TypeConstraint::Union
174 - it is now possible for coercions to be performed
176 - added tests for this (thanks to konobi)
178 * Moose::Meta::TypeCoercion
179 - properly capturing error when type constraint
183 - Scalar::Util 1.18 is bad on Win32, so temporarily
184 only require version 1.17 for Win32 and cygwin.
185 (thanks Adam Kennedy)
187 0.12 Sat. Sept. 1, 2006
189 - Recipe5 (subtypes & coercion) has been written
192 - fixed "bad meta" error message to be more descriptive
193 - fixed &unimport to not remove the &inner and &super
194 keywords because we need to localize them.
195 - fixed number of spelling/grammer issues, thanks Theory :)
197 **~~ experimental & undocumented feature ~~**
198 - added the method and self keywords, they are basically
199 just sugar, and they may not stay around.
202 - added &dump method to easily Data::Dumper
205 * Moose::Meta::TypeConstraint
206 - added the &is_a_type_of method to check both the current
207 and the subtype of a method (similar to &isa with classes)
210 - this is now a subclass of Class::MOP::Module, and no longer
211 creates the _role_meta ugliness of before.
212 - fixed tests to reflect this change
214 0.11 Wed. July 12, 2006
216 - added an &unimport method to remove all the keywords
217 that Moose will import, simply add 'no Moose' to the
218 bottom of your class file.
221 - fixed some test failures caused by a forgotten test
224 0.10 Thurs. July 6, 2006
226 - improved error message when loading modules so
227 it is less confusing when you load a role.
228 - added &calculate_all_roles method to
229 Moose::Meta::Class and Moose::Meta::Role
232 This module has been tested against Class::MOP 0.30
233 but it does not yet utilize the optimizations
234 it makes available. Stay tuned for that ;)
236 0.09_03 Fri. June 23, 2006
237 ++ DEVELOPER RELEASE ++
239 - 'use strict' and 'use warnings' are no longer
240 needed in Moose classes, Moose itself will
241 turn them on for you.
242 - added tests for this
243 - moved code from exported subs to private methods
244 in Moose::Meta::Class
247 - as with Moose, strict and warnings are
248 automatically turned on for you.
249 - added tests for this
252 - now handles an edge case for override errors
253 - added tests for this
254 - added some more edge case tests
256 0.09_02 Tues. May 16, 2006
257 ++ DEVELOPER RELEASE ++
259 - added prototypes to the exported subs
263 - added prototypes to the exported subs
266 * Moose::Util::TypeConstraints
267 - cleaned up prototypes for the subs
270 0.09_01 Fri. May 12, 2006
271 ++ DEVELOPER RELEASE ++
272 - This release works in combination with
273 Class::MOP 0.29_01, it is a developer
274 release because it uses the a new
275 instance sub-protocol and a fairly
276 complete Role implementation. It has
277 not yet been optimized, so it slower
278 the the previous CPAN version. This
279 release also lacks good updated docs,
280 the official release will have updated docs.
283 - refactored the keyword exports
284 - 'with' now checks Role validaity and
285 accepts more than one Role at a time
286 - 'extends' makes metaclass adjustments as
287 needed to ensure metaclass compatability
290 - refactored the keyword exports
291 - 'with' now checks Role validaity and
292 accepts more than one Role at a time
294 * Moose::Util::TypeConstraints
295 - added the 'enum' keyword for simple
296 string enumerations which can be used as
298 - see example of usage in t/202_example.t
301 - more careful checking of params to new()
304 - much work done on the role composition
305 - many new tests for conflict detection
306 and composition edge cases
307 - not enough documentation, I suggest
310 * Moose::Meta::Instance
311 - added new Instance metaclass to support
312 the new Class::MOP instance protocol
315 - some small changes to support the new
317 - some small additions to support Roles
319 * Moose::Meta::Attribute
320 - some improvements to the accessor generation code
322 - some small changes to support the new
324 - (still somewhat) experimental delegation support
325 with the 'handles' option
326 - added several tests for this
327 - no docs for this yet
329 0.05 Thurs. April 27, 2006
331 - keywords are now exported with Sub::Exporter
332 thanks to chansen for this commit
333 - has keyword now takes a 'metaclass' option
334 to support custom attribute meta-classes
335 on a per-attribute basis
336 - added tests for this
337 - the 'has' keyword not accepts inherited slot
338 specifications (has '+foo'). This is still an
339 experimental feature and probably not finished
340 see t/038_attribute_inherited_slot_specs.t for
341 more details, or ask about it on #moose
342 - added tests for this
345 - keywords are now exported with Sub::Exporter
347 * Moose::Utils::TypeConstraints
348 - reorganized the type constraint hierarchy, thanks
349 to nothingmuch and chansen for his help and advice
351 - added some tests for this
352 - keywords are now exported with Sub::Exporter
353 thanks to chansen for this commit
356 - due to changes in Class::MOP, we had to change
357 construct_instance (for the better)
359 * Moose::Meta::Attribute
360 - due to changes in Class::MOP, we had to add the
361 initialize_instance_slot method (it's a good thing)
363 * Moose::Meta::TypeConstraint
364 - added type constraint unions
365 - added tests for this
366 - added the is_subtype_of predicate method
367 - added tests for this
369 0.04 Sun. April 16th, 2006
371 - Roles can now consume other roles
372 - added tests for this
373 - Roles can specify required methods now with
374 the requires() keyword
375 - added tests for this
378 - ripped out much of it's guts ,.. much cleaner now
379 - added required methods and correct handling of
380 them in apply() for both classes and roles
381 - added tests for this
382 - no longer adds a does() method to consuming classes
383 it relys on the one in Moose::Object
384 - added roles attribute and some methods to support
385 roles consuming roles
387 * Moose::Meta::Attribute
388 - added support for triggers on attributes
389 - added tests for this
390 - added support for does option on an attribute
391 - added tests for this
394 - added support for attribute triggers in the
396 - added tests for this
399 - Moose no longer creates a subtype for your class
400 if a subtype of the same name already exists, this
401 should DWIM in 99.9999% of all cases
403 * Moose::Util::TypeConstraints
404 - fixed bug where incorrect subtype conflicts were
406 - added test for this
409 - this class can now be extended with 'use base' if
410 you need it, it properly loads the metaclass class now
411 - added test for this
413 0.03_02 Wed. April 12, 2006
415 - you must now explictly use Moose::Util::TypeConstraints
416 it no longer gets exported for you automatically
419 - new() now accepts hash-refs as well as key/value lists
420 - added does() method to check for Roles
421 - added tests for this
424 - added roles attribute along with the add_role() and
426 - added tests for this
429 - now adds a does() method to consuming classes
430 which tests the class's hierarchy for roles
431 - added tests for this
433 0.03_01 Mon. April 10, 2006
435 - added new Role recipe (no content yet, only code)
438 - added 'with' keyword for Role support
439 - added test and docs for this
440 - fixed subtype quoting bug
441 - added test for this
445 - added test and docs
447 * Moose::Util::TypeConstraints
448 - added the message keyword to add custom
449 error messages to type constraints
452 - the meta role to support Moose::Role
453 - added tests and docs
456 - moved a number of things from Moose.pm
457 to here, they should have been here
460 * Moose::Meta::Attribute
461 - moved the attribute option macros here
462 instead of putting them in Moose.pm
464 * Moose::Meta::TypeConstraint
465 - added the message attributes and the
467 - added tests and docs for this
469 0.03 Thurs. March 30, 2006
471 - added the Moose::Cookbook with 5 recipes,
472 describing all the stuff Moose can do.
475 - fixed an issue with &extends super class loading
476 it now captures errors and deals with inline
477 packages correctly (bug found by mst, solution
479 - added super/override & inner/augment features
480 - added tests and docs for these
483 - BUILDALL now takes a reference of the %params
484 that are passed to &new, and passes that to
487 * Moose::Util::TypeConstraints
488 - Type constraints now survive runtime reloading
489 - added test for this
492 - fixed the way attribute defaults are handled
493 during instance construction (bug found by chansen)
495 * Moose::Meta::Attribute
496 - read-only attributes now actually enforce their
497 read-only-ness (this corrected in Class::MOP as
500 0.02 Tues. March 21, 2006
502 - many more tests, fixing some bugs and
504 - &extends now loads the base module with
506 - added UNIVERSAL::require to the
509 - each new Moose class will also create
510 and register a subtype of Object which
511 correspond to the new Moose class.
512 - the 'isa' option in &has now only
513 accepts strings, and will DWIM in
516 * Moose::Util::TypeConstraints
517 - added type coercion features
518 - added tests for this
519 - added support for this in attributes
520 and instance construction
522 - type construction no longer creates a
523 function, it registers the type instead.
524 - added several functions to get the
528 - BUILDALL and DEMOLISHALL were broken
529 because of a mis-named hash key, Whoops :)
531 * Moose::Meta::Attribute
532 - adding support for coercion in the
533 autogenerated accessors
536 - adding support for coercion in the
537 instance construction
539 * Moose::Meta::TypeConstraint
540 * Moose::Meta::TypeCoercion
541 - type constraints and coercions are now
542 full fledges meta-objects
544 0.01 Wed. March 15, 2006
545 - Moooooooooooooooooose!!!