File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
8
+ ## 1.1.2
9
+ * Add support for loading nil dates
10
+
11
+ ## 1.1.1
12
+ * Allow ` binary_id ` fields to be nil
13
+
14
+ ## 1.1.0
15
+ * Add support for Ecto 1.11
16
+
8
17
## 1.0.0
9
18
10
19
* Introduce support for Ecto 3
Original file line number Diff line number Diff line change @@ -453,6 +453,10 @@ defmodule Mongo.Ecto do
453
453
454
454
defp load_time ( time ) , do: time
455
455
456
+ defp load_date ( nil ) do
457
+ { :ok , nil }
458
+ end
459
+
456
460
defp load_date ( date ) do
457
461
{ :ok , date |> DateTime . to_date ( ) }
458
462
end
@@ -475,6 +479,8 @@ defmodule Mongo.Ecto do
475
479
:error
476
480
end
477
481
482
+ defp load_objectid ( nil ) , do: { :ok , nil }
483
+
478
484
defp load_objectid ( _arg ) , do: :error
479
485
480
486
@ impl true
@@ -573,6 +579,7 @@ defmodule Mongo.Ecto do
573
579
ArgumentError -> :error
574
580
end
575
581
582
+ defp dump_objectid ( nil ) , do: { :ok , nil }
576
583
defp dump_objectid ( _ ) , do: :error
577
584
578
585
@ impl Ecto.Adapter.Schema
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ defmodule Mongo.Ecto.Mixfile do
2
2
use Mix.Project
3
3
4
4
@ source_url "https://github.com/elixir-mongo/mongodb_ecto"
5
- @ version "1.1.0 "
5
+ @ version "1.1.2 "
6
6
7
7
def project do
8
8
[
You can’t perform that action at this time.
0 commit comments