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