Current section
20 Versions
Jump to
Current section
20 Versions
Compare versions
4
files changed
+38
additions
-31
deletions
| @@ -1,5 +1,11 @@ | |
| 1 1 | # Changelog |
| 2 2 | |
| 3 | + ## v0.7.3 (2026-04-06) |
| 4 | + |
| 5 | + ### Bug fixes |
| 6 | + |
| 7 | + * Fixed `Versionstamp.from_integer/1` raising `FunctionClauseError` when the versionstamp id has leading zero bytes. |
| 8 | + |
| 3 9 | ## v0.7.2 (2026-04-05) |
| 4 10 | |
| 5 11 | ### Bug fixes |
| @@ -2,37 +2,9 @@ | |
| 2 2 | [{<<"GitHub">>, |
| 3 3 | <<"https://github.com/foundationdb-beam/ecto_foundationdb">>}]}. |
| 4 4 | {<<"name">>,<<"ecto_foundationdb">>}. |
| 5 | - {<<"version">>,<<"0.7.2">>}. |
| 5 | + {<<"version">>,<<"0.7.3">>}. |
| 6 6 | {<<"description">>,<<"FoundationDB adapter for Ecto">>}. |
| 7 7 | {<<"elixir">>,<<"~> 1.15">>}. |
| 8 | - {<<"app">>,<<"ecto_foundationdb">>}. |
| 9 | - {<<"licenses">>,[<<"Apache-2.0">>]}. |
| 10 | - {<<"requirements">>, |
| 11 | - [[{<<"name">>,<<"erlfdb">>}, |
| 12 | - {<<"app">>,<<"erlfdb">>}, |
| 13 | - {<<"optional">>,false}, |
| 14 | - {<<"requirement">>,<<"~> 1.0">>}, |
| 15 | - {<<"repository">>,<<"hexpm">>}], |
| 16 | - [{<<"name">>,<<"ecto">>}, |
| 17 | - {<<"app">>,<<"ecto">>}, |
| 18 | - {<<"optional">>,false}, |
| 19 | - {<<"requirement">>,<<"~> 3.13">>}, |
| 20 | - {<<"repository">>,<<"hexpm">>}], |
| 21 | - [{<<"name">>,<<"jason">>}, |
| 22 | - {<<"app">>,<<"jason">>}, |
| 23 | - {<<"optional">>,false}, |
| 24 | - {<<"requirement">>,<<"~> 1.4">>}, |
| 25 | - {<<"repository">>,<<"hexpm">>}], |
| 26 | - [{<<"name">>,<<"phoenix">>}, |
| 27 | - {<<"app">>,<<"phoenix">>}, |
| 28 | - {<<"optional">>,true}, |
| 29 | - {<<"requirement">>,<<"~> 1.0">>}, |
| 30 | - {<<"repository">>,<<"hexpm">>}], |
| 31 | - [{<<"name">>,<<"phoenix_live_view">>}, |
| 32 | - {<<"app">>,<<"phoenix_live_view">>}, |
| 33 | - {<<"optional">>,true}, |
| 34 | - {<<"requirement">>,<<"~> 1.1">>}, |
| 35 | - {<<"repository">>,<<"hexpm">>}]]}. |
| 36 8 | {<<"files">>, |
| 37 9 | [<<"lib">>,<<"lib/ecto_foundationdb">>, |
| 38 10 | <<"lib/ecto_foundationdb/query_plan.ex">>, |
| @@ -100,4 +72,32 @@ | |
| 100 72 | <<"lib/fdb">>,<<"lib/fdb/stream.ex">>,<<"lib/fdb/lazy_range_iterator.ex">>, |
| 101 73 | <<".formatter.exs">>,<<"mix.exs">>,<<"README.md">>,<<"LICENSE.md">>, |
| 102 74 | <<"CHANGELOG.md">>]}. |
| 75 | + {<<"app">>,<<"ecto_foundationdb">>}. |
| 76 | + {<<"licenses">>,[<<"Apache-2.0">>]}. |
| 77 | + {<<"requirements">>, |
| 78 | + [[{<<"name">>,<<"erlfdb">>}, |
| 79 | + {<<"app">>,<<"erlfdb">>}, |
| 80 | + {<<"optional">>,false}, |
| 81 | + {<<"requirement">>,<<"~> 1.0">>}, |
| 82 | + {<<"repository">>,<<"hexpm">>}], |
| 83 | + [{<<"name">>,<<"ecto">>}, |
| 84 | + {<<"app">>,<<"ecto">>}, |
| 85 | + {<<"optional">>,false}, |
| 86 | + {<<"requirement">>,<<"~> 3.13">>}, |
| 87 | + {<<"repository">>,<<"hexpm">>}], |
| 88 | + [{<<"name">>,<<"jason">>}, |
| 89 | + {<<"app">>,<<"jason">>}, |
| 90 | + {<<"optional">>,false}, |
| 91 | + {<<"requirement">>,<<"~> 1.4">>}, |
| 92 | + {<<"repository">>,<<"hexpm">>}], |
| 93 | + [{<<"name">>,<<"phoenix">>}, |
| 94 | + {<<"app">>,<<"phoenix">>}, |
| 95 | + {<<"optional">>,true}, |
| 96 | + {<<"requirement">>,<<"~> 1.0">>}, |
| 97 | + {<<"repository">>,<<"hexpm">>}], |
| 98 | + [{<<"name">>,<<"phoenix_live_view">>}, |
| 99 | + {<<"app">>,<<"phoenix_live_view">>}, |
| 100 | + {<<"optional">>,true}, |
| 101 | + {<<"requirement">>,<<"~> 1.1">>}, |
| 102 | + {<<"repository">>,<<"hexpm">>}]]}. |
| 103 103 | {<<"build_tools">>,[<<"mix">>]}. |
| @@ -55,7 +55,8 @@ defmodule EctoFoundationDB.Versionstamp do | |
| 55 55 | |
| 56 56 | def from_integer(int) when is_integer(int) do |
| 57 57 | bin = :binary.encode_unsigned(int, :big) |
| 58 | - {vs} = :erlfdb_tuple.unpack(<<@vs96>> <> bin) |
| 58 | + padding = :binary.copy(<<0>>, 12 - byte_size(bin)) |
| 59 | + {vs} = :erlfdb_tuple.unpack(<<@vs96>> <> padding <> bin) |
| 59 60 | vs |
| 60 61 | end |
| @@ -4,7 +4,7 @@ defmodule EctoFoundationdb.MixProject do | |
| 4 4 | def project do |
| 5 5 | [ |
| 6 6 | app: :ecto_foundationdb, |
| 7 | - version: "0.7.2", |
| 7 | + version: "0.7.3", |
| 8 8 | description: "FoundationDB adapter for Ecto", |
| 9 9 | elixir: "~> 1.15", |
| 10 10 | start_permanent: Mix.env() == :prod, |