Skip to content

Releases: mrdougwright/unpack

Add 3rd default param

08 Nov 19:34
e7ce4c5
Compare
Choose a tag to compare

Unpack.get/3 takes a default value to return when key not found in get function.

Ecto is back!

02 Oct 17:06
Compare
Choose a tag to compare

Thanks to @alexpeachey for a great solution for Ecto.Association.NotLoaded!

No ecto

02 Oct 04:10
Compare
Choose a tag to compare

Reverted to Elixir 1.6
Removed handling of %Ecto.Association.NotLoaded{}.
Easy enough for users of this hex package to catch any unwanted values returned from Unpack.get/2

Correctly handle maps and structs.

01 Oct 22:18
32663aa
Compare
Choose a tag to compare

The first pass of Unpack handled structs and maps. This was refactored to utilize the Kernel.get_in/2 function. However, this function does not work for Structs. This release removes the Kernel function call and adds better tests.