Current section

14 Versions

Jump to

Compare versions

23 files changed
+75 additions
-94 deletions
  @@ -2,6 +2,17 @@
2 2
3 3 ## Unreleased
4 4
5 + ## v0.5.0
6 +
7 + ### `Combo`
8 +
9 + - rename `json_module/0` to `json_library/0`, because other packages are using the same pattern, like `:postgrex`, `:swoosh`, etc.
10 + - change default json_library to `Jason`
11 +
12 + ### `Combo.Proxy`
13 +
14 + - sort backends by specificity
15 +
5 16 ## v0.4.1
6 17
7 18 ### `Combo.Proxy`
  @@ -9,23 +9,6 @@ A web framework, that combines the good parts of modern web development.
9 9
10 10 Read the [documentation](https://hexdocs.pm/combo).
11 11
12 - ## About
13 -
14 - Combo started as a fork of [Phoenix](https://github.com/phoenixframework/phoenix). Its goals includes:
15 -
16 - - being a typical MVC framework.
17 - - integrating with the modern frontend tooling.
18 - - ...
19 -
20 - To archive the goals, it:
21 -
22 - - merges closely related dependencies, such as `phoenix_template`, `phoenix_html`, `phoenix_live_reload` etc.
23 - - merges the HEEx engine-related code from `phoenix_live_view` and completely removes the dependency on `phoenix_live_view`.
24 - - provides packages for integrating with the modern frontend tooling.
25 - - ...
26 -
27 - Although Combo is forked from Phoenix and will continue to track upstream changes in the future, full compatibility between the two is not guaranteed.
28 -
29 12 ## Contributing
30 13
31 14 We appreciate any contribution to Combo. Check our [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) and [CONTRIBUTING.md](CONTRIBUTING.md) guides for more information. We usually keep a list of features and bugs in the [issue tracker](https://github.com/combo-lab/combo/issues).
  @@ -1,9 +1,9 @@
1 1 {<<"links">>,
2 2 [{<<"Source">>,<<"https://github.com/combo-lab/combo">>},
3 3 {<<"Changelog">>,
4 - <<"https://github.com/combo-lab/combo/blob/v0.4.1/CHANGELOG.md">>}]}.
4 + <<"https://github.com/combo-lab/combo/blob/v0.5.0/CHANGELOG.md">>}]}.
5 5 {<<"name">>,<<"combo">>}.
6 - {<<"version">>,<<"0.4.1">>}.
6 + {<<"version">>,<<"0.5.0">>}.
7 7 {<<"description">>,
8 8 <<"A web framework, that combines the good parts of modern web development.">>}.
9 9 {<<"elixir">>,<<"~> 1.18">>}.
  @@ -7,7 +7,7 @@ defmodule Combo do
7 7
8 8 @doc false
9 9 def start(_type, _args) do
10 - warn_on_missing_json_module()
10 + warn_on_missing_json_library()
11 11
12 12 # Warm up caches
13 13 _ = Combo.Template.engines()
  @@ -27,8 +27,8 @@ defmodule Combo do
27 27 Supervisor.start_link(children, strategy: :one_for_one, name: Combo.Supervisor)
28 28 end
29 29
30 - defp warn_on_missing_json_module do
31 - module = json_module()
30 + defp warn_on_missing_json_library do
31 + module = json_library()
32 32
33 33 if module && not Code.ensure_loaded?(module) do
34 34 IO.warn("""
  @@ -40,17 +40,17 @@ defmodule Combo do
40 40 end
41 41
42 42 @doc """
43 - Returns the value of `:json_module` option, which specifies the module
43 + Returns the value of `:json_library` option, which specifies the module
44 44 for JSON encoding.
45 45
46 46 To customize the JSON module, including the following in your
47 47 `config/config.exs`:
48 48
49 - config :combo, :json_module, Jason
49 + config :combo, :json_library, JSON
50 50
51 51 """
52 - def json_module do
53 - Application.get_env(:combo, :json_module, JSON)
52 + def json_library do
53 + Application.get_env(:combo, :json_library, Jason)
54 54 end
55 55
56 56 @doc """
  @@ -302,8 +302,7 @@ defmodule Combo.Channel.Server do
302 302 Process.put(:"$initial_call", {channel, :join, 3})
303 303 Process.put(:"$callers", [pid])
304 304
305 - # TODO: replace with Process.put_label/2 when we require Elixir 1.17
306 - Process.put(:"$process_label", {Combo.Channel, channel, topic})
305 + Process.set_label({Combo.Channel, channel, topic})
307 306
308 307 socket = %{
309 308 socket
Loading more files…