1 Revision history for MooseX-Storage
4 * JSON storage works when Cpanel::JSON::XS is the only JSON backend installed
7 * always JSONify data with sorted keys, to handle hash order randomization
8 introduced in 5.17.* (RT#84287, Karen Etheridge)
11 * Change to use core Digest and Digest::SHA dists, rather than Digest::SHA1.
13 * Create a JSON::Any object, so setting $ENV{JSON_ANY_CONFIG} works.
14 Adjust tests that were setting the wrong values and the default
16 * Don't rely on hash key order in tests (RT#81695)
19 * Add example for add_custom_type_handler to the MooseX::Storage::Engine docs. (perigrin)
21 * Incorrect documentation for ->unpack method's inject parameter fixed.
23 * The test suite now uses Test::Fatal instead of Test::Exception (Karen
27 * Make Makefile.PL features work again. RT#67170
30 * Remove use of Test::TempDir in favor of File::Temp (gphat)
33 * Make the engine_traits parameter be able to use a '+My::Trait::Name'
34 prefix to specify a trait name which isn't in the
35 MooseX::Storage::Engine::Trait namespace
36 * Misc POD and test cleanups.
39 * use of parameterized roles (first added in 0.22) now works in Deferred
40 Example: $object->freeze({ format => [ $role_name => \%args ] })
43 * Fix URI for repository in metadata.
44 * Fix infinite recursion when collapsing objects which overload stringify
48 * Add support for Union types (bumps Moose dep to 0.99)
51 * Add additional YAML implementation tests.
52 * Switch from using Best to YAML::Any.
53 * Remove Test::YAML::Valid.
56 * Revert whitespace change in tests which breaks the tests if you
57 have Test::YAML::Valid installed.
60 * Fix warnings when types do not have a parent type.
61 * allow the use of roles outside MooseX::Storage:: (rjbs)
62 * allow the use of parameterized roles (rjbs)
65 * Fix inconsistent dist versions with Perl::Version
68 * Add support for Storage( traits => [...] ) with a MooseX::Storage::Traits::XX
69 namespace to alter the behaviour of the storage engine.
70 (Suggestions for how to make this less fugly appreciated)
71 * Add feature to disable cycle checking, either via engine trait or option
72 * add docs & tests (including 1 TODO test)
73 * Add feature to only serialize attributes whose predicate returns 'true'
74 * Implement the unpack( $data, inject => {...} ) feature.
76 * Move Base::WithChecksum to build upon Basic.pm, avoid code duplication
77 * Add extra test to ensure restoring fails if required argument isn't provided
78 * Fix a bug where if a required constructor argument was not serialized, it was
79 impossible to ->unpack again.
82 * Skip pod tests when not in author mode
85 * Fix test failures without JSON::Any. Patch from RT#46343 (Nicholas Clarke)
86 * Added support for Maybe[...] constraints fixing RT#43165 (plu)
89 * Change MooseX::Storage::Engine to use get_all_attributes,
90 rather than the deprecated compute_all_applicable_attributes (t0m)
92 0.16 (not actually released)
93 * Don't fail tests when Best is unavailable (t0m)
97 - Remove use of deprecated alias_method routine
98 which was causing issues when you used multiple
99 Roles which used MooseX::Storage (t0m).
102 * MooseX::Storage::Engine
103 - cycles are now tracked by refaddr instead
104 of stringified object, which broke for any
105 overloaded objects (Thanks to Jonathan Rockway)
107 * Don't fail tests when YAML is unavailable
109 * Use temporary files in test suite, instead of cwd
112 * MooseX::Storage::Engine
113 - added find_type_handler_for($name) method
114 to make finding type handlers easier
115 - improved error messages
117 ~ removed Build.PL since Module::Install
118 no longer supports it
121 - added build_requires for Test::Deep (awwaiid)
122 - upped the Moose dependency to support the custom
123 meta-attribute-traits
126 - fixing all the tests to properly skip if optional
127 features are not being used, this should help get
128 rid of all our CPANtester failures
129 - tested against 5.10 as well
131 * MooseX::Storage::Engine
132 MooseX::Storage::Meta::Attribute::DoNotSerialize
133 MooseX::Storage::Meta::Attribute::Trait::DoNotSerialize
134 - adding meta-attribute-trait support for
136 - added tests for this
139 - upped the Test::JSON dependency
140 so that we use the version that
142 - upped the JSON::Any requirement
143 - minor test cleanups to handle
144 optional dependencies better
146 * MooseX::Storage::Engine
147 - the numbers now have to numify (+0) in the
148 expand/collapse so that certain JSON engines
149 will not choke on them
152 ~~ updated copyright information ~~
154 * MooseX::Storage::Deferred
155 - added this role, which allows you to wait until
156 you actually call a method to determine what
157 formatter and/or IO engine you want to use
158 - added tests for this
161 * MooseX::Storage::Util
162 - added support to deal with utf8 strings correctly
164 * MooseX::Storage::Engine::File
165 MooseX::Storage::Engine::AtomicFile
166 - fixed utf8 handling when storing string
167 - added tests for this
170 - added an extra test for the utf8 handling
172 * Change build system to Module::Install
175 * MooseX::Storage::Format::JSON
176 - added support to deal with utf8 strings correctly
179 + MooseX::Storage::Format::Storable
180 - this will use Storable to freeze/thaw objects
181 - added tests for this
183 + MooseX::Storage::IO::StorableFile
184 - this will use Storable to load/store objects
185 - added tests for this
188 - fixed tests in 030_with_checksum.t
192 * MooseX::Storage::Engine
193 - added the Bool type and fixed a few bugs
194 that it exposed (thanks to Sartak)
195 - added tests for this
198 * MooseX::Storage::Base::WithChecksum
199 - Fixed minor issue where the WithChecksum would
200 choke with a bad checksum due to odd Data::Dumper
204 - forced JSON::Any in the basic JSON tests to use
205 JSON.pm since this is what Test::JSON uses and
206 subtle (and annoying) issues can arise.
209 * MooseX::Storage::Util
210 - made this more robust when it tries
211 to use YAML and JSON loaders and fails
213 - fixed tests to reflect this
216 * MooseX::Storage::Util
217 - this is a collection of useful tools
218 for working with MooseX::Storage data
219 - added docs and test
222 - added test for a custom type handler
223 - fixed checksum test to skip if Digest::SHA1
224 (our default) is not available
227 * MooseX::Storage::Base::WithChecksum
228 - added a simple base role which makes a checksum of
229 the data structure before packing, and checks the
230 checksum before unpacking.
231 - added tests for this
233 * MooseX::Storage::Engine
234 - better error reporting when cycles are found
235 - class names are now stored as the full identifier
236 (<class>-<version>-<authority>) and are checked
237 when they are expanded.
238 - added docs and tests for this
240 * MooseX::Storage::Engine::IO::(AtomicFile, File)
241 - added checks to make sure the file gets opened correctly
242 and dies if it does not.
245 This was Chris's idea originally (blame him), and
246 we expanded on it to create what you see here :)