Skip to content

Commit b639542

Browse files
authored
update changelog for 0.2.1 (#78)
1 parent c81d99c commit b639542

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [0.3.0] - Unreleased
99

10-
[Compare with 0.2.0](https://github.com/nsidnev/edgedb-elixir/compare/v0.2.0...HEAD)
10+
[Compare with 0.2.1](https://github.com/nsidnev/edgedb-elixir/compare/v0.2.1...HEAD)
11+
12+
## [0.2.1] - 2022-05-19
13+
14+
[Compare with 0.2.0](https://github.com/nsidnev/edgedb-elixir/compare/v0.2.0...v0.2.1)
15+
16+
### Removed
17+
18+
- mention of `:repeatable_read` option for transaction isolation mode from `t:EdgeDB.edgedb_transaction_option/0`.
19+
20+
### Fixed
21+
22+
- codec name returned by codec for `std::str` from `std::uuid` to `str::str`.
23+
- documentation for the custom codec example, which did not have a `Codec.decode/3` implementation and used the wrong protocol.
1124

1225
## [0.2.0] - 2022-05-03
1326

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule EdgeDB.MixProject do
22
use Mix.Project
33

44
@app :edgedb
5-
@version "0.2.0"
5+
@version "0.2.1"
66
@source_url "https://github.com/nsidnev/edgedb-elixir"
77
@description "EdgeDB driver for Elixir"
88

pages/custom-codecs.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,24 @@ defmodule MyApp.EdgeDB.Codecs.JSONPayload do
5858

5959
defstruct []
6060

61+
@impl EdgeDB.Protocol.CustomCodec
6162
def new do
6263
%__MODULE__{}
6364
end
6465

66+
@impl EdgeDB.Protocol.CustomCodec
6567
def name do
6668
"default::JSONPayload"
6769
end
6870
end
6971

70-
defimpl EdgeDB.Protocol.CustomCodec, for: MyApp.EdgeDB.Codecs.JSONPayload do
72+
defimpl EdgeDB.Protocol.Codec, for: MyApp.EdgeDB.Codecs.JSONPayload do
7173
alias EdgeDB.Protocol.{
7274
Codec,
7375
CodecStorage
7476
}
7577

78+
alias MyApp.EdgeDB.Codecs.JSONPayload
7679
alias MyApp.Users.Payload
7780

7881
@impl Codec
@@ -83,7 +86,9 @@ defimpl EdgeDB.Protocol.CustomCodec, for: MyApp.EdgeDB.Codecs.JSONPayload do
8386

8487
@impl Codec
8588
def encode(_codec, value, codec_storage) do
86-
raise RuntimeError, "#{__MODULE__} codec can encode only #{Payload} struct"
89+
raise EdgeDB.Error.interface_error(
90+
"unexpected value to encode as #{inspect(JSONPayload.name())}: #{inspect(value)}"
91+
)
8792
end
8893

8994
@impl Codec

0 commit comments

Comments
 (0)