Update dependency phoenix_live_view to ~> 0.20.0 #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
~> 0.17.5
->~> 0.20.0
Release Notes
phoenixframework/phoenix_live_view (phoenix_live_view)
v0.20.17
Compare Source
v0.20.16
Compare Source
Bug fixes
v0.20.15
Compare Source
Enhancements
Bug fixes
phx-mounted
firing twice, first on dead render, then on live render, leading to errors when a LiveComponent has not yet mountedJS.toggle_class
error when used with a transition<%
to<%=
when it shouldn'tDeprecations
live_flash
in favor ofPhoenix.Flash.get
push_redirect
in favor ofpush_navigate
Removal of previously deprecated functionality
phx-capture-click
has been removed (deprecated in 0.17.0)live_component/2
andlive_component/3
helpers (not the function component) have been removedv0.20.14
Compare Source
Bug fixes
v0.20.13
Compare Source
Bug fixes
Enhancements
v0.20.12
Compare Source
Enhancements
Bug fixes
v0.20.11
Compare Source
Bug fixes
max_entries
v0.20.10
Compare Source
Bug fixes
Enhancements
v0.20.9
Compare Source
Bug fixes
phx-update="ignore"
container is added dynamically to the DOMv0.20.8
Compare Source
Bug fixes
<.live_file_input>
Enhancements
v0.20.7
Compare Source
Bug fixes
v0.20.6
Compare Source
Bug fixes
v0.20.5
Compare Source
Deprecations
phx-feedback-group
introduced in the previous release, the goal is to move feedback handling into Elixir and out of the DOMBug fixes
open_browser
not working on WSL for project under UNIX file systemsLiveViewTest
phx-click-away
not working when element is partially hiddenphx-feedback-for
classes not being applied in some casesv0.20.4
Compare Source
Bug fixes
{:shutdown, :cancel}
tohandle_async/3
oncancel_async
phx-mounted
being called twice for stream itemsEnhancements
JS.toggle_class
JS.toggle_attribute
phx-feedback-group
for handling feedback for composite input groupsvalidate_attrs
to slotsphx-viewport
bindings in scrollable containerslive_file_input
Removal of previously deprecated functionality
live_component/2
andlive_component/3
helpers (not the function component) have been removedv0.20.3
Compare Source
Bug fixes
LiveViewTest
Enhancements
JS.push
from dead viewsv0.20.2
Compare Source
Bug fixes
:target
failing to work when used as phx-submit or phx-change with a selector-based targetJS.focus()
failing to focus negative tabindexLiveViewTest
failing to remove items after stream resetphx-window-blur
andphx-window-focus
events not firingEnhancements
handle_async
lifecycle callbackJS.patch
andJS.navigate
to be tested withrender_click
:supervisor
option toassign_async
andstart_async
Deprecations
phx-update="append"
andphx-update="prepend"
in favor ofphx-update="stream"
v0.20.1
Compare Source
Bug fixes
v0.20.0
Compare Source
Deprecations
~L
sigil in favor of~H
preload/1
in LiveComponent in favor ofupdate_many/1
live_component/2-3
in favor of<.live_component />
live_patch
in favor of<.link patch={...} />
live_redirect
in favor of<.link navigate={...} />
live_title_tag
in favor of<.live_title />
Backwards incompatible changes
render_block/2
in favor ofrender_slot/2
live_img_preview/2
in favor of<.live_img_preview />
live_file_input/2
in favor of<.live_file_input />
Bug fixes
auto_upload: true
failing to propagate errors when any individual entry is invalidauto_upload: true
failing to auto upload valid entries errors when any individual entry is invalidauto_upload: true
Enhancements
config :phoenix_live_view, debug_heex_annotations: true
, which provides special HTML comments that wrap around rendered components to help you identify where markup in your HTML document is rendered within your function component treeassign_async
,start_async
,<.async_result>
and,AsyncResult
for declaratively handling async operations in a LiveView or LiveComponent.@myself
forPhoenix.LiveView.send_update/3
id
of<.live_img_preview>
v0.19.5
Compare Source
Backwards incompatible changes
close/1
callback ofPhoenix.LiveView.UploadWriter
is nowclose/2
with the close reason passed as the second argument.write_chunk
callback ofPhoenix.LiveView.UploadWriter
must now return the updatedwriter state when an error occurs. Instead of
{:error, reason}
, return{:error, reason, new_state}
.Enhancements
Phoenix.LiveView.UploadWriter
close.phx:navigate
window events when LiveView changes the history stateBug fixes
Phoenix.LiveView.UploadWriter
close callback when LiveView goes down or connection is lost:host
causing errorsv0.19.4
Compare Source
Enhancements
Phoenix.LiveView.UploadWriter
v0.19.3
Compare Source
Bug fixes
push_event
inside component update not being sent in some casesupload_errors/1
v0.19.2
Compare Source
Bug fixes
<input name="value" />
is usedv0.19.1
Compare Source
Enhancements
accept
attribute on<.live_file_input>
to override default valuesBug fixes
preventDefault()
by other scriptsv0.19.0
Compare Source
Backwards incompatible changes
phx-feedback-for
attribute. An input name must be passed instead.let
attribute. Use:let
instead<%= live_img_preview(entry) %>
. Use<.live_img_preview entry={entry} />
instead<%= live_file_input(upload) %>
. Use<.live_file_input upload={upload} />
instead<%= live_component(Component) %>
. Use<.live_component module={Component} id=\"hello\" />
insteadEnhancements
inputs_for
, to pair with Ecto's newsort_param
anddrop_param
castingDeprecations
:dom_id
tostream/4
in favor ofstream_configure/3
render_block/2
in favor ofrender_slot/2
<%= live_img_preview(entry, opts) %>
. Use<.live_img_preview entry={entry} {opts} />
<%= live_file_input(upload, opts) %>
. Use<.live_file_input upload={upload} {opts} />
<.live_component id={...} />
(note theid
is required)Bug fixes
download
linkphx-disconnected
bindings not firing on mount failuresv0.18.18
Compare Source
Bug fixes
:live_action
to be assigned in a componentassigns_to_attributes
Enhancements
JS.exec
command for executing commands defined on other element attributesv0.18.17
Compare Source
Bug Fixes
handle_info
failing to be invoked in development after a code change with the Phoenix code reloaderEnhancements
submitter
on form submit events.attr
when referencing structs:uploads
,:streams
,:live_action
,:socket
,:myself
will now raise in LiveView and LiveComponentv0.18.16
Compare Source
Enhancements
Bug Fixes
v0.18.15
Compare Source
Bug Fixes
JS.transition
applying incorrect classesEnhancements
type="reset"
inputs and buttonsv0.18.14
Compare Source
Bug Fixes
v0.18.13
Compare Source
Enhancements
v0.18.12
Compare Source
Enhancements
:handle_event
lifecycle hooks<.inputs_for>
component toPhoenix.Component
:handle_event
hooksBug Fixes
v0.18.11
Compare Source
Bug Fixes
v0.18.10
Compare Source
Bug Fixes
target="_blank"
incorrectly unloading socket on submitv0.18.9
Compare Source
Bug Fixes
v0.18.8
Compare Source
Enhancements
Bug Fixes
v0.18.7
Compare Source
Bug Fixes
:live_session
during disconnect renderv0.18.6
Compare Source
Bug Fixes
v0.18.5
Compare Source
Bug Fixes
v0.18.4
Compare Source
Enhancements
allow_upload
'sBug Fixes
@page_title
JS.push
for form changesphx-no-feedback
missing from inputs added after a form submitphx-disconnected
events firing when navigating away or submitting external formsv0.18.3
Compare Source
Enhancements
embed_templates
toPhoenix.Component
for embedding template files as function componentsBug Fixes
v0.18.2
Compare Source
Bug Fixes
:values
before:default
Enhancements
intersperse
component for rendering a separator between an enumerablev0.18.1
Compare Source
Bug fixes
:live_action
to be assigned in a componentassigns_to_attributes
Enhancements
JS.exec
command for executing commands defined on other element attributesv0.18.0
Compare Source
LiveView v0.18 includes a major new feature in the form of declarative assigns with new
attr
and
slot
APIs for specifying which attributes a function component supports, the type,and default values. Attributes and slots are compile-time verified and emit warnings (requires Elixir v1.14.0+).
v0.18 includes a number of new function components which replace their EEx expression
counterparts
<%= ... %>
. For example,live_redirect
,live_patch
, and Phoenix.HTML'slink
have been replaced by a unifiedPhoenix.Component.link/1
function component:Those new components live in the
Phoenix.Component
module.Phoenix.LiveView.Helpers
itself has been soft deprecated and all relevant functionality has been migrated.
You must
import Phoenix.Component
where you previously importedPhoenix.LiveView.Helpers
when upgrading. You may also need to
import Phoenix.Component
where you also importedPhoenix.LiveView
and some of its functions have been moved toPhoenix.Component
.Additionally, the special
let
attribute on function components have been deprecated bya
:let
usage.Deprecations
live_redirect
- deprecate in favor of new<.link navigate={..}>
component ofPhoenix.Component
live_patch
- deprecate in favor of new<.link patch={..}>
component ofPhoenix.Component
push_redirect
- deprecate in favor of newpush_navigate
function onPhoenix.LiveView
Enhancements
attr
/slot
:let
and:for
, and:if
with HTML tag, function component, and slot support. We still supportlet
but the formatter will convert it to:let
and soon it will be deprecated.dynamic_tag
function componentlink
function componentfocus_wrap
function component to wrap focus around content like modals and dialogs for accessibilityfocus
,focus_first
,push_focus
, andpop_focus
for accessibilityPhoenix.LiveView.Socket
with regular channels viause Phoenix.LiveView.Socket
_live_referer
connect param for handlingpush_navigate
referral URLphx-connected
andphx-disconnected
bindings for reacting to lifecycle changesBug fixes
phx-blur
v0.17.14
Compare Source
v0.17.13
Compare Source
v0.17.12
Compare Source
Enhancements
v0.17.11
Compare Source
Enhancements
replaceTransport
to LiveSocketBug fixes
phx-blur
eventsv0.17.10
Compare Source
Bug fixes
Enhancements
v0.17.9
Compare Source
Bug fixes
phx-update
valuev0.17.8
Compare Source
Enhancements
phx-change
on individual inputsMouseEvent
on client:bubbles
option toJS.dispatch
to control event bubblingliveSocket
instance on hooksBug fixes
csrf_token
for forms without action, reducing the payload during phx-change/phx-submit eventsv0.17.7
Compare Source
Enhancements
Bug fixes
live_redirect
links are clicked when not connected in certain casesConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.