changed
README.md
|
@@ -139,7 +139,7 @@ shape.subscribe((data) => console.log(data));
|
139
139
|
|
140
140
|
Or binding a shape to a component using the [React bindings](https://electric-sql.com/docs/integrations/react):
|
141
141
|
|
142
|
- ```tsx
|
142
|
+ ```typescript
|
143
143
|
import { useShape } from "@electric-sql/react";
|
144
144
|
|
145
145
|
const MyComponent = () => {
|
changed
hex_metadata.config
|
@@ -1,7 +1,7 @@
|
1
1
|
{<<"links">>,
|
2
2
|
[{<<"Source code">>,<<"https://github.com/electric-sql/phoenix_sync">>}]}.
|
3
3
|
{<<"name">>,<<"phoenix_sync">>}.
|
4
|
- {<<"version">>,<<"0.4.1">>}.
|
4
|
+ {<<"version">>,<<"0.4.2">>}.
|
5
5
|
{<<"description">>,
|
6
6
|
<<"Real-time sync for Postgres-backed Phoenix applications.">>}.
|
7
7
|
{<<"elixir">>,<<"~> 1.17">>}.
|
|
@@ -21,9 +21,9 @@
|
21
21
|
<<"lib/phoenix/sync/writer/operation.ex">>,
|
22
22
|
<<"lib/phoenix/sync/writer/transaction.ex">>,
|
23
23
|
<<"lib/phoenix/sync/application.ex">>,<<"lib/phoenix/sync/controller.ex">>,
|
24
|
- <<"lib/phoenix/sync/router.ex">>,<<"lib/phoenix/sync/client.ex">>,
|
25
|
- <<"lib/phoenix/sync/writer.ex">>,<<"lib/phoenix/sync/electric.ex">>,
|
26
|
- <<"lib/phoenix/sync/live_view.ex">>,<<"lib/phoenix/sync.ex">>,
|
24
|
+ <<"lib/phoenix/sync/client.ex">>,<<"lib/phoenix/sync/writer.ex">>,
|
25
|
+ <<"lib/phoenix/sync/electric.ex">>,<<"lib/phoenix/sync/live_view.ex">>,
|
26
|
+ <<"lib/phoenix/sync/router.ex">>,<<"lib/phoenix/sync.ex">>,
|
27
27
|
<<".formatter.exs">>,<<"mix.exs">>,<<"README.md">>,<<"LICENSE">>]}.
|
28
28
|
{<<"requirements">>,
|
29
29
|
[[{<<"name">>,<<"nimble_options">>},
|
changed
lib/phoenix/sync/router.ex
|
@@ -135,7 +135,7 @@ defmodule Phoenix.Sync.Router do
|
135
135
|
unquote(path),
|
136
136
|
Phoenix.Sync.Router.Shape,
|
137
137
|
%{shape: unquote(Macro.escape(definition))},
|
138
|
- []
|
138
|
+ alias: false
|
139
139
|
)
|
140
140
|
end
|
141
141
|
end
|
changed
mix.exs
|
@@ -2,7 +2,7 @@ defmodule Phoenix.Sync.MixProject do
|
2
2
|
use Mix.Project
|
3
3
|
|
4
4
|
# Remember to update the README when you change the version
|
5
|
- @version "0.4.1"
|
5
|
+ @version "0.4.2"
|
6
6
|
|
7
7
|
def project do
|
8
8
|
[
|