Skip to content

Commit

Permalink
Release 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Jan 9, 2025
1 parent 38be0a1 commit 1ebb8ba
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ A backwards-compatible shim can be used to maintain `phx-feedback-for` in your e
import {Socket} from "phoenix";
import {LiveSocket} from "phoenix_live_view"
import phxFeedbackDom from "./phx_feedback_dom"

let csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute("content");
let liveSocket = new LiveSocket("/live", Socket, {
params: {_csrf_token: csrfToken},
Expand Down Expand Up @@ -70,7 +70,7 @@ First, ensure that you are using the latest versions of `:phoenix_ecto` and `:ph
```diff
def input(%{field: %Phoenix.HTML.FormField{} = field} = assigns) do
+ errors = if Phoenix.Component.used_input?(field), do: field.errors, else: []

assigns
|> assign(field: nil, id: assigns.id || field.id)
- |> assign(:errors, Enum.map(field.errors, &translate_error(&1)))
Expand Down Expand Up @@ -112,7 +112,7 @@ generated user module:
if valid_password?(changeset.data, password) do
```

## 1.0.2
## 1.0.2 (2025-01-09)

### Bug fixes
* Fix inconsistency between `mix format` and `mix format --check-formatted` with new curly interpolation syntax ([#3590](https://github.com/phoenixframework/phoenix_live_view/issues/3590))
Expand Down
4 changes: 2 additions & 2 deletions assets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "phoenix_live_view",
"version": "1.0.1",
"version": "1.0.2",
"description": "The Phoenix LiveView JavaScript client.",
"license": "MIT",
"repository": {},
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Phoenix.LiveView.MixProject do
use Mix.Project

@version "1.0.1"
@version "1.0.2"

def project do
[
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "phoenix_live_view",
"version": "1.0.1",
"version": "1.0.2",
"description": "The Phoenix LiveView JavaScript client.",
"license": "MIT",
"module": "./priv/static/phoenix_live_view.esm.js",
Expand Down
2 changes: 1 addition & 1 deletion priv/static/phoenix_live_view.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion priv/static/phoenix_live_view.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion priv/static/phoenix_live_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -4780,7 +4780,7 @@ removing illegal node: "${(childNode.outerHTML || childNode.nodeValue).trim()}"
}
// public
version() {
return "1.0.1";
return "1.0.2";
}
isProfileEnabled() {
return this.sessionStorage.getItem(PHX_LV_PROFILE) === "true";
Expand Down
2 changes: 1 addition & 1 deletion priv/static/phoenix_live_view.min.js

Large diffs are not rendered by default.

0 comments on commit 1ebb8ba

Please sign in to comment.