Revision history for Hash-Wrap
0.15 2021-07-07 23:27:11-04:00 America/New_York
[ENHANCEMENT]
* a reference to the constructor may now be stored in a user provided scalar
via -as => \$scalar. This avoids pollution of the caller's namespace.
* recursive hash wrapping is now possible with -recurse, which specifies the
recursion level limit
* constructors may now be returned from the import() method via -as => -return.
0.14 2021-06-21 16:39:56-04:00 America/New_York
[ENHANCEMENT]
* methods can be added to the wrapping class via the -methods option.
[BUILD]
* use META.json instead of cpanfile as build-from-repo artifact
0.13 2021-04-01 15:45:07-04:00 America/New_York
[ENHANCEMENT]
* the -class option can take the value '-caller', which
causes the class name to be determined from the calling
package name and the constructor name.
0.12 2019-11-07 09:50:32-05:00 America/New_York
[BUG FIX]
* tests added in 0.11 were not backwards compatible with Perl < 5.18
0.11 2019-11-06 14:08:02-05:00 America/New_York
[ENHANCEMENT]
* new -immutable option, prevents adding keys or changing values.
* new -lockkeys option, allows only specified keys in hash.
0.10 2019-09-25 13:59:31-04:00 America/New_York
[BUG FIX]
* can() produced erroneous and uncompileable code if it was called
for an existing attribute which had not yet had an accessor
created.
0.09 2019-06-20 16:57:19-04:00 America/New_York
[ENHANCEMENT]
* wrap_hash may now be called with no arguments, in which
case it autogenerates a hash for you.
0.08 2018-02-27 10:57:06-05:00 America/New_York
[API BREAKAGE]
* Perl 5.10 is now the minimum version supported
* the -create option is no longer available. wrapper classes
are always created.
* modifying existing classes via -class is no longer supported
as it proved too messy.
* classes no longer subclass from Hash::Wrap::Base.
[ENHANCEMENT]
* stand alone wrapper classes are now possible via -base
* wrapper classes can have real constructors via -new
* documentation has been rewritten (again!)
* wrapper classes can be subclassed
[INTERNALS]
* much code refactoring
* accessor generation is now much simpler and subsequently faster.
* construction of the wrapper classes is simplified (no more searching
parent classes for validation and signature subroutinesbuilders), so
mro::compat is not required.
0.07 2018-01-29 11:59:46-05:00 America/New_York
[ENHANCEMENT]
* exceptions are now thrown from the correct call frame
0.06 2018-01-29 11:59:46-05:00 America/New_York
[ENHANCEMENT]
* new options -exists and -undefined add exists() and defined()
methods.
0.05 2018-01-29 11:59:46-05:00 America/New_York
[BUILD FIX]
* t/api.t was not completely updated for changes in version 0.04
0.04 2018-01-29 11:59:46-05:00 America/New_York
[ENHANCEMENT]
* it is now possible to create accessors which return undef
(rather than throwing an exception) if a hash element does not
exist.
* The underlying code has gone through a significant rewrite.
0.03 2017-09-28 21:56:42-04:00 America/New_York
[BUG FIX]
* The default import of wrap_hash was broken by version 0.02.
0.02 2017-09-28 14:49:16-04:00 America/New_York
[ENHANCEMENT]
* lvalue accessors are now available for Perl 5.16 or later.
0.01 2017-09-25 11:50:04-04:00 America/New_York
* Initial release upon an unsuspecting world