Skip to content

Commit b31b54e

Browse files
committed
add support for phoenix 1.8
1 parent 0afdbf9 commit b31b54e

9 files changed

Lines changed: 20 additions & 9 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ kaffy-*.tar
3131
# Misc.
3232
.DS_Store
3333
.tool-versions
34+
mise.toml

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ 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.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## v0.11.0 (2025-10-02)
9+
10+
### Added
11+
- Support for phoenix 1.8
12+
13+
### Changed
14+
- With Kaffy v0.11.x, the minimum supported phoenix version is 1.7.21
15+
- Kaffy v0.10.x will no longer receive any updates.
16+
817
## v0.10.2 (2023-10-09)
918

1019
### Fixes

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ Starting with v0.10.0, Kaffy will officially support the latest two phoenix vers
6363

6464
| Kaffy | Supported phoenix versions |
6565
|---------|----------------------------|
66-
| v0.10.0 | 1.6, 1.7.0 |
67-
| v0.9.X | 1.5, 1.6, 1.7.0 |
66+
| v0.11.x | 1.7.21, 1.8.x |
67+
| v0.10.x | 1.6, 1.7.0 |
6868
| | |
6969

7070

lib/kaffy/routes.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ defmodule Kaffy.Routes do
2525
plug(:fetch_flash)
2626
plug(:protect_from_forgery)
2727
plug(:put_secure_browser_headers)
28-
plug(:put_root_layout, {KaffyWeb.LayoutView, :root})
28+
# plug(:put_root_layout, html: {KaffyWeb.LayoutView, :root})
29+
# plug(:put_layout, html: KaffyWeb.LayoutView)
2930
end
3031

3132
scope unquote(scoped), KaffyWeb do

lib/kaffy_web/controllers/home_controller.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule KaffyWeb.HomeController do
22
@moduledoc false
33

4-
use Phoenix.Controller, namespace: KaffyWeb
4+
use Phoenix.Controller, formats: [html: "View"]
55

66
def index(conn, _params) do
77
redirect(conn, to: Kaffy.Utils.home_page(conn))

lib/kaffy_web/controllers/page_controller.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule KaffyWeb.PageController do
22
@moduledoc false
33

4-
use Phoenix.Controller, namespace: KaffyWeb
4+
use Phoenix.Controller, formats: [html: "View"]
55

66
def index(conn, %{"slug" => slug}) do
77
case Kaffy.ResourceAdmin.find_page(conn, slug) do

lib/kaffy_web/controllers/resource_controller.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule KaffyWeb.ResourceController do
22
@moduledoc false
33

4-
use Phoenix.Controller, namespace: KaffyWeb
4+
use Phoenix.Controller, formats: [html: "View"]
55
alias Kaffy.Pagination
66

77
def dashboard(conn, %{"context" => context}) do

lib/kaffy_web/controllers/task_controller.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule KaffyWeb.TaskController do
22
@moduledoc false
33

4-
use Phoenix.Controller, namespace: KaffyWeb
4+
use Phoenix.Controller, formats: [html: "View"]
55

66
def index(conn, _params) do
77
render(conn, "index.html")

mix.exs

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

44
@source_url "https://github.com/aesmail/kaffy"
5-
@version "0.10.3"
5+
@version "0.11.0"
66

77
def project do
88
[
@@ -35,7 +35,7 @@ defmodule Kaffy.MixProject do
3535
# Run "mix help deps" to learn about dependencies.
3636
defp deps do
3737
[
38-
{:phoenix, "~> 1.7.10"},
38+
{:phoenix, "~> 1.7.21 or ~> 1.8.0"},
3939
{:phoenix_html, "~> 4.0"},
4040
{:phoenix_html_helpers, "~> 1.0"},
4141
{:phoenix_view, "~> 2.0.2"},

0 commit comments

Comments
 (0)