Skip to content

Commit d6ecaab

Browse files
authored
Release 0.4.4 (#69)
1 parent 6702aed commit d6ecaab

File tree

5 files changed

+38
-18
lines changed

5 files changed

+38
-18
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.4.4] - 2025-06-30
9+
10+
### Added
11+
12+
- Both controller- and router-based shapes now return CORS headers for all requests requests ([#62](https://github.com/electric-sql/phoenix_sync/pull/62))
13+
14+
### Changed
15+
16+
- Updated `electric_client` to support `Ecto.ULID`, `:map` and `:array` types ([v0.6.3](https://github.com/electric-sql/electric/releases/tag/%40core%2Felixir-client%400.6.3))
17+
- Updated `electric` to latest version ([v1.0.21](https://github.com/electric-sql/electric/releases/tag/%40core%2Fsync-service%401.0.21))
18+
19+
### Fixed
20+
21+
- `Phoenix.Sync` will now emit a warning if the configuration is missing the `env` setting ([#60](https://github.com/electric-sql/phoenix_sync/pull/60))
22+
823
## [0.4.3] - 2025-05-20
924

1025
### Changed

lib/phoenix/sync/electric.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,9 @@ defmodule Phoenix.Sync.Electric do
364364
:error ->
365365
opts
366366
end
367+
# TODO: remove this once https://github.com/electric-sql/electric/pull/2863
368+
# is released
369+
|> Keyword.put_new(:http_api_num_acceptors, nil)
367370
end
368371
else
369372
defp start_embedded(_env, _mode, _db_config_fun, _message) do

lib/phoenix/sync/plug/cors.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule Phoenix.Sync.Plug.CORS do
33
A `Plug` that adds the necessary CORS headers to responses from Electric sync
44
endpoints.
55
6-
`Phoenix.Sync.Controller.sync_render/4` and `Phoenix.Sync.Router.sync/2`
6+
`Phoenix.Sync.Controller.sync_render/3` and `Phoenix.Sync.Router.sync/2`
77
already include these headers so there's no need to add this plug to your
88
`Phoenix` or `Plug` router. This module is just exposed as a convenience.
99
"""
@@ -15,7 +15,8 @@ defmodule Phoenix.Sync.Plug.CORS do
1515
"electric-handle",
1616
"electric-offset",
1717
"electric-schema",
18-
"electric-up-to-date"
18+
"electric-up-to-date",
19+
"electric-internal-known-error"
1920
]
2021

2122
@expose_headers ["transfer-encoding" | @electric_headers]

mix.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule Phoenix.Sync.MixProject do
22
use Mix.Project
33

44
# Remember to update the README when you change the version
5-
@version "0.4.3"
5+
@version "0.4.4"
66

77
def project do
88
[
@@ -41,8 +41,8 @@ defmodule Phoenix.Sync.MixProject do
4141
{:plug, "~> 1.0"},
4242
{:jason, "~> 1.0"},
4343
{:ecto_sql, "~> 3.10", optional: true},
44-
{:electric, "~> 1.0.6", optional: true},
45-
{:electric_client, ">= 0.5.0-beta-1"}
44+
{:electric, "~> 1.0.21", optional: true},
45+
{:electric_client, "~> 0.6.3"}
4646
] ++ deps_for_env(Mix.env())
4747
end
4848

0 commit comments

Comments
 (0)