Releases: mirage/irmin
2.2.0
CHANGES:
Added
-
irmin:
-
ppx_irmin
Changed
-
irmin:
-
Add sanity checks when creating
Irmin.Type
records, variants and enums
(#956 and #966, @liautaud):Irmin.Type.{sealr,sealv,enum}
will now raiseInvalid_argument
if two
components have the same name;Irmin.Type.{field,case0,case1}
will now raiseInvalid_argument
if
the component name is not a valid UTF-8 string.
-
Changed the JSON encoding of options and unit to avoid ambiguous cases
(#967, @liautaud):()
is now encoded as{}
;None
is now encoded asnull
;Some x
is now encoded as{"some": x}
;- Fields of records which have value
None
are still omitted; - Fields of records which have value
Some x
are still unboxed intox
.
-
Changed pretty-printing of Irmin types to more closely resemble OCaml types.
e.g.pair int string
prints asint * string
. (#997, @craigfe) -
The type
Irmin.S.tree
is now abstract. The previous form can be coerced
to/from the abstract representation with the new functions
Irmin.S.Tree.{v,destruct}
respectively. (#990, @craigfe)
-
irmin-mem
Fixed
2.1.0
CHANGES:
Added
-
ppx_irmin (new):
- Created a new package,
ppx_irmin
, which provides a PPX deriving plugin
for generating Irmin generics.
- Created a new package,
-
irmin-unix:
-
irmin:
- Added
Irmin.Hash.Make_BLAKE2B
andIrmin.Hash.Make_BLAKE2S
functors for
customizing the bit-length of these hash functions. (#898, @craigfe) - Added
iter
function over a closure graph (#912, @ioana) - Added
Type.pp_ty
for pretty-printing Irmin generics. (#926, @craigfe) - Added
Merge.with_conflict
for modifying the conflict error message of a
merge function. (#926, @craigfe)
- Added
Changed
2.0.0
CHANGES:
Added
-
irmin-pack (new):
- Created a new Irmin backend,
irmin-pack
, which uses a space-optimised
on-disk format.
- Created a new Irmin backend,
-
irmin-graphql (new):
-
Created a new package,
irmin-graphql
, which provides a GraphQL server
implementation that can be used with both the MirageOS and Unix backends.
Additionally, agraphql
command has been added to the command-line
interface for startingirmin-graphql
servers. (#558, @andreas, @zshipko) -
Contents can now be queried directly using
irmin-graphql
with
Irmin_graphql.Server.Make_ext
and theIrmin_graphql.Server.PRESENTER
interface. (#643, @andreas)
-
-
irmin-test (new):
-
irmin-unix:
-
irmin-git:
-
irmin-http:
-
irmin:
-
Add
Json_value
andJson
content types. (#516 #694, @zshipko) -
Add optional seed parameter to the
Irmin.Type
generic hash functions.
(#712, @samoht) -
Add
V1
submodules inCommit
,Contents
andHash
to provide
compatibility with 1.x serialisation formats. (#644 #666, @samoht) -
Add
Store.last_modified
function, which provides a list of commits where
the given key was modified last. (#617, @pascutto) -
Add a
Content_addressable.unsafe_add
function allowing the key of the new
value to be specified explicitly (for performance reasons). (#783, @samoht) -
Add
save_contents
function for saving contents to the database. (#689,
@samoht) -
Add pretty-printers for the results of Sync operations. (#789, @craigfe)
-
Private.Lock
now exposes astats
function returning the number of held
locks. (#704, @samoht)
-
Changed
-
irmin-unix:
-
irmin-git:
-
irmin-http:
-
irmin-mirage
-
irmin:
-
Update to use dune (#534, @samoht) and opam 2.0. (#583, @samoht)
-
Replace
Irmin.Contents.S0
withIrmin.Type.S
. -
Rename
Type.pre_digest
->Type.pre_hash
andType.hash
->
Type.short_hash
. (#720, @samoht) -
Change
Irmin.Type
to use incremental hash functions (functions of type
'a -> (string -> unit) -> unit
) for performance reasons. (#751, @samoht) -
Simplify the
Irmin.Type.like
constructor and add a newIrmin.Type.map
with the previous behaviour. -
Improvements to
Irmin.Type
combinators. (#550 #538 #652 #653 #655 #656
#688, @samoht) -
Modify
Store.set
to return a result type and create a newStore.set_exn
with the previous exception-raising behaviour. (#572, @samoht) -
Rename store module types to be more descriptive:
-
Rename
export_tree
tosave_tree
(#689, @samoht) and add an option to
conditionally clear the tree cache (#702 #725, @samoht). -
Change hash function for
Irmin_{fs,mem,unix}.KV
to BLAKE2b rather than
SHA1 for security reasons. (#811, @craigfe) -
Move
Irmin.remote_uri
toStore.remote
, for stores that support remote
operations. (#552, @samoht) -
Simplify the error cases of fetch/pull/push operations. (#684, @zshipko)
-
A
batch
function has been added to the backend definition to allow for
better control over how groups of operations are processed. (#609, @samoht) -
A
close
function has been added to allow backends to close any held
resources (e.g. file descriptors for theFS
backend). (#845, @samoht) -
Simplify
Private.Node.Make
parameters to use a simpler notion of 'path' in
terms of a list of steps. (#645, @samoht)
-
Fixed
-
irmin-unix:
-
irmin-git:
-
irmin-http:
-
irmin:
Removed
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.3.0 (2017-07-27)
irmin-chunk
Add a new package: irmin-chunk
, which was initially in a separate repository
created by @mounirnasrallah and @samoht and ported to the new Irmin API by
@g2p (#464)
irmin-unix
Re-add the irmin
binary, the example application which used to be
installed by irmin-unixbefore we switched to use
jbuilder`
(#466, @samoht -- reported by @ouenzzo and @dudelson)
irmin
That releases saw a nice series of patches to improve the performance of
Irmin.Tree
contributed by the Tezos team:
-
Improve complexity of
Irmin.Tree
operations: on trivial benchmarks with
a lot of values, this patch introduces a 10-times speed-up
(#457, @OCamlPro-Henry) -
Add missing equality for
Irmin.Type
primitives (#458, @OCamlPro-Henry) -
Change the type of
Hash.digest
to also take a type representation
(#458, @OCamlPro-Henry) -
add
Irmin.Type.{encode,decode}_cstruct
(#458, @OCamlPro-Henry) -
remove
Irmin.Contents.RAW
(#458, @OCamlPro-Henry) -
avoid unecessary serialization and deserialization when computing hashes
of cstructs (#459, @OCamlPro-Henry) -
remove
{Type,Merge}.int
which might cause some issue on 32 bits platforms.
Intead use the more explicit (and portable){Type,Merge}.int32
or
{Type,Merge}.int64
(#469, @samoht)
1.2.0
1.2.0 (2017-06-06)
This release changes the build system to use
jbuilder. By doing so, it introduces
two new packages: irmin-mem
and irmin-fs
-- containing Irmin_mem
and
Irmin_fs
respectively. That release also fixes a bunch of regressions
introduced in the big 1.0 rewrite.
all
irmin
- Fix
Irmin.Contents.Cstruct
: pretty-print the raw contents, not the hexdump
(#442, @samoht) Irmin.Hash.X.of_string
should not raise an exception on invalid hash
(#443, @samoht)
irmin-mem
- New package! Use it if you want to use the
Irmin_mem
module.
irmin-fs
- New package! Use it if you want to use the
Irmin_fs
module.
irmin-git
1.1.0
1.1.0 (2017-04-24)
irmin
- Change the type of
S.Tree.find_tree
to return atree option
instead of
tree
. This is a breaking API change but it let distinguish between
the empty and non-existent cases (#431, @samoht) - Allow to specify branches in urls for fetch using the
url#branch
syntax
(#432, @samoht) - Expose
Irmin.Merge.idempotent
for values with idempotent operations
(#433, @samoht) - Add a
S.repo
type as an alias to theS.Repo.t
(#436, @samoht) - Fix regression in
S.Tree.diff
intoduced in the 1.0 release: nested
differences where reported with the wrong path (#438, @samoht)
irmin-unix
- Update to irmin.1.1.0 API changes (@samoht)
irmin-git
- Update to irmin.1.1.0 API changes (@samoht)