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