File tree Expand file tree Collapse file tree 6 files changed +18
-6
lines changed
Expand file tree Collapse file tree 6 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,15 @@ Types of changes
1818
1919put your changes here
2020
21- ## [ 0.3.0] - 2023-07-??
21+ ## [ 0.3.0] - 2023-08-05
2222
23- * renamed library from ` ecto_named_fragment ` to ` ecto_fragment_extras ` because it contains a little more than just the named_fragment() macro now
23+ * renamed library from ` ecto_named_fragment ` to ` ecto_fragment_extras ` because it contains a little more than just the named_fragment() macro now 👇
2424* added inline fragments which allow inlining fragment params into the query string:
2525
2626 ``` elixir
2727 inline_fragment (" coalesce(#{ users.name } , #{ ^default_name } )" )
2828 ```
29+ * added ` frag/1 ` and ` frag/2 ` as a shorthand for inline and named fragments depending on the arity it is called with.
2930
3031## [ 0.2.0] - 2023-07-24
3132
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ defmodule EctoFragmentExtras.MixProject do
44 def project do
55 [
66 app: :ecto_fragment_extras ,
7- version: "0.2 .0" ,
7+ version: "0.3 .0" ,
88 elixir: "~> 1.14" ,
99 start_permanent: Mix . env ( ) == :prod ,
1010 deps: deps ( ) ,
Original file line number Diff line number Diff line change 11defmodule ConvertInlineParamsTest do
2- use ExUnit.Case
2+ use ExUnit.Case , async: true
33 doctest EctoFragmentExtras
44
55 alias EctoFragmentExtras.ConvertInlineParams
Original file line number Diff line number Diff line change 11defmodule ConvertNamedParamsTest do
2- use ExUnit.Case
2+ use ExUnit.Case , async: true
33 doctest EctoFragmentExtras
44
55 alias EctoFragmentExtras.ConvertNamedParams
Original file line number Diff line number Diff line change 11defmodule EctoFragmentExtrasTest do
2- use ExUnit.Case
2+ use ExUnit.Case , async: true
33 doctest EctoFragmentExtras
44
55 import Ecto.Query
Original file line number Diff line number Diff line change 1+ defmodule ReadmeTest do
2+ use ExUnit.Case , async: true
3+
4+ test "version in readme matches mix.exs" do
5+ readme_markdown = File . read! ( Path . join ( __DIR__ , "../README.md" ) )
6+ mix_config = Mix.Project . config ( )
7+ version = mix_config [ :version ]
8+ assert version == "0.3.0"
9+ assert readme_markdown =~ ~s( {:ecto_fragment_extras, "~> #{ version } "})
10+ end
11+ end
You can’t perform that action at this time.
0 commit comments