Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Oct 6, 2023
1 parent 4b19e58 commit c8fdbe3
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 11 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,29 @@ styled with Tailwind CSS by default. You can opt-out of Tailwind CSS with the `-
flag (the Tailwind CSS classes are kept in the generated components as reference for
future styling).

## 1.7.9-dev

### Bug fixes
* [Phoenix.ChannelTest] Stringify lists when pushing data
* [Phoenix.Controller] Fix filename when sending downloads with non-ascii names
* [Phoenix.CodeReloader] Remove duplicate warnings on recent Elixir versions
* [Phoenix.CodeReloader] Do not crash code reloader if file information is missing from diagnostic
* [Phoenix.Logger] Do not crash when status is atom
* [phx.gen.*] Skip map inputs in generated forms as there is no trivial matching input
* [phx.new] Fix tailwind/esbuild config and paths in umbrella projects
* [phx.new] Do not render `th` for actions if actions are empty

### Enhancements
* [Phoenix] Allow latest `plug_crypto`
* [Phoenix.Endpoint] Support dynamic socket drainer configuration
* [Phoenix.Logger] Change socket serializer/version logs to warning
* [phx.gen.schema] Support `--repo` and `--migration-dir` flags
* [phx.new] Allow `<.input type="checkbox">` without `value` attr in core components
* [phx.new] Allow UTC datetimes in the generators
* [phx.new] Automatically migrate when release starts when using sqlite 3
* [phx.new] Allow ID to be assigned in flash component
* [phx.routes] Support `--method` option

## 1.7.8

### Bug Fixes
Expand Down
14 changes: 4 additions & 10 deletions lib/phoenix/endpoint.ex
Original file line number Diff line number Diff line change
Expand Up @@ -580,17 +580,11 @@ defmodule Phoenix.Endpoint do
Generates a route to a static file in `priv/static`.
"""
def static_path(path) do
{path, fragment} = path_and_fragment(path)
prefix = persistent!().static_path

persistent!().static_path <> elem(static_lookup(path), 0) <> fragment
end

defp path_and_fragment(path_incl_fragment) do
path_incl_fragment
|> String.split("#", parts: 2)
|> case do
[path, fragment] -> {path, "#" <> fragment}
[path | _] -> {path, ""}
case :binary.split(path, "#") do
[path, fragment] -> prefix <> elem(static_lookup(path), 0) <> "#" <> fragment
[path] -> prefix <> elem(static_lookup(path), 0)
end
end

Expand Down
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"cowlib": {:hex, :cowlib, "2.12.1", "a9fa9a625f1d2025fe6b462cb865881329b5caff8f1854d1cbc9f9533f00e1e1", [:make, :rebar3], [], "hexpm", "163b73f6367a7341b33c794c4e88e7dbfe6498ac42dcd69ef44c5bc5507c8db0"},
"db_connection": {:hex, :db_connection, "2.5.0", "bb6d4f30d35ded97b29fe80d8bd6f928a1912ca1ff110831edcd238a1973652c", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "c92d5ba26cd69ead1ff7582dbb860adeedfff39774105a4f1c92cbb654b55aa2"},
"decimal": {:hex, :decimal, "2.1.1", "5611dca5d4b2c3dd497dec8f68751f1f1a54755e8ed2a966c2633cf885973ad6", [:mix], [], "hexpm", "53cfe5f497ed0e7771ae1a475575603d77425099ba5faef9394932b35020ffcc"},
"earmark_parser": {:hex, :earmark_parser, "1.4.36", "487ea8ef9bdc659f085e6e654f3c3feea1d36ac3943edf9d2ef6c98de9174c13", [:mix], [], "hexpm", "a524e395634bdcf60a616efe77fd79561bec2e930d8b82745df06ab4e844400a"},
"earmark_parser": {:hex, :earmark_parser, "1.4.37", "2ad73550e27c8946648b06905a57e4d454e4d7229c2dafa72a0348c99d8be5f7", [:mix], [], "hexpm", "6b19783f2802f039806f375610faa22da130b8edc21209d0bff47918bb48360e"},
"ecto": {:hex, :ecto, "3.10.1", "c6757101880e90acc6125b095853176a02da8f1afe056f91f1f90b80c9389822", [:mix], [{:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "d2ac4255f1601bdf7ac74c0ed971102c6829dc158719b94bd30041bbad77f87a"},
"ecto_sql": {:hex, :ecto_sql, "3.10.1", "6ea6b3036a0b0ca94c2a02613fd9f742614b5cfe494c41af2e6571bb034dd94c", [:mix], [{:db_connection, "~> 2.5 or ~> 2.4.1", [hex: :db_connection, repo: "hexpm", optional: false]}, {:ecto, "~> 3.10.0", [hex: :ecto, repo: "hexpm", optional: false]}, {:myxql, "~> 0.6.0", [hex: :myxql, repo: "hexpm", optional: true]}, {:postgrex, "~> 0.16.0 or ~> 0.17.0 or ~> 1.0", [hex: :postgrex, repo: "hexpm", optional: true]}, {:tds, "~> 2.1.1 or ~> 2.2", [hex: :tds, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.0 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "f6a25bdbbd695f12c8171eaff0851fa4c8e72eec1e98c7364402dda9ce11c56b"},
"esbuild": {:hex, :esbuild, "0.7.0", "ce3afb13cd2c5fd63e13c0e2d0e0831487a97a7696cfa563707342bb825d122a", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}], "hexpm", "4ae9f4f237c5ebcb001390b8ada65a12fb2bb04f3fe3d1f1692b7a06fbfe8752"},
Expand Down

0 comments on commit c8fdbe3

Please sign in to comment.