Current section

7 Versions

Jump to

Compare versions

5 files changed
+15 additions
-14 deletions
  @@ -14,9 +14,10 @@ import datastar/ds_sse
14 14 import datastar/ds_wisp
15 15
16 16 let events = [
17 - ds_sse.merge_fragments("<span>Hello</span>")
18 - |> ds_sse.merge_fragments_selector("#notice")
19 - |> ds_sse.merge_fragments_end,
17 + ds_sse.patch_elements()
18 + |> ds_sse.patch_elements_elements("<span>Hello</span>")
19 + |> ds_sse.patch_elements_selector("#notice")
20 + |> ds_sse.patch_elements_end,
20 21 ]
21 22
22 23 wisp.ok()
  @@ -1,5 +1,5 @@
1 1 name = "datastar_wisp"
2 - version = "4.0.1"
2 + version = "5.0.0"
3 3
4 4 description = "Wisp adaptor for Datastar"
5 5 licences = ["MIT"]
  @@ -7,8 +7,8 @@ repository = { type = "github", user = "sporto", repo = "gleam-datastar" }
7 7
8 8 [dependencies]
9 9 gleam_stdlib = ">= 0.34.0 and < 2.0.0"
10 - wisp = ">= 1.0.0 and < 2.0.0"
11 10 datastar = ">= 4.0.1 and < 5.0.0"
11 + wisp = ">= 2.0.0 and < 3.0.0"
12 12 # datastar = { path = "../datastar" }
13 13
14 14 [dev-dependencies]
  @@ -1,6 +1,6 @@
1 1 {<<"name">>, <<"datastar_wisp">>}.
2 2 {<<"app">>, <<"datastar_wisp">>}.
3 - {<<"version">>, <<"4.0.1">>}.
3 + {<<"version">>, <<"5.0.0">>}.
4 4 {<<"description">>, <<"Wisp adaptor for Datastar"/utf8>>}.
5 5 {<<"licenses">>, [<<"MIT">>]}.
6 6 {<<"build_tools">>, [<<"gleam">>]}.
  @@ -8,11 +8,6 @@
8 8 {<<"Repository">>, <<"https://github.com/sporto/gleam-datastar">>}
9 9 ]}.
10 10 {<<"requirements">>, [
11 - {<<"gleam_stdlib">>, [
12 - {<<"app">>, <<"gleam_stdlib">>},
13 - {<<"optional">>, false},
14 - {<<"requirement">>, <<">= 0.34.0 and < 2.0.0">>}
15 - ]},
16 11 {<<"datastar">>, [
17 12 {<<"app">>, <<"datastar">>},
18 13 {<<"optional">>, false},
  @@ -21,7 +16,12 @@
21 16 {<<"wisp">>, [
22 17 {<<"app">>, <<"wisp">>},
23 18 {<<"optional">>, false},
24 - {<<"requirement">>, <<">= 1.0.0 and < 2.0.0">>}
19 + {<<"requirement">>, <<">= 2.0.0 and < 3.0.0">>}
20 + ]},
21 + {<<"gleam_stdlib">>, [
22 + {<<"app">>, <<"gleam_stdlib">>},
23 + {<<"optional">>, false},
24 + {<<"requirement">>, <<">= 0.34.0 and < 2.0.0">>}
25 25 ]}
26 26 ]}.
27 27 {<<"files">>, [
  @@ -1,5 +1,5 @@
1 1 -module(datastar@ds_wisp).
2 - -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
2 + -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
3 3 -define(FILEPATH, "src/datastar/ds_wisp.gleam").
4 4 -export([send/2]).
  @@ -1,5 +1,5 @@
1 1 {application, datastar_wisp, [
2 - {vsn, "4.0.1"},
2 + {vsn, "5.0.0"},
3 3 {applications, [datastar,
4 4 gleam_stdlib,
5 5 wisp]},