From 4da560e0ffdb1467ae419a476f67eb58d4a8cbda Mon Sep 17 00:00:00 2001 From: Mirko Westermeier Date: Wed, 21 Nov 2018 17:09:53 +0100 Subject: [PATCH 1/2] Add compatibility warning to README --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 48ebd21..010c3c4 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,12 @@ $store->store_event(UserAdded => {id => 17, name => 'Bob'}); say 'His name is ' . $store->snapshot->state->{users}{17}{name}; # Bob ``` +**ATTENTION**: From version 0.6 on the serialization format is changed from [Storable][] to [YAML][]. Use [convert_storable_to_yaml.pl][script] to use your old event store with newer versions. + +[Storable]: https://metacpan.org/pod/Storable +[YAML]: https://metacpan.org/pod/YAML::XS +[script]: convert_storable_to_yaml.pl + ## Intro In Event Sourcing, the state of a system is calculated as the application of a stream of events representing each change of the system. This framework is a minimal approach to use these mechanics in simple perl systems. From b4c8dad574b8852bee0db2d1df0c67a19a3623d9 Mon Sep 17 00:00:00 2001 From: Mirko Westermeier Date: Wed, 21 Nov 2018 17:10:03 +0100 Subject: [PATCH 2/2] Add dependency --- Makefile.PL | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.PL b/Makefile.PL index 5f8ce4b..5327bbd 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -24,6 +24,7 @@ WriteMakefile( 'Data::Compare' => '1.25', 'Data::Dump' => '1.23', 'UUID::Tiny' => '1.04', + 'YAML::XS' => '0.75', }, TEST_REQUIRES => { 'Test::Pod' => '1.52',