Packages

Reload your mist web appliction in development, supports wisp etc.

Current section

2 Versions

Jump to

Compare versions

4 files changed
+24 additions
-24 deletions
  @@ -1,5 +1,5 @@
1 1 name = "mist_reload"
2 - version = "1.0.0"
2 + version = "1.0.1"
3 3
4 4 description = "Reload your mist web appliction in development, supports wisp etc."
5 5 licences = ["Apache-2.0"]
  @@ -9,7 +9,7 @@ links = []
9 9 [dependencies]
10 10 gleam_stdlib = ">= 0.44.0 and < 2.0.0"
11 11 radiate = ">= 1.0.0 and < 2.0.0"
12 - mist = ">= 5.0.3 and < 6.0.0"
12 + mist = ">= 5.0.3 and < 7.0.0"
13 13 gleam_erlang = ">= 1.3.0 and < 2.0.0"
14 14 gleam_http = ">= 4.2.0 and < 5.0.0"
15 15 gleam_otp = ">= 1.1.0 and < 2.0.0"
  @@ -1,6 +1,6 @@
1 1 {<<"name">>, <<"mist_reload">>}.
2 2 {<<"app">>, <<"mist_reload">>}.
3 - {<<"version">>, <<"1.0.0">>}.
3 + {<<"version">>, <<"1.0.1">>}.
4 4 {<<"description">>, <<"Reload your mist web appliction in development, supports wisp etc."/utf8>>}.
5 5 {<<"licenses">>, [<<"Apache-2.0">>]}.
6 6 {<<"build_tools">>, [<<"gleam">>]}.
  @@ -8,21 +8,21 @@
8 8 {<<"Repository">>, <<"https://github.com/crowdhailer/mist_reload">>}
9 9 ]}.
10 10 {<<"requirements">>, [
11 - {<<"radiate">>, [
12 - {<<"app">>, <<"radiate">>},
13 - {<<"optional">>, false},
14 - {<<"requirement">>, <<">= 1.0.0 and < 2.0.0">>}
15 - ]},
16 - {<<"gleam_http">>, [
17 - {<<"app">>, <<"gleam_http">>},
18 - {<<"optional">>, false},
19 - {<<"requirement">>, <<">= 4.2.0 and < 5.0.0">>}
20 - ]},
21 11 {<<"gleam_stdlib">>, [
22 12 {<<"app">>, <<"gleam_stdlib">>},
23 13 {<<"optional">>, false},
24 14 {<<"requirement">>, <<">= 0.44.0 and < 2.0.0">>}
25 15 ]},
16 + {<<"mist">>, [
17 + {<<"app">>, <<"mist">>},
18 + {<<"optional">>, false},
19 + {<<"requirement">>, <<">= 5.0.3 and < 7.0.0">>}
20 + ]},
21 + {<<"radiate">>, [
22 + {<<"app">>, <<"radiate">>},
23 + {<<"optional">>, false},
24 + {<<"requirement">>, <<">= 1.0.0 and < 2.0.0">>}
25 + ]},
26 26 {<<"gleam_erlang">>, [
27 27 {<<"app">>, <<"gleam_erlang">>},
28 28 {<<"optional">>, false},
  @@ -33,10 +33,10 @@
33 33 {<<"optional">>, false},
34 34 {<<"requirement">>, <<">= 1.1.0 and < 2.0.0">>}
35 35 ]},
36 - {<<"mist">>, [
37 - {<<"app">>, <<"mist">>},
36 + {<<"gleam_http">>, [
37 + {<<"app">>, <<"gleam_http">>},
38 38 {<<"optional">>, false},
39 - {<<"requirement">>, <<">= 5.0.3 and < 6.0.0">>}
39 + {<<"requirement">>, <<">= 4.2.0 and < 5.0.0">>}
40 40 ]}
41 41 ]}.
42 42 {<<"files">>, [
  @@ -12,15 +12,15 @@
12 12 -define(DOC(Str), -compile([])).
13 13 -endif.
14 14
15 - -type message(PPI) :: {register,
16 - gleam@erlang@process:subject(PPI),
15 + -type message(OKT) :: {register,
16 + gleam@erlang@process:subject(OKT),
17 17 gleam@erlang@process:subject(nil)} |
18 - {broadcast, PPI}.
18 + {broadcast, OKT}.
19 19
20 20 -type reload_message() :: reloaded.
21 21
22 22 -file("src/mist/reload.gleam", 106).
23 - -spec loop(PPR, reload_message(), mist:s_s_e_connection()) -> gleam@otp@actor:next(PPR, any()).
23 + -spec loop(OLC, reload_message(), mist:s_s_e_connection()) -> gleam@otp@actor:next(OLC, any()).
24 24 loop(State, Message, Conn) ->
25 25 case Message of
26 26 reloaded ->
  @@ -68,7 +68,7 @@ debug_handler(Registry, Handler) ->
68 68 Handler(Request)
69 69 end,
70 70 case erlang:element(4, Response) of
71 - {websocket, _} ->
71 + websocket ->
72 72 Response;
73 73
74 74 {bytes, Tree} ->
  @@ -107,13 +107,13 @@ debug_handler(Registry, Handler) ->
107 107 Response
108 108 end;
109 109
110 - {chunked, _} ->
110 + chunked ->
111 111 Response;
112 112
113 113 {file, _, _, _} ->
114 114 Response;
115 115
116 - {server_sent_events, _} ->
116 + server_sent_events ->
117 117 Response
118 118 end
119 119 end.
  @@ -1,5 +1,5 @@
1 1 {application, mist_reload, [
2 - {vsn, "1.0.0"},
2 + {vsn, "1.0.1"},
3 3 {applications, [gleam_erlang,
4 4 gleam_http,
5 5 gleam_otp,