Tidy and simplify mouse_attr_get()
[gitmo/Mouse.git] / Changes
CommitLineData
c3398f5b 1Revision history for Mouse
927982b4 2
766af1c2 30.40_03 Fri Oct 30 12:03:58 2009
4 * Update Module::Install::XSUtil to 0.15
5
3feac481 60.40_02 Tue Oct 27 15:04:10 2009
9a5d1ed3 7 * Add the Mouse::XS documentation
8
9 * Mouse::Meta::Method::Accessor
10 - Apply type constraints to default values as Moose does
4ab8bb8f 11
56ccf870 120.40_01 Mon Oct 26 17:31:23 2009
4ab8bb8f 13 * Add an optional XS implementation
b06ce1f5 14
1f817abe 150.40 Mon Oct 19 18:30:32 2009
16 * Mouse::Meta::TypeConstraint
17 - Fix a subtyping issue (Thanks miyagawa san)
18 * Mouse/Mouse::Role
19 - Now export their sugars to the "main" package
20
4353bfe1 210.39 Tue Oct 13 16:42:31 2009
22 * Fix RT #50421 (Thanks Michael G Schwern)
23 * Fix RT #50422 (Thanks Michael G Schwern)
24
250.38 Tue Oct 13 15:40:39 2009
6106ed03 26 * No code changes from 0.37_06
518b3489 27
6106ed03 28 * SUMMARY from 0.37 to 0.38
29 - Add documents about compatiblity and incompatibility to Mouse::Spec
83fd4df5 30
6106ed03 31 - Refactor type constraints and type coercions
32 - Now ArrayRef[Foo | Bar] is parsed correctly
33 - Type coercions are stored in type constraint objects
83fd4df5 34
6106ed03 35 - Add Mouse::Exporter for import/unimport methods
83fd4df5 36
6106ed03 37 - Make roles applicable to instances
83fd4df5 38
6106ed03 39 - Implement inner/augment keywords
83fd4df5 40
6106ed03 41 - Port a lot of Moose's tests
29e174ad 42
6106ed03 43 - Fix a lot of bugs
83fd4df5 44
45
455994cf 460.37_06 Mon Oct 12 16:34:18 2009
b3ae10c7 47 * Mouse::Meta::Attribute
48 - Support handles => qr/pattern/ in has() (gfx)
49
50 * Mouse::Meta::Method::Destructor
51 - Locallize $@ and $? in DESTROY as Moose does (gfx)
52
455994cf 53 * Mouse::Meta::Role
54 - Fix role application to instances (gfx)
55
b3ae10c7 56 * Tests
57 - Move t/*.t to t/001_moose/
7cfe5d54 58
6f16d3ce 590.37_05 Fri Oct 9 15:21:43 2009
9c72aa8c 60 * Mouse::Exporter
61 - Add build_import_methods() (gfx)
62
63 * Mouse::Spec
b644ef5d 64 - Add notes about Moose::Cookbook (gfx)
1639e480 65
66 * Fix some minor bugs (gfx)
67
1dc1f3f1 680.37_04 Thu Oct 8 20:49:11 2009
c38b841a 69 * Mouse::Meta::Role::Composite
70 - Fix and improve role composition mechanism (gfx)
71
1dc1f3f1 72 * Import a number of tests from Moose, and fix various bugs (gfx)
c38b841a 73
b1a89a06 74 * Mouse::Tiny is always generated in Makefile.PL (gfx)
75
edd20f48 760.37_03 Wed Oct 7 21:10:05 2009
af8f95f4 77 * Mouse::Exporter
78 - Add Mouse::Exporter (gfx)
79 * Mouse::Meta::Method::Constructor
80 - Optimize generated constructors (gfx)
1f0c967a 81 * Mouse::Meta::Role
82 - Implement role application to instances (gfx)
62cb9505 83
f5511684 840.37_02 Sun Oct 4 17:29:15 2009
53a7a312 85 * Mouse
86 - Implement the argument/inner keywords
4f90d9ae 87 * Mouse::Meta::Attribute
2e202fdb 88 - Add get_read_method_ref() and get_write_method_ref() (gfx)
53a7a312 89 - Add find_attribute_by_name() (gfx)
2e202fdb 90 - Fix clone_and_inherit_options() to deal with 'traits' (gfx)
91 * Mouse::Util
92 - Fix meta() method, which was not tested (gfx)
53a7a312 93 * Tests
94 - Port t/010_basics/*.t from Moose
4f90d9ae 95
327475b7 960.37_01 Thu Oct 1 15:32:58 2009
2e202fdb 97 * Type coercions are stored to type constraints (gfx)
2929db0a 98
2e202fdb 99 * Refactor the type parser to parse 'ArrayRef[Object|Int]' (gfx)
2929db0a 100
2e202fdb 101 * Remove Class::MOP specific subroutines from Mouse::Meta::Module (gfx)
327475b7 102 (this change might be reverted in the release version)
b61e0c46 103 - version, authority, identifier,
104 get_all_metaclasses, store_metaclass_by_name,
105 weaken_metaclass, does_metaclass_exist, remove_metaclass_by_name
106
2e202fdb 107 * Add new public utilities to Mouse::Util (gfx)
b61e0c46 108 - class_of, the counterpart for Class::MOP::class_of
109 - get_metaclass_by_name for Class::MOP::get_metaclass_by_name
110
111
31920032 1120.37 Mon Sep 28 10:48:27 2009
0a46aaa0 113 * Ensure backward compatibility by author/test-externa.pl (gfx)
114
115 * Change the algorithm of has_method() for backward compatibility (gfx)
116
31920032 117 * $ENV{MOUSE_VERBOSE}=1 for Moose-compatible warnings (gfx)
0a46aaa0 118
04493075 1190.36 Sun Sep 27 16:53:06 2009
120 * Fix an issue that breaks backward compatibility (gfx)
121 - MouseX::Attribute does work, although make tests doesn't pass
122
81625179 1230.35 Sat Sep 26 12:38:27 2009
124 * Work around Test::Exception 0.27_0x by including authorized ver. (gfx)
125
a573851d 1260.34 Fri Sep 25 21:55:48 2009
32a0f864 127 * Make sure to work on 5.6.2 (gfx)
eb88905f 128
32a0f864 129 * Remove Class::Method::Modifiers dependency (gfx)
7ca5c5fb 130
32a0f864 131 * Remove testing modules from inc/ (gfx)
132
133 * Put t/019-handles.t on ice (gfx)
7a1781ae 134
639f39ef 1350.33_01 Thu Sep 24 16:16:57 2009
121acb8a 136 * Implement traits => [...] in has() (gfx)
137
1380.33 Wed Sep 23 15:06:40 2009
39f9498f 139 * Fix RT #49902: 0.32 fails tests reported by GRUBER (gfx)
140
47a8794f 141 * Add some tests
142
b2a583f8 1430.32 Tue Sep 22 16:44:57 2009
144 * Add many tests copied from Moose (gfx)
7a50b450 145
b2a583f8 146 * Fix Mouse::Util::find_meta() and Mouse::Util::does_role() (gfx)
7a50b450 147
53c495ce 148 * Fix the timing triggers are invoked (gfx)
149
b2a583f8 150 * Implement confliction checks in roles
151
152 * work around create() and create_anon() in Mouse::Meta::Role
3c429663 153
b2a583f8 1540.31 Tue Sep 22 11:08:12 2009
7b133c92 155 * Add find_meta() and does_role() to Mouse::Util (gfx)
156
809fc2c7 157 * Fix tests using Class::Method::Modifiers to be skipped correctly (gfx)
158
159 * Remove Test::Mouse, which was accidentally included (gfx)
160
9c6ff002 1610.30 Mon Sep 21 16:43:05 2009
7b133c92 162 * Implement RT #46930 (accessor/reader/writer in has()) (gfx)
3c429663 163
9c6ff002 164 * Work around anonymous classes as mortal classes (gfx)
ad022aac 165
166 * Implement with $role => -exlucdes => [...] (gfx)
167
168 * Implement get_method() in M::Meta::Class and M::Meta::Role (gfx)
169
eb05b8be 170 * Make get_method_list() compatible with Moose's (gfx)
5f6a73cb 171
eb05b8be 172 * Make unimport() not to remove non-Mouse functions (blessed and confess) (gfx)
5f6a73cb 173
eb05b8be 174 * Remove a lot of duplication code (gfx)
5f6a73cb 175
324d3602 176 * Support is => 'bare', and you must pass and 'is' option to has() (gfx)
9c85e9dc 177
15b4faa9 1780.29 Thu Sep 17 11:49:49 2009
93ac97dd 179
15b4faa9 180 * role class has ->meta in method_list, because it does in Moose since 0.9
93ac97dd 1810.28 Wed Sep 8 20:00:06 2009
e650ba5b 182 * Alter Makefile.PL so in author mode we generate lib/Mouse/Tiny.pm on
183 every run so that 'make dist' actually does what it's meant to (mst)
2bcb073f 184
e0541d44 185 * Only unlink Mouse::Tiny if it exists, otherwise autodie pitches
186 a fit (miyagawa)
26b84079 187
188 * Make auto_deref also handles isa not only ArrayRef and HashRef, but also
189 ArrayRef[Foo::Bar] and HashRef[Foo::Bar]
e0541d44 190
9f917442 1910.27 Thu Jul 2 15:17:37 2009
192 * Doc updates (Sartak)
193
194 * Include missing Mouse::Tiny
fc352e2d 195
f81e2ecb 1960.26 Wed Jul 1 13:39:30 2009
9cc87fff 197 * Fix failing tests by requiring a newer Moose in that test (t0m)
48bf3a6a 198
b79fc28f 1990.25 Fri Jun 19 12:05:42 2009
200 * Fix SIGNATURE (reported by daxim) ... by removing it :)
efeb6d0c 201
34a90485 2020.24 Mon Jun 15 14:47:18 2009
203 * Moose's construct_instance is deprecated, use new_object (tokuhirom)
204
205 * Improve Mouse::Tiny generation (tokuhirom)
206
207 * Inlining destructor fixes (tokuhirom)
208
209 * Add Mouse->init_meta (tokuhirom)
210
211 * Fix failing tests by requiring a newer Moose in that test (Sartak)
eb6f4444 212
b03fda9f 213 * Don't warn in tests about Squirrel deprecations (Sartak)
214
25db76ef 2150.23 Wed May 27 16:52:28 2009
dad3c1af 216 * Take the mro::linearized_isa DEMOLISHALL fix from Moose
217 (originally by doy)
218
219 * Mouse::class_of to mirror Class::MOP::class_of
d5b41c02 220
6d86b341 2210.22 Tue Apr 21 03:26:43 2009
222 * Regenerate broken signature (Sartak)
dad3c1af 223 reported by Michael Gray [rt.cpan.org #45167]
6d86b341 224
225 * does_role now checks parent classes (tokuhirom)
226
227 * Fix for $_ not being available type constraint messages (Sartak)
124fa027 228
240454c2 2290.21 Sat Apr 11 13:52:11 2009
7a96b336 230 * clone_instance has been made private, like in Moose (tokuhirom)
6b646f93 231
7a96b336 232 * Fix method modifiers applying to the wrong class (gfuji)
233 reported by Heikki Lehvaslaiho in [rt.cpan.org #42992]
d9b661d3 234
7a96b336 235 * Fix test failures when user does not have C::Method::Modifiers(::Fast)
236 installed (Joel Bernstein)
237
238 * use get_all_attributes instead of
239 compute_all_applicable_attributes (tokuhirom)
240
241 * fixed pod bug (tokuhirom)
242 reported by Ryan52 in [rt.cpan.org #44928]
243
244 * Parameterized type constraints can now have messages (tokuhirom)
6b646f93 245
5893ee36 246 * Added documentation about type constraints (Mark Stosberg)
6b646f93 247
2480.20 Thu Apr 9 20:22:33 2009
2df74b3a 249 * Squirrel is now deprecated. Use Any::Moose instead (Sartak)
250
cf33c3d9 251 * To improve Moose compat, the third argument to trigger
252 (the attribute metaobject) has been removed (Sartak)
253
254 * To improve Moose compat, a single undef passed to new
255 is now disallowed (Sartak)
c3398f5b 256
31a5ba2c 257 * Implemented Mouse::Object->does (wu-lee)
258
259 * Implemented override and super functions for Mouse::Role.
260 (wu-lee)
927982b4 261
31a5ba2c 262 * Implemented stub augment and inner functions for Mouse::Role,
263 which merely throw an exception as in Moose::Role. (wu-lee)
927982b4 264
31a5ba2c 265 * Stole more tests from Moose (020_roles/*). Not all these pass
266 yet; the rest have been moved to 020_roles/failing for later
267 examination. (wu-lee)
927982b4 268
31a5ba2c 269 * Implemented Mouse::Role->does_role. This does not yet quite
270 seem to pass all the tests it should. (wu-lee)
927982b4 271
31a5ba2c 272 * Fixed bug in Mouse::Meta::Role->apply and ->combine_apply, so that
273 030_roles/002_role.t tests pass. (wu-lee)
927982b4 274
31a5ba2c 275 * Implemented ->version, ->authority and ->identifier methods in
276 Mouse::Meta::Role and Mouse::Meta::Class (mainly to make more
277 Moose tests pass). (wu-lee)
278
bf1b613a 279 * Implemented emulations of Class::MOP's metaclass accessors
280 (get_metaclass_by_name etc.) in Mouse::Meta::Class.
281
31a5ba2c 282 * Mouse attribute property 'isa' now accepts Role names. (wu-lee)
283
284 * Fixed bug: typecoercion application order was reversed. (wu-lee)
285
286 * Fixed bug: inlined constructor was invoking BUILD methods in
287 wrong order. (wu-lee)
65715de3 288
289 * Fixed bug: immutable constructor now redispatches correctly to
290 Mouse::Object::new when used in derived classes (wu-lee).
c9aefe26 291
927982b4 292 * Maybe parameterized type constraint (lestrrat)
293
294 * Performance improvements! (tokuhirom)
295
296 * Improve Moose compat of class_type (lestrrat)
297
298 * Many type-constraint fixes (tokuhirom and lestrrat)
299
300 * Mouse::Meta::Class->has_method and ->get_attribute_list (tokuhirom)
301
302 * Add get_all_attributes, use it internally instead of
303 compute_all_applicable_attributes (nothingmuch)
304
df9e57e8 3050.19 Sun Mar 8 04:38:01 2009
f96bd2aa 306 * Parameterized type constraints for ArrayRef and HashRef (lestrrat)
307
308 * Allow extensible attribute metaclass in traits too(tokuhirom)
309
310 * Don't use method modifiers in a test since they may not be
311 available (Sartak)
c4ec7642 312
423b9699 3130.18 Fri Mar 6 19:09:33 2009
314 * Fix the issue preventing Mouse usage on Perl 5.6 - a bug in older
315 Scalar::Util! (tokuhirom)
316
317 * Allow extensible attribute metaclass (tokuhirom)
318
319 * Optimization for method modifiers (tokuhirom)
320
321 * Implement Mouse->import({into_level => 1}) (tokuhirom)
322
323 * Support for Class->meta->add_attribute($name => %options) (tokuhirom)
324
325 * Throw a more useful error message when trying to use a parameterized
326 type (Sartak)
c3a83939 327
949738a8 3280.17 Tue Feb 17 20:10:29 2009
388b8ebd 329 * Load mro directly if Perl is recent enough (Nicholas Clark)
330
df963a63 331 * Add dump method from Moose::Object into Mouse::Object (perigrin)
332
949738a8 333 * Add role-role composition (tokuhirom)
334
d8edb5a0 3350.16 Mon Feb 9 20:56:27 2009
60cfc6ad 336 * Implement get_all_method_names
67fb42e0 337
01904723 338 * Support for anonymous enums: enum [elements]
339
d8edb5a0 340 * Moose's make_immutable returns true allowing calling code to skip
341 setting an explicit true value at the end of a source file. (obra)
342
4d33522c 3430.15 Thu Feb 5 11:44:05 2009
7daedfff 344 * Don't export Mouse's sugar into the package 'main'
8aeec00e 345
3b46bd49 346 * Rename Mouse::TypeRegistry to Mouse::Util::TypeConstraints
347
0d9fea22 348 * "type" sugar for when you're not subtyping anything
349
7dbebb1b 350 * Keep track of the source package of each type
351
96dbfdb7 352 * Moose lets you redefine a type within the same package, so we now do too
353
354 * Borrow more of Moose's meta API
a5fc1e9a 355
96dbfdb7 356 * Mouse::Util::TypeConstraints now uses Exporter so you can select which
357 sugar you want
358
359 * class_type shouldn't load the class (Moose compat; no easy fix :/)
4859d490 360
96dbfdb7 361 * suppress warnings when we use "around" and "has '+...'" (dann)
4859d490 362
96dbfdb7 363 * use Data::Util to make method modifiers fast if it's available (dann)
47b5feb9 364
a22b1fed 365 * Implement "enum" type constraints
366
367 * Implement "override" and "super"
368
4786262b 369 * MouseX::Types is now in its own dist
370
1595b996 3710.14 Sat Dec 20 16:53:05 2008
372 * POD fix
373
374 * Document what changes tokuhirom and Yappo made (see below)
4216fc14 375
25b08198 3760.13 Tue Dec 16 02:01:40 2008
a9d1cb9d 377 * Pass in the instance to the default sub in the constructor (reported with
378 failing tests by rjbs)
fccd2261 379
1595b996 380 * Tons of new features implemented by tokuhirom++ and Yappo++:
381 - method API in classes and roles!
382 - "requires" and "with" for Mouse::Role
383 - Type coercion
384 - Inject a constructor after make_immutable. Huge speedup!
385 - class_type and role_type
386 - Inject a destructor for more speedup
387 - MouseX::Types (may move into its own dist)
388 - create_anon_class
389 - union type constraints (eg 'Str | Undef')
390 - subtypes and sugar for them
de51e718 391
44231509 3920.12 Thu Dec 4 19:23:10 2008
826828bf 393 * Provide Test::Exception function unless it's version 0.27 - RT #41254
394
826828bf 395 * Mouse::Util now provides dies_ok
396
44231509 397 * Make class-like types behave more like Moose; subclasses OK! (rjbs)
398
399 * Steal more tests from Moose
826828bf 400
e4b38f45 4010.11 Sun Nov 2 11:35:04 2008
402 * Throw an error if accessor/predicate/clearer/handles code eval fails
403
404 * Optimizations for generated methods, they should now be on par with Moose
6430d968 405
2498d94c 4060.10 Tue Oct 28 19:23:07 2008
407 * Require a recent Moose (which has the bugfix) for
408 t/500_moose_extends_mouse.t
409
410 * ouse.pm for perl -Mouse one-liners (thanks rjbs)
411
412 * Doc for init_arg => undef (thanks rjbs)
7a024324 413
274aea60 4140.09 Sun Sep 28 22:37:13 2008
415 * Initial version of Mouse::Tiny, a one-file concatenation of the Mouse
416 classes for easy embedding
417
418 * Fixes caused by test failures (Carp not being loaded, Moose being
419 required in a test)
420
5dbc65ee 4210.08 Sun Sep 28 12:46:07 2008
422 * ALL dependencies have been removed!
423
424 * Fixes for Class::Method::Modifiers being required for testing
eab013b2 425
f38ce2d0 4260.07 Sun Sep 28 00:19:07 2008
465af41f 427 * All runtime dependencies have been removed! The only change in
428 functionality (hopefully) is that the Sub::Exporter features can no
429 longer be used (we've backed down to regular Exporter). Scalar::Util is
430 required for "weaken" support, and Class::Method::Modifiers is required
431 for method modifier support, but only if you use these features!
432 Having Scalar::Util and MRO::Compat installed will provide only
433 performance increases.
434
435 * Tests and fixes for extending a Mouse class with Moose (nothingmuch)
436
437 * Support for adding method modifiers to a role, and composing them into
438 classes (we'll get true methods some day)
439
440 * Method modifiers now go through the metaclass instead of invoking
441 Class::Method::Modifiers directly
442
443 * Remove the deprecated before/after/around triggers
444
445 * Roles keywords 'requires' and 'excludes' now throw errors instead of
446 silently doing nothing (they aren't implemented yet)
5c557f4f 447
844fa049 4480.06 Thu Jul 23 02:10:07 2008
449 * Deprecating before/after/around triggers! Switch back to coderef +
450 whatever you used to do. Moose is have it implemented it as an extension
451 trait.
452
e2a1372d 453 * Mouse
454 - updated trigger doc (thanks perigrin)
844fa049 455 - which will not see CPAN :( sorry perigrin!
ed00ef38 456
60e2164a 457 * Mouse::Meta::Class
458 - add a make_immutable method which does nothing(!), for even more
459 Moose compat (nothingmuch's idea)
460
ed00ef38 4610.05 Thu Jul 17 01:53:20 2008
6681e09c 462 * Mouse::Role
463 Mouse::Meta::Role
464 Mouse
80be11ca 465 Squirrel::Role
466 - Begin adding roles! Attributes are mostly there. Still experimental.
467
468 * Mouse::Meta::Class
469 Mouse::Object
470 - Add clone_object and clone_instance (nothingmuch)
471
472 * Mouse::Object
473 - Add BUILDARGS (nothingmuch)
474
475 * Mouse::Meta::Attribute
476 Mouse::Object
477 - Add "before" and "around" triggers. Moose doesn't even have them yet! :)
6681e09c 478
c5cbafa4 479 * Everywhere
480 - Improvements to the MOP (e.g. Class->add_method)
481
a7f212f1 482 * (build)
483 - Excise dependency on Test::Warn, we only used it in one simple test
484
a3525e9f 4850.04 Tue Jun 17 04:56:36 2008
1bfebf5f 486 * Mouse
487 Mouse::Meta::Attribute
488 - Add support for has '+name'
80be11ca 489 - Add lazy_build (nothingmuch)
66efb1c8 490
74be9978 4910.03 Thu Jun 12 21:54:07 2008
1bfebf5f 492 * Mouse
493 - Add before/after/around, courtesy of Class::Method::Modifiers
b7a74822 494
1bfebf5f 495 * Mouse::Object
496 - Add support for ->new({...})
497 - Use compute_all_applicable_attributes in the constructor to get the
498 attributes of superclasses
499 - Add better support for undef init_arg
ad67865f 500
1bfebf5f 501 * Mouse::Meta::Class
502 - More methods: compute_all_applicable_attributes, has_attribute
66eea168 503
5040.02 Wed Jun 11 01:56:44 2008
1bfebf5f 505 * Squirrel
506 - Add Squirrel which acts as Moose if it's already loaded, otherwise
507 Mouse (thanks nothingmuch)
66eea168 508
1bfebf5f 509 * Mouse::Meta::Object
510 - Fix the order in which BUILD methods are called (thanks Robert
511 Boone)
66eea168 512
5130.01 Tue Jun 10 02:13:21 2008
1bfebf5f 514 * Initial release.
c3398f5b 515